Home
last modified time | relevance | path

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

/arch/arm64/kvm/hyp/nvhe/
Dalloc.c39 static u32 chunk_hash_compute(struct chunk_hdr *chunk) in chunk_hash_compute() argument
42 u64 *data = (u64 *)chunk; in chunk_hash_compute()
59 static inline void chunk_hash_update(struct chunk_hdr *chunk) in chunk_hash_update() argument
61 if (chunk) in chunk_hash_update()
62 chunk->hash = chunk_hash_compute(chunk); in chunk_hash_update()
65 static inline void chunk_hash_validate(struct chunk_hdr *chunk) in chunk_hash_validate() argument
67 if (chunk) in chunk_hash_validate()
68 WARN_ON(chunk->hash != chunk_hash_compute(chunk)); in chunk_hash_validate()
71 #define chunk_is_used(chunk) \ argument
72 (!!(chunk)->alloc_size)
[all …]
/arch/mips/dec/prom/
Dconsole.c18 unsigned int chunk = sizeof(buf) - 1; in prom_console_write() local
21 if (chunk > c) in prom_console_write()
22 chunk = c; in prom_console_write()
23 memcpy(buf, s, chunk); in prom_console_write()
24 buf[chunk] = '\0'; in prom_console_write()
26 s += chunk; in prom_console_write()
27 c -= chunk; in prom_console_write()
/arch/arm64/crypto/
Dcrct10dif-ce-glue.c41 unsigned int chunk = length; in crct10dif_update_pmull_p8() local
43 if (chunk > SZ_4K + CRC_T10DIF_PMULL_CHUNK_SIZE) in crct10dif_update_pmull_p8()
44 chunk = SZ_4K; in crct10dif_update_pmull_p8()
47 *crc = crc_t10dif_pmull_p8(*crc, data, chunk); in crct10dif_update_pmull_p8()
49 data += chunk; in crct10dif_update_pmull_p8()
50 length -= chunk; in crct10dif_update_pmull_p8()
66 unsigned int chunk = length; in crct10dif_update_pmull_p64() local
68 if (chunk > SZ_4K + CRC_T10DIF_PMULL_CHUNK_SIZE) in crct10dif_update_pmull_p64()
69 chunk = SZ_4K; in crct10dif_update_pmull_p64()
72 *crc = crc_t10dif_pmull_p64(*crc, data, chunk); in crct10dif_update_pmull_p64()
[all …]
Dsha256-glue.c104 unsigned int chunk = len; in sha256_update_neon() local
112 chunk + sctx->count % SHA256_BLOCK_SIZE > SHA256_BLOCK_SIZE) in sha256_update_neon()
113 chunk = SHA256_BLOCK_SIZE - in sha256_update_neon()
117 sha256_base_do_update(desc, data, chunk, __sha256_block_neon); in sha256_update_neon()
119 data += chunk; in sha256_update_neon()
120 len -= chunk; in sha256_update_neon()
Dghash-ce-glue.c142 int chunk = min(blocks, MAX_BLOCKS); in ghash_update() local
144 ghash_do_simd_update(chunk, ctx->digest, src, key, in ghash_update()
148 blocks -= chunk; in ghash_update()
149 src += chunk * GHASH_BLOCK_SIZE; in ghash_update()
/arch/um/drivers/
Dmconsole_kern.h27 #define CONFIG_CHUNK(str, size, current, chunk, end) \ argument
29 current += strlen(chunk); \
33 strcpy(str, chunk); \
34 str += strlen(chunk); \
/arch/arm64/kernel/
Dsys_compat.c29 unsigned long chunk = min(PAGE_SIZE, end - start); in __do_compat_cache_op() local
43 ret = caches_clean_inval_user_pou(start, start + chunk); in __do_compat_cache_op()
48 start += chunk; in __do_compat_cache_op()
/arch/powerpc/mm/book3s64/
Diommu_api.c63 unsigned long entry, chunk; in mm_iommu_do_alloc() local
100 chunk = (1UL << (PAGE_SHIFT + MAX_ORDER)) / in mm_iommu_do_alloc()
102 chunk = min(chunk, entries); in mm_iommu_do_alloc()
103 for (entry = 0; entry < entries; entry += chunk) { in mm_iommu_do_alloc()
104 unsigned long n = min(entries - entry, chunk); in mm_iommu_do_alloc()
/arch/s390/mm/
Dmaccess.c86 void *chunk; in memcpy_real_iter() local
93 chunk = (void *)(__memcpy_real_area + offset); in memcpy_real_iter()
102 copied = copy_to_iter(chunk, len, iter); in memcpy_real_iter()
/arch/x86/xen/
Dp2m.c328 unsigned int i, chunk; in xen_rebuild_p2m_list() local
351 for (pfn = 0; pfn < xen_max_p2m_pfn; pfn += chunk) { in xen_rebuild_p2m_list()
362 chunk = (pfn & (P2M_PER_PAGE * P2M_MID_PER_PAGE - 1)) ? in xen_rebuild_p2m_list()
368 for (i = 1; i < chunk; i++) in xen_rebuild_p2m_list()
371 if (i < chunk) in xen_rebuild_p2m_list()
373 chunk = P2M_PER_PAGE; in xen_rebuild_p2m_list()
375 if (type == P2M_TYPE_PFN || i < chunk) { in xen_rebuild_p2m_list()
385 if (chunk == P2M_PER_PAGE) { in xen_rebuild_p2m_list()
Dsetup.c298 unsigned int i, chunk; in xen_do_set_identity_and_remap_chunk() local
307 chunk = (left < REMAP_SIZE) ? left : REMAP_SIZE; in xen_do_set_identity_and_remap_chunk()
316 xen_remap_buf.size = chunk; in xen_do_set_identity_and_remap_chunk()
317 for (i = 0; i < chunk; i++) in xen_do_set_identity_and_remap_chunk()
324 set_phys_range_identity(ident_pfn_iter, ident_pfn_iter + chunk); in xen_do_set_identity_and_remap_chunk()
326 left -= chunk; in xen_do_set_identity_and_remap_chunk()
/arch/s390/crypto/
Dprng.c515 int chunk, n, ret = 0; in prng_tdes_read() local
543 chunk = min_t(int, nbytes, prng_chunk_size); in prng_tdes_read()
546 n = (chunk + 7) & -8; in prng_tdes_read()
573 if (copy_to_user(ubuf, prng_data->buf, chunk)) { in prng_tdes_read()
578 nbytes -= chunk; in prng_tdes_read()
579 ret += chunk; in prng_tdes_read()
580 ubuf += chunk; in prng_tdes_read()
/arch/powerpc/platforms/powernv/
Dmemtrace.c81 unsigned long chunk) in flush_dcache_range_chunked() argument
85 for (i = start; i < stop; i += chunk) { in flush_dcache_range_chunked()
86 flush_dcache_range(i, min(stop, i + chunk)); in flush_dcache_range_chunked()
/arch/x86/kernel/cpu/sgx/
Dmain.c298 struct sgx_epc_page *chunk[SGX_NR_TO_SCAN]; in sgx_reclaim_pages() local
318 chunk[cnt++] = epc_page; in sgx_reclaim_pages()
328 epc_page = chunk[i]; in sgx_reclaim_pages()
354 chunk[i] = NULL; in sgx_reclaim_pages()
358 epc_page = chunk[i]; in sgx_reclaim_pages()
364 epc_page = chunk[i]; in sgx_reclaim_pages()
/arch/arm64/boot/dts/qcom/
Dsdm630-sony-xperia-ganges-kirin.dts24 /* Reserve a bigger chunk of RAM for the higher-res display */
/arch/xtensa/lib/
Dusercopy.S149 add a8, a8, a3 # a8 = end of last 16B source chunk
216 add a10, a10, a3 # a10 = end of last 16B source chunk
219 add a12, a12, a3 # a12 = end of last 16B source chunk
Dmemcopy.S135 add a8, a8, a3 # a8 = end of last 16B source chunk
211 add a10, a10, a3 # a10 = end of last 16B source chunk
396 sub a8, a3, a8 # a8 = start of first 16B source chunk
473 sub a10, a3, a10 # a10 = start of first 16B source chunk
Dmemset.S65 add a6, a6, a5 # a6 = end of last 16B chunk
Dstrnlen_user.S69 add a10, a10, a4 # a10 = end of last 4B chunk
/arch/arm/kernel/
Dtraps.c575 unsigned long chunk = min(PAGE_SIZE, end - start); in __do_cache_op() local
580 ret = flush_icache_user_range(start, start + chunk); in __do_cache_op()
585 start += chunk; in __do_cache_op()
/arch/powerpc/platforms/pseries/
Dvio.c392 size_t avail = 0, level, chunk, need; in vio_cmo_balance() local
440 chunk = min_t(size_t, avail, VIO_CMO_BALANCE_CHUNK); in vio_cmo_balance()
441 chunk = min(chunk, (viodev->cmo.desired - in vio_cmo_balance()
443 viodev->cmo.entitled += chunk; in vio_cmo_balance()
/arch/m68k/
DKconfig.cpu388 bool "Use one physical chunk of memory only" if ADVANCED && !SUN3
392 Ignore all but the first contiguous chunk of physical memory for VM
/arch/powerpc/kernel/
Dprom_init.c2483 unsigned long room, chunk; in make_room() local
2493 chunk = alloc_up(room, 0); in make_room()
2494 if (chunk == 0) in make_room()
2497 *mem_end = chunk + room; in make_room()
/arch/s390/boot/
Dhead.S153 ssch 0(%r3) # load chunk of 1600 bytes