/haiku/src/servers/bluetooth/ |
H A D | HCIDelegate.h | 40 virtual status_t IssueCommand(raw_command rc, size_t size)=0; 51 status_t QueueCommand(raw_command rc, size_t size) argument 55 return IssueCommand(rc, size);
|
/haiku/src/kits/package/hpkg/ |
H A D | FDDataReader.cpp | 33 BFDDataReader::ReadData(off_t offset, void* buffer, size_t size) argument 35 ssize_t bytesRead = pread(fFD, buffer, size, offset); 38 return (size_t)bytesRead == size ? B_OK : B_ERROR;
|
/haiku/headers/private/net/ |
H A D | DynamicBuffer.h | 29 virtual ssize_t Write(const void* data, size_t size); 33 virtual ssize_t Read(void* data, size_t size); 41 // Returns the actual buffer size. This is the amount of memory allocated 53 status_t _GrowToFit(size_t size, bool exact = false);
|
/haiku/src/add-ons/print/transports/serial_port/ |
H A D | SerialTransport.cpp | 28 ssize_t Read(void* buffer, size_t size); 29 ssize_t Write(const void* buffer, size_t size); 44 unsigned int size = printer->ReadAttr("transport_address", B_STRING_TYPE, 0, local 46 if (size <= 0 || size >= sizeof(address)) return; 47 address[size] = 0; // make sure string is 0-terminated 61 size = printer->ReadAttr("transport_baudrate", B_INT32_TYPE, 0, 71 if (size == sizeof(baudrate)) { 99 SerialTransport::Read(void* buffer, size_t size) argument 101 return read(fFile, buffer, size); 106 Write(const void* buffer, size_t size) argument [all...] |
/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_debug.h | 25 # define DprintQ(cond, args, query, size) /*empty*/ 30 # define DprintQ(cond, args, query, size) if (cond) {\ 32 res_pquery(statp, (query), (int)(size), stdout);\
|
/haiku/headers/private/debugger/types/ |
H A D | ValueLocation.h | 21 VALUE_PIECE_LOCATION_UNKNOWN, // location unknown, but size is valid 33 target_size_t size; // size in bytes (including member in struct:ValuePieceLocation 35 uint64 bitSize; // total size in bits 77 void* tempValue = malloc(size); 83 memcpy(tempValue, value, other.size); 114 void SetSize(target_size_t size) argument 116 this->size = size; 117 this->bitSize = size * 128 SetToValue(const void* data, target_size_t size) argument [all...] |
/haiku/src/system/boot/loader/ |
H A D | kernel_args.cpp | 30 add_kernel_args_range(void* start, size_t size) argument 34 (addr_t)start, size); 56 /*! Inserts the specified (start, size) pair (aka range) in the 65 uint64 start, uint64 size) 70 size = ROUNDUP(size, B_PAGE_SIZE); 71 uint64 end = start + size; 75 uint64 rangeEnd = rangeStart + ranges[i].size; 89 ranges[i].size += rangeStart - start; 91 if (end > ranges[i].start + ranges[i].size) { 64 insert_address_range(addr_range* ranges, uint32* _numRanges, uint32 maxRanges, uint64 start, uint64 size) argument 142 remove_address_range(addr_range* ranges, uint32* _numRanges, uint32 maxRanges, uint64 start, uint64 size) argument 188 get_free_address_range(addr_range* ranges, uint32 numRanges, uint64 base, uint64 size, uint64* _rangeBase) argument 222 is_address_range_covered(addr_range* ranges, uint32 numRanges, uint64 base, uint64 size) argument 286 insert_physical_memory_range(uint64 start, uint64 size) argument 295 remove_physical_memory_range(uint64 start, uint64 size) argument 312 insert_physical_allocated_range(uint64 start, uint64 size) argument 321 insert_virtual_allocated_range(uint64 start, uint64 size) argument 398 kernel_args_malloc(size_t size, uint8 alignment) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/nfs/ |
H A D | XDROutPacket.c | 38 XDROutPacketGrow(struct XDROutPacket *packet, size_t size) argument 40 if (packet->fLength+size>packet->fSize) 42 while (packet->fLength+size>packet->fSize) 59 XDROutPacketAddDynamic(struct XDROutPacket *packet, const void *data, size_t size) argument 61 XDROutPacketAddInt32(packet, size); 62 return XDROutPacketAddFixed(packet, data, size); 67 XDROutPacketAddFixed(struct XDROutPacket *packet, const void *data, size_t size) argument 69 size_t roundedSize = (size + 3) & ~3; 72 memcpy(&packet->fBuffer[packet->fLength], data, size); 73 else if (user_memcpy(&packet->fBuffer[packet->fLength], data, size) ! [all...] |
/haiku/src/system/libroot/posix/stdlib/ |
H A D | bsearch.c | 57 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, argument 66 p = base + (lim >> 1) * size; 71 base = (char *)p + size;
|
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | XDR.cpp | 20 Stream::Stream(void* buffer, uint32 size) argument 23 fSize(size), 42 Stream::_RealSize(uint32 size) const 44 uint32 real_size = size; 51 ReadStream::ReadStream(void* buffer, uint32 size) argument 53 Stream(buffer, size), 126 uint32 size; local 127 const void* ptr = GetOpaque(&size); 131 char* str = reinterpret_cast<char*>(malloc(size + 1)); 135 memcpy(str, ptr, size); 143 GetOpaque(uint32* size) argument 273 uint32 size = maxlen == 0 ? len : min_c(maxlen, len); local 280 AddOpaque(const void* ptr, uint32 size) argument 306 uint32 size = stream.Size(); local 319 _CheckResize(uint32 size) argument [all...] |
/haiku/src/libs/agg/src/ |
H A D | agg_trans_single_path.cpp | 67 if(m_status == making_path && m_src_vertices.size() > 1) 74 if(m_src_vertices.size() > 2) 76 if(m_src_vertices[m_src_vertices.size() - 2].dist * 10.0 < 77 m_src_vertices[m_src_vertices.size() - 3].dist) 79 d = m_src_vertices[m_src_vertices.size() - 3].dist + 80 m_src_vertices[m_src_vertices.size() - 2].dist; 82 m_src_vertices[m_src_vertices.size() - 2] = 83 m_src_vertices[m_src_vertices.size() - 1]; 86 m_src_vertices[m_src_vertices.size() - 2].dist = d; 91 for(i = 0; i < m_src_vertices.size(); [all...] |
/haiku/src/add-ons/kernel/busses/scsi/usb/ |
H A D | sg_buffer.c | 55 realloc_sg_buffer(sg_buffer *sgb, size_t size) argument 60 void *ptr = malloc(size); 63 memset(ptr, 0, size); 65 sgb->iov.iov_len = size; 101 sg_buffer *s_sgb, off_t s_offset, size_t size) 110 if((d_offset + size) > d_sgb->piov->iov_len){ 112 d_sgb->piov->iov_len, d_offset + size); 118 if((s_offset + size) > s_sgb->piov->iov_len){ 120 s_sgb->piov->iov_len, s_offset + size); 125 memcpy(d_ptr, s_ptr, size); 100 sg_memcpy(sg_buffer *d_sgb, off_t d_offset, sg_buffer *s_sgb, off_t s_offset, size_t size) argument 165 sg_buffer_len(sg_buffer *sgb, size_t *size) argument [all...] |
/haiku/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/ |
H A D | snet_buffer.cpp | 31 snb_create(uint16 size) argument 37 snet_buffer* snb = (snet_buffer*) malloc(sizeof(snet_buffer) + size); 41 snb->buffer = malloc(size); 45 snb->expectedSize = snb->allocatedSize = size; 52 snb_put(snet_buffer* snb, void* data, uint16 size) argument 55 memcpy( &snb->buffer[snb->puttingSize], data, size); 56 snb->puttingSize+=size; 61 snb_pull(snet_buffer* snb, uint16 size) argument 64 snb->pullingSize+=size; 65 return &snb->buffer[snb->pullingSize - size]; 170 snb_attempt_reuse(snet_buffer* snb, uint16 size) argument 206 snb_fetch(struct list* l, uint16 size) argument [all...] |
H A D | snet_buffer.h | 18 * 1) You know exactily the maximun/final size of the frame 33 /* Creates a snb_buffer allocating size space for its full content */ 34 snet_buffer* snb_create(uint16 size); 48 void snb_put(snet_buffer* snb, void* data, uint16 size); 49 /* Returns a header chunk of size data */ 50 void* snb_pull(snet_buffer* snb, uint16 size); 73 snet_buffer* snb_fetch(struct list* l, uint16 size);
|
/haiku/src/system/boot/platform/u-boot/arch/ppc/ |
H A D | arch_mmu.cpp | 109 get_next_virtual_address(size_t size) argument 112 sNextPhysicalAddress += size; 113 sNextVirtualAddress += size; 121 get_next_physical_address(size_t size) 124 sNextPhysicalAddress += size; 125 sNextVirtualAddress += size; 136 mmu_map_physical_memory(addr_t physicalAddress, size_t size, uint32 flags) argument 163 gKernelArgs.physical_memory_range[i].size); 171 gKernelArgs.physical_allocated_range[i].size); 179 gKernelArgs.virtual_allocated_range[i].size); 352 platform_allocate_region(void **_address, size_t size, uint8 protection, bool ) argument 397 platform_free_region(void *address, size_t size) argument [all...] |
/haiku/src/kits/storage/disk_device/ |
H A D | PartitioningInfo.cpp | 49 BPartitioningInfo::SetTo(off_t offset, off_t size) argument 51 TRACE(("%p - BPartitioningInfo::SetTo(offset = %lld, size = %lld)\n", this, offset, size)); 56 if (size > 0) { 63 fSpaces[0].size = size; 89 BPartitioningInfo::ExcludeOccupiedSpace(off_t offset, off_t size) argument 91 if (size <= 0) 95 "size = %lld)\n", this, offset, size)); [all...] |
/haiku/src/kits/shared/ |
H A D | MemoryRingIO.cpp | 72 BMemoryRingIO::BMemoryRingIO(size_t size) argument 88 SetSize(size); 112 BMemoryRingIO::Read(void* _buffer, size_t size) argument 116 if (size == 0) 124 size = std::min(size, BytesAvailable()); 126 if (fReadAtNext + size < fBufferSize) 127 memcpy(buffer, fBuffer + fReadAtNext, size); 130 const size_t lower = size - upper; 134 fReadAtNext = RING_MASK(fReadAtNext + size); 144 Write(const void* _buffer, size_t size) argument 185 const size_t size = next_power_of_two(_size); local [all...] |
/haiku/src/add-ons/kernel/network/stack/ |
H A D | simple_net_buffer.cpp | 66 static status_t append_data(net_buffer *buffer, const void *data, size_t size); 83 destination->size = source->size; 113 buffer->size = 0; 143 if (append_data(duplicate, buffer->data, buffer->size) != B_OK) { 179 if (offset > from->size) 187 size_t remaining = from->size - offset; 198 buffer->size = offset; 202 from->size = remaining; 224 status_t error = append_data(buffer, with->data, with->size); 251 write_data(net_buffer *_buffer, size_t offset, const void *data, size_t size) argument 267 read_data(net_buffer *_buffer, size_t offset, void *data, size_t size) argument 283 prepend_size(net_buffer *_buffer, size_t size, void **_contiguousBuffer) argument 308 prepend_data(net_buffer *buffer, const void *data, size_t size) argument 321 append_size(net_buffer *_buffer, size_t size, void **_contiguousBuffer) argument 343 append_data(net_buffer *buffer, const void *data, size_t size) argument 593 direct_access(net_buffer *_buffer, uint32 offset, size_t size, void **_contiguousBuffer) argument 607 checksum_data(net_buffer *_buffer, uint32 offset, size_t size, bool finalize) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | xattrs.c | 131 static void fix_big_endian(char *p, int size) argument 138 j = size - 1; 154 static int le_acl_to_cpu(const struct LE_POSIX_ACL *le_acl, size_t size, argument 163 cnt = (size - sizeof(struct LE_POSIX_ACL)) / sizeof(struct LE_POSIX_ACE); 176 int cpu_to_le_acl(const struct POSIX_ACL *acl, size_t size, argument 185 cnt = (size - sizeof(struct POSIX_ACL)) / sizeof(struct POSIX_ACE); 239 static int basicread(void *fileid, char *buf, size_t size, off_t offs __attribute__((unused))) argument 241 return (read(*(int*)fileid, buf, size)); 249 static int localread(void *fileid, char *buf, size_t size, off_t offs) argument 252 AT_UNNAMED, 0, buf, size, off 364 s64 size; local 482 ntfs_xattr_system_getxattr(struct SECURITY_CONTEXT *scx, enum SYSTEMXATTRS attr, ntfs_inode *ni, ntfs_inode *dir_ni, char *value, size_t size) argument 609 ntfs_xattr_system_setxattr(struct SECURITY_CONTEXT *scx, enum SYSTEMXATTRS attr, ntfs_inode *ni, ntfs_inode *dir_ni, const char *value, size_t size, int flags) argument [all...] |
/haiku/src/kits/media/experimental/ |
H A D | AdapterIO.cpp | 92 status_t WaitForData(off_t position, off_t size) argument 101 while (bufferSize < position + size) { 119 size_t size) 124 _PositionToRelative(position), buffer, size); 129 const void* buffer, size_t size) 134 _PositionToRelative(position), buffer, size); 153 virtual status_t SetSize(off_t size) argument 157 return fBuffer->SetSize(_PositionToRelative(size)); 160 virtual status_t GetSize(off_t* size) const 166 *size 118 ReadAt(off_t position, void* buffer, size_t size) argument 128 WriteAt(off_t position, const void* buffer, size_t size) argument 171 BackWrite(const void* buffer, size_t size) argument 276 ReadAt(off_t position, void* buffer, size_t size) argument 289 WriteAt(off_t position, const void* buffer, size_t size) argument 303 off_t size = 0; local 345 SetSize(off_t size) argument 443 BackWrite(const void* buffer, size_t size) argument 450 _EvaluateWait(off_t pos, off_t size) argument 487 Write(const void* buffer, size_t size) argument [all...] |
/haiku/headers/private/kernel/boot/ |
H A D | driver_settings.h | 17 uint32 size; member in struct:driver_settings_file
|
/haiku/headers/private/kernel/ |
H A D | boot_item.h | 17 extern status_t add_boot_item(const char *name, void *data, size_t size);
|
H A D | debug_heap.h | 21 void* debug_malloc(size_t size); 22 void* debug_calloc(size_t num, size_t size); 37 operator new(size_t size, const kdebug_alloc_t&) throw() argument 39 return debug_malloc(size);
|
/haiku/headers/private/userlandfs/private/ |
H A D | AreaSupport.h | 10 status_t get_area_for_address(void* address, int32 size, area_id* area,
|
/haiku/src/add-ons/kernel/drivers/graphics/radeon/ |
H A D | DMA.c | 49 device_info *di, uint32 src, char *target, size_t size, bool lock_mem, bool contiguous ) 57 res = lock_memory( target, size, B_DMA_IO | B_READ_DEVICE ); 72 while( size > 0 ) { 78 // replace received size with total size 79 map[0].size = size; 81 get_memory_map( target, size, map, 16 ); 86 size_t contig_size = map[i].size; 94 "size 48 Radeon_PrepareDMA( device_info *di, uint32 src, char *target, size_t size, bool lock_mem, bool contiguous ) argument 142 Radeon_FinishDMA( device_info *di, uint32 src, char *target, size_t size, bool lock_mem, bool contiguous ) argument 156 Radeon_DMACopy( device_info *di, uint32 src, char *target, size_t size, bool lock_mem, bool contiguous ) argument [all...] |