Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 434) sorted by relevance

12345678910>>...18

/linux-6.15/net/sunrpc/
H A Daddr.c29 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument
40 return snprintf(buf, buflen, "::"); in rpc_ntop6_noscopeid()
48 return snprintf(buf, buflen, "::1"); in rpc_ntop6_noscopeid()
67 char *buf, const size_t buflen) in rpc_ntop6() argument
89 if (unlikely(len >= buflen)) in rpc_ntop6()
99 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument
105 char *buf, const size_t buflen) in rpc_ntop6() argument
133 return rpc_ntop4(sap, buf, buflen); in rpc_ntop()
170 if ((buf + buflen) == delim) in rpc_parse_scope_id()
179 len = (buf + buflen) - delim - 1; in rpc_parse_scope_id()
[all …]
/linux-6.15/arch/mips/crypto/
H A Dpoly1305-glue.c27 dctx->buflen = 0; in poly1305_init_arch()
35 dctx->buflen = 0; in mips_poly1305_init()
75 if (unlikely(dctx->buflen)) { in mips_poly1305_update()
81 dctx->buflen += bytes; in mips_poly1305_update()
85 dctx->buflen = 0; in mips_poly1305_update()
96 dctx->buflen = len; in mips_poly1305_update()
105 if (unlikely(dctx->buflen)) { in poly1305_update_arch()
111 dctx->buflen += bytes; in poly1305_update_arch()
116 dctx->buflen = 0; in poly1305_update_arch()
129 dctx->buflen = nbytes; in poly1305_update_arch()
[all …]
/linux-6.15/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dfwil.c193 u32 buflen; in brcmf_fil_iovar_data_set() local
203 if (buflen) { in brcmf_fil_iovar_data_set()
222 u32 buflen; in brcmf_fil_iovar_data_get() local
228 if (buflen) { in brcmf_fil_iovar_data_get()
299 u32 buflen; in brcmf_fil_bsscfg_data_set() local
310 if (buflen) { in brcmf_fil_bsscfg_data_set()
329 u32 buflen; in brcmf_fil_bsscfg_data_get() local
335 if (buflen) { in brcmf_fil_bsscfg_data_get()
380 u32 buflen; in brcmf_fil_xtlv_data_set() local
391 if (buflen) { in brcmf_fil_xtlv_data_set()
[all …]
/linux-6.15/lib/crypto/
H A Dpoly1305.c24 desc->buflen = 0; in poly1305_init_generic()
35 if (unlikely(desc->buflen)) { in poly1305_update_generic()
37 memcpy(desc->buf + desc->buflen, src, bytes); in poly1305_update_generic()
40 desc->buflen += bytes; in poly1305_update_generic()
42 if (desc->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_generic()
45 desc->buflen = 0; in poly1305_update_generic()
57 desc->buflen = nbytes; in poly1305_update_generic()
65 if (unlikely(desc->buflen)) { in poly1305_final_generic()
66 desc->buf[desc->buflen++] = 1; in poly1305_final_generic()
67 memset(desc->buf + desc->buflen, 0, in poly1305_final_generic()
[all …]
H A Dblake2s.c26 const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen; in blake2s_update()
31 memcpy(state->buf + state->buflen, in, fill); in blake2s_update()
33 state->buflen = 0; in blake2s_update()
43 memcpy(state->buf + state->buflen, in, inlen); in blake2s_update()
44 state->buflen += inlen; in blake2s_update()
52 memset(state->buf + state->buflen, 0, in blake2s_final()
53 BLAKE2S_BLOCK_SIZE - state->buflen); /* Padding */ in blake2s_final()
54 blake2s_compress(state, state->buf, 1, state->buflen); in blake2s_final()
/linux-6.15/arch/arm64/crypto/
H A Dpoly1305-glue.c35 dctx->buflen = 0; in poly1305_init_arch()
43 dctx->buflen = 0; in neon_poly1305_init()
84 if (unlikely(dctx->buflen)) { in neon_poly1305_do_update()
90 dctx->buflen += bytes; in neon_poly1305_do_update()
95 dctx->buflen = 0; in neon_poly1305_do_update()
106 dctx->buflen = len; in neon_poly1305_do_update()
128 if (unlikely(dctx->buflen)) { in poly1305_update_arch()
134 dctx->buflen += bytes; in poly1305_update_arch()
138 dctx->buflen = 0; in poly1305_update_arch()
164 dctx->buflen = nbytes; in poly1305_update_arch()
[all …]
H A Dsm4-ce-gcm-glue.c80 unsigned int buflen = 0; in gcm_calculate_auth_mac() local
92 if (n + buflen < GHASH_BLOCK_SIZE) { in gcm_calculate_auth_mac()
93 memcpy(&buffer[buflen], p, n); in gcm_calculate_auth_mac()
94 buflen += n; in gcm_calculate_auth_mac()
98 if (buflen) { in gcm_calculate_auth_mac()
101 memcpy(&buffer[buflen], p, l); in gcm_calculate_auth_mac()
116 buflen = n % GHASH_BLOCK_SIZE; in gcm_calculate_auth_mac()
117 if (buflen) in gcm_calculate_auth_mac()
118 memcpy(&buffer[0], p, buflen); in gcm_calculate_auth_mac()
126 if (buflen) { in gcm_calculate_auth_mac()
[all …]
/linux-6.15/arch/arm/crypto/
H A Dpoly1305-glue.c39 dctx->buflen = 0; in poly1305_init_arch()
47 dctx->buflen = 0; in arm_poly1305_init()
88 if (unlikely(dctx->buflen)) { in arm_poly1305_do_update()
94 dctx->buflen += bytes; in arm_poly1305_do_update()
99 dctx->buflen = 0; in arm_poly1305_do_update()
110 dctx->buflen = len; in arm_poly1305_do_update()
145 if (unlikely(dctx->buflen)) { in poly1305_update_arch()
151 dctx->buflen += bytes; in poly1305_update_arch()
156 dctx->buflen = 0; in poly1305_update_arch()
182 dctx->buflen = nbytes; in poly1305_update_arch()
[all …]
/linux-6.15/block/partitions/
H A Dldm.c623 if (!buffer || offset < 0 || base > buflen) { in ldm_relative()
628 if (base > buflen) in ldm_relative()
632 if (base + buffer[base] >= buflen) { in ldm_relative()
634 buffer[base], buflen); in ldm_relative()
697 if (length >= buflen) { in ldm_get_vstr()
699 length = buflen - 1; in ldm_get_vstr()
725 r_objid = ldm_relative (buffer, buflen, 0x18, 0); in ldm_parse_cmp3()
775 r_objid = ldm_relative (buffer, buflen, 0x18, 0); in ldm_parse_dgr3()
893 r_objid = ldm_relative (buffer, buflen, 0x18, 0); in ldm_parse_dsk4()
925 r_objid = ldm_relative(buffer, buflen, 0x18, 0); in ldm_parse_prt3()
[all …]
/linux-6.15/arch/powerpc/crypto/
H A Dpoly1305-p10-glue.c42 dctx->buflen = 0; in crypto_poly1305_p10_init()
83 if (unlikely(dctx->buflen)) { in crypto_poly1305_p10_update()
88 dctx->buflen += bytes; in crypto_poly1305_p10_update()
90 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_p10_update()
98 dctx->buflen = 0; in crypto_poly1305_p10_update()
126 dctx->buflen = srclen; in crypto_poly1305_p10_update()
140 if ((dctx->buflen)) { in crypto_poly1305_p10_final()
141 dctx->buf[dctx->buflen++] = 1; in crypto_poly1305_p10_final()
142 memset(dctx->buf + dctx->buflen, 0, in crypto_poly1305_p10_final()
143 POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_p10_final()
[all …]
/linux-6.15/drivers/usb/storage/
H A Dprotocol.c122 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() argument
141 while (sg_miter_next(&miter) && cnt < buflen) { in usb_stor_access_xfer_buf()
143 buflen - cnt); in usb_stor_access_xfer_buf()
170 unsigned int buflen, struct scsi_cmnd *srb) in usb_stor_set_xfer_buf() argument
175 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf()
176 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset, in usb_stor_set_xfer_buf()
178 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf()
179 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()
/linux-6.15/net/mac80211/
H A Ddebugfs_netdev.c172 int buflen) \
209 int buflen) \
318 char *buf, int buflen) in ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz() argument
433 return buflen; in ieee80211_if_parse_smps()
501 return buflen; in ieee80211_if_parse_tkip_mic_test()
513 return buflen; in ieee80211_if_parse_beacon_loss()
541 return buflen; in ieee80211_if_parse_uapsd_queues()
569 return buflen; in ieee80211_if_parse_uapsd_max_sp_len()
597 return buflen; in ieee80211_if_parse_tdls_wider_bw()
631 buflen, in ieee80211_if_fmt_aqm()
[all …]
/linux-6.15/security/tomoyo/
H A Drealpath.c95 const int buflen) in tomoyo_get_absolute_path() argument
99 if (buflen >= 256) { in tomoyo_get_absolute_path()
101 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path()
106 buffer[buflen - 2] = '/'; in tomoyo_get_absolute_path()
107 buffer[buflen - 1] = '\0'; in tomoyo_get_absolute_path()
126 const int buflen) in tomoyo_get_dentry_path() argument
130 if (buflen >= 256) { in tomoyo_get_dentry_path()
131 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path()
136 buffer[buflen - 2] = '/'; in tomoyo_get_dentry_path()
137 buffer[buflen - 1] = '\0'; in tomoyo_get_dentry_path()
[all …]
/linux-6.15/net/netfilter/
H A Dnf_nat_ftp.c34 char *buffer, size_t buflen, in nf_nat_ftp_fmt_cmd() argument
40 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", in nf_nat_ftp_fmt_cmd()
49 return snprintf(buffer, buflen, "|1|%pI4|%u|", in nf_nat_ftp_fmt_cmd()
52 return snprintf(buffer, buflen, "|2|%pI6|%u|", in nf_nat_ftp_fmt_cmd()
55 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd()
76 unsigned int buflen; in nf_nat_ftp() local
95 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp()
97 if (!buflen) in nf_nat_ftp()
103 matchlen, buffer, buflen)) in nf_nat_ftp()
H A Dnf_nat_sip.c52 buffer, buflen, false)) in mangle_packet()
60 buffer, buflen)) in mangle_packet()
66 *datalen += buflen - matchlen; in mangle_packet()
103 unsigned int buflen; in map_addr() local
388 unsigned int buflen; in nf_nat_sip_expect() local
443 int buflen, c_len; in mangle_content_len() local
468 char *buffer, int buflen) in mangle_sdp_packet() argument
492 unsigned int buflen; in nf_nat_sdp_addr() local
510 unsigned int buflen; in nf_nat_sdp_port() local
529 unsigned int buflen; in nf_nat_sdp_session() local
[all …]
/linux-6.15/fs/
H A Dd_path.c217 char *buf, int buflen) in __d_path() argument
219 DECLARE_BUFFER(b, buf, buflen); in __d_path()
228 char *buf, int buflen) in d_absolute_path() argument
231 DECLARE_BUFFER(b, buf, buflen); in d_absolute_path()
265 char *d_path(const struct path *path, char *buf, int buflen) in d_path() argument
267 DECLARE_BUFFER(b, buf, buflen); in d_path()
311 if (sz > sizeof(temp) || sz > buflen) in dynamic_dname()
314 buffer += buflen - sz; in dynamic_dname()
320 DECLARE_BUFFER(b, buffer, buflen); in simple_dname()
364 DECLARE_BUFFER(b, buf, buflen); in dentry_path_raw()
[all …]
/linux-6.15/security/keys/
H A Ddh.c95 char __user *buffer, size_t buflen, in keyctl_dh_compute_kdf() argument
113 ret = buflen; in keyctl_dh_compute_kdf()
114 if (copy_to_user(buffer, outbuf, buflen) != 0) in keyctl_dh_compute_kdf()
123 char __user *buffer, size_t buflen, in __keyctl_dh_compute() argument
140 if (!params || (!buffer && buflen)) { in __keyctl_dh_compute()
157 if (buflen > KEYCTL_KDF_MAX_OUTPUT_LEN || in __keyctl_dh_compute()
227 if (buflen == 0) { in __keyctl_dh_compute()
230 } else if (outlen > buflen) { in __keyctl_dh_compute()
277 ret = keyctl_dh_compute_kdf(hash, buffer, buflen, outbuf, in __keyctl_dh_compute()
301 char __user *buffer, size_t buflen, in keyctl_dh_compute() argument
[all …]
/linux-6.15/fs/9p/
H A Dvfs_dir.c68 static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen) in v9fs_alloc_rdir_buf() argument
73 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf()
90 int buflen; in v9fs_dir_readdir() local
97 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir()
99 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir()
103 kvec.iov_len = buflen; in v9fs_dir_readdir()
110 iov_iter_kvec(&to, ITER_DEST, &kvec, 1, buflen); in v9fs_dir_readdir()
151 int buflen; in v9fs_dir_readdir_dotl() local
158 buflen = fid->clnt->msize - P9_READDIRHDRSZ; in v9fs_dir_readdir_dotl()
160 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir_dotl()
[all …]
/linux-6.15/crypto/
H A Dpoly1305_generic.c27 dctx->buflen = 0; in crypto_poly1305_init()
78 if (unlikely(dctx->buflen)) { in crypto_poly1305_update()
79 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
80 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update()
83 dctx->buflen += bytes; in crypto_poly1305_update()
85 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update()
88 dctx->buflen = 0; in crypto_poly1305_update()
99 dctx->buflen = srclen; in crypto_poly1305_update()
/linux-6.15/include/crypto/internal/
H A Dblake2b.h29 const size_t fill = BLAKE2B_BLOCK_SIZE - state->buflen; in __blake2b_update()
34 memcpy(state->buf + state->buflen, in, fill); in __blake2b_update()
36 state->buflen = 0; in __blake2b_update()
47 memcpy(state->buf + state->buflen, in, inlen); in __blake2b_update()
48 state->buflen += inlen; in __blake2b_update()
57 memset(state->buf + state->buflen, 0, in __blake2b_final()
58 BLAKE2B_BLOCK_SIZE - state->buflen); /* Padding */ in __blake2b_final()
59 (*compress)(state, state->buf, 1, state->buflen); in __blake2b_final()
/linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/
H A Ddebugfs.h14 #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ argument
20 char buf[buflen] = {}; \
29 #define _MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, buflen, argtype) \ argument
30 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
38 #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ argument
39 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
/linux-6.15/security/apparmor/
H A Dpath.c25 static int prepend(char **buffer, int buflen, const char *str, int namelen) in prepend() argument
27 buflen -= namelen; in prepend()
28 if (buflen < 0) in prepend()
95 int buflen = aa_g_path_max - isdir; in d_namespace_path() local
99 res = dentry_path(path->dentry, buf, buflen); in d_namespace_path()
122 res = __d_path(path, &root, buf, buflen); in d_namespace_path()
125 res = d_absolute_path(path, buf, buflen); in d_namespace_path()
140 res = dentry_path_raw(path->dentry, buf, buflen); in d_namespace_path()
/linux-6.15/drivers/media/test-drivers/visl/
H A Dvisl-dec.c58 *buflen -= len; in visl_print_ts_idx()
62 __kernel_size_t buflen, struct visl_run *run) in visl_get_ref_frames() argument
69 len = scnprintf(buf, buflen, header); in visl_get_ref_frames()
71 buflen -= len; in visl_get_ref_frames()
112 visl_print_ts_idx(&buf, &buflen, "last_ref_ts", in visl_get_ref_frames()
116 visl_print_ts_idx(&buf, &buflen, "alt_ref_ts", in visl_get_ref_frames()
135 visl_print_ts_idx(&buf, &buflen, "alt_ref_ts", in visl_get_ref_frames()
150 len = scnprintf(buf, buflen, entry, i, in visl_get_ref_frames()
158 buflen -= len; in visl_get_ref_frames()
172 len = scnprintf(buf, buflen, entry, i, in visl_get_ref_frames()
[all …]
/linux-6.15/fs/romfs/
H A Dstorage.c24 void *buf, size_t buflen) in romfs_mtd_read() argument
29 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read()
30 return (ret < 0 || rlen != buflen) ? -EIO : 0; in romfs_mtd_read()
104 void *buf, size_t buflen) in romfs_blk_read() argument
111 while (buflen > 0) { in romfs_blk_read()
113 segment = min_t(size_t, buflen, ROMBSIZE - offset); in romfs_blk_read()
120 buflen -= segment; in romfs_blk_read()
215 void *buf, size_t buflen) in romfs_dev_read() argument
220 if (pos >= limit || buflen > limit - pos) in romfs_dev_read()
225 return romfs_mtd_read(sb, pos, buf, buflen); in romfs_dev_read()
[all …]
/linux-6.15/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dtrans-gen2.c277 size_t buflen = sizeof(trans_pcie->rf_name); in iwl_pcie_get_rf_name() local
286 pos = scnprintf(buf, buflen, "JF"); in iwl_pcie_get_rf_name()
289 pos = scnprintf(buf, buflen, "GF"); in iwl_pcie_get_rf_name()
292 pos = scnprintf(buf, buflen, "GF4"); in iwl_pcie_get_rf_name()
295 pos = scnprintf(buf, buflen, "HR"); in iwl_pcie_get_rf_name()
298 pos = scnprintf(buf, buflen, "HR1"); in iwl_pcie_get_rf_name()
301 pos = scnprintf(buf, buflen, "HRCDB"); in iwl_pcie_get_rf_name()
304 pos = scnprintf(buf, buflen, "FM"); in iwl_pcie_get_rf_name()
309 pos = scnprintf(buf, buflen, "WHTC"); in iwl_pcie_get_rf_name()
311 pos = scnprintf(buf, buflen, "WH"); in iwl_pcie_get_rf_name()
[all …]

12345678910>>...18