Home
last modified time | relevance | path

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

12345678910>>...17

/linux/net/sunrpc/
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/arch/mips/crypto/
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/arch/arm64/crypto/
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 …]
/linux/lib/crypto/
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 …]
/linux/net/mac80211/
A Ddebugfs_netdev.c70 int buflen) \
109 int buflen) \
293 return buflen; in ieee80211_if_parse_smps()
364 return buflen; in ieee80211_if_parse_tkip_mic_test()
376 return buflen; in ieee80211_if_parse_beacon_loss()
404 return buflen; in ieee80211_if_parse_uapsd_queues()
432 return buflen; in ieee80211_if_parse_uapsd_max_sp_len()
460 return buflen; in ieee80211_if_parse_tdls_wider_bw()
494 buflen, in ieee80211_if_fmt_aqm()
529 buflen, in ieee80211_if_fmt_airtime()
[all …]
/linux/arch/arm/crypto/
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/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dfwil.c221 u32 buflen; in brcmf_fil_iovar_data_set() local
231 if (buflen) { in brcmf_fil_iovar_data_set()
249 u32 buflen; in brcmf_fil_iovar_data_get() local
255 if (buflen) { in brcmf_fil_iovar_data_get()
345 u32 buflen; in brcmf_fil_bsscfg_data_set() local
356 if (buflen) { in brcmf_fil_bsscfg_data_set()
374 u32 buflen; in brcmf_fil_bsscfg_data_get() local
380 if (buflen) { in brcmf_fil_bsscfg_data_get()
446 u32 buflen; in brcmf_fil_xtlv_data_set() local
457 if (buflen) { in brcmf_fil_xtlv_data_set()
[all …]
/linux/block/partitions/
A Dldm.c625 if (!buffer || offset < 0 || base > buflen) { in ldm_relative()
630 if (base > buflen) in ldm_relative()
634 if (base + buffer[base] >= buflen) { in ldm_relative()
636 buffer[base], buflen); in ldm_relative()
699 if (length >= buflen) { in ldm_get_vstr()
701 length = buflen - 1; in ldm_get_vstr()
727 r_objid = ldm_relative (buffer, buflen, 0x18, 0); in ldm_parse_cmp3()
778 r_objid = ldm_relative (buffer, buflen, 0x18, 0); in ldm_parse_dgr3()
902 r_objid = ldm_relative (buffer, buflen, 0x18, 0); in ldm_parse_dsk4()
934 r_objid = ldm_relative(buffer, buflen, 0x18, 0); in ldm_parse_prt3()
[all …]
/linux/drivers/usb/storage/
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/fs/
A Dd_path.c216 char *buf, int buflen) in __d_path() argument
218 DECLARE_BUFFER(b, buf, buflen); in __d_path()
227 char *buf, int buflen) in d_absolute_path() argument
230 DECLARE_BUFFER(b, buf, buflen); in d_absolute_path()
264 char *d_path(const struct path *path, char *buf, int buflen) in d_path() argument
266 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/fs/9p/
A Dvfs_dir.c69 static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen) in v9fs_alloc_rdir_buf() argument
74 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf()
91 int buflen; in v9fs_dir_readdir() local
98 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir()
100 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir()
104 kvec.iov_len = buflen; in v9fs_dir_readdir()
111 iov_iter_kvec(&to, READ, &kvec, 1, buflen); in v9fs_dir_readdir()
152 int buflen; in v9fs_dir_readdir_dotl() local
159 buflen = fid->clnt->msize - P9_READDIRHDRSZ; in v9fs_dir_readdir_dotl()
161 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir_dotl()
[all …]
/linux/security/tomoyo/
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/net/netfilter/
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
455 int buflen, c_len; in mangle_content_len() local
480 char *buffer, int buflen) in mangle_sdp_packet() argument
504 unsigned int buflen; in nf_nat_sdp_addr() local
522 unsigned int buflen; in nf_nat_sdp_port() local
541 unsigned int buflen; in nf_nat_sdp_session() local
[all …]
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
108 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp()
110 if (!buflen) in nf_nat_ftp()
116 matchlen, buffer, buflen)) in nf_nat_ftp()
/linux/crypto/
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()
A Dnhpoly1305.c149 state->buflen = 0; in crypto_nhpoly1305_init()
163 if (state->buflen) { in crypto_nhpoly1305_update_helper()
164 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper()
165 memcpy(&state->buffer[state->buflen], src, bytes); in crypto_nhpoly1305_update_helper()
166 state->buflen += bytes; in crypto_nhpoly1305_update_helper()
167 if (state->buflen < NH_MESSAGE_UNIT) in crypto_nhpoly1305_update_helper()
171 state->buflen = 0; in crypto_nhpoly1305_update_helper()
185 state->buflen = srclen; in crypto_nhpoly1305_update_helper()
203 if (state->buflen) { in crypto_nhpoly1305_final_helper()
204 memset(&state->buffer[state->buflen], 0, in crypto_nhpoly1305_final_helper()
[all …]
/linux/include/crypto/internal/
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()
A Dblake2s.h36 const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen; in __blake2s_update()
41 memcpy(state->buf + state->buflen, in, fill); in __blake2s_update()
43 state->buflen = 0; in __blake2s_update()
54 memcpy(state->buf + state->buflen, in, inlen); in __blake2s_update()
55 state->buflen += inlen; in __blake2s_update()
62 memset(state->buf + state->buflen, 0, in __blake2s_final()
63 BLAKE2S_BLOCK_SIZE - state->buflen); /* Padding */ in __blake2s_final()
64 (*compress)(state, state->buf, 1, state->buflen); in __blake2s_final()
/linux/security/apparmor/
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/fs/romfs/
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/drivers/net/wireless/intel/iwlwifi/mvm/
A Ddebugfs.h13 #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ argument
19 char buf[buflen] = {}; \
28 #define _MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, buflen, argtype) \ argument
29 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
37 #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ argument
38 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
/linux/tools/lib/traceevent/
A Dtep_strerror.c30 enum tep_errno errnum, char *buf, size_t buflen) in tep_strerror() argument
35 if (!buflen) in tep_strerror()
39 int err = strerror_r(errnum, buf, buflen); in tep_strerror()
40 buf[buflen - 1] = 0; in tep_strerror()
50 snprintf(buf, buflen, "%s", msg); in tep_strerror()
/linux/security/keys/
A Ddh.c200 char __user *buffer, size_t buflen, in keyctl_dh_compute_kdf() argument
205 size_t outbuf_len = roundup(buflen, in keyctl_dh_compute_kdf()
218 ret = buflen; in keyctl_dh_compute_kdf()
219 if (copy_to_user(buffer, outbuf, buflen) != 0) in keyctl_dh_compute_kdf()
228 char __user *buffer, size_t buflen, in __keyctl_dh_compute() argument
245 if (!params || (!buffer && buflen)) { in __keyctl_dh_compute()
262 if (buflen > KEYCTL_KDF_MAX_OUTPUT_LEN || in __keyctl_dh_compute()
332 if (buflen == 0) { in __keyctl_dh_compute()
335 } else if (outlen > buflen) { in __keyctl_dh_compute()
411 char __user *buffer, size_t buflen, in keyctl_dh_compute() argument
[all …]
/linux/arch/x86/crypto/
A Dpoly1305_glue.c139 dctx->buflen = 0; in poly1305_init_arch()
173 if (unlikely(dctx->buflen)) { in poly1305_update_arch()
175 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_update_arch()
178 dctx->buflen += bytes; in poly1305_update_arch()
180 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_arch()
183 dctx->buflen = 0; in poly1305_update_arch()
197 dctx->buflen = srclen; in poly1305_update_arch()
205 if (unlikely(dctx->buflen)) { in poly1305_final_arch()
206 dctx->buf[dctx->buflen++] = 1; in poly1305_final_arch()
207 memset(dctx->buf + dctx->buflen, 0, in poly1305_final_arch()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
A Dtrans-gen2.c253 size_t buflen = sizeof(trans_pcie->rf_name); in iwl_pcie_get_rf_name() local
262 pos = scnprintf(buf, buflen, "JF"); in iwl_pcie_get_rf_name()
265 pos = scnprintf(buf, buflen, "GF"); in iwl_pcie_get_rf_name()
268 pos = scnprintf(buf, buflen, "GF4"); in iwl_pcie_get_rf_name()
271 pos = scnprintf(buf, buflen, "HR"); in iwl_pcie_get_rf_name()
274 pos = scnprintf(buf, buflen, "HR1"); in iwl_pcie_get_rf_name()
277 pos = scnprintf(buf, buflen, "HRCDB"); in iwl_pcie_get_rf_name()
290 pos += scnprintf(buf + pos, buflen - pos, " B3"); in iwl_pcie_get_rf_name()
293 pos += scnprintf(buf + pos, buflen - pos, " B5"); in iwl_pcie_get_rf_name()
296 pos += scnprintf(buf + pos, buflen - pos, in iwl_pcie_get_rf_name()
[all …]

Completed in 82 milliseconds

12345678910>>...17