Home
last modified time | relevance | path

Searched refs:clen (Results 1 – 25 of 58) sorted by relevance

123

/linux-6.6.21/drivers/firmware/efi/libstub/
Dprintk.c31 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()
Dvsprintf.c245 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 …]
/linux-6.6.21/crypto/
Dtestmgr.h117 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 = 80,
15605 .clen = 31,
[all …]
/linux-6.6.21/fs/ocfs2/
Dreservations.c280 unsigned int clen, char *disk_bitmap) in ocfs2_resmap_restart() argument
288 resmap->m_bitmap_len = clen; in ocfs2_resmap_restart()
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 = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
539 &cstart, &clen); in __ocfs2_resv_find_window()
[all …]
Dreservations.h96 unsigned int clen, char *disk_bitmap);
123 int *cstart, int *clen);
142 u32 cstart, u32 clen);
Dextent_map.c868 u32 cpos, cend, clen, hole_size; in ocfs2_seek_data_hole_offset() local
894 clen = 0; in ocfs2_seek_data_hole_offset()
910 clen = hole_size; in ocfs2_seek_data_hole_offset()
913 clen = le16_to_cpu(rec.e_leaf_clusters) - in ocfs2_seek_data_hole_offset()
926 cpos += clen; in ocfs2_seek_data_hole_offset()
932 extlen = clen; in ocfs2_seek_data_hole_offset()
/linux-6.6.21/lib/crypto/
Daesgcm.c554 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 = sizeof(ctext8),
[all …]
/linux-6.6.21/mm/
Dearly_ioremap.c250 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()
/linux-6.6.21/fs/ubifs/
Dcrypto.c69 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()
/linux-6.6.21/drivers/net/ethernet/amd/
Ddeclance.c332 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 …]
/linux-6.6.21/fs/f2fs/
Dcompress.c184 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()
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 = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in zstd_init_compress_ctx()
414 cc->clen = outbuf.pos; in zstd_compress_pages()
[all …]
/linux-6.6.21/drivers/crypto/
Domap-aes-gcm.c48 int alen, clen, i, ret = 0, nsg; in omap_aes_gcm_done_task() local
52 clen = ALIGN(dd->total, AES_BLOCK_SIZE); in omap_aes_gcm_done_task()
76 omap_crypto_cleanup(&dd->in_sgl[nsg], NULL, 0, clen, in omap_aes_gcm_done_task()
94 int alen, clen, cryptlen, assoclen, ret; in omap_aes_gcm_copy_buffers() local
111 clen = ALIGN(cryptlen, AES_BLOCK_SIZE); in omap_aes_gcm_copy_buffers()
171 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers()
172 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
Dmxs-dcp.c316 unsigned int i, len, clen, tlen = 0; in mxs_dcp_aes_block_crypt() local
345 clen = out_off - actx->fill; in mxs_dcp_aes_block_crypt()
347 clen = len; in mxs_dcp_aes_block_crypt()
349 memcpy(in_buf + actx->fill, src_buf, clen); in mxs_dcp_aes_block_crypt()
350 len -= clen; in mxs_dcp_aes_block_crypt()
351 src_buf += clen; in mxs_dcp_aes_block_crypt()
352 actx->fill += clen; in mxs_dcp_aes_block_crypt()
630 unsigned int i, len, clen, oft = 0; in dcp_sha_req_to_buf() local
642 clen = DCP_BUF_SZ - actx->fill; in dcp_sha_req_to_buf()
644 clen = len; in dcp_sha_req_to_buf()
[all …]
/linux-6.6.21/drivers/acpi/
Dtables.c682 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()
/linux-6.6.21/fs/ntfs3/
Dattrib.c97 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()
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()
132 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in run_deallocate_ex()
[all …]
Dfsntfs.c452 bool ntfs_check_for_free_space(struct ntfs_sb_info *sbi, CLST clen, CLST mlen) in ntfs_check_for_free_space() argument
463 if (free < zlen + clen) in ntfs_check_for_free_space()
466 avail = free - (zlen + clen); in ntfs_check_for_free_space()
1133 CLST lcn, clen, vcn = vbo >> cluster_bits, vcn_next; in ntfs_sb_write_run() local
1137 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) in ntfs_sb_write_run()
1144 len = ((u64)clen << cluster_bits) - off; in ntfs_sb_write_run()
1157 vcn_next = vcn + clen; in ntfs_sb_write_run()
1158 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in ntfs_sb_write_run()
1169 len = ((u64)clen << cluster_bits); in ntfs_sb_write_run()
1201 CLST lcn, clen; in ntfs_read_run_nb() local
[all …]
Dfile.c120 CLST vcn, lcn, clen; in ntfs_extend_initialized_size() local
126 err = attr_data_get_block(ni, vcn, 1, &lcn, &clen, NULL, in ntfs_extend_initialized_size()
132 pos = ((loff_t)clen + vcn) << bits; in ntfs_extend_initialized_size()
610 CLST lcn, clen; in ntfs_fallocate() local
620 for (; vcn < cend_v; vcn += clen) { in ntfs_fallocate()
622 &lcn, &clen, &new, in ntfs_fallocate()
630 for (; vcn < cend; vcn += clen) { in ntfs_fallocate()
632 &lcn, &clen, &new, in ntfs_fallocate()
889 CLST lcn, clen; in ntfs_compress_write() local
896 &clen, NULL, false); in ntfs_compress_write()
[all …]
/linux-6.6.21/arch/sparc/kernel/
Dvio.c297 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()
/linux-6.6.21/net/mac80211/
Dscan.c73 int clen, srlen; in ieee80211_inform_bss() local
116 clen = IEEE80211_MAX_SUPP_RATES; in ieee80211_inform_bss()
117 if (clen > elems->supp_rates_len) in ieee80211_inform_bss()
118 clen = elems->supp_rates_len; in ieee80211_inform_bss()
119 memcpy(bss->supp_rates, elems->supp_rates, clen); in ieee80211_inform_bss()
120 srlen += clen; in ieee80211_inform_bss()
123 clen = IEEE80211_MAX_SUPP_RATES - srlen; in ieee80211_inform_bss()
124 if (clen > elems->ext_supp_rates_len) in ieee80211_inform_bss()
125 clen = elems->ext_supp_rates_len; in ieee80211_inform_bss()
127 clen); in ieee80211_inform_bss()
[all …]
/linux-6.6.21/drivers/tty/
Dn_gsm.c1678 static void gsm_control_modem(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_modem() argument
1683 int len = clen; in gsm_control_modem()
1684 int cl = clen; in gsm_control_modem()
1716 gsm_control_reply(gsm, CMD_MSC, data, clen); in gsm_control_modem()
1797 static void gsm_control_rls(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_rls() argument
1802 int len = clen; in gsm_control_rls()
1834 gsm_control_reply(gsm, CMD_RLS, data, clen); in gsm_control_rls()
1852 const u8 *data, int clen) in gsm_control_message() argument
1869 gsm_control_reply(gsm, CMD_TEST, data, clen); in gsm_control_message()
1885 gsm_control_modem(gsm, data, clen); in gsm_control_message()
[all …]
/linux-6.6.21/drivers/net/wireless/ath/carl9170/
Drx.c877 unsigned int tlen, wlen = 0, clen = 0; in carl9170_rx_stream() local
886 clen = le16_to_cpu(rx_stream->length); in carl9170_rx_stream()
887 wlen = ALIGN(clen, 4); in carl9170_rx_stream()
963 ar->rx_failover_missing = clen - tlen; in carl9170_rx_stream()
966 __carl9170_rx(ar, rx_stream->payload, clen); in carl9170_rx_stream()
985 "data:%d, rx:%d, pending:%d ]\n", clen, wlen, tlen, in carl9170_rx_stream()
/linux-6.6.21/include/linux/netfilter/
Dnf_conntrack_sip.h66 unsigned int clen; member
78 .clen = (__cname) ? sizeof(__cname) - 1 : 0, \
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c201 unsigned int blksize, clen, alen, plen; in mlx5e_ipsec_set_state() local
210 clen = ALIGN(skb->len + 2, blksize); in mlx5e_ipsec_set_state()
211 plen = max_t(u32, clen - skb->len, 4); in mlx5e_ipsec_set_state()
/linux-6.6.21/drivers/macintosh/
Dsmu.c918 unsigned int clen = min(len, chunk); in smu_read_datablock() local
930 params[6] = clen; in smu_read_datablock()
938 if (cmd.reply_len != clen) { in smu_read_datablock()
941 cmd.reply_len, clen); in smu_read_datablock()
944 len -= clen; in smu_read_datablock()
945 addr += clen; in smu_read_datablock()
946 dest += clen; in smu_read_datablock()
/linux-6.6.21/drivers/scsi/fcoe/
Dfcoe_transport.c314 unsigned long off, len, clen; in fcoe_fc_crc() local
325 clen = min(len, PAGE_SIZE - (off & ~PAGE_MASK)); in fcoe_fc_crc()
328 crc = crc32(crc, data + (off & ~PAGE_MASK), clen); in fcoe_fc_crc()
330 off += clen; in fcoe_fc_crc()
331 len -= clen; in fcoe_fc_crc()

123