Searched refs:size (Results 151 - 175 of 2734) sorted by relevance

1234567891011>>

/haiku/src/kits/storage/
H A DFdIO.cpp60 BFdIO::Read(void* buffer, size_t size) argument
62 ssize_t bytesRead = read(fFd, buffer, size);
68 BFdIO::Write(const void* buffer, size_t size) argument
70 ssize_t bytesWritten = write(fFd, buffer, size);
76 BFdIO::ReadAt(off_t position, void* buffer, size_t size) argument
78 ssize_t bytesRead = pread(fFd, buffer, size, position);
84 BFdIO::WriteAt(off_t position, const void* buffer, size_t size) argument
86 ssize_t bytesWritten = pwrite(fFd, buffer, size, position);
107 BFdIO::SetSize(off_t size) argument
109 return ftruncate(fFd, size)
[all...]
H A DFileIO.cpp29 BFileIO::Read(void* buffer, size_t size) argument
32 ssize_t bytesRead = fread(buffer, 1, size, fFile);
38 BFileIO::Write(const void* buffer, size_t size) argument
41 ssize_t bytesRead = fwrite(buffer, 1, size, fFile);
47 BFileIO::ReadAt(off_t position, void* buffer, size_t size) argument
55 ssize_t result = BFileIO::Read(buffer, size);
65 BFileIO::WriteAt(off_t position, const void* buffer, size_t size) argument
73 ssize_t result = BFileIO::Write(buffer, size);
101 BFileIO::SetSize(off_t size) argument
115 // get the size (positio
[all...]
/haiku/src/tests/kits/interface/layout/widget_layout_test/
H A DGroupView.cpp20 int32 size; member in struct:GroupView::LayoutInfo
146 BSize size = _SubtractInsetsAndSpacing(Size()); local
147 _LayoutLine(size.IntegerWidth() + 1, fColumnInfos, fColumnCount);
148 _LayoutLine(size.IntegerHeight() + 1, fRowInfos, fRowCount);
162 BSize(columnInfo.size - 1, fRowInfos[row].size - 1));
171 location.y += fRowInfos[row].size + fRowSpacing;
174 location.x += columnInfo.size + fColumnSpacing;
251 GroupView::_LayoutLine(int32 size, LayoutInfo* infos, int32 infoCount) argument
255 infos[i].size
312 _AddInsetsAndSpacing(BSize size) argument
325 _SubtractInsetsAndSpacing(BSize size) argument
[all...]
/haiku/src/add-ons/print/transports/parallel_port/
H A DParallelTransport.cpp47 ssize_t Read(void* buffer, size_t size);
48 ssize_t Write(const void* buffer, size_t size);
62 unsigned int size = printer->ReadAttr("transport_address", B_STRING_TYPE, 0, address, sizeof(address)); local
63 if (size <= 0 || size >= sizeof(address)) return;
64 address[size] = 0; // make sure string is 0-terminated
92 ssize_t ParallelTransport::Read(void* buffer, size_t size) argument
94 return read(fFile, buffer, size);
97 ssize_t ParallelTransport::Write(const void* buffer, size_t size) argument
99 return write(fFile, buffer, size);
[all...]
/haiku/src/libs/compat/freebsd_network/
H A Dmalloc.cpp21 _kernel_malloc(size_t size, int flags) argument
25 // size. While it also states that this shouldn't be relied upon, at least
28 = memalign_etc(size >= PAGESIZE ? PAGESIZE : next_power_of_2(size), size,
34 memset(ptr, 0, size);
48 _kernel_contigmalloc(const char *file, int line, size_t size, int flags, argument
54 size = ROUNDUP(size, B_PAGE_SIZE);
73 area_id area = create_area_etc(B_SYSTEM_TEAM, name, size, B_CONTIGUOU
84 _kernel_contigfree(void *addr, size_t size) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/private/
H A DRequestAllocator.cpp94 if (info.size > 0)
95 memcpy((uint8*)fRequest + info.offset, info.data, info.size);
99 "offset: %" B_PRId32 ", size: %" B_PRId32 "\n", info.area,
100 info.offset, info.size));
101 info.target->SetTo(info.area, info.offset, info.size);
108 RequestAllocator::AllocateRequest(int32 size) argument
115 if (size < (int32)sizeof(Request)
116 || fRequestOffset + size > fPort->GetCapacity()) {
121 fRequestSize = size;
178 RequestAllocator::AllocateAddress(Address& address, int32 size, int3 argument
275 AllocateData(Address& address, const void* data, int32 size, int32 align, bool deferredInit) argument
303 int32 size = (data ? strlen(data) + 1 : 0); local
[all...]
H A DPort.cpp17 // minimal and maximal port size
23 Port::Port(int32 size) argument
31 // adjust size to be within the sane bounds
32 if (size < kMinPortSize)
33 size = kMinPortSize;
34 else if (size > kMaxPortSize)
35 size = kMaxPortSize;
37 fBuffer = new(nothrow) uint8[size];
54 fInfo.size = size;
153 Send(const void* message, int32 size) argument
[all...]
/haiku/src/tests/system/benchmarks/
H A Dmemspeed.c25 u_long size, passes, d, i, j; local
46 for (size = 64; size <= mb; size <<= 1) {
47 passes = LOOPSIZE/size;
48 fprintf(stderr, "size = %9ld bytes: ", size);
52 for (j = 0; j < size/sizeof(u_long); j += 16) {
65 for (size = 64; size <
[all...]
/haiku/src/kits/debugger/dwarf/
H A DCfaRule.h32 size_t size; member in struct:CfaExpression
52 size_t size);
54 size_t size);
80 inline void SetToExpression(const void* block, size_t size);
146 CfaRule::SetToLocationExpression(const void* block, size_t size) argument
150 fExpression.size = size;
155 CfaRule::SetToValueExpression(const void* block, size_t size) argument
159 fExpression.size = size;
190 SetToExpression(const void* block, size_t size) argument
[all...]
/haiku/src/add-ons/kernel/generic/tty/
H A Dline_buffer.cpp23 init_line_buffer(struct line_buffer &buffer, size_t size) argument
27 buffer.buffer = (char *)malloc(size);
31 buffer.size = size;
55 size_t size = buffer.in; local
56 if (size == 0)
60 for (size_t i = 0; i < size; i++) {
61 char c = buffer.buffer[(buffer.first + i) % buffer.size];
67 // full size anyway, since otherwise the reader would wait forever.
68 return buffer.in == buffer.size
[all...]
/haiku/headers/os/support/
H A DDataIO.h17 virtual ssize_t Read(void* buffer, size_t size);
18 virtual ssize_t Write(const void* buffer, size_t size);
22 status_t ReadExactly(void* buffer, size_t size,
24 status_t WriteExactly(const void* buffer, size_t size,
54 virtual ssize_t Read(void* buffer, size_t size);
55 virtual ssize_t Write(const void* buffer, size_t size);
59 size_t size) = 0;
61 size_t size) = 0;
64 size_t size, size_t* _bytesRead = NULL);
66 const void* buffer, size_t size,
[all...]
/haiku/src/system/kernel/slab/
H A Dslab_debug.h79 fill_block(void* buffer, size_t size, uint32 pattern) argument
84 size &= ~(sizeof(pattern) - 1);
85 for (size_t i = 0; i < size / sizeof(pattern); i++)
94 fill_allocated_block(void* buffer, size_t size) argument
97 return fill_block(buffer, size, 0xcccccccc);
105 fill_freed_block(void* buffer, size_t size) argument
108 return fill_block(buffer, size, 0xdeadbeef);
/haiku/src/tests/kits/app/bmessage/
H A DMessageBoolItemTest.h40 ArrayType() : array(NULL), size(0) {;}
41 ArrayType(const ArrayType& rhs) : array(NULL), size(0)
43 ArrayType(bool* data, uint32 len) : array(NULL), size(0)
50 Assign(rhs.array, rhs.size);
54 uint32 Size() { return size; }
64 size = len;
72 uint32 size; member in class:ArrayTypeBase::ArrayType
/haiku/src/add-ons/kernel/bus_managers/virtio/
H A Dvirtio_ring.h129 int size; local
131 size = num * sizeof(struct vring_desc);
132 size += sizeof(struct vring_avail) + (num * sizeof(uint16_t)) +
134 size = (size + align - 1) & ~(align - 1);
135 size += sizeof(struct vring_used) +
137 return (size);
155 * Assuming a given event_idx value from the other size, if we have
/haiku/src/add-ons/screen_savers/gravity/
H A DGravityView.cpp70 int32 size = 128 << fParent->Config.ParticleCount; local
74 if (size > fSize)
75 Particle::AddParticles(size, shade);
76 else if (size < fSize)
77 Particle::RemoveParticles(size, shade);
81 Particle::ColorParticles(size, shade);
83 fSize = size;
/haiku/src/system/libroot/posix/malloc_debug/
H A Dmalloc_debug_api.h16 void* (*memalign)(size_t alignment, size_t size);
17 void* (*malloc)(size_t size);
22 void* (*calloc)(size_t numElements, size_t size);
23 void* (*valloc)(size_t size);
25 size_t size);
38 void* (*malloc_with_guard_page)(size_t size);
39 status_t (*get_allocation_info)(void* address, size_t *size,
/haiku/src/tests/kits/game/push_game_sound_test/
H A Dpush_game_sound_triangle.cpp33 size_t size = strtoul(argv[1], NULL, 10); local
34 if (size > 0)
35 framesPerBufferPart = size;
37 size = strtoul(argv[2], NULL, 10);
38 if (size == 1) {
42 if (size > 0)
43 bufferPartCount = size;
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DAllocationInfo.h21 void AddAttributeAllocation(size_t size);
24 void AddFileAllocation(size_t size);
25 void AddSymLinkAllocation(size_t size);
27 void AddAreaAllocation(size_t size, size_t count = 1);
28 void AddBlockAllocation(size_t size);
30 void AddOtherAllocation(size_t size, size_t count = 1);
31 void AddStringAllocation(size_t size);
/haiku/src/system/libroot/posix/malloc_hoard2/
H A Dthreadheap.cpp39 // inputs: the size of the object to be allocated.
40 // returns: a pointer to an object of the appropriate size.
45 threadHeap::malloc(const size_t size) argument
48 if (size > 1063315264UL) {
49 debug_printf("malloc() of %lu bytes asked\n", size);
54 const int sizeclass = sizeClass(size);
108 m.malloc((void *)(b + 1), align(size));
112 b->setRequestedSize(align(size));
113 _pHeap->setAllocated(align(size), 0);
/haiku/src/tests/kits/midi/synth_file_reader/
H A DSynthFileReader.h46 bool Read(void* data, uint32 size);
47 bool Read(BString& s, uint32 size);
49 bool Read(uint64 &n, uint32 size);
59 bool ReadInstHeader(uint16& inst, uint16& snd, uint16& snds, BString& name, uint32& size);
60 bool ReadSoundInRange(uint8& start, uint8& end, uint16& snd, uint32& size);
61 bool ReadSoundHeader(uint16& inst, BString& name, uint32& size);
66 void Play(uint16 rate, uint32 offset, uint32 size);
/haiku/src/preferences/input/
H A DInputIcons.cpp49 size_t size; local
52 B_VECTOR_ICON_TYPE, "mouse_icon", &size);
55 BIconUtils::GetVectorIcon(mouse, size, &mouseIcon);
59 B_VECTOR_ICON_TYPE, "touchpad_icon", &size);
62 BIconUtils::GetVectorIcon(touchpad, size, &touchpadIcon);
66 B_VECTOR_ICON_TYPE, "keyboard_icon", &size);
69 BIconUtils::GetVectorIcon(keyboard, size, &keyboardIcon);
/haiku/src/system/boot/platform/openfirmware/arch/sparc/
H A Dmmu.cpp54 insert_virtual_range_to_keep(void *start, uint32 size) argument
58 MAX_VIRTUAL_RANGES_TO_KEEP, (addr_t)start, size);
63 remove_virtual_range_to_keep(void *start, uint32 size) argument
67 MAX_VIRTUAL_RANGES_TO_KEEP, (addr_t)start, size);
80 // #address-cells and #size-cells matches the number of 32-bit 'cells'
81 // representing the length of the base address and size fields
85 dprintf("finding size of memory cells failed, assume 32-bit.\n");
91 // Sun Netra T1-105 is missing this, but we can guess that if the size
112 if (regions[i].size <= 0) {
117 "size
135 is_virtual_allocated(void *address, size_t size) argument
145 is_physical_allocated(void *address, size_t size) argument
163 map_range(void *virtualAddress, void *physicalAddress, size_t size, uint16 mode) argument
289 find_physical_memory_range(size_t size) argument
300 find_free_physical_range(size_t size) argument
339 find_free_virtual_range(void *base, size_t size) argument
367 arch_mmu_allocate(void *_virtualAddress, size_t size, uint8 _protection, bool exactAddress) argument
450 arch_mmu_free(void *address, size_t size) argument
[all...]
/haiku/headers/libs/agg/
H A Dagg_vertex_sequence.h83 if(base_type::size() > 1)
85 if(!(*this)[base_type::size() - 2]((*this)[base_type::size() - 1]))
108 while(base_type::size() > 1)
110 if((*this)[base_type::size() - 2]((*this)[base_type::size() - 1])) break;
111 T t = (*this)[base_type::size() - 1];
118 while(base_type::size() > 1)
120 if((*this)[base_type::size() - 1]((*this)[0])) break;
/haiku/src/system/kernel/util/
H A Dring_buffer.cpp34 return buffer->size - buffer->in;
52 if (buffer->first + length <= buffer->size) {
61 size_t upper = buffer->size - buffer->first;
74 buffer->first = (buffer->first + bytesRead) % buffer->size;
93 int32 position = (buffer->first + buffer->in) % buffer->size;
95 if (position + length <= buffer->size) {
104 size_t upper = buffer->size - position;
127 create_ring_buffer(size_t size) argument
129 return create_ring_buffer_etc(NULL, size, 0);
134 create_ring_buffer_etc(void* memory, size_t size, uint3 argument
[all...]
/haiku/src/kits/package/hpkg/
H A DAttributeDataReader.cpp30 BAttributeDataReader::ReadData(off_t offset, void* buffer, size_t size) argument
33 size);
36 return (size_t)bytesRead == size ? B_OK : B_ERROR;

Completed in 137 milliseconds

1234567891011>>