/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A D | printk.c | 31 size_t clen, i; in utf8_to_utf32() local 38 for (clen = 0; cx & 0x80; ++clen) in utf8_to_utf32() 46 if (clen < 2 || clen > 4) in utf8_to_utf32() 49 c32 = cx >> clen--; in utf8_to_utf32() 50 for (i = 0; i < clen; ++i) { in utf8_to_utf32() 65 clen != (c32 >= 0x80) + (c32 >= 0x800) + (c32 >= 0x10000)) in utf8_to_utf32() 67 *s8 += clen; in utf8_to_utf32()
|
H A D | vsprintf.c | 245 size_t len, clen; in utf16s_utf8nlen() local 247 for (len = 0; len < maxlen && *s16; len += clen) { in utf16s_utf8nlen() 251 clen = 1 + (c0 >= 0x80) + (c0 >= 0x800); in utf16s_utf8nlen() 252 if (len + clen > maxlen) in utf16s_utf8nlen() 261 if (len + clen == maxlen) in utf16s_utf8nlen() 265 ++clen; in utf16s_utf8nlen() 511 size_t clen; in vsnprintf() local 519 clen = 1 + (c32 >= 0x800) + (c32 >= 0x10000); in vsnprintf() 521 len -= clen; in vsnprintf() 526 pos += clen; in vsnprintf() [all...] |
/kernel/linux/linux-6.6/lib/crypto/ |
H A D | aesgcm.c | 554 int clen; member 561 .clen = sizeof(ctext0), 567 .clen = sizeof(ctext1), 577 .clen = sizeof(ctext2), 591 .clen = sizeof(ctext3), 595 .clen = sizeof(ctext4), 601 .clen = sizeof(ctext5), 612 .clen = sizeof(ctext6), 616 .clen = sizeof(ctext7), 622 .clen [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | reservations.c | 284 unsigned int clen, char *disk_bitmap) in ocfs2_resmap_restart() 292 resmap->m_bitmap_len = clen; in ocfs2_resmap_restart() 401 * *cstart and *clen will also be populated with the result. 467 unsigned int cstart, clen; in __ocfs2_resv_find_window() local 488 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window() 490 &cstart, &clen); in __ocfs2_resv_find_window() 496 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window() 498 if (clen == 0) in __ocfs2_resv_find_window() 502 resv->r_len = clen; in __ocfs2_resv_find_window() 541 clen in __ocfs2_resv_find_window() 283 ocfs2_resmap_restart(struct ocfs2_reservation_map *resmap, unsigned int clen, char *disk_bitmap) ocfs2_resmap_restart() argument 716 ocfs2_resmap_resv_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, int *cstart, int *clen) ocfs2_resmap_resv_bits() argument 785 ocfs2_resmap_claimed_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, u32 cstart, u32 clen) ocfs2_resmap_claimed_bits() argument [all...] |
H A D | reservations.h | 92 * @clen: Number of valid bits in the bitmap 103 unsigned int clen, char *disk_bitmap); 116 * @clen: length (in clusters) of proposed allocation 124 * and clen. 130 int *cstart, int *clen); 137 * @clen: end of allocation in clusters. 149 u32 cstart, u32 clen);
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | reservations.c | 280 unsigned int clen, char *disk_bitmap) in ocfs2_resmap_restart() 288 resmap->m_bitmap_len = clen; in ocfs2_resmap_restart() 397 * *cstart and *clen will also be populated with the result. 463 unsigned int cstart, clen; in __ocfs2_resv_find_window() local 484 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window() 486 &cstart, &clen); in __ocfs2_resv_find_window() 492 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window() 494 if (clen == 0) in __ocfs2_resv_find_window() 498 resv->r_len = clen; in __ocfs2_resv_find_window() 537 clen in __ocfs2_resv_find_window() 279 ocfs2_resmap_restart(struct ocfs2_reservation_map *resmap, unsigned int clen, char *disk_bitmap) ocfs2_resmap_restart() argument 712 ocfs2_resmap_resv_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, int *cstart, int *clen) ocfs2_resmap_resv_bits() argument 781 ocfs2_resmap_claimed_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, u32 cstart, u32 clen) ocfs2_resmap_claimed_bits() argument [all...] |
H A D | reservations.h | 85 * @clen: Number of valid bits in the bitmap 96 unsigned int clen, char *disk_bitmap); 109 * @clen: length (in clusters) of proposed allocation 117 * and clen. 123 int *cstart, int *clen); 130 * @clen: end of allocation in clusters. 142 u32 cstart, u32 clen);
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
H A D | vsprintf.c | 245 size_t len, clen; in utf16s_utf8nlen() local 247 for (len = 0; len < maxlen && *s16; len += clen) { in utf16s_utf8nlen() 251 clen = 1 + (c0 >= 0x80) + (c0 >= 0x800); in utf16s_utf8nlen() 252 if (len + clen > maxlen) in utf16s_utf8nlen() 261 if (len + clen == maxlen) in utf16s_utf8nlen() 265 ++clen; in utf16s_utf8nlen() 511 size_t clen; in vsnprintf() local 519 clen = 1 + (c32 >= 0x800) + (c32 >= 0x10000); in vsnprintf() 521 len -= clen; in vsnprintf() 526 pos += clen; in vsnprintf() [all...] |
H A D | efi-stub-helper.c | 50 size_t clen, i; in utf8_to_utf32() local 57 for (clen = 0; cx & 0x80; ++clen) in utf8_to_utf32() 65 if (clen < 2 || clen > 4) in utf8_to_utf32() 68 c32 = cx >> clen--; in utf8_to_utf32() 69 for (i = 0; i < clen; ++i) { in utf8_to_utf32() 84 clen != (c32 >= 0x80) + (c32 >= 0x800) + (c32 >= 0x10000)) in utf8_to_utf32() 86 *s8 += clen; in utf8_to_utf32()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | crypto.c | 58 unsigned int clen = le16_to_cpu(dn->compr_size); in ubifs_decrypt() local 61 if (clen <= 0 || clen > UBIFS_BLOCK_SIZE || clen > dlen) { in ubifs_decrypt() 62 ubifs_err(c, "bad compr_size: %i", clen); in ubifs_decrypt() 74 *out_len = clen; in ubifs_decrypt()
|
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | crypto.c | 69 unsigned int clen = le16_to_cpu(dn->compr_size); in ubifs_decrypt() local 72 if (clen <= 0 || clen > UBIFS_BLOCK_SIZE || clen > dlen) { in ubifs_decrypt() 73 ubifs_err(c, "bad compr_size: %i", clen); in ubifs_decrypt() 85 *out_len = clen; in ubifs_decrypt()
|
/kernel/linux/linux-5.10/mm/ |
H A D | early_ioremap.c | 256 unsigned long slop, clen; in copy_from_early_mem() local 261 clen = size; in copy_from_early_mem() 262 if (clen > MAX_MAP_CHUNK - slop) in copy_from_early_mem() 263 clen = MAX_MAP_CHUNK - slop; in copy_from_early_mem() 264 p = early_memremap(src & PAGE_MASK, clen + slop); in copy_from_early_mem() 265 memcpy(dest, p + slop, clen); in copy_from_early_mem() 266 early_memunmap(p, clen + slop); in copy_from_early_mem() 267 dest += clen; in copy_from_early_mem() 268 src += clen; in copy_from_early_mem() 269 size -= clen; in copy_from_early_mem() [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | early_ioremap.c | 250 unsigned long slop, clen; in copy_from_early_mem() local 255 clen = size; in copy_from_early_mem() 256 if (clen > MAX_MAP_CHUNK - slop) in copy_from_early_mem() 257 clen = MAX_MAP_CHUNK - slop; in copy_from_early_mem() 258 p = early_memremap(src & PAGE_MASK, clen + slop); in copy_from_early_mem() 259 memcpy(dest, p + slop, clen); in copy_from_early_mem() 260 early_memunmap(p, clen + slop); in copy_from_early_mem() 261 dest += clen; in copy_from_early_mem() 262 src += clen; in copy_from_early_mem() 263 size -= clen; in copy_from_early_mem() [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | testmgr.h | 98 * @clen: Length of @ctext in bytes 117 unsigned int clen; member 15262 .clen = 80, 15268 .clen = 16, 15278 .clen = 32, 15304 .clen = 80, 15334 .clen = 76, 15364 .clen = 76, 15554 .clen = 735, 15588 .clen [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | testmgr.h | 96 * @clen: Length of @ctext in bytes 115 unsigned int clen; member 15000 .clen = 8 + 16, 15019 .clen = 53 + 16, 15051 .clen = 16 + 20, 15084 .clen = 32 + 20, 15116 .clen = 48 + 20, 15157 .clen = 64 + 20, 15203 .clen = 80 + 20, 15245 .clen [all...] |
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | tables.c | 615 phys_addr_t slop, clen; in acpi_table_upgrade() local 622 clen = size; in acpi_table_upgrade() 623 if (clen > MAP_CHUNK_SIZE - slop) in acpi_table_upgrade() 624 clen = MAP_CHUNK_SIZE - slop; in acpi_table_upgrade() 626 clen + slop); in acpi_table_upgrade() 627 memcpy(dest_p + slop, src_p, clen); in acpi_table_upgrade() 628 early_memunmap(dest_p, clen + slop); in acpi_table_upgrade() 629 src_p += clen; in acpi_table_upgrade() 630 dest_addr += clen; in acpi_table_upgrade() 631 size -= clen; in acpi_table_upgrade() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | tables.c | 682 phys_addr_t slop, clen; in acpi_table_upgrade() local 689 clen = size; in acpi_table_upgrade() 690 if (clen > MAP_CHUNK_SIZE - slop) in acpi_table_upgrade() 691 clen = MAP_CHUNK_SIZE - slop; in acpi_table_upgrade() 693 clen + slop); in acpi_table_upgrade() 694 memcpy(dest_p + slop, src_p, clen); in acpi_table_upgrade() 695 early_memunmap(dest_p, clen + slop); in acpi_table_upgrade() 696 src_p += clen; in acpi_table_upgrade() 697 dest_addr += clen; in acpi_table_upgrade() 698 size -= clen; in acpi_table_upgrade() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/ |
H A D | declance.c | 332 unsigned short clen; in cp_to_buf() local 339 clen = len >> 1; in cp_to_buf() 343 while (clen--) { in cp_to_buf() 348 clen = len & 1; in cp_to_buf() 351 while (clen--) { in cp_to_buf() 358 clen = len >> 4; in cp_to_buf() 361 while (clen--) { in cp_to_buf() 376 clen = len & 15; in cp_to_buf() 379 while (clen--) { in cp_to_buf() 391 unsigned short clen; in cp_from_buf() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/ |
H A D | declance.c | 332 unsigned short clen; in cp_to_buf() local 339 clen = len >> 1; in cp_to_buf() 343 while (clen--) { in cp_to_buf() 348 clen = len & 1; in cp_to_buf() 351 while (clen--) { in cp_to_buf() 358 clen = len >> 4; in cp_to_buf() 361 while (clen--) { in cp_to_buf() 376 clen = len & 15; in cp_to_buf() 379 while (clen--) { in cp_to_buf() 391 unsigned short clen; in cp_from_buf() local [all...] |
/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | compress.c | 184 cc->clen = lzo1x_worst_compress(PAGE_SIZE << cc->log_cluster_size); in lzo_init_compress_ctx() 199 &cc->clen, cc->private); in lzo_compress_pages() 212 ret = lzo1x_decompress_safe(dic->cbuf->cdata, dic->clen, in lzo_decompress_pages() 254 * we do not change cc->clen to LZ4_compressBound(inputsize) to in lz4_init_compress_ctx() 258 cc->clen = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in lz4_init_compress_ctx() 275 cc->clen, cc->private); in lz4_compress_pages() 279 cc->clen, level, cc->private); in lz4_compress_pages() 286 cc->clen = len; in lz4_compress_pages() 295 dic->clen, dic->rlen); in lz4_decompress_pages() 363 cc->clen in zstd_init_compress_ctx() [all...] |
/kernel/linux/linux-6.6/fs/ntfs3/ |
H A D | attrib.c | 97 CLST vcn_next, vcn0 = vcn, lcn, clen, dn = 0; in run_deallocate_ex() local 103 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in run_deallocate_ex() 111 if (clen > len) in run_deallocate_ex() 112 clen = len; in run_deallocate_ex() 114 if (!clen) { in run_deallocate_ex() 121 /* mark bitmap range [lcn + clen) as free and trim clusters. */ in run_deallocate_ex() 122 mark_as_free_ex(sbi, lcn, clen, trim); in run_deallocate_ex() 124 dn += clen; in run_deallocate_ex() 127 len -= clen; in run_deallocate_ex() 131 vcn_next = vcn + clen; in run_deallocate_ex() 882 attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn, CLST *len, bool *new, bool zero) attr_data_get_block() argument 1350 CLST lcn, clen; attr_load_runs_range() local 1522 CLST clen, lcn, vcn, alen, slen, vcn_next; attr_is_frame_compressed() local [all...] |
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | compress.c | 185 cc->clen = lzo1x_worst_compress(PAGE_SIZE << cc->log_cluster_size); in lzo_init_compress_ctx() 200 &cc->clen, cc->private); in lzo_compress_pages() 213 ret = lzo1x_decompress_safe(dic->cbuf->cdata, dic->clen, in lzo_decompress_pages() 249 * we do not change cc->clen to LZ4_compressBound(inputsize) to in lz4_init_compress_ctx() 253 cc->clen = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in lz4_init_compress_ctx() 268 cc->clen, cc->private); in lz4_compress_pages() 272 cc->clen = len; in lz4_compress_pages() 281 dic->clen, dic->rlen); in lz4_decompress_pages() 336 cc->clen = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in zstd_init_compress_ctx() 387 cc->clen in zstd_compress_pages() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | omap-aes-gcm.c | 45 int alen, clen, i, ret = 0, nsg; in omap_aes_gcm_done_task() local 49 clen = ALIGN(dd->total, AES_BLOCK_SIZE); in omap_aes_gcm_done_task() 73 omap_crypto_cleanup(&dd->in_sgl[nsg], NULL, 0, clen, in omap_aes_gcm_done_task() 91 int alen, clen, cryptlen, assoclen, ret; in omap_aes_gcm_copy_buffers() local 108 clen = ALIGN(cryptlen, AES_BLOCK_SIZE); in omap_aes_gcm_copy_buffers() 168 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers() 169 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | vio.c | 299 int err, tlen, clen; in vio_create_one() local 320 compat = mdesc_get_property(hp, mp, "device-type", &clen); in vio_create_one() 322 clen = 0; in vio_create_one() 323 } else if (clen > VIO_MAX_COMPAT_LEN) { in vio_create_one() 325 clen, type); in vio_create_one() 338 memcpy(vdev->compat, compat, clen); in vio_create_one() 341 vdev->compat_len = clen; in vio_create_one()
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | vio.c | 297 int err, tlen, clen; in vio_create_one() local 318 compat = mdesc_get_property(hp, mp, "device-type", &clen); in vio_create_one() 320 clen = 0; in vio_create_one() 321 } else if (clen > VIO_MAX_COMPAT_LEN) { in vio_create_one() 323 clen, type); in vio_create_one() 336 memcpy(vdev->compat, compat, clen); in vio_create_one() 339 vdev->compat_len = clen; in vio_create_one()
|