Searched refs:length (Results 226 - 250 of 1330) sorted by relevance

1234567891011>>

/haiku/src/add-ons/kernel/file_systems/ext2/
H A DHTree.cpp160 HTree::Hash(const char* name, uint8 length) argument
167 hash = _HashLegacy(name, length);
170 hash = _HashHalfMD4(name, length);
173 hash = _HashTEA(name, length);
190 HTree::_HashLegacy(const char* name, uint8 length) argument
196 for (; length > 0; --length, ++name) {
308 int32 length = _length; local
315 for (; length > 0; length
359 int32 length = _length; local
382 _PrepareBlocksForHash(const char* string, uint32 length, uint32* blocks, uint32 numBlocks) argument
[all...]
/haiku/src/system/kernel/lib/
H A Dkernel_vsprintf.cpp70 void PutString(const char *source, int32 length) argument
72 if (length <= 0)
76 int32 toWrite = std::min(fSize - fBytesWritten, (size_t)length);
81 fBytesWritten += length;
222 int32 length = 0; local
239 buffer[length++] = '0' + digit;
244 buffer[length++] = '.';
250 buffer[length++] = '0';
253 buffer[length++] = '0' + do_div(&integer, 10);
264 while (length
373 int32 length; local
[all...]
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DDataContainer.cpp38 // 12 bytes. The optimal length is actually 35, with 51.05 bytes per
275 DataContainer::_DoCacheIO(const off_t offset, uint8* buffer, ssize_t length, argument
278 const size_t originalLength = length;
282 const size_t rounded_len = ROUNDUP((length) + (offset - rounded_offset),
294 while (length > 0) {
304 bytes = min(length, bytes);
324 length -= bytes;
331 *bytesProcessed = length > 0 ? originalLength - length : originalLength;
338 DataContainer::_GetPages(off_t offset, off_t length, boo argument
393 _PutPages(off_t offset, off_t length, vm_page** pages, bool success) argument
[all...]
H A DAttribute.cpp110 Attribute::GetKey(uint8 *key, size_t *length) argument
112 *length = min(*length, kMaxIndexKeyLength);
113 ReadAt(0, key, *length, length);
H A DAttributeIndexImpl.cpp70 size_t length)
71 : attribute(attribute), length(length)
72 { memcpy(key, theKey, length); }
74 : attribute(attribute) { attribute->GetKey(key, &length); }
75 PrimaryKey(const uint8 *theKey, size_t length) argument
76 : attribute(NULL), length(length)
77 { memcpy(key, theKey, length); }
81 size_t length; member in class:AttributeIndexImpl::PrimaryKey
69 PrimaryKey(Attribute *attribute, const uint8 *theKey, size_t length) argument
324 InternalFind(const uint8 *key, size_t length) argument
443 SetTo(AttributeIndexImpl *index, const uint8 *key, size_t length, bool ignoreValue) argument
[all...]
/haiku/src/add-ons/print/drivers/pcl6/
H A DDeltaRowCompression.cpp67 int length = DiffersLength(row, index); local
69 // delta starts at index and contains length bytes
72 int deltaBytes = length;
73 if (length > 8)
113 length -= deltaBytes;
115 } while (length > 0);
/haiku/src/add-ons/input_server/filters/shortcut_catcher/
H A DKeyInfos.cpp141 uint8 length = *mapDesc; local
144 if (m < length)
155 if ((length == 1) && (isalpha(c)))
158 if (length > 1 || (length == 1 && c > ' '))
/haiku/src/add-ons/kernel/file_cache/
H A Dlog.cpp271 ssize_t length = 0; local
275 length = snprintf(line, sizeof(line), "%ld: %lld \"%s\" l %ld:%lld %ld \"%s\" ",
279 length = std::min(length, (ssize_t)sizeof(line) - 1);
284 ssize_t written = write(sLogFile, line, length);
285 if (written != length) {
290 fileSize += length;
293 length = strlcat(line, "\xb0 ", sizeof(line));
296 if (length >= (ssize_t)sizeof(line))
297 length
[all...]
/haiku/src/add-ons/kernel/network/stack/
H A Dutility.cpp44 UserBuffer::Push(void* source, size_t length) argument
49 if (fAvailable < length) {
55 fStatus = user_memcpy(fBuffer, source, length);
59 memcpy(fBuffer, source, length);
64 fAvailable -= length;
65 fBuffer += length;
72 UserBuffer::Pad(size_t length) argument
77 if (fAvailable < length)
80 fStatus = user_memset(fBuffer, 0, length);
84 fAvailable -= length;
92 PadToNext(size_t length) argument
102 compute_checksum(uint8* _buffer, size_t length) argument
135 checksum(uint8* buffer, size_t length) argument
[all...]
/haiku/src/kits/interface/layouter/
H A DCollapsingLayouter.cpp62 ElementRangeSize(int32 element, int32 length) argument
66 return fTarget->ElementRangeSize(fElements[element], length);
77 int32 length; member in struct:CollapsingLayouter::Constraint
134 CollapsingLayouter::AddConstraints(int32 element, int32 length, float min, argument
139 if (element < 0 || length <= 0 || element + length > fElementCount)
143 constraint->length = length;
148 if (length > 1)
153 for (int32 i = element; i < element + length;
[all...]
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DFTDI.cpp74 size_t length = 0; local
78 FTDI_PIT_DEFAULT, 0, NULL, &length);
135 size_t length = 0; local
139 FTDI_PIT_DEFAULT, 0, NULL, &length);
172 length = 0;
176 FTDI_PIT_DEFAULT, 0, NULL, &length);
195 size_t length = 0; local
199 FTDI_PIT_DEFAULT, 0, NULL, &length);
212 FTDI_PIT_DEFAULT, 0, NULL, &length);
233 size_t length local
[all...]
/haiku/src/system/boot/platform/openfirmware/
H A Dconsole.cpp114 size_t length = 0; local
116 for (; length < bufferSize; length++) {
117 if (string[length] == '\r' && length + 1 < bufferSize) {
118 length += 2;
119 } else if (string[length] == '\n') {
125 if (length > 0) {
126 fWriteHandle.WriteAt(NULL, -1, string, length);
127 string += length;
[all...]
/haiku/src/add-ons/translators/raw/
H A DReadHelper.h91 operator()(T data, size_t length) argument
93 fError = fStream.Read((void *)data, length);
94 if (fError < (ssize_t)length)
161 NextShorts(uint16* data, size_t length) argument
163 fError = fStream.Read(data, length * 2);
164 if (fError < (ssize_t)length * 2)
169 swap_data(B_INT16_TYPE, data, length * 2, B_SWAP_ALWAYS);
/haiku/src/system/kernel/cache/
H A Dvnode_store.cpp70 generic_size_t length = min_c(bytesUntouched, vecs[i].length); local
72 generic_addr_t address = vecs[i].base + vecs[i].length - length;
74 vm_memset_physical(address, 0, length);
76 memset((void*)(addr_t)address, 0, length);
78 bytesUntouched -= length;
/haiku/src/system/libroot/posix/glibc/extensions/
H A Dobstack.h48 would not like to put any arbitrary upper limit on the length of your
188 chunk contains a zero-length object. This
383 # define obstack_make_room(OBSTACK,length) \
386 int __len = (length); \
396 # define obstack_grow(OBSTACK,where,length) \
399 int __len = (length); \
406 # define obstack_grow0(OBSTACK,where,length) \
409 int __len = (length); \
451 # define obstack_blank(OBSTACK,length) \
454 int __len = (length); \
[all...]
/haiku/src/tests/kits/app/bmessage/
H A DMessageSpeedTest.cpp44 bigtime_t length = 0; \
50 length += (real_time_clock_usecs() - stamp); \
54 << " in a message = " << length << "usec" << endl; \
55 LOG(__PRETTY_FUNCTION__, length); \
91 bigtime_t length = real_time_clock_usecs() - stamp; \
93 << " items = " << length << "usec" << endl; \
94 LOG(__PRETTY_FUNCTION__, length); \
118 bigtime_t length = 0; \
122 length += (real_time_clock_usecs() - stamp); \
126 << " out of a message = " << length << "use
[all...]
/haiku/src/add-ons/kernel/file_systems/shared/
H A DQueryParserUtils.cpp98 int32 length; local
104 length = 2;
107 length = 3;
111 length = 4;
121 for (; i < length && (bytes[i] & 0x80) > 0; i++)
124 if (i < length) {
129 *string += length;
/haiku/src/servers/package/
H A DFSUtils.h74 size_t length = fComponentCount - 1;
76 length += strlen(fComponents[i]);
79 char* buffer = result.LockBuffer(length + 1);
137 int32 length = fPath.Length(); local
138 if (fPath[length - 1] != '/') {
140 if (++length != fPath.Length())
145 if (fPath.Length() <= length)
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A DKPPPReportManager.cpp157 You may append additional data to the report messages. The data length may not be
163 \param length Length of the data.
168 KPPPReportManager::Report(ppp_report_type type, int32 code, void *data, int32 length) argument
170 TRACE("KPPPReportManager: Report(type=%d code=%ld length=%ld) to %ld receivers\n",
171 type, code, length, fReportRequests.CountItems());
173 if (length > PPP_REPORT_DATA_LIMIT)
180 length = 0;
190 report.length = length;
191 memcpy(report.data, data, length);
[all...]
/haiku/src/add-ons/kernel/drivers/input/hid_shared/
H A DProtocolHandler.cpp156 ProtocolHandler::Control(uint32 *cookie, uint32 op, void *buffer, size_t length) argument
171 ProtocolHandler::RingBufferRead(void *buffer, size_t length) argument
173 ring_buffer_user_read(fRingBuffer, (uint8 *)buffer, length);
179 ProtocolHandler::RingBufferWrite(const void *buffer, size_t length) argument
181 ring_buffer_write(fRingBuffer, (const uint8 *)buffer, length);
193 ProtocolHandler::IOGetDeviceName(const char *name, void *buffer, size_t length) argument
199 if (user_strlcpy((char *)buffer, name, length) > 0)
/haiku/src/add-ons/kernel/bluetooth/hci/
H A Dacl.cpp40 ERROR("%s: Invalid ACL data packet, small length=%" B_PRIu32 "\n",
54 // Get ACL connection handle, PB flag and payload length
59 uint16 length = B_LENDIAN_TO_HOST_INT16(aclHeader->alen); local
63 TRACE("%s: ACL data packet, handle=%#x, PB=%#x, length=%d\n", __func__,
64 con_handle, pb, length);
90 " want %d \n", __func__, conn->currentRxPacket->size, length );
98 TRACE("%s: Invalid L2CAP start fragment, small, length=%" B_PRIu32
110 TRACE("%s: New L2CAP, handle=%#x length=%d\n", __func__, con_handle,
111 le16toh(l2capHeader->length));
115 conn->currentRxExpectedLength = B_LENDIAN_TO_HOST_INT16(l2capHeader->length)
[all...]
/haiku/src/system/kernel/fs/
H A Dsocket.cpp221 size_t length)
223 return sStackInterface->ioctl(descriptor->u.socket, op, buffer, length);
452 common_recv(int fd, void *data, size_t length, int flags, bool kernel) argument
458 return sStackInterface->recv(descriptor->u.socket, data, length, flags);
463 common_recvfrom(int fd, void *data, size_t length, int flags, argument
470 return sStackInterface->recvfrom(descriptor->u.socket, data, length,
487 common_send(int fd, const void *data, size_t length, int flags, bool kernel) argument
493 return sStackInterface->send(descriptor->u.socket, data, length, flags);
498 common_sendto(int fd, const void *data, size_t length, int flags, argument
505 return sStackInterface->sendto(descriptor->u.socket, data, length, flag
220 socket_ioctl(struct file_descriptor *descriptor, ulong op, void *buffer, size_t length) argument
535 common_setsockopt(int fd, int level, int option, const void *value, socklen_t length, bool kernel) argument
681 recv(int socket, void *data, size_t length, int flags) argument
689 recvfrom(int socket, void *data, size_t length, int flags, struct sockaddr *address, socklen_t *_addressLength) argument
707 send(int socket, const void *data, size_t length, int flags) argument
715 sendto(int socket, const void *data, size_t length, int flags, const struct sockaddr *address, socklen_t addressLength) argument
742 setsockopt(int socket, int level, int option, const void *value, socklen_t length) argument
893 _user_recv(int socket, void *data, size_t length, int flags) argument
904 _user_recvfrom(int socket, void *data, size_t length, int flags, struct sockaddr *userAddress, socklen_t *_addressLength) argument
996 _user_send(int socket, const void *data, size_t length, int flags) argument
1007 _user_sendto(int socket, const void *data, size_t length, int flags, const struct sockaddr *userAddress, socklen_t addressLength) argument
1122 _user_setsockopt(int socket, int level, int option, const void *userValue, socklen_t length) argument
[all...]
/haiku/src/add-ons/media/media-add-ons/usb_webcam/addons/uvc/
H A DUSB_video.h127 uint8 length; member in struct:usbvc_class_descriptor
133 uint8 length; member in struct:usbvc_input_header_descriptor
149 uint8 length; member in struct:usbvc_output_header_descriptor
163 uint8 length; member in struct:usbvc_format_descriptor
190 uint8 length; member in struct:usbvc_frame_descriptor
218 uint8 length; member in struct:usbvc_still_image_frame_descriptor
232 uint8 length; member in struct:usbvc_color_matching_descriptor
242 uint8 length; member in struct:usbvc_interface_header_descriptor
253 uint8 length; member in struct:usbvc_input_terminal_descriptor
263 uint8 length; member in struct:usbvc_output_terminal_descriptor
274 uint8 length; member in struct:usbvc_camera_terminal_descriptor
289 uint8 length; member in struct:usbvc_selector_unit_descriptor
299 uint8 length; member in struct:usbvc_processing_unit_descriptor
312 uint8 length; member in struct:usbvc_extension_unit_descriptor
[all...]
/haiku/src/kits/device/
H A DUSBDevice.cpp249 usb_string_descriptor *descriptor, size_t length) const
257 command.string.length = length;
263 return command.string.length;
314 void *data, size_t length) const
316 if (length > 0 && data == NULL)
324 command.descriptor.length = length;
330 return command.descriptor.length;
381 uint16 index, uint16 length, voi
380 ControlTransfer(uint8 requestType, uint8 request, uint16 value, uint16 index, uint16 length, void *data) const argument
[all...]
/haiku/src/system/boot/loader/file_systems/bfs/
H A DStream.cpp263 //printf("### indirect-run[%ld] = (%ld,%d,%d), offset = %lld\n",fCurrent,fRun.allocation_group,fRun.start,fRun.length,fRunFileOffset);
284 //printf("### run[%ld] = (%ld,%d,%d), offset = %lld\n",fCurrent,fRun.allocation_group,fRun.start,fRun.length,fRunFileOffset);
298 // set/check boundaries for pos/length
307 size_t length = *_length; local
309 if (pos + (off_t)length > data.Size())
310 length = data.Size() - pos;
331 run.length = HOST_ENDIAN_TO_BFS_INT16(run.Length()
341 if (length < bytesRead)
342 bytesRead = length;
347 length
[all...]

Completed in 297 milliseconds

1234567891011>>