/haiku/headers/os/drivers/usb/ |
H A D | USB_midi.h | 31 uint8 length; member in struct:usb_midi_interface_header_descriptor 45 uint8 length; member in struct:usb_midi_in_jack_descriptor 60 uint8 length; member in struct:usb_midi_out_jack_descriptor 96 uint8 length; member in struct:usb_midi_element_descriptor 115 uint8 length; member in struct:usb_midi_endpoint_descriptor
|
/haiku/src/add-ons/kernel/network/protocols/ipv6/ |
H A D | jenkins.h | 35 then use c as the hash value. If you have a variable length array of 143 -- that the length be the number of uint32's in the key 147 except that the length has to be measured in uint32s rather than in 154 size_t length, /* the length of the key, in uint32s */ 160 a = b = c = 0xdeadbeef + (((uint32)length)<<2) + initval; 163 while (length > 3) 169 length -= 3; 174 switch(length) /* all the case statements fall through */ 153 jenkins_hashword(const uint32 *k, size_t length, uint32 initval) argument
|
/haiku/src/add-ons/print/transports/shared/ |
H A D | SocketStream.cpp | 76 int length = pptr() - pbase(); local 77 if (length > 0) { 80 while (length > 0) { 81 bytes = __sock->write(buffer, length); 89 length -= bytes;
|
/haiku/headers/os/support/ |
H A D | String.h | 78 int32 length) const; 80 int32 length) const; 98 BString& Append(const BString& string, int32 length); 99 BString& Append(const char* string, int32 length); 108 BString& Prepend(const char* string, int32 length); 109 BString& Prepend(const BString& string, int32 length); 118 BString& Insert(const char* string, int32 length, 121 int32 length, int32 position); 123 BString& Insert(const BString& string, int32 length, 126 int32 length, int3 [all...] |
/haiku/src/system/libroot/posix/glibc/extensions/ |
H A D | obstack.c | 276 to the current object, or a new object of length LENGTH allocated. 281 _obstack_newchunk (h, length) 283 int length; 294 new_size = (obj_size + length) + (obj_size >> 3) + h->alignment_mask + 100; 550 int (obstack_make_room) (obstack, length) 552 int length; 554 return obstack_make_room (obstack, length); 557 void (obstack_grow) (obstack, data, length) 560 int length; 562 obstack_grow (obstack, data, length); [all...] |
/haiku/headers/cpp/std/ |
H A D | bastring.cc | 106 p->copy (0, data (), length ()); 107 p->len = length (); 121 const size_t len2 = _str.length (); 123 if (pos1 == 0 && n1 >= length () && pos2 == 0 && n2 >= len2) 155 const size_type len = length (); 191 const size_t len = length (); 222 if (n > length ()) 223 append (n - length (), c); 233 OUTOFRANGE (pos > length ()); 235 if (n > length () [all...] |
/haiku/src/add-ons/kernel/file_systems/cdda/ |
H A D | cdda.cpp | 126 uint32 length = strlen(string); 132 length -= garbage; 134 memmove(string, string + garbage, length + 1); 138 while (length > 1 && isspace(string[length - 1])) { 139 string[--length] = '\0'; 357 char *buffer, size_t &length) 363 size_t size = length; 381 length = 0; 386 length 355 parse_pack_data(cdtext_pack_data *&pack, uint32 &packLeft, cdtext_pack_data *&lastPack, uint8 &id, uint8 &track, uint8 &state, char *buffer, size_t &length) argument 467 scsi_cd_msf length; local 606 size_t length = sizeof(text); local 663 read_table_of_contents(int fd, scsi_toc_toc *toc, size_t length) argument 691 read_cdda_data(int fd, off_t endFrame, off_t offset, void *data, size_t length, off_t bufferOffset, void *buffer, size_t bufferSize) argument [all...] |
/haiku/src/add-ons/kernel/drivers/bus/usb/ |
H A D | usb_raw.cpp | 280 usb_raw_ioctl(void *cookie, uint32 op, void *buffer, size_t length) argument 288 if (length < sizeof(command.version.status)) 291 || user_memcpy(&command, buffer, min_c(length, sizeof(command))) 309 if (length < sizeof(command.device)) 332 && length < sizeof(command.config_etc)) 335 if (length < sizeof(command.config)) 347 sizeToCopy = std::min(command.config_etc.length, 364 if (length < sizeof(command.alternate)) 405 if (length < sizeof(command.interface)) 414 if (length < sizeo 909 usb_raw_read(void *cookie, off_t position, void *buffer, size_t *length) argument 918 usb_raw_write(void *cookie, off_t position, const void *buffer, size_t *length) argument [all...] |
/haiku/src/add-ons/kernel/generic/tty/ |
H A D | line_buffer.cpp | 80 line_buffer_user_read(struct line_buffer &buffer, char *data, size_t length, argument 85 if (length > available) 86 length = available; 88 if (length == 0) 98 length = i; 104 ssize_t bytesRead = length; 106 if (buffer.first + length < buffer.size) { 108 if (user_memcpy(data, buffer.buffer + buffer.first, length) != B_OK) 113 size_t lower = length - upper;
|
/haiku/src/tests/kits/net/ |
H A D | link_echo.cpp | 48 size_t length = strlen(buffer);
local 49 if (length > 0)
50 length--;
52 if (sendto(fd, buffer, length, 0, server, server.Length()) < 0) {
57 printf("sent %" B_PRIuSIZE " bytes...\n", length);
77 socklen_t length = sizeof(client);
local 81 &length);
164 socklen_t length = sizeof(link);
local 165 if (getsockname(fd, link, &length) != 0)
|
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | DirectoryIterator.cpp | 89 size_t length = entry->NameLength(); local 94 if (length + 1 > *_nameLength) { 99 memcpy(name, entry + 1, length); 100 name[length] = '\0'; 101 *_nameLength = length; 129 uint32 length; local 131 (void**)&entries, &length); 140 while (current < length) { 148 length, entry->NameLength());
|
/haiku/src/bin/keymap/ |
H A D | Keymap.cpp | 360 size_t length = strlen(buffer); local 364 if (re_search(&versionBuf, buffer, length, 0, length, ®s) >= 0) { 366 } else if (re_search(&capslockBuf, buffer, length, 0, length, ®s) 369 } else if (re_search(&scrolllockBuf, buffer, length, 0, length, ®s) 372 } else if (re_search(&numlockBuf, buffer, length, 0, length, ®s) 375 } else if (re_search(&lshiftBuf, buffer, length, 1054 uint32 length = 0; local 1081 int32 length = regs.end[i] - regs.start[i]; local [all...] |
/haiku/headers/private/net/ |
H A D | net_stack_interface.h | 40 ssize_t (*recv)(net_socket* socket, void* data, size_t length, int flags); 41 ssize_t (*recvfrom)(net_socket* socket, void* data, size_t length, 46 ssize_t (*send)(net_socket* socket, const void* data, size_t length, 48 ssize_t (*sendto)(net_socket* socket, const void* data, size_t length, 57 const void* value, socklen_t length); 70 size_t length);
|
/haiku/src/add-ons/kernel/bus_managers/ps2/ |
H A D | packet_buffer.cpp | 86 packet_buffer_flush(packet_buffer* buffer, size_t length) argument 91 ring_buffer_flush(buffer->buffer, length); 99 packet_buffer_read(packet_buffer* buffer, uint8 *data, size_t length) argument 104 size_t bytesRead = ring_buffer_read(buffer->buffer, data, length); 115 size_t length) 120 size_t bytesWritten = ring_buffer_write(buffer->buffer, data, length); 114 packet_buffer_write(packet_buffer* buffer, const uint8 *data, size_t length) argument
|
/haiku/src/add-ons/kernel/busses/usb/ |
H A D | uhci_hardware.h | 146 size_t length = (descriptor->token >> TD_TOKEN_MAXLEN_SHIFT) + 1; local 147 if (length == TD_STATUS_ACTLEN_NULL + 1) 149 return length; 156 size_t length = (descriptor->status & TD_STATUS_ACTLEN_MASK) + 1; local 157 if (length == TD_STATUS_ACTLEN_NULL + 1) 159 return length;
|
/haiku/src/bin/ |
H A D | roster.cpp | 41 truncate_string(BString &name, int32 length) argument 43 if (name.Length() <= length) 45 if (length < 6) 46 length = 6; 48 int32 beginLength = length / 3 - 1; 49 int32 endLength = length - 3 - beginLength;
|
/haiku/src/system/boot/loader/file_systems/bfs/ |
H A D | Directory.cpp | 102 uint16 length; local 105 return iterator->GetNextEntry(name, &length, size, &id); 114 uint16 length; local 117 status_t status = iterator->GetNextEntry(name, &length, sizeof(name), &id); 149 uint16 length; local 151 while (iterator.GetNextEntry(name, &length, B_FILE_NAME_LENGTH, &id)
|
/haiku/src/kits/app/ |
H A D | LinkReceiver.cpp | 320 int32 length = 0; local 321 status_t status = Read<int32>(&length); 327 if (length < 0) { 332 string = (char *)malloc(length + 1); 338 if (length > 0) { 339 status = Read(string, length); 347 string[length] = '\0'; 350 *_length = length; 366 int32 length = 0; local 367 status_t status = Read<int32>(&length); 411 int32 length = 0; local [all...] |
/haiku/src/tests/system/network/ |
H A D | firefox_crash.cpp | 54 socklen_t length; local 60 length = sizeof(sockaddr_in); 61 if (getsockname(listenSocket, (sockaddr*)&listenAddress, &length) != 0) 88 length = sizeof(sockaddr_in); 89 if (getsockname(pair[0], (sockaddr*)&address, &length) != 0) 93 pair[1] = accept(listenSocket, (sockaddr*)&peerAddress, &length);
|
/haiku/headers/os/drivers/ |
H A D | USB_spec.h | 85 uint8 length; member in struct:usb_device_descriptor 102 uint8 length; member in struct:usb_configuration_descriptor 113 uint8 length; member in struct:usb_interface_descriptor 125 uint8 length; member in struct:usb_endpoint_descriptor 134 uint8 length; member in struct:usb_string_descriptor 140 uint8 length; member in struct:usb_generic_descriptor
|
/haiku/src/add-ons/translators/sgi/ |
H A D | SGIImage.cpp | 228 // allocate and read length table 266 /* int32* length = fLengthTable[0]; 268 if ((ret = _WriteLong(length[0])) < B_OK) 270 length++; 605 uint32 length = 0; // number of bytes read local 625 length ++; 647 length ++; 662 length ++; 672 return (numPixels > 0 ? ret : length); 686 uint32 length local 778 uint32 length = 0; // number of bytes read... local 856 uint32 length = 0; // number of bytes read... local 901 int32 length = 0; // length of output line local 986 int32 length = 0; // length of output line local [all...] |
/haiku/src/tests/add-ons/kernel/file_systems/consistency_check/ |
H A D | generate_hashs.cpp | 75 virtual status_t Write(uint8* buffer, size_t length) argument 77 fSHA.Update(buffer, length); 208 int length = strlen(files[i]); local 209 write(file, &length, sizeof(int)); 210 write(file, files[i], length + 1); 221 int length = entry.path.size(); local 222 write(file, &length, sizeof(int)); 223 write(file, entry.path.c_str(), length + 1); 282 int length; local 283 read(file, &length, sizeo [all...] |
/haiku/src/add-ons/translators/jpeg/ |
H A D | exif_parser.cpp | 66 char* buffer = (char*)malloc(tag.length); 70 source(buffer, tag.length); 73 int32 i = tag.length; 89 char* buffer = (char*)malloc(tag.length); 93 source(buffer, tag.length); 99 status = target.AddData(name, B_RAW_TYPE, buffer, tag.length); 200 read(tag.length); 204 uint32 length = tag.length; local 209 length * [all...] |
/haiku/src/kits/network/libnetapi/ |
H A D | NetworkDevice.cpp | 42 uint8 length; member in struct:__anon35::ie_data 51 get_80211(const char* name, int32 type, void* data, int32& length) argument 61 ireq.i_len = length; 68 length = ireq.i_len; 75 int32 length = 0, int32 value = 0) 85 ireq.i_len = length; 130 read_le16(uint8*& data, int32& length) argument 134 length -= 2; 141 read_le32(uint8*& data, int32& length) argument 145 length 201 parse_ie_rsn_wpa(wireless_network& network, uint8*& data, int32& length) argument 248 int32 length = ie->length; local 266 int32 length = ie->length; local 439 int32 length = kBufferSize; local 494 int32 length = kBufferSize; local 551 int32 length = kBufferSize; local 1002 int32 length = IEEE80211_ADDR_LEN; local [all...] |
/haiku/src/tests/system/kernel/device_manager/ |
H A D | dma_resource_test.cpp | 60 Test(TestSuite& suite, off_t offset, size_t length, 63 Test& AddSource(addr_t base, size_t length); 66 Test& AddTarget(addr_t base, size_t length, 91 size_t length; member in struct:Test::target_t 137 Test& AddTest(off_t offset, size_t length, bool isWrite, uint32 flags) argument 139 Test* test = new(std::nothrow) Test(*this, offset, length, isWrite, 192 generic_size_t length = vec.length; local 195 vm_memcpy_from_physical(disk + offset, base, length, false); 197 vm_memcpy_to_physical(base, disk + offset, length, fals 297 Test(TestSuite& suite, off_t offset, size_t length, bool isWrite, uint32 flags) argument 312 AddSource(addr_t address, size_t length) argument 344 AddTarget(addr_t base, size_t length, bool usesBounceBuffer) argument 403 size_t length = fLength; local 424 size_t length = fLength; local 438 size_t length = fLength; local 502 size_t length = fLength; local 1227 size_t length = *_length; local 1259 size_t length = *_length; local 1300 dma_test_control(void *cookie, uint32 op, void *buffer, size_t length) argument [all...] |