Searched refs:allocated (Results 1 - 25 of 40) sorted by path

12

/haiku/src/add-ons/kernel/drivers/graphics/common/
H A Dmemory_manager.c32 // allocated memory block
38 bool allocated; member in struct:mem_block
78 block->allocated = false;
81 if (prev && !prev->allocated) {
88 if (next && !next->allocated)
151 first->allocated = false;
204 if (!current->allocated && current->size >= size)
225 newEntry->allocated = false;
236 current->allocated = true;
279 if (!block->allocated || bloc
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dunistr.c546 * @outs: on return contains the (allocated) output multibyte string
660 // We have allocated outs ourselves.
806 * @outs: on return contains the (allocated) output utf16 string
828 BOOL allocated; local
836 allocated = FALSE;
841 allocated = TRUE;
850 /* do not leave space allocated if failed */
851 if (allocated) {
885 * @outs: on return contains the (allocated) output multibyte string
896 * string buffer was allocated, *
[all...]
H A Dattrib.c212 * allocated size which happens with Windows XP sometimes.
873 * -1 = LCN_HOLE Hole / not allocated on disk.
1316 * bitmap in a cluster being allocated.
1319 ntfs_log_error("Corrupt $BitMap not fully allocated\n");
1686 long long allocated; local
1692 /* check whether the compression block is fully allocated */
1694 allocated = 0;
1697 while (zrl->length && (zrl->lcn >= 0) && (allocated < endblock)) {
1698 allocated += zrl->length;
1703 undecided = (allocated < endbloc
[all...]
/haiku/src/add-ons/kernel/file_systems/udf/
H A DUdfStructures.h949 uint16 allocated:1, member in struct:partition_descriptor::partition_flags_accessor::__anon7
963 bool allocated() const { function in struct:partition_descriptor
966 return f.bits.allocated;
992 void set_allocated(bool allocated) { argument
995 f.bits.allocated = allocated;
1006 /*! Bit 0: If 0, shall mean volume space has not been allocated. If 1,
1007 shall mean volume space has been allocated.
H A DUdfStructures.cpp700 PRINT(("partition_flags.allocated: %s\n", allocated() ? "true" : "false"));
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A Dfuse_opt.c32 if (args->argv && args->allocated) {
40 args->allocated = 0;
55 assert(!args->argv || args->allocated);
63 args->allocated = 1;
/haiku/src/build/libgnuregex/
H A Dregex.h276 the pattern compiler, the fields `buffer', `allocated', `fastmap',
290 unsigned long allocated;
462 allocated with malloc, and must each be at least `NUM_REGS * sizeof
287 unsigned long allocated; member in struct:re_pattern_buffer
H A Dregex.c175 not functions -- `alloca'-allocated space disappears at the end of the
731 printf ("%d bytes used/%d bytes allocated.\n", bufp->used, bufp->allocated);
880 /* If the buffer isn't allocated when it comes in, use this. */
885 while (b - bufp->buffer + (n) > bufp->allocated) \
946 if (bufp->allocated == MAX_BUF_SIZE) \
948 bufp->allocated <<= 1; \
949 if (bufp->allocated > MAX_BUF_SIZE) \
950 bufp->allocated = MAX_BUF_SIZE; \
951 bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
[all...]
/haiku/src/kits/media/
H A DRealtimeAlloc.cpp51 static FreeChunk* SetToAllocated(void* allocated);
90 /*! Returns the amount of bytes that can be allocated
199 FreeChunk::SetToAllocated(void* allocated) argument
201 return (FreeChunk*)((addr_t)allocated - FreeChunk::NextOffset());
217 rtm_pool::Free(void* allocated) argument
219 FreeChunk* freedChunk = FreeChunk::SetToAllocated(allocated);
397 rtm_free(void* allocated) argument
399 if (allocated == NULL)
402 TRACE("rtm_free(%p)\n", allocated);
405 rtm_pool* pool = pool_for(allocated);
[all...]
/haiku/src/system/libroot/posix/glibc/libio/
H A Dvasprintf.c48 _IO_size_t allocated; local
68 magnitude then the memory we allocated. */
70 allocated = sf._sbf._f._IO_write_end - sf._sbf._f._IO_write_base;
71 if ((allocated << 1) <= needed)
/haiku/src/system/libroot/posix/glibc/regex/
H A Dregcomp.c213 Assumes the `allocated' (and perhaps `buffer') and `translate' fields
446 `fastmap' to an allocated space for the fastmap;
481 preg->allocated = 0;
638 /* Free dynamically allocated space used by PREG. */
648 preg->allocated = 0;
754 if (BE (preg->allocated < sizeof (re_dfa_t), 0))
756 /* If zero allocated, but buffer is non-null, try to realloc
763 preg->allocated = sizeof (re_dfa_t);
773 preg->allocated = 0;
793 preg->allocated
[all...]
/haiku/src/system/libroot/posix/unistd/
H A Ddirectory.c33 bool allocated = false; local
43 allocated = true;
48 if (allocated)
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DBlockAllocator.cpp205 uint64 allocated; local
207 allocated);
211 if (allocated < count)
242 Might allocate fewer block than requested. If no block could be allocated
254 blocks actually allocated.
255 \return \c B_OK, if one or more blocks could be allocated, another error
276 uint32 allocated; local
278 transaction, _allocatedBase, allocated);
282 if (allocated == toAllocate) {
283 _allocatedCount = allocated;
309 uint32 allocated; local
384 uint32 allocated; local
439 uint32 allocated; local
[all...]
/haiku/headers/posix/
H A Dregex.h331 the pattern compiler, the fields `buffer', `allocated', `fastmap',
357 unsigned long int __REPB_PREFIX(allocated);
506 allocated with malloc, and must each be at least `NUM_REGS * sizeof
/haiku/headers/private/userlandfs/fuse/
H A Dfuse_opt.h73 * If the format is "%s", memory is allocated for the string unlike
115 /** Is 'argv' allocated? */
116 int allocated; member in struct:fuse_args
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DBlockAllocator.cpp299 "allocated, start = %u, numBlocks = %u\n", start, numBlocks));
373 Doesn't check if the run is valid or already allocated partially, nor
442 Doesn't check if the run is valid or was not completely allocated, nor
729 The number of allocated blocks is always a multiple of \a minimum which
969 // Are there already allocated blocks? (then just try to allocate near the
1049 DEBUGGER(("CheckBlockRun() reports allocated blocks (which were just "
1248 /*! Checks whether or not the specified block range is allocated or not,
1249 depending on the \a allocated argument.
1252 BlockAllocator::CheckBlocks(off_t start, off_t length, bool allocated,
1274 if (cached.IsUsed(blockOffset) != allocated) {
[all...]
H A DBlockAllocator.h50 bool allocated = true,
54 bool allocated = true);
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DBlockAllocator.cpp246 ". Some were already allocated.\n", start, start + length);
623 TRACE("BlockAllocator::Initialize(): allocated allocation block groups\n");
732 off_t numBlocks, uint32 minimum, fsblock_t& start, uint32& allocated)
804 allocated);
731 Allocate(Transaction& transaction, Inode* inode, off_t numBlocks, uint32 minimum, fsblock_t& start, uint32& allocated) argument
H A DExtentStream.cpp162 uint32 allocated = 0; local
169 if (allocated == 0) {
172 allocated);
207 && (last.Length() + allocated) <= EXT2_EXTENT_MAX_LENGTH) {
215 .SetLength(last.Length() + allocated);
217 fNumBlocks += allocated;
218 allocated = 0;
372 stream->extent_entries[index].SetLength(allocated);
379 fNumBlocks += allocated;
380 allocated
[all...]
/haiku/src/add-ons/kernel/file_systems/fat/
H A Ddlist.cpp42 vol->dlist.allocated = DLIST_ENTRY_QUANTUM;
43 vol->dlist.vnid_list = (ino_t *)malloc(sizeof(ino_t) * vol->dlist.allocated);
45 vol->dlist.allocated = 0;
61 vol->dlist.entries = vol->dlist.allocated = 0;
74 vol->dlist.allocated, allocate));
76 ASSERT(allocate != vol->dlist.allocated);
88 vol->dlist.allocated = allocate;
103 if (vol->dlist.entries == vol->dlist.allocated) {
104 if (dlist_realloc(vol, vol->dlist.allocated + DLIST_ENTRY_QUANTUM) < 0)
130 if (vol->dlist.allocated
[all...]
H A Ddosfs.cpp67 kprintf("data start %" B_PRIu32 ", last allocated %" B_PRIu32 "\n",
73 vol->dlist.entries, vol->dlist.allocated, vol->dlist.vnid_list);
616 DPRINTF(0, ("last allocated cluster = %" B_PRIu32 "\n",
873 //cluster number of most recently allocated cluster
1122 dprintf("last allocated cluster = %lx\n", vol->last_allocated);
H A Ddosfs.h137 uint32 last_allocated; // last allocated cluster
156 uint32 allocated; member in struct:_nspace::__anon4
/haiku/src/add-ons/kernel/network/devices/ethernet/
H A Dethernet.cpp290 net_buffer *allocated = NULL;
307 allocated = gBufferModule->duplicate(original);
308 if (allocated == NULL)
311 buffer = allocated;
313 if (gBufferModule->count_iovecs(allocated) > 1) {
315 gBufferModule->free(allocated);
330 if (allocated)
331 gBufferModule->free(allocated);
336 if (allocated)
337 gBufferModule->free(allocated);
[all...]
/haiku/src/add-ons/kernel/network/stack/
H A Dnet_buffer.cpp655 kprintf("allocated data headers: %7" B_PRId32 " / %7" B_PRId32 ", peak %7"
658 kprintf("allocated net buffers: %7" B_PRId32 " / %7" B_PRId32 ", peak %7"
871 // TODO: If the free space is greater than what shall be allocated, we
874 // that pressing, since the only thing allocated ATM are data_nodes, and
914 uint8* allocated = alloc_data_header_space(buffer->allocation_header, size); local
915 if (allocated == NULL) {
928 allocated = alloc_data_header_space(buffer->allocation_header, size);
934 return allocated;
1459 /*! Writes into existing allocated memory.
/haiku/src/add-ons/kernel/partitioning_systems/intel/
H A Dwrite_support.cpp1046 returns pointer to the buffer (it's size is: blockSize * allocated)
1050 allocate_buffer(uint32 blockSize, int32 tryAlloc, int32* allocated) argument
1056 *allocated = i;
1060 *allocated = 0;
1151 int32 allocated;
1153 &allocated);
1162 buffer, allocated * partition->block_size, job);
2021 int32 allocated; local
2023 &allocated);
2034 allocated * partitio
[all...]

Completed in 183 milliseconds

12