/kernel/linux/linux-5.10/fs/ |
H A D | d_path.c | 11 static int prepend(char **buffer, int *buflen, const char *str, int namelen) in prepend() argument 13 *buflen -= namelen; in prepend() 14 if (*buflen < 0) in prepend() 24 * @buflen: allocated length of the buffer 38 static int prepend_name(char **buffer, int *buflen, const struct qstr *name) in prepend_name() argument 44 *buflen -= dlen + 1; in prepend_name() 45 if (*buflen < 0) in prepend_name() 63 * @buflen: pointer to buffer length 77 char **buffer, int *buflen) in prepend_path() 94 blen = *buflen; in prepend_path() 75 prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) prepend_path() argument 180 __d_path(const struct path *path, const struct path *root, char *buf, int buflen) __d_path() argument 197 d_absolute_path(const struct path *path, char *buf, int buflen) d_absolute_path() argument 217 path_with_deleted(const struct path *path, const struct path *root, char **buf, int *buflen) path_with_deleted() argument 231 prepend_unreachable(char **buffer, int *buflen) prepend_unreachable() argument 262 d_path(const struct path *path, char *buf, int buflen) d_path() argument 297 dynamic_dname(struct dentry *dentry, char *buffer, int buflen, const char *fmt, ...) dynamic_dname() argument 315 simple_dname(struct dentry *dentry, char *buffer, int buflen) simple_dname() argument 329 __dentry_path(struct dentry *d, char *buf, int buflen) __dentry_path() argument 374 dentry_path_raw(struct dentry *dentry, char *buf, int buflen) dentry_path_raw() argument 380 dentry_path(struct dentry *dentry, char *buf, int buflen) dentry_path() argument 445 int buflen = PATH_MAX; SYSCALL_DEFINE2() local [all...] |
/kernel/linux/linux-5.10/net/sunrpc/ |
H A D | addr.c | 29 char *buf, const int buflen) in rpc_ntop6_noscopeid() 40 return snprintf(buf, buflen, "::"); in rpc_ntop6_noscopeid() 48 return snprintf(buf, buflen, "::1"); in rpc_ntop6_noscopeid() 57 return snprintf(buf, buflen, "::ffff:%pI4", in rpc_ntop6_noscopeid() 63 return snprintf(buf, buflen, "%pI6c", addr); in rpc_ntop6_noscopeid() 67 char *buf, const size_t buflen) in rpc_ntop6() 74 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6() 89 if (unlikely(len >= buflen)) in rpc_ntop6() 99 char *buf, const int buflen) in rpc_ntop6_noscopeid() 105 char *buf, const size_t buflen) in rpc_ntop6() 28 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) rpc_ntop6_noscopeid() argument 66 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop6() argument 98 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) rpc_ntop6_noscopeid() argument 104 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop6() argument 112 rpc_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop4() argument 129 rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop() argument 142 rpc_pton4(const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton4() argument 161 rpc_parse_scope_id(struct net *net, const char *buf, const size_t buflen, const char *delim, struct sockaddr_in6 *sin6) rpc_parse_scope_id() argument 199 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton6() argument 222 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton6() argument 244 rpc_pton(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton() argument [all...] |
/kernel/linux/linux-6.6/net/sunrpc/ |
H A D | addr.c | 29 char *buf, const int buflen) in rpc_ntop6_noscopeid() 40 return snprintf(buf, buflen, "::"); in rpc_ntop6_noscopeid() 48 return snprintf(buf, buflen, "::1"); in rpc_ntop6_noscopeid() 57 return snprintf(buf, buflen, "::ffff:%pI4", in rpc_ntop6_noscopeid() 63 return snprintf(buf, buflen, "%pI6c", addr); in rpc_ntop6_noscopeid() 67 char *buf, const size_t buflen) in rpc_ntop6() 74 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6() 89 if (unlikely(len >= buflen)) in rpc_ntop6() 99 char *buf, const int buflen) in rpc_ntop6_noscopeid() 105 char *buf, const size_t buflen) in rpc_ntop6() 28 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) rpc_ntop6_noscopeid() argument 66 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop6() argument 98 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) rpc_ntop6_noscopeid() argument 104 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop6() argument 112 rpc_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop4() argument 129 rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop() argument 142 rpc_pton4(const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton4() argument 161 rpc_parse_scope_id(struct net *net, const char *buf, const size_t buflen, const char *delim, struct sockaddr_in6 *sin6) rpc_parse_scope_id() argument 199 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton6() argument 222 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton6() argument 244 rpc_pton(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton() argument [all...] |
/kernel/linux/linux-5.10/lib/crypto/ |
H A D | poly1305.c | 24 desc->buflen = 0; in poly1305_init_generic() 35 if (unlikely(desc->buflen)) { in poly1305_update_generic() 36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - 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 in poly1305_final_generic() [all...] |
/kernel/linux/linux-6.6/lib/crypto/ |
H A D | poly1305.c | 24 desc->buflen = 0; in poly1305_init_generic() 35 if (unlikely(desc->buflen)) { in poly1305_update_generic() 36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - 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 in poly1305_final_generic() [all...] |
H A D | blake2s.c | 26 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()
|
/kernel/linux/linux-5.10/arch/mips/crypto/ |
H A D | poly1305-glue.c | 27 dctx->buflen = 0; in poly1305_init_arch() 35 dctx->buflen = 0; in mips_poly1305_init() 75 if (unlikely(dctx->buflen)) { in mips_poly1305_update() 76 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in mips_poly1305_update() 78 memcpy(dctx->buf + dctx->buflen, src, bytes); in mips_poly1305_update() 81 dctx->buflen += bytes; in mips_poly1305_update() 83 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 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() [all...] |
/kernel/linux/linux-6.6/arch/mips/crypto/ |
H A D | poly1305-glue.c | 27 dctx->buflen = 0; in poly1305_init_arch() 35 dctx->buflen = 0; in mips_poly1305_init() 75 if (unlikely(dctx->buflen)) { in mips_poly1305_update() 76 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in mips_poly1305_update() 78 memcpy(dctx->buf + dctx->buflen, src, bytes); in mips_poly1305_update() 81 dctx->buflen += bytes; in mips_poly1305_update() 83 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 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() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | fwil.c | 196 char *buf, u32 buflen) in brcmf_create_iovar() 202 if ((len + datalen) > buflen) in brcmf_create_iovar() 221 u32 buflen; in brcmf_fil_iovar_data_set() local 229 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_set() 231 if (buflen) { in brcmf_fil_iovar_data_set() 233 buflen, true); in brcmf_fil_iovar_data_set() 249 u32 buflen; in brcmf_fil_iovar_data_get() local 253 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_get() 255 if (buflen) { in brcmf_fil_iovar_data_get() 257 buflen, fals in brcmf_fil_iovar_data_get() 195 brcmf_create_iovar(const char *name, const char *data, u32 datalen, char *buf, u32 buflen) brcmf_create_iovar() argument 295 brcmf_create_bsscfg(s32 bsscfgidx, const char *name, char *data, u32 datalen, char *buf, u32 buflen) brcmf_create_bsscfg() argument 345 u32 buflen; brcmf_fil_bsscfg_data_set() local 374 u32 buflen; brcmf_fil_bsscfg_data_get() local 420 brcmf_create_xtlv(const char *name, u16 id, char *data, u32 len, char *buf, u32 buflen) brcmf_create_xtlv() argument 446 u32 buflen; brcmf_fil_xtlv_data_set() local 474 u32 buflen; brcmf_fil_xtlv_data_get() local [all...] |
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | debugfs_netdev.c | 71 int buflen) \ 73 return scnprintf(buf, buflen, format_string, sdata->field); \ 87 char *buf, int buflen) \ 92 p += scnprintf(p, buflen + buf - p, "%.2x ", \ 95 p += scnprintf(p, buflen + buf - p, "\n"); \ 102 char *buf, int buflen) \ 104 return scnprintf(buf, buflen, "%d\n", atomic_read(&sdata->field));\ 110 int buflen) \ 112 return scnprintf(buf, buflen, "%pM\n", sdata->field); \ 118 char *buf, int buflen) \ 179 ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz() argument 195 ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_5ghz( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_5ghz() argument 218 ieee80211_if_fmt_hw_queues(const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_hw_queues() argument 275 ieee80211_if_fmt_smps(const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_smps() argument 285 ieee80211_if_parse_smps(struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_smps() argument 303 ieee80211_if_parse_tkip_mic_test( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_tkip_mic_test() argument 369 ieee80211_if_parse_beacon_loss( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_beacon_loss() argument 381 ieee80211_if_fmt_uapsd_queues( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_uapsd_queues() argument 389 ieee80211_if_parse_uapsd_queues( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_uapsd_queues() argument 409 ieee80211_if_fmt_uapsd_max_sp_len( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_uapsd_max_sp_len() argument 417 ieee80211_if_parse_uapsd_max_sp_len( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_uapsd_max_sp_len() argument 437 ieee80211_if_fmt_tdls_wider_bw( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_tdls_wider_bw() argument 449 ieee80211_if_parse_tdls_wider_bw( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_tdls_wider_bw() argument 471 ieee80211_if_fmt_num_buffered_multicast( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_num_buffered_multicast() argument 479 ieee80211_if_fmt_aqm( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_aqm() argument 519 ieee80211_if_fmt_tsf( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_tsf() argument 530 ieee80211_if_parse_tsf( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_tsf() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/crypto/ |
H A D | poly1305-p10-glue.c | 42 dctx->buflen = 0; in crypto_poly1305_p10_init() 83 if (unlikely(dctx->buflen)) { in crypto_poly1305_p10_update() 84 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_p10_update() 85 memcpy(dctx->buf + dctx->buflen, src, bytes); 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 in crypto_poly1305_p10_final() [all...] |
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
H A D | poly1305-glue.c | 35 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() 85 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in neon_poly1305_do_update() 87 memcpy(dctx->buf + dctx->buflen, src, bytes); in neon_poly1305_do_update() 90 dctx->buflen += bytes; in neon_poly1305_do_update() 92 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 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() [all...] |
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | poly1305-glue.c | 39 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() 89 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in arm_poly1305_do_update() 91 memcpy(dctx->buf + dctx->buflen, src, bytes); in arm_poly1305_do_update() 94 dctx->buflen += bytes; in arm_poly1305_do_update() 96 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 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() [all...] |
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | poly1305-glue.c | 39 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() 89 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in arm_poly1305_do_update() 91 memcpy(dctx->buf + dctx->buflen, src, bytes); in arm_poly1305_do_update() 94 dctx->buflen += bytes; in arm_poly1305_do_update() 96 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 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() [all...] |
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | poly1305-glue.c | 35 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() 85 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in neon_poly1305_do_update() 87 memcpy(dctx->buf + dctx->buflen, src, bytes); in neon_poly1305_do_update() 90 dctx->buflen += bytes; in neon_poly1305_do_update() 92 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 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() [all...] |
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | debugfs_netdev.c | 70 int buflen) \ 72 return scnprintf(buf, buflen, format_string, data->field); \ 84 char *buf, int buflen) \ 89 p += scnprintf(p, buflen + buf - p, "%.2x ", \ 92 p += scnprintf(p, buflen + buf - p, "\n"); \ 99 char *buf, int buflen) \ 101 return scnprintf(buf, buflen, "%d\n", atomic_read(&data->field));\ 107 int buflen) \ 109 return scnprintf(buf, buflen, "%pM\n", data->field); \ 115 char *buf, int buflen) \ 200 ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz() argument 216 ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_5ghz( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_5ghz() argument 239 ieee80211_if_fmt_hw_queues(const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_hw_queues() argument 300 ieee80211_if_fmt_smps(const struct ieee80211_link_data *link, char *buf, int buflen) ieee80211_if_fmt_smps() argument 310 ieee80211_if_parse_smps(struct ieee80211_link_data *link, const char *buf, int buflen) ieee80211_if_parse_smps() argument 328 ieee80211_if_parse_tkip_mic_test( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_tkip_mic_test() argument 394 ieee80211_if_parse_beacon_loss( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_beacon_loss() argument 406 ieee80211_if_fmt_uapsd_queues( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_uapsd_queues() argument 414 ieee80211_if_parse_uapsd_queues( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_uapsd_queues() argument 434 ieee80211_if_fmt_uapsd_max_sp_len( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_uapsd_max_sp_len() argument 442 ieee80211_if_parse_uapsd_max_sp_len( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_uapsd_max_sp_len() argument 462 ieee80211_if_fmt_tdls_wider_bw( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_tdls_wider_bw() argument 474 ieee80211_if_parse_tdls_wider_bw( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_tdls_wider_bw() argument 496 ieee80211_if_fmt_num_buffered_multicast( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_num_buffered_multicast() argument 504 ieee80211_if_fmt_aqm( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_aqm() argument 544 ieee80211_if_fmt_tsf( const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_tsf() argument 555 ieee80211_if_parse_tsf( struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_tsf() argument 601 ieee80211_if_fmt_valid_links(const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_valid_links() argument 608 ieee80211_if_fmt_active_links(const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) ieee80211_if_fmt_active_links() argument 614 ieee80211_if_parse_active_links(struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) ieee80211_if_parse_active_links() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/storage/ |
H A D | protocol.c | 117 * Copy a buffer of length buflen to/from the srb's transfer buffer. 122 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() 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() 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_buffle in usb_stor_set_xfer_buf() 121 usb_stor_access_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir) usb_stor_access_xfer_buf() argument 169 usb_stor_set_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) usb_stor_set_xfer_buf() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/storage/ |
H A D | protocol.c | 117 * Copy a buffer of length buflen to/from the srb's transfer buffer. 122 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() 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() 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_buffle in usb_stor_set_xfer_buf() 121 usb_stor_access_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir) usb_stor_access_xfer_buf() argument 169 usb_stor_set_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) usb_stor_set_xfer_buf() argument [all...] |
/kernel/linux/linux-5.10/block/partitions/ |
H A D | ldm.c | 610 * @buflen: Size of the block of data 621 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument 625 if (!buffer || offset < 0 || base > buflen) { in ldm_relative() 630 if (base > buflen) in ldm_relative() 631 ldm_error("base (%d) > buflen (%d)", base, buflen); in ldm_relative() 634 if (base + buffer[base] >= buflen) { in ldm_relative() 635 ldm_error("base (%d) + buffer[base] (%d) >= buflen (%d)", base, in ldm_relative() 636 buffer[base], buflen); in ldm_relative() 679 * @buflen 692 ldm_get_vstr(const u8 *block, u8 *buffer, int buflen) ldm_get_vstr() argument 720 ldm_parse_cmp3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_cmp3() argument 771 ldm_parse_dgr3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dgr3() argument 815 ldm_parse_dgr4(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dgr4() argument 856 ldm_parse_dsk3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dsk3() argument 895 ldm_parse_dsk4(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dsk4() argument 928 ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_prt3() argument 1004 ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_vol5() argument [all...] |
/kernel/linux/linux-6.6/block/partitions/ |
H A D | ldm.c | 610 * @buflen: Size of the block of data 621 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument 625 if (!buffer || offset < 0 || base > buflen) { in ldm_relative() 630 if (base > buflen) in ldm_relative() 631 ldm_error("base (%d) > buflen (%d)", base, buflen); in ldm_relative() 634 if (base + buffer[base] >= buflen) { in ldm_relative() 635 ldm_error("base (%d) + buffer[base] (%d) >= buflen (%d)", base, in ldm_relative() 636 buffer[base], buflen); in ldm_relative() 679 * @buflen 692 ldm_get_vstr(const u8 *block, u8 *buffer, int buflen) ldm_get_vstr() argument 720 ldm_parse_cmp3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_cmp3() argument 770 ldm_parse_dgr3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dgr3() argument 811 ldm_parse_dgr4(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dgr4() argument 849 ldm_parse_dsk3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dsk3() argument 888 ldm_parse_dsk4(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dsk4() argument 921 ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_prt3() argument 995 ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_vol5() argument [all...] |
/kernel/liteos_a/drivers/char/perf/src/ |
H A D | perf.c | 60 static ssize_t PerfRead(struct file *filep, char *buffer, size_t buflen) in PerfRead() argument 67 char *records = LOS_MemAlloc(m_aucSysMem0, buflen); in PerfRead() 72 realLen = LOS_PerfDataRead(records, buflen); /* get sample data */ in PerfRead() 79 ret = LOS_CopyFromKernel((void *)buffer, buflen, (void *)records, realLen); in PerfRead() 91 static ssize_t PerfConfig(struct file *filep, const char *buffer, size_t buflen) in PerfConfig() argument 98 if (buflen != attrlen) { in PerfConfig() 99 PRINT_ERR("PerfConfigAttr is %d bytes not %d\n", attrlen, buflen); in PerfConfig() 103 ret = LOS_CopyToKernel(&attr, attrlen, buffer, buflen); in PerfConfig()
|
/kernel/liteos_a/drivers/char/trace/src/ |
H A D | trace.c | 62 static ssize_t TraceRead(struct file *filep, char *buffer, size_t buflen) in TraceRead() argument 65 ssize_t len = buflen; in TraceRead() 81 realLen = buflen < records->totalLen ? buflen : records->totalLen; in TraceRead() 82 ret = LOS_CopyFromKernel((void *)buffer, buflen, (void *)records, realLen); in TraceRead() 90 static ssize_t TraceWrite(struct file *filep, const char *buffer, size_t buflen) in TraceWrite() argument 97 if (buflen != infoLen) { in TraceWrite() 108 ret = LOS_CopyToKernel(info, infoLen, buffer, buflen); in TraceWrite()
|
/kernel/linux/linux-5.10/fs/9p/ |
H A D | vfs_dir.c | 67 * @buflen: Length in bytes of buffer to allocate 71 static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen) in v9fs_alloc_rdir_buf() argument 75 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf() 92 int buflen; in v9fs_dir_readdir() local 99 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir() 101 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir() 105 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 in v9fs_dir_readdir_dotl() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | d_path.c | 204 * @buflen: buffer length 211 * "buflen" should be positive. 217 char *buf, int buflen) in __d_path() 219 DECLARE_BUFFER(b, buf, buflen); in __d_path() 228 char *buf, int buflen) in d_absolute_path() 231 DECLARE_BUFFER(b, buf, buflen); in d_absolute_path() 253 * @buflen: buffer length 263 * "buflen" should be positive. 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() 215 __d_path(const struct path *path, const struct path *root, char *buf, int buflen) __d_path() argument 227 d_absolute_path(const struct path *path, char *buf, int buflen) d_absolute_path() argument 301 dynamic_dname(char *buffer, int buflen, const char *fmt, ...) dynamic_dname() argument 318 simple_dname(struct dentry *dentry, char *buffer, int buflen) simple_dname() argument 362 dentry_path_raw(const struct dentry *dentry, char *buf, int buflen) dentry_path_raw() argument 371 dentry_path(const struct dentry *dentry, char *buf, int buflen) dentry_path() argument [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_nat_ftp.c | 34 char *buffer, size_t buflen, in nf_nat_ftp_fmt_cmd() 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() 33 nf_nat_ftp_fmt_cmd(struct nf_conn *ct, enum nf_ct_ftp_type type, char *buffer, size_t buflen, union nf_inet_addr *addr, u16 port) nf_nat_ftp_fmt_cmd() argument
|