Home
last modified time | relevance | path

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

/lib/
Dgenalloc.c38 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()
187 struct gen_pool_chunk *chunk; in gen_pool_add_owner() local
192 chunk = vzalloc_node(nbytes, nid); in gen_pool_add_owner()
193 if (unlikely(chunk == NULL)) in gen_pool_add_owner()
196 chunk->phys_addr = phys; in gen_pool_add_owner()
197 chunk->start_addr = virt; in gen_pool_add_owner()
198 chunk->end_addr = virt + size - 1; in gen_pool_add_owner()
199 chunk->owner = owner; in gen_pool_add_owner()
200 atomic_long_set(&chunk->avail, size); in gen_pool_add_owner()
[all …]
Diov_iter.c461 unsigned int off, chunk; in copy_pipe_to_iter() local
471 for (size_t n = bytes; n; n -= chunk) { in copy_pipe_to_iter()
473 chunk = min_t(size_t, n, PAGE_SIZE - off); in copy_pipe_to_iter()
476 memcpy_to_page(page, off, addr, chunk); in copy_pipe_to_iter()
477 addr += chunk; in copy_pipe_to_iter()
494 unsigned int chunk, r; in csum_and_copy_to_pipe_iter() local
510 chunk = min_t(size_t, bytes, PAGE_SIZE - r); in csum_and_copy_to_pipe_iter()
512 sum = csum_and_memcpy(p + r, addr + off, chunk, sum, off); in csum_and_copy_to_pipe_iter()
514 off += chunk; in csum_and_copy_to_pipe_iter()
515 bytes -= chunk; in csum_and_copy_to_pipe_iter()
[all …]
Dbitmap.c913 int chunk; in bitmap_parse() local
915 for (chunk = 0; ; chunk++) { in bitmap_parse()
924 end = bitmap_get_x32_reverse(start, end, &bitmap[chunk ^ 1]); in bitmap_parse()
926 end = bitmap_get_x32_reverse(start, end, &bitmap[chunk]); in bitmap_parse()
Dtest_hmm.c1226 static void dmirror_device_evict_chunk(struct dmirror_chunk *chunk) in dmirror_device_evict_chunk() argument
1228 unsigned long start_pfn = chunk->pagemap.range.start >> PAGE_SHIFT; in dmirror_device_evict_chunk()
1229 unsigned long end_pfn = chunk->pagemap.range.end >> PAGE_SHIFT; in dmirror_device_evict_chunk()
DKconfig651 Provides a helper to split scatterlists into chunks, each chunk being
/lib/zstd/compress/
Dzstd_ldm.c479 size_t chunk; in ZSTD_ldm_generateSequences() local
492 for (chunk = 0; chunk < nbChunks && sequences->size < sequences->capacity; ++chunk) { in ZSTD_ldm_generateSequences()
493 BYTE const* const chunkStart = istart + chunk * kMaxChunkSize; in ZSTD_ldm_generateSequences()
Dzstd_compress.c3074 size_t const chunk = MIN(remaining, ZSTD_CHUNKSIZE_MAX); in ZSTD_loadDictionaryContent() local
3075 const BYTE* const ichunk = ip + chunk; in ZSTD_loadDictionaryContent()
3094 if (chunk >= HASH_READ_SIZE && ms->dedicatedDictSearch) { in ZSTD_loadDictionaryContent()
3095 assert(chunk == remaining); /* must load everything in one go */ in ZSTD_loadDictionaryContent()
3097 } else if (chunk >= HASH_READ_SIZE) { in ZSTD_loadDictionaryContent()
3106 if (chunk >= HASH_READ_SIZE) in ZSTD_loadDictionaryContent()