Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 3 of 3) sorted by relevance

/lib/
Dgenalloc.c40 static inline size_t chunk_size(const struct gen_pool_chunk *chunk) in chunk_size() argument
42 return chunk->end_addr - chunk->start_addr + 1; in chunk_size()
187 struct gen_pool_chunk *chunk; in gen_pool_add_virt() local
192 chunk = vzalloc_node(nbytes, nid); in gen_pool_add_virt()
193 if (unlikely(chunk == NULL)) in gen_pool_add_virt()
196 chunk->phys_addr = phys; in gen_pool_add_virt()
197 chunk->start_addr = virt; in gen_pool_add_virt()
198 chunk->end_addr = virt + size - 1; in gen_pool_add_virt()
199 atomic_long_set(&chunk->avail, size); in gen_pool_add_virt()
202 list_add_rcu(&chunk->next_chunk, &pool->chunks); in gen_pool_add_virt()
[all …]
Dbitmap.c364 u32 chunk; in __bitmap_parse() local
371 chunk = 0; in __bitmap_parse()
407 if (chunk & ~((1UL << (CHUNKSZ - 4)) - 1)) in __bitmap_parse()
410 chunk = (chunk << 4) | hex_to_bin(c); in __bitmap_parse()
415 if (nchunks == 0 && chunk == 0) in __bitmap_parse()
419 *maskp |= chunk; in __bitmap_parse()
421 nbits += (nchunks == 1) ? nbits_to_hold_value(chunk) : CHUNKSZ; in __bitmap_parse()
DKconfig517 Provides a heler to split scatterlists into chunks, each chunk being a