/src/sys/rump/net/lib/libshmif/ |
shmif_busops.c | 66 size_t chunk; local in function:shmif_busread 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 in function:shmif_buswrite 106 chunk = MIN(len, BUSMEM_DATASIZE - off); 107 len -= chunk; [all...] |
/src/sys/arch/mips/atheros/dev/ |
arspi.c | 370 * send WREN for each chunk. These flags facilitate 393 struct spi_chunk *chunk; local in function:arspi_get_byte 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 in function:arspi_put_byte 467 struct spi_chunk *chunk; local in function:arspi_make_job [all...] |
/src/sys/dev/marvell/ |
mvxpbm.c | 278 struct mvxpbm_chunk *chunk; local in function:mvxpbm_alloc_buffer 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 in function:mvxpbm_free_mbuf 369 struct mvxpbm_chunk *chunk; local in function:mvxpbm_alloc [all...] |
mvspi.c | 290 struct spi_chunk *chunk; local in function:mvspi_sched 305 chunk = st->st_chunks; 310 for (i = chunk->chunk_wresid; i > 0; i--) { 316 if (chunk->chunk_wptr){ 317 byte = *chunk->chunk_wptr; 318 chunk->chunk_wptr++; 342 if (chunk->chunk_rptr) { 343 *chunk->chunk_rptr = 345 chunk->chunk_rptr++; 351 chunk = chunk->chunk_next [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/ |
nouveau_dmem.c | 94 struct nouveau_dmem_chunk *chunk = page->zone_device_data; local in function:nouveau_dmem_page_addr 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 in function:nouveau_dmem_page_free 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 in function:nouveau_dmem_chunk_alloc 264 struct nouveau_dmem_chunk *chunk; local in function:nouveau_dmem_chunk_first_free_locked 286 struct nouveau_dmem_chunk *chunk; local in function:nouveau_dmem_pages_alloc 355 struct nouveau_dmem_chunk *chunk; local in function:nouveau_dmem_resume 378 struct nouveau_dmem_chunk *chunk; local in function:nouveau_dmem_suspend 396 struct nouveau_dmem_chunk *chunk, *tmp; local in function:nouveau_dmem_fini 540 struct nouveau_dmem_chunk *chunk; local in function:nouveau_dmem_init [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/sys/dev/acpi/ |
apei_mapreg.c | 158 uint64_t chunk; local in function:apei_mapreg_read 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 in function:apei_mapreg_write 250 rv = AcpiOsWritePort(addr, chunk, 259 *((volatile uint8_t *)map + i) = chunk; [all...] |
/src/sys/external/bsd/drm2/dist/drm/qxl/ |
qxl_image.c | 43 struct qxl_drm_chunk *chunk; local in function:qxl_allocate_chunk 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 in function:qxl_image_free_objects 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 in function:qxl_image_init_helper [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 in function:chunk_alloc 1718 arena_chunk_t *chunk; local in function:arena_run_split 1753 arena_chunk_t *chunk; local in function:arena_chunk_alloc 1826 arena_chunk_t *chunk; local in function:arena_run_alloc 1925 arena_chunk_t *chunk; local in function:arena_run_dalloc 2274 arena_chunk_t *chunk; local in function:arena_palloc 2353 arena_chunk_t *chunk; local in function:arena_salloc 3070 arena_chunk_t *chunk; local in function:isalloc 3122 arena_chunk_t *chunk; local in function:idalloc [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...] |
asan_debugging.cc | 52 AsanChunkView chunk = FindHeapChunkByAddress(addr); local in function:__anon4e3fe3010110::AsanGetStack 53 if (!chunk.IsValid()) return 0; 57 if (chunk.AllocTid() == kInvalidTid) return 0; 58 stack = chunk.GetAllocStack(); 59 if (thread_id) *thread_id = chunk.AllocTid(); 61 if (chunk.FreeTid() == kInvalidTid) return 0; 62 stack = chunk.GetFreeStack(); 63 if (thread_id) *thread_id = chunk.FreeTid();
|
/src/sys/arch/arm/sunxi/ |
sun6i_spi.c | 272 struct spi_chunk *chunk; local in function:sun6ispi_start 288 for (chunk = st->st_chunks; chunk; chunk = chunk->chunk_next) { 289 burstcount += chunk->chunk_count; 324 struct spi_chunk *chunk; local in function:sun6ispi_send 326 while ((chunk = sc->sc_wchunk) != NULL) { 327 while (chunk->chunk_wresid) { 332 if (chunk->chunk_wptr) 349 struct spi_chunk *chunk; local in function:sun6ispi_recv [all...] |
sun4i_spi.c | 240 struct spi_chunk *chunk = sc->sc_wchunk; local in function:sun4ispi_txfifo_fill 244 if (chunk == NULL) 247 len = MIN(maxlen, chunk->chunk_wresid); 248 chunk->chunk_wresid -= len; 250 if (chunk->chunk_wptr) { 251 b = *chunk->chunk_wptr++; 265 struct spi_chunk *chunk = sc->sc_rchunk; local in function:sun4ispi_rxfifo_drain 269 if (chunk == NULL) 272 len = MIN(maxlen, chunk->chunk_rresid); 273 chunk->chunk_rresid -= len 339 struct spi_chunk *chunk; local in function:sun4ispi_start [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/lsan/ |
lsan_allocator.cc | 232 uptr chunk = reinterpret_cast<uptr>(allocator.GetBlockBeginFastLocked(p)); local in function:__lsan::PointsIntoChunk 233 if (!chunk) return 0; 234 // LargeMmapAllocator considers pointers to the meta-region of a chunk to be 236 if (addr < chunk) return 0; 237 ChunkMetadata *m = Metadata(reinterpret_cast<void *>(chunk)); 241 if (addr < chunk + m->requested_size) 242 return chunk; 243 if (IsSpecialCaseOfOperatorNew0(chunk, m->requested_size, addr)) 244 return chunk; 248 uptr GetUserBegin(uptr chunk) { 282 void *chunk = allocator.GetBlockBegin(p); local in function:__lsan::IgnoreObjectLocked [all...] |
lsan_common.cc | 169 uptr chunk = PointsIntoChunk(p); local in function:__lsan::ScanRangeForPointers 170 if (!chunk) continue; 172 if (chunk == begin) continue; 173 LsanMetadata m(chunk); 179 "%p is poisoned: ignoring %p pointing into chunk %p-%p of size " 181 pp, p, chunk, chunk + m.requested_size(), m.requested_size()); 186 LOG_POINTERS("%p: found %p pointing into chunk %p-%p of size %zu.\n", pp, p, 187 chunk, chunk + m.requested_size(), m.requested_size()) [all...] |
/src/sys/dev/spi/ |
spi.c | 569 spi_chunk_init(struct spi_chunk *chunk, int cnt, const uint8_t *wptr, 573 chunk->chunk_write = chunk->chunk_wptr = wptr; 574 chunk->chunk_read = chunk->chunk_rptr = rptr; 575 chunk->chunk_rresid = chunk->chunk_wresid = chunk->chunk_count = cnt; 576 chunk->chunk_next = NULL; 580 spi_transfer_add(struct spi_transfer *st, struct spi_chunk *chunk) 594 struct spi_chunk *chunk; local in function:spi_transfer 698 struct spi_chunk chunk; local in function:spi_recv 718 struct spi_chunk chunk; local in function:spi_send [all...] |
/src/sys/arch/mips/alchemy/dev/ |
auspi.c | 252 struct spi_chunk *chunk; local in function:auspi_send 255 while ((chunk = sc->sc_wchunk) != NULL) { 257 while (chunk->chunk_wresid) { 264 if (chunk->chunk_wptr) { 265 data = *chunk->chunk_wptr++; 269 chunk->chunk_wresid--; 272 if ((chunk->chunk_wresid == 0) && 273 (chunk->chunk_next == NULL)) { 288 struct spi_chunk *chunk; local in function:auspi_recv 290 while ((chunk = sc->sc_rchunk) != NULL) [all...] |
/src/sys/arch/arm/imx/ |
imxspi.c | 237 struct spi_chunk *chunk; local in function:imxspi_send 240 while ((chunk = sc->sc_wchunk) != NULL) { 241 while (chunk->chunk_wresid) { 246 if (chunk->chunk_wptr) { 247 data = *chunk->chunk_wptr; 248 chunk->chunk_wptr++; 252 chunk->chunk_wresid--; 268 struct spi_chunk *chunk; local in function:imxspi_recv 270 while ((chunk = sc->sc_rchunk) != NULL) { 271 while (chunk->chunk_rresid) [all...] |
/src/sys/external/bsd/drm2/dist/drm/vboxvideo/ |
vbva_base.c | 43 /* Chunk will not cross buffer boundary. */ 46 /* Chunk crosses buffer boundary. */ 83 u32 chunk = len; local in function:vbva_write 85 if (chunk >= available) { 90 if (chunk >= available) { 95 chunk = available - vbva->partial_write_tresh; 98 vbva_buffer_place_data_at(vbva_ctx, p, chunk, 101 vbva->free_offset = (vbva->free_offset + chunk) % 103 record->len_and_flags += chunk; 104 available -= chunk; [all...] |
/src/sys/arch/arm/broadcom/ |
bcm2835_spi.c | 246 struct spi_chunk *chunk; local in function:bcmspi_send 248 while ((chunk = sc->sc_wchunk) != NULL) { 249 while (chunk->chunk_wresid) { 253 if (chunk->chunk_wptr) { 254 fd = *chunk->chunk_wptr++; 259 chunk->chunk_wresid--; 270 struct spi_chunk *chunk; local in function:bcmspi_recv 272 while ((chunk = sc->sc_rchunk) != NULL) { 273 while (chunk->chunk_rresid) { 278 if (chunk->chunk_rptr) [all...] |
/src/sys/dev/ieee1394/ |
fwcrom.c | 399 crom_add_quad(struct crom_chunk *chunk, uint32_t entry) 403 index = chunk->data.crc_len; 405 printf("too large chunk %d\n", index); 408 chunk->data.buf[index] = entry; 409 chunk->data.crc_len++; 414 crom_add_entry(struct crom_chunk *chunk, int key, int val) 424 return crom_add_quad(chunk, foo.i); 450 struct crom_chunk *chunk, const char *buf) 463 tl = (struct csrtext *) &chunk->data; 473 return crom_add_chunk(src, parent, chunk, CROM_TEXTLEAF) 492 struct crom_chunk *chunk, *parent; local in function:crom_load [all...] |
/src/usr.sbin/acpitools/aml/ |
aml_memman.c | 65 static unsigned int memman_guess_memid(struct memman *memman, void *chunk); 140 void *chunk, *block; local in function:memman_alloc 173 chunk = memnode->node; 178 return (chunk); 279 memman_guess_memid(struct memman *memman, void *chunk) 293 if (memnode->node == chunk) { 302 memman_free(struct memman *memman, unsigned int memid, void *chunk) 313 id = memman_guess_memid(memman, chunk); 328 if (memnode->node == chunk) { 366 memman_free_flexsize(struct memman *memman, void *chunk) 388 void *chunk; local in function:memman_freeall [all...] |
/src/common/dist/zlib/examples/ |
gun.c | 175 if (chunk > have) { \ 176 chunk -= have; \ 180 chunk--; \ 181 if (chunk > have) { \ 182 chunk = have = 0; \ 186 have -= chunk; \ 187 next += chunk; \ 188 chunk = 0; \ 204 unsigned chunk; /* bytes left in current chunk */ local in function:lunpipe [all...] |
/src/sys/arch/arm/at91/ |
at91spi.c | 268 struct spi_chunk *chunk; local in function:at91spi_xfer 289 if ((chunk = sc->sc_rchunk) != NULL) { 290 if ((len = chunk->chunk_rresid) > HALF_BUF_SIZE) 292 if (chunk->chunk_rptr && len > 0) { 293 memcpy(chunk->chunk_rptr, (const uint8_t *)sc->sc_dmapage + offs, len); 294 chunk->chunk_rptr += len; 296 if ((chunk->chunk_rresid -= len) <= 0) { 297 // done with this chunk, get next 298 sc->sc_rchunk = chunk->chunk_next; 303 /* start transmitting next chunk: * [all...] |
/src/sys/arch/ia64/stand/common/ |
misc.c | 106 size_t chunk, resid; local in function:kern_bzero 111 chunk = min(sizeof(buf), resid); 112 archsw.arch_copyin(buf, dest, chunk); 113 resid -= chunk; 114 dest += chunk;
|