Searched refs:chunk (Results 1 – 4 of 4) sorted by relevance
/lib/ |
D | genalloc.c | 38 static inline size_t chunk_size(const struct gen_pool_chunk *chunk) in chunk_size() argument 40 return chunk->end_addr - chunk->start_addr + 1; in chunk_size() 185 struct gen_pool_chunk *chunk; in gen_pool_add_owner() local 190 chunk = vzalloc_node(nbytes, nid); in gen_pool_add_owner() 191 if (unlikely(chunk == NULL)) in gen_pool_add_owner() 194 chunk->phys_addr = phys; in gen_pool_add_owner() 195 chunk->start_addr = virt; in gen_pool_add_owner() 196 chunk->end_addr = virt + size - 1; in gen_pool_add_owner() 197 chunk->owner = owner; in gen_pool_add_owner() 198 atomic_long_set(&chunk->avail, size); in gen_pool_add_owner() [all …]
|
D | bitmap.c | 381 u32 chunk; in __bitmap_parse() local 388 chunk = 0; in __bitmap_parse() 424 if (chunk & ~((1UL << (CHUNKSZ - 4)) - 1)) in __bitmap_parse() 427 chunk = (chunk << 4) | hex_to_bin(c); in __bitmap_parse() 432 if (nchunks == 0 && chunk == 0) in __bitmap_parse() 436 *maskp |= chunk; in __bitmap_parse() 438 nbits += (nchunks == 1) ? nbits_to_hold_value(chunk) : CHUNKSZ; in __bitmap_parse()
|
D | iov_iter.c | 554 size_t chunk = min_t(size_t, n, PAGE_SIZE - off); in copy_pipe_to_iter() local 555 memcpy_to_page(pipe->bufs[idx].page, off, addr, chunk); in copy_pipe_to_iter() 557 i->iov_offset = off + chunk; in copy_pipe_to_iter() 558 n -= chunk; in copy_pipe_to_iter() 559 addr += chunk; in copy_pipe_to_iter() 588 size_t chunk = min_t(size_t, n, PAGE_SIZE - r); in csum_and_copy_to_pipe_iter() local 590 sum = csum_and_memcpy(p + r, addr, chunk, sum, off); in csum_and_copy_to_pipe_iter() 593 i->iov_offset = r + chunk; in csum_and_copy_to_pipe_iter() 594 n -= chunk; in csum_and_copy_to_pipe_iter() 595 off += chunk; in csum_and_copy_to_pipe_iter() [all …]
|
D | Kconfig | 587 Provides a helper to split scatterlists into chunks, each chunk being
|