Searched refs:length (Results 251 - 275 of 1330) sorted by relevance

<<11121314151617181920>>

/haiku/src/add-ons/kernel/file_systems/ext2/
H A DBlockAllocator.cpp42 uint32 length);
44 uint32 length);
46 status_t Check(uint32 start, uint32 length);
61 void _AddFreeRange(uint32 start, uint32 length);
220 uint32 length)
224 start, length);
225 if (length == 0)
228 uint32 end = start + length;
244 if (!block.Mark(start, length)) {
246 ". Some were already allocated.\n", start, start + length);
219 Allocate(Transaction& transaction, fsblock_t _start, uint32 length) argument
293 Free(Transaction& transaction, uint32 start, uint32 length) argument
406 _AddFreeRange(uint32 start, uint32 length) argument
645 AllocateBlocks(Transaction& transaction, uint32 minimum, uint32 maximum, uint32& blockGroup, fsblock_t& start, uint32& length) argument
809 Free(Transaction& transaction, fsblock_t start, uint32 length) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcompress.c74 /* Match length at or above which ntfs_best_match() will stop searching for
131 * This function sets pctx->size and pctx->rel to the length and offset,
134 * The minimum match length is assumed to be 3, and the maximum match
135 * length is assumed to be pctx->mxsz. If this function produces
174 /* Lazy match is being attempted, but there aren't enough length
325 * first adjust the maximum match length if needed.
370 * adjusted the maximum match length at the
394 /* The minimum match length is 3, and
536 /* Check if the decompressed sub-block was not full-length. */
555 u16 lg, pt, length, max_non_overla local
[all...]
/haiku/src/kits/shared/
H A DJsonTextWriter.cpp59 b_json_len_7bit_clean_non_esc(uint8* c, size_t length) { argument
62 while (result < length
101 off_t offset, size_t length);
105 off_t offset, size_t length);
109 off_t offset, size_t length);
318 off_t offset, size_t length)
320 return fWriter->StreamStringVerbatim(string, offset, length);
333 off_t offset, size_t length)
335 return fWriter->StreamStringEncoded(string, offset, length);
349 const char* string, off_t offset, size_t length)
317 StreamStringVerbatim(const char* string, off_t offset, size_t length) argument
332 StreamStringEncoded(const char* string, off_t offset, size_t length) argument
348 StreamQuotedEncodedString( const char* string, off_t offset, size_t length) argument
598 StreamStringVerbatim(const char* string, off_t offset, size_t length) argument
625 StreamStringEncoded(const char* string, off_t offset, size_t length) argument
684 StreamQuotedEncodedString(const char* string, off_t offset, size_t length) argument
[all...]
/haiku/src/apps/cortex/Persistence/
H A DImporter.cpp72 int length) {
73 ((Importer*)pUser)->xmlCharacterData(pData, length);
79 int length) {
80 ((Importer*)pUser)->xmlDefaultData(pData, length);
200 uint32 length,
205 int err = XML_Parse(m_parser, pBuffer, length, last);
455 int32 length) {
472 length,
478 length,
486 int32 length) {
69 _oc_handle_char( void* pUser, const XML_Char* pData, int length) argument
76 _oc_handle_default( void* pUser, const XML_Char* pData, int length) argument
198 parseBuffer( const char* pBuffer, uint32 length, bool last) argument
453 xmlCharacterData( const char* pData, int32 length) argument
484 xmlDefaultData( const char* pData, int32 length) argument
[all...]
/haiku/src/kits/interface/textview_support/
H A DWidthBuffer.cpp52 \param charLen the length of the character to examine.
95 WidthBuffer::StringWidth(const char* inText, int32 fromOffset, int32 length, argument
98 if (inText == NULL || length <= 0)
115 for (int32 charLen = 0; length > 0;
116 sourceText += charLen, length -= charLen) {
117 charLen = UTF8NextCharLen(sourceText, length);
169 int32 length, const BFont* inStyle)
171 const char* text = inBuffer.GetString(fromOffset, &length);
172 return StringWidth(text, 0, length, inStyle);
389 const char* inText, int32 fromOffset, int32 length, cons
168 StringWidth(TextGapBuffer &inBuffer, int32 fromOffset, int32 length, const BFont* inStyle) argument
388 StringWidth__14_BWidthBuffer_PCcllPC5BFont(_BWidthBuffer_* widthBuffer, const char* inText, int32 fromOffset, int32 length, const BFont* inStyle) argument
[all...]
/haiku/src/kits/storage/
H A Dstorage_support.cpp37 part of the path and the length of its directory path part.
57 // check path and get length
285 /*! The length of the first component is returned as well as the index at
289 \param length the variable the length of the first component is written
296 parse_first_path_component(const char *path, int32& length, argument
307 length = i;
333 int32 length; local
334 status_t error = parse_first_path_component(path, length, nextComponent);
336 component = new(nothrow) char[length
392 int32 length, nextComponent; local
[all...]
/haiku/src/kits/tracker/
H A DBitmaps.cpp147 size_t length = 0; local
151 data = LoadResource(B_VECTOR_ICON_TYPE, id, &length);
153 && BIconUtils::GetVectorIcon((uint8*)data, length, dest) == B_OK) {
158 length = 0;
161 data = LoadResource(size == B_MINI_ICON ? 'MICN' : 'ICON', id, &length);
162 if (data == NULL || length != (size_t)(size * size)) {
193 return dest->ImportBits(data, (int32)length, size, B_CMAP8,
203 size_t length = 0; local
204 const void* data = LoadResource(B_VECTOR_ICON_TYPE, id, &length);
209 *iconSize = length;
[all...]
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DWinChipHead.cpp64 size_t length = 0; local
69 CH34X_REQ_READ_VERSION, 0, 0, sizeof(inputBuffer), inputBuffer, &length);
82 CH34X_REQ_SERIAL_INIT, 0, 0, 0, NULL, &length);
197 size_t length = 0; local
204 ~fStatusMCR | (~fStatusMCR << 8), 0, NULL, &length);
208 CH34X_REQ_MODEM_CTRL, ~fStatusMCR, 0, 0, NULL, &length);
220 size_t length = 0; local
224 dataRate | CH34X_BPS_PRE_IMM, 0, NULL, &length);
235 lcr, 0, NULL, &length);
245 CH34X_REQ_MODEM_CTRL, ~mcr, 0, 0, NULL, &length);
[all...]
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DBTree.cpp175 int length) const
177 TRACE("Node::_Copy() at: %d from: %d to: %d length: %d\n",
178 at, from, to, length);
183 // item data offset correctly. length can be zero
186 Item(i)->SetOffset(Item(i)->Offset() - length);
198 BTree::Node::_SpaceCheck(int length) const
202 if (length < 0 && abs(length) >= SpaceUsed())
204 if (length > 0 && length >
412 CopyOnWrite(Transaction& transaction, int level, uint32 start, int num, int length) argument
668 MakeEntries(Transaction& transaction, Path* path, const btrfs_key& startKey, int num, int length) argument
740 int length = -sizeof(btrfs_entry) * num; local
[all...]
/haiku/src/add-ons/kernel/network/ppp/pap/
H A DProtocol.cpp25 uint8 length; member in struct:authentication_item
54 item.length = sizeof(item);
74 || item->length != 4 || ntohs(item->protocolNumber) != PAP_PROTOCOL)
204 int32 length = packet->size;
205 length -= ntohs(data.length);
207 if (ntohs(data.length) < 4)
340 int32 length = ntohs(request.length); local
345 // make sure the length value
[all...]
/haiku/src/add-ons/kernel/file_systems/bfs/
H A Dbfs.h30 uint16 length; member in struct:BFS::block_run
35 uint16 Length() const { return BFS_ENDIAN_TO_HOST_INT16(length); }
41 inline void SetTo(int32 group, uint16 start, uint16 length = 1);
43 inline static block_run Run(int32 group, uint16 start, uint16 length = 1);
49 // Since the block_run::length field spans 16 bits, the largest number of
51 // break compatibility and take a zero length for 65536).
174 // The maximum key length of attribute data that is put in the index.
185 // length incl. terminating '\0'
313 && length == run.length;
353 Run(int32 group, uint16 start, uint16 length) argument
[all...]
H A DCachedBlock.h33 inline status_t SetTo(off_t block, off_t base, size_t length);
37 off_t block, off_t base, size_t length,
114 CachedBlock::SetTo(off_t block, off_t base, size_t length) argument
118 return block_cache_get_etc(fVolume->BlockCache(), block, base, length,
139 size_t length, bool empty)
151 block, base, length, transaction.ID(), (void**)&fBlock);
138 SetToWritable(Transaction& transaction, off_t block, off_t base, size_t length, bool empty) argument
/haiku/src/system/boot/loader/net/
H A DUDP.cpp319 uint16 length = ntohs(header->length); local
322 if (length < sizeof(udp_header) || length > size
324 && _ChecksumData(data, length, sourceIP, destinationIP) != 0)) {
340 length - sizeof(udp_header), sourceIP, source, destinationIP,
368 header.length = htons(headerBuffer.TotalSize());
415 ip_addr_t destination, uint16 length)
424 uint16 length; member in struct:pseudo_header
431 htons(length)
414 _ChecksumBuffer(ChainBuffer *buffer, ip_addr_t source, ip_addr_t destination, uint16 length) argument
442 _ChecksumData(const void *data, uint16 length, ip_addr_t source, ip_addr_t destination) argument
[all...]
/haiku/src/add-ons/kernel/bus_managers/ata/
H A DATAChannel.cpp336 ATAChannel::Control(uint8 targetID, uint32 opcode, void *buffer, size_t length) argument
339 return fDevices[targetID]->Control(opcode, buffer, length);
815 ATAChannel::ReadPIO(uint8 *buffer, size_t length) argument
818 length / sizeof(uint16), false);
823 ATAChannel::WritePIO(uint8 *buffer, size_t length) argument
826 length / sizeof(uint16), true);
874 ATAChannel::_ReadPIOBlock(ATARequest *request, size_t length) argument
877 status_t result = _TransferPIOBlock(request, length, &transferred);
880 // if length was odd, there's an extra byte waiting in request->OddByte()
895 if (transferred >= length)
916 _WritePIOBlock(ATARequest *request, size_t length) argument
965 _TransferPIOBlock(ATARequest *request, size_t length, size_t *transferred) argument
1001 _TransferPIOPhysical(ATARequest *request, addr_t physicalAddress, size_t length, size_t *transferred) argument
1044 _TransferPIOVirtual(ATARequest *request, uint8 *virtualAddress, size_t length, size_t *transferred) argument
[all...]
/haiku/src/system/boot/loader/file_systems/fat/
H A DStream.cpp238 // set/check boundaries for pos/length
255 size_t length = *_length; local
257 if (pos + (off_t)length > fSize)
258 length = fSize - pos;
286 if (length < bytesRead)
287 bytesRead = length;
292 length -= bytesRead;
293 if (length == 0) {
308 while (length > 0) {
311 if (length < blockSiz
355 size_t length = *_length; local
[all...]
/haiku/src/libs/libfdt/
H A Dfdt_ro.c726 int length, count = 0; local
728 list = fdt_getprop(fdt, nodeoffset, property, &length);
730 return length;
732 end = list + length;
735 length = strnlen(list, end - list) + 1;
738 if (list + length > end)
741 list += length;
751 int length, len, idx = 0; local
754 list = fdt_getprop(fdt, nodeoffset, property, &length);
756 return length;
783 int length; local
[all...]
/haiku/src/add-ons/kernel/drivers/disk/mmc/
H A Dmmc_disk.cpp410 size_t length = *_length; local
413 if ((position + (off_t)length) > handle->info->DeviceSize())
414 length = (handle->info->DeviceSize() - position);
417 status_t status = request.Init(position, (addr_t)buffer, length, false, 0);
438 size_t length = *_length; local
441 if ((position + (off_t)length) > handle->info->DeviceSize())
442 length = (handle->info->DeviceSize() - position);
445 status_t status = request.Init(position, (addr_t)buffer, length, true, 0);
507 uint64 length = trimData->ranges[i].size; local
509 // Round up offset and length t
565 mmc_block_ioctl(void* cookie, uint32 op, void* buffer, size_t length) argument
[all...]
/haiku/src/system/kernel/fs/
H A Dvfs_request_io.cpp76 virtual status_t IO(off_t offset, void* buffer, size_t* length) = 0;
87 size_t* length),
96 virtual status_t IO(off_t offset, void* buffer, size_t* length) argument
98 return fDoIO(fCookie, offset, buffer, length);
117 virtual status_t IO(off_t offset, void* buffer, size_t* length) argument
121 vec.iov_len = *length;
125 length);
128 return FS_CALL(fVnode, read_pages, fCookie, offset, &vec, 1, length);
176 off_t vecLength = min_c(vecs[i].length, (off_t)requestLength);
177 TRACE_RIO("[%ld] vec %lu offset: %lld, length
85 CallbackIO(bool write, status_t (*doIO)(void* cookie, off_t offset, void* buffer, size_t* length), void* cookie) argument
295 generic_size_t length = request->Length(); local
354 generic_size_t length = request->Length(); local
408 vfs_synchronous_io(io_request* request, status_t (*doIO)(void* cookie, off_t offset, void* buffer, size_t* length), void* cookie) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/xfs/
H A DShortAttribute.cpp47 size_t length = strlen(name); local
48 status = Lookup(name, &length);
91 ShortAttribute::Read(attr_cookie* cookie, off_t pos, uint8* buffer, size_t* length) argument
108 if (pos + *length > fEntry->valuelen)
111 lengthToRead = *length;
118 *length = lengthToRead;
/haiku/headers/os/app/
H A DKey.h40 size_t length = 0);
52 size_t length = 0);
63 status_t SetData(const uint8* data, size_t length);
/haiku/src/apps/haikudepot/textview/
H A DTextEditor.h21 int32 length; member in class:KeyEvent
63 virtual status_t Remove(int32 offset, int32 length);
64 virtual status_t Replace(int32 offset, int32 length,
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A DKPPPOptionHandler.cpp61 KPPPOptionHandler::Control(uint32 op, void *data, size_t length) argument
67 if (length < sizeof(ppp_simple_handler_info_t) || !data)
79 if (length < sizeof(uint32) || !data)
/haiku/src/add-ons/kernel/drivers/common/
H A Ddprintf.cpp50 dprintf_ioctl(void *cookie, uint32 op, void *buffer, size_t length) argument
63 dprintf_read(void *cookie, off_t pos, void *buffer, size_t *length) argument
65 *length = 0;
/haiku/src/add-ons/kernel/network/ppp/pppoe/
H A Dpppoe.cpp61 if (acName->length >= PPPoE_QUERY_REPORT_SIZE)
64 memcpy(data + position, acName->data, acName->length);
65 position += acName->length;
74 if (position + tag->length >= PPPoE_QUERY_REPORT_SIZE)
77 memcpy(data + position, tag->data, tag->length);
78 position += tag->length;
84 // add the total length
206 && ntohs(header.length) <= PPPoE_QUERY_REPORT_SIZE) {
220 if (hostTag && hostTag->length == 4
262 if (header.code == PADT || (tag && tag->length
304 control(uint32 op, void *data, size_t length) argument
[all...]
/haiku/src/tests/system/network/ipv6/
H A Dmulticast_sender.cpp79 unsigned length = strlen(buffer); local
80 int status = sendto(fd, buffer, length, 0, (sockaddr *) &saddr,
82 if (status < length) {

Completed in 214 milliseconds

<<11121314151617181920>>