/net/ceph/ |
D | crypto.c | 162 const void *buf, unsigned int buf_len) in setup_sgtable() argument 168 unsigned int chunk_len = PAGE_ALIGN(off + buf_len); in setup_sgtable() 172 if (buf_len == 0) { in setup_sgtable() 195 unsigned int len = min(chunk_len - off, buf_len); in setup_sgtable() 206 buf_len -= len; in setup_sgtable() 208 WARN_ON(buf_len != 0); in setup_sgtable() 220 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument 230 WARN_ON(crypt_len > buf_len); in ceph_aes_crypt() 284 void *buf, int buf_len, int in_len, int *pout_len) in ceph_crypt() argument 291 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
|
D | auth.c | 165 void *buf, int buf_len) in build_request() argument 167 void *end = buf + buf_len; in build_request() 427 int ceph_auth_get_request(struct ceph_auth_client *ac, void *buf, int buf_len) in ceph_auth_get_request() argument 430 void *end = buf + buf_len; in ceph_auth_get_request() 476 int reply_len, void *buf, int buf_len) in ceph_auth_handle_reply_more() argument 484 ret = build_request(ac, false, buf, buf_len); in ceph_auth_handle_reply_more() 549 int peer_type, void *buf, int *buf_len) in ceph_auth_get_authorizer() argument 551 void *end = buf + *buf_len; in ceph_auth_get_authorizer() 569 *buf_len = p - buf; in ceph_auth_get_authorizer() 580 void *buf, int *buf_len) in ceph_auth_handle_svc_reply_more() argument [all …]
|
D | auth_none.c | 55 au->buf_len = p - (void *)au->buf; in ceph_auth_none_build_authorizer() 56 dout("%s built authorizer len %d\n", __func__, au->buf_len); in ceph_auth_none_build_authorizer() 114 auth->authorizer_buf_len = au->buf_len; in ceph_auth_none_create_authorizer()
|
D | auth_none.h | 18 int buf_len; member
|
D | crypto.h | 31 void *buf, int buf_len, int in_len, int *pout_len);
|
D | mon_client.c | 1361 void *buf, int *buf_len, in mon_get_auth_request() argument 1368 ret = ceph_auth_get_request(monc->auth, buf, *buf_len); in mon_get_auth_request() 1373 *buf_len = ret; in mon_get_auth_request() 1381 void *buf, int *buf_len, in mon_handle_auth_reply_more() argument 1389 buf, *buf_len); in mon_handle_auth_reply_more() 1394 *buf_len = ret; in mon_handle_auth_reply_more()
|
D | messenger_v2.c | 880 static int calc_sg_cnt(void *buf, int buf_len) in calc_sg_cnt() argument 884 if (!buf_len) in calc_sg_cnt() 887 sg_cnt = need_padding(buf_len) ? 1 : 0; in calc_sg_cnt() 890 sg_cnt += PAGE_ALIGN(buf_len) >> PAGE_SHIFT; in calc_sg_cnt() 918 static void init_sgs(struct scatterlist **sg, void *buf, int buf_len, u8 *pad) in init_sgs() argument 920 void *end = buf + buf_len; in init_sgs() 925 if (!buf_len) in init_sgs() 939 sg_set_buf(*sg, buf, buf_len); in init_sgs() 943 if (need_padding(buf_len)) { in init_sgs() 944 sg_set_buf(*sg, pad, padding_len(buf_len)); in init_sgs() [all …]
|
D | auth_x.c | 58 int buf_len, int plaintext_len) in ceph_x_encrypt() argument 67 ret = ceph_crypt(secret, true, buf + sizeof(u32), buf_len - sizeof(u32), in ceph_x_encrypt()
|
D | osd_client.c | 5650 void *buf, int *buf_len, in osd_get_auth_request() argument 5659 buf, buf_len); in osd_get_auth_request() 5670 void *buf, int *buf_len, in osd_handle_auth_reply_more() argument 5679 buf, buf_len); in osd_handle_auth_reply_more()
|
/net/ipv4/ |
D | cipso_ipv4.c | 1761 static int cipso_v4_genopt(unsigned char *buf, u32 buf_len, in cipso_v4_genopt() argument 1768 if (buf_len <= CIPSO_V4_HDR_LEN) in cipso_v4_genopt() 1776 memset(buf, 0, buf_len); in cipso_v4_genopt() 1782 buf_len - CIPSO_V4_HDR_LEN); in cipso_v4_genopt() 1788 buf_len - CIPSO_V4_HDR_LEN); in cipso_v4_genopt() 1794 buf_len - CIPSO_V4_HDR_LEN); in cipso_v4_genopt() 1800 buf_len - CIPSO_V4_HDR_LEN); in cipso_v4_genopt() 1836 u32 buf_len; in cipso_v4_sock_setattr() local 1852 buf_len = CIPSO_V4_OPT_LEN_MAX; in cipso_v4_sock_setattr() 1853 buf = kmalloc(buf_len, GFP_ATOMIC); in cipso_v4_sock_setattr() [all …]
|
/net/bluetooth/ |
D | ecdh_helper.c | 104 unsigned int buf_len; in set_ecdh_privkey() local 117 buf_len = crypto_ecdh_key_len(&p); in set_ecdh_privkey() 118 buf = kmalloc(buf_len, GFP_KERNEL); in set_ecdh_privkey() 124 err = crypto_ecdh_encode_key(buf, buf_len, &p); in set_ecdh_privkey() 128 err = crypto_kpp_set_secret(tfm, buf, buf_len); in set_ecdh_privkey()
|
D | sco.c | 1033 int buf_len; in sco_sock_getsockopt() local 1104 buf_len = 0; in sco_sock_getsockopt() 1133 buf_len += 1 + caps->len; in sco_sock_getsockopt() 1136 buf_len += sizeof(struct bt_codec); in sco_sock_getsockopt() 1140 buf_len += sizeof(struct bt_codecs); in sco_sock_getsockopt() 1141 if (buf_len > len) { in sco_sock_getsockopt() 1194 if (!err && put_user(buf_len, optlen)) in sco_sock_getsockopt()
|
/net/ipv6/ |
D | calipso.c | 723 static int calipso_genopt(unsigned char *buf, u32 start, u32 buf_len, in calipso_genopt() argument 735 if (buf_len <= start + pad + CALIPSO_HDR_LEN) in calipso_genopt() 747 buf_len - start - pad - len); in calipso_genopt() 912 unsigned int start, end, buf_len, pad, hop_len; in calipso_opt_insert() local 927 buf_len = hop_len + start - end + CALIPSO_OPT_LEN_MAX_WITH_PAD; in calipso_opt_insert() 928 new = kzalloc(buf_len, GFP_ATOMIC); in calipso_opt_insert() 934 ret_val = calipso_genopt((unsigned char *)new, start, buf_len, doi_def, in calipso_opt_insert() 941 buf_len = start + ret_val; in calipso_opt_insert() 943 pad = ((buf_len & 4) + (end & 7)) & 7; in calipso_opt_insert() 944 calipso_pad_write((unsigned char *)new, buf_len, pad); in calipso_opt_insert() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_pe_sip.c | 13 static const char *ip_vs_dbg_callid(char *buf, size_t buf_len, in ip_vs_dbg_callid() argument 18 size_t len = min3(max_len, callid_len, buf_len - *idx - 1); in ip_vs_dbg_callid()
|
D | ip_vs_ftp.c | 258 unsigned int buf_len; in ip_vs_ftp_out() local 362 buf_len = strlen(buf); in ip_vs_ftp_out() 378 buf, buf_len); in ip_vs_ftp_out()
|
/net/sunrpc/ |
D | sysfs.c | 237 size_t buf_len; in rpc_sysfs_xprt_dstaddr_store() local 258 buf_len = strcspn(buf, "\n"); in rpc_sysfs_xprt_dstaddr_store() 260 dst_addr = kstrndup(buf, buf_len, GFP_KERNEL); in rpc_sysfs_xprt_dstaddr_store() 270 xprt->addrlen = rpc_pton(xprt->xprt_net, buf, buf_len, saddr, in rpc_sysfs_xprt_dstaddr_store()
|
/net/tls/ |
D | tls_device_fallback.c | 335 int buf_len; in tls_enc_skb() local 352 buf_len = cipher_desc->salt + cipher_desc->iv + TLS_AAD_SPACE_SIZE + in tls_enc_skb() 354 buf = kmalloc(buf_len, GFP_ATOMIC); in tls_enc_skb()
|
/net/wireless/ |
D | scan.c | 270 u8 **pos, u8 *buf, size_t buf_len) in cfg80211_copy_elem_with_frags() argument 276 if (elem->datalen + 2 > buf + buf_len - *pos) in cfg80211_copy_elem_with_frags() 293 if (elem->datalen + 2 > buf + buf_len - *pos) in cfg80211_copy_elem_with_frags() 2576 size_t buf_len; in cfg80211_defrag_mle() local 2584 buf_len = mle->datalen - 1; in cfg80211_defrag_mle() 2590 buf_len += elem->datalen; in cfg80211_defrag_mle() 2593 res = kzalloc(struct_size(res, data, buf_len), gfp); in cfg80211_defrag_mle() 2598 res->data, buf_len, in cfg80211_defrag_mle() 2633 buf_len = (u8 *)res->sta_prof[idx + 1] - in cfg80211_defrag_mle() 2636 buf_len = ielen + ie - (u8 *)elem; in cfg80211_defrag_mle() [all …]
|