| /src/sys/rump/net/lib/libshmif/ |
| shmif_busops.c | 66 size_t chunk; local 69 chunk = MIN(len, BUSMEM_DATASIZE - off); 70 memcpy(dest, busmem->shm_data + off, chunk); 71 len -= chunk; 73 if (off + chunk == BUSMEM_DATASIZE) 77 return (off + chunk) % BUSMEM_DATASIZE; 81 memcpy((uint8_t *)dest + chunk, busmem->shm_data, len); 101 size_t chunk; local 106 chunk = MIN(len, BUSMEM_DATASIZE - off); 107 len -= chunk; [all...] |
| /src/external/gpl2/lvm2/dist/libdm/mm/ |
| pool-fast.c | 20 struct chunk { struct 22 struct chunk *prev; 27 struct chunk *chunk, *spare_chunk; /* spare_chunk is a one entry free member in struct:dm_pool 34 void _align_chunk(struct chunk *c, unsigned alignment); 35 struct chunk *_new_chunk(struct dm_pool *p, size_t s); 53 p->chunk_size = chunk_hint + sizeof(struct chunk); 63 struct chunk *c, *pr; 65 c = p->chunk; 83 struct chunk *c = p->chunk [all...] |
| /src/external/gpl3/gcc.old/dist/gcc/ |
| memory-block.cc | 58 /* Allocate a chunk for obstack. Use the pool if requested chunk size matches 69 /* Free previously allocated obstack chunk. */ 71 mempool_obstack_chunk_free (void *chunk) 73 size_t size = (reinterpret_cast<_obstack_chunk *> (chunk)->limit 74 - reinterpret_cast<char *> (chunk)); 76 memory_block_pool::release (chunk); 78 XDELETEVEC (chunk);
|
| /src/sys/arch/mips/atheros/dev/ |
| arspi.c | 370 * send WREN for each chunk. These flags facilitate 393 struct spi_chunk *chunk; local 395 chunk = *chunkp; 398 while (chunk && chunk->chunk_wresid == 0) 399 chunk = chunk->chunk_next; 401 if (chunk == NULL) { 406 * chunk must be write only. SPI flash doesn't support 409 if ((chunk->chunk_rptr) || !(chunk->chunk_wptr)) 432 struct spi_chunk *chunk; local 467 struct spi_chunk *chunk; local [all...] |
| /src/sys/dev/marvell/ |
| mvxpbm.c | 278 struct mvxpbm_chunk *chunk; local 280 /* initialize chunk */ 282 chunk = (struct mvxpbm_chunk *)ptr; 283 chunk->m = NULL; 284 chunk->sc = sc; 285 chunk->off = (ptr - sc->sc_buf); 286 chunk->pa = (paddr_t)(sc->sc_buf_pa + chunk->off); 287 chunk->buf_off = (ptr_data - sc->sc_buf); 288 chunk->buf_pa = (paddr_t)(sc->sc_buf_pa + chunk->buf_off) 318 struct mvxpbm_chunk *chunk = (struct mvxpbm_chunk *)arg; local 369 struct mvxpbm_chunk *chunk; local [all...] |
| /src/external/gpl3/binutils/dist/libiberty/ |
| objalloc.c | 56 /* This structure appears at the start of each chunk. */ 60 /* Next chunk. */ 62 /* If this chunk contains large objects, this is the value of 63 current_ptr when this chunk was allocated. If this chunk 74 /* We ask for this much memory each time we create a chunk which is to 89 struct objalloc_chunk *chunk; local 102 chunk = (struct objalloc_chunk *) ret->chunks; 103 chunk->next = NULL; 104 chunk->current_ptr = NULL 141 struct objalloc_chunk *chunk; local 157 struct objalloc_chunk *chunk; local [all...] |
| obstack.c | 107 /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). 117 struct _obstack_chunk *chunk; /* points to new chunk */ local 141 chunk = (struct _obstack_chunk *) call_chunkfun (h, h->chunk_size); 142 if (!chunk) 144 h->chunk = chunk; 145 h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, 147 h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size [all...] |
| /src/external/gpl3/binutils.old/dist/libiberty/ |
| objalloc.c | 56 /* This structure appears at the start of each chunk. */ 60 /* Next chunk. */ 62 /* If this chunk contains large objects, this is the value of 63 current_ptr when this chunk was allocated. If this chunk 74 /* We ask for this much memory each time we create a chunk which is to 89 struct objalloc_chunk *chunk; local 102 chunk = (struct objalloc_chunk *) ret->chunks; 103 chunk->next = NULL; 104 chunk->current_ptr = NULL 141 struct objalloc_chunk *chunk; local 157 struct objalloc_chunk *chunk; local [all...] |
| obstack.c | 107 /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). 117 struct _obstack_chunk *chunk; /* points to new chunk */ local 141 chunk = (struct _obstack_chunk *) call_chunkfun (h, h->chunk_size); 142 if (!chunk) 144 h->chunk = chunk; 145 h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, 147 h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size [all...] |
| /src/external/gpl3/gcc.old/dist/libiberty/ |
| objalloc.c | 56 /* This structure appears at the start of each chunk. */ 60 /* Next chunk. */ 62 /* If this chunk contains large objects, this is the value of 63 current_ptr when this chunk was allocated. If this chunk 74 /* We ask for this much memory each time we create a chunk which is to 89 struct objalloc_chunk *chunk; local 102 chunk = (struct objalloc_chunk *) ret->chunks; 103 chunk->next = NULL; 104 chunk->current_ptr = NULL 141 struct objalloc_chunk *chunk; local 157 struct objalloc_chunk *chunk; local [all...] |
| obstack.c | 107 /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). 117 struct _obstack_chunk *chunk; /* points to new chunk */ local 141 chunk = (struct _obstack_chunk *) call_chunkfun (h, h->chunk_size); 142 if (!chunk) 144 h->chunk = chunk; 145 h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, 147 h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size [all...] |
| /src/sys/external/bsd/drm2/dist/drm/nouveau/ |
| nouveau_dmem.c | 94 struct nouveau_dmem_chunk *chunk = page->zone_device_data; local 95 unsigned long idx = page_to_pfn(page) - chunk->pfn_first; 97 return (idx << PAGE_SHIFT) + chunk->bo->bo.offset; 102 struct nouveau_dmem_chunk *chunk = page->zone_device_data; local 103 unsigned long idx = page_to_pfn(page) - chunk->pfn_first; 112 spin_lock(&chunk->lock); 113 clear_bit(idx, chunk->bitmap); 114 WARN_ON(!chunk->callocated); 115 chunk->callocated--; 117 * FIXME when chunk->callocated reach 0 we should add the chunk t 217 struct nouveau_dmem_chunk *chunk; local 264 struct nouveau_dmem_chunk *chunk; local 286 struct nouveau_dmem_chunk *chunk; local 355 struct nouveau_dmem_chunk *chunk; local 378 struct nouveau_dmem_chunk *chunk; local 396 struct nouveau_dmem_chunk *chunk, *tmp; local 540 struct nouveau_dmem_chunk *chunk; local [all...] |
| /src/usr.bin/vis/ |
| foldit.c | 45 foldit(const char *chunk, int col, int max, int flags) 51 * if this chunk puts us over the limit. 54 cp = chunk;
|
| /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| obstack.c | 136 /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). 150 register struct _obstack_chunk *chunk; /* points to new chunk */ 177 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); 178 if (!chunk) 180 h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, 182 h->chunk_limit = chunk->limit 183 = (char *) chunk + h->chunk_size 149 register struct _obstack_chunk *chunk; \/* points to new chunk *\/ local 196 register struct _obstack_chunk *chunk; \/* points to new chunk *\/ local [all...] |
| /src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/ |
| obstack.c | 136 /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). 150 register struct _obstack_chunk *chunk; /* points to new chunk */ 177 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); 178 if (!chunk) 180 h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, 182 h->chunk_limit = chunk->limit 183 = (char *) chunk + h->chunk_size 149 register struct _obstack_chunk *chunk; \/* points to new chunk *\/ local 196 register struct _obstack_chunk *chunk; \/* points to new chunk *\/ local [all...] |
| /src/external/gpl3/gcc.old/dist/libphobos/libdruntime/core/internal/ |
| lifetime.d | 14 void emplaceRef(T, UT, Args...)(ref UT chunk, auto ref Args args) 23 emplaceInitializer(chunk); 45 static if (__traits(compiles, chunk = T(forward!args))) 46 chunk = T(forward!args); 47 else static if (args.length == 1 && __traits(compiles, chunk = forward!(args[0]))) 48 chunk = forward!(args[0]); 54 S* p = () @trusted { return cast(S*) &chunk; }(); 60 else static if (is(typeof(chunk.__ctor(forward!args)))) 63 emplaceInitializer(chunk); 64 chunk.__ctor(forward!args) [all...] |
| /src/sys/dev/acpi/ |
| apei_mapreg.c | 158 uint64_t chunk; local 184 chunk = chunk32; 190 chunk = *((volatile const uint8_t *)map + i); 193 chunk = *((volatile const uint16_t *)map + i); 196 chunk = *((volatile const uint32_t *)map + i); 199 chunk = *((volatile const uint64_t *)map + i); 208 v |= chunk << (i*chunkbits); 229 uint64_t chunk = v >> (i*chunkbits); local 250 rv = AcpiOsWritePort(addr, chunk, 259 *((volatile uint8_t *)map + i) = chunk; [all...] |
| /src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| zap_leaf.c | 28 * chunk number n means l_chunk[n], even though the header precedes it. 44 #define CHAIN_END 0xffff /* end of the chunk chain */ 189 int chunk; local 193 chunk = zap_leaf_phys(l)->l_hdr.lh_freelist; 194 ASSERT3U(chunk, <, ZAP_LEAF_NUMCHUNKS(l)); 195 ASSERT3U(ZAP_LEAF_CHUNK(l, chunk).l_free.lf_type, ==, ZAP_CHUNK_FREE); 198 ZAP_LEAF_CHUNK(l, chunk).l_free.lf_next; 202 return (chunk); 206 zap_leaf_chunk_free(zap_leaf_t *l, uint16_t chunk) 208 struct zap_leaf_free *zlf = &ZAP_LEAF_CHUNK(l, chunk).l_free 239 uint16_t chunk = zap_leaf_chunk_alloc(l); local 268 uint16_t chunk = *chunkp; local 409 uint16_t chunk = *chunkp; local 457 uint16_t chunk; local 585 uint16_t chunk; local 684 uint64_t chunk; local 775 uint16_t chunk; local 864 int chunk = zap_leaf_phys(l)->l_hash[i]; local [all...] |
| /src/external/gpl3/binutils/dist/gprofng/src/ |
| DbeSyncMap.h | 51 DbeLinkList<ITEM *> **chunk; member in class:DbeSyncMap 65 chunk = new DbeLinkList<ITEM *> * [chunkSize]; 67 chunk[i] = NULL; 75 Destroy (chunk[i]); 76 delete[] chunk; 86 Destroy (chunk[i]); 87 chunk[i] = NULL; 97 for (DbeLinkList<ITEM *> *dl = chunk[h]; dl; dl = dl->get_next ()) 118 for (DbeLinkList<ITEM *> *dl = chunk[h]; dl; dl = dl->get_next ()) 125 for (DbeLinkList<ITEM *> *dl = chunk[h]; dl; dl = dl->get_next () [all...] |
| /src/external/gpl3/binutils.old/dist/gprofng/src/ |
| DbeSyncMap.h | 51 DbeLinkList<ITEM *> **chunk; member in class:DbeSyncMap 65 chunk = new DbeLinkList<ITEM *> * [chunkSize]; 67 chunk[i] = NULL; 75 Destroy (chunk[i]); 76 delete[] chunk; 86 Destroy (chunk[i]); 87 chunk[i] = NULL; 97 for (DbeLinkList<ITEM *> *dl = chunk[h]; dl; dl = dl->get_next ()) 118 for (DbeLinkList<ITEM *> *dl = chunk[h]; dl; dl = dl->get_next ()) 125 for (DbeLinkList<ITEM *> *dl = chunk[h]; dl; dl = dl->get_next () [all...] |
| /src/sys/external/bsd/drm2/dist/drm/qxl/ |
| qxl_image.c | 43 struct qxl_drm_chunk *chunk; local 46 chunk = kmalloc(sizeof(struct qxl_drm_chunk), GFP_KERNEL); 47 if (!chunk) 50 ret = qxl_alloc_bo_reserved(qdev, release, chunk_size, &chunk->bo); 52 kfree(chunk); 56 list_add_tail(&chunk->head, &image->chunk_list); 93 struct qxl_drm_chunk *chunk, *tmp; local 95 list_for_each_entry_safe(chunk, tmp, &dimage->chunk_list, head) { 96 qxl_bo_unref(&chunk->bo); 97 kfree(chunk); 115 struct qxl_data_chunk *chunk; local [all...] |
| /src/external/gpl3/gcc.old/dist/libgomp/ |
| iter.c | 116 /* Initial guess is a C sized chunk positioned nthreads iterations 152 long start, end, chunk, left; local 158 chunk = ws->chunk_size; 162 if (chunk < left) 163 chunk = left; 167 if (chunk > left) 168 chunk = left; 170 end = start + chunk; 188 long start, end, nend, chunk, incr; local 192 chunk = ws->chunk_size [all...] |
| /src/lib/libc/stdlib/ |
| jemalloc.c | 91 * in the associated arena chunk header maps. 431 * Chunk data structures. 437 /* Linkage for the chunk tree. */ 441 * Pointer to the chunk that this tree node is responsible for. In some 443 * beginning of the corresponding chunk, so this field may point to this 446 void *chunk; member in struct:chunk_node_s 448 /* Total chunk size. */ 485 /* Arena chunk header. */ 488 /* Linkage for the arena's chunk tree. */ 491 /* Arena that owns the chunk. * 1269 void *ret, *chunk; local 1718 arena_chunk_t *chunk; local 1753 arena_chunk_t *chunk; local 1826 arena_chunk_t *chunk; local 1925 arena_chunk_t *chunk; local 2274 arena_chunk_t *chunk; local 2353 arena_chunk_t *chunk; local 3070 arena_chunk_t *chunk; local 3122 arena_chunk_t *chunk; local [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
| asan_poisoning.cc | 55 u8 *chunk; member in struct:__asan::ShadowSegmentEndpoint 57 s8 value; // = *chunk; 60 chunk = (u8*)MemToShadow(address); 62 value = *chunk; 67 // Since asan's mapping is compacting, the shadow chunk may be 116 if (beg.chunk == end.chunk) { 124 *beg.chunk = Min(value, beg.offset); 126 *beg.chunk = kAsanUserPoisonedMemoryMagic; 131 CHECK_LT(beg.chunk, end.chunk) [all...] |
| /src/external/gpl3/gcc.old/dist/libsanitizer/asan/ |
| asan_poisoning.cpp | 54 u8 *chunk; member in struct:__asan::ShadowSegmentEndpoint 56 s8 value; // = *chunk; 59 chunk = (u8*)MemToShadow(address); 61 value = *chunk; 109 if (beg.chunk == end.chunk) { 117 *beg.chunk = Min(value, beg.offset); 119 *beg.chunk = kAsanUserPoisonedMemoryMagic; 124 CHECK_LT(beg.chunk, end.chunk); [all...] |