/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 | messenger_v2.c | 882 static int calc_sg_cnt(void *buf, int buf_len) in calc_sg_cnt() argument 886 if (!buf_len) in calc_sg_cnt() 889 sg_cnt = need_padding(buf_len) ? 1 : 0; in calc_sg_cnt() 892 sg_cnt += PAGE_ALIGN(buf_len) >> PAGE_SHIFT; in calc_sg_cnt() 920 static void init_sgs(struct scatterlist **sg, void *buf, int buf_len, u8 *pad) in init_sgs() argument 922 void *end = buf + buf_len; in init_sgs() 927 if (!buf_len) in init_sgs() 941 sg_set_buf(*sg, buf, buf_len); in init_sgs() 945 if (need_padding(buf_len)) { in init_sgs() 946 sg_set_buf(*sg, pad, padding_len(buf_len)); in init_sgs() [all …]
|
D | mon_client.c | 1352 void *buf, int *buf_len, in mon_get_auth_request() argument 1359 ret = ceph_auth_get_request(monc->auth, buf, *buf_len); in mon_get_auth_request() 1364 *buf_len = ret; in mon_get_auth_request() 1372 void *buf, int *buf_len, in mon_handle_auth_reply_more() argument 1380 buf, *buf_len); in mon_handle_auth_reply_more() 1385 *buf_len = ret; in mon_handle_auth_reply_more()
|
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 | 5580 void *buf, int *buf_len, in osd_get_auth_request() argument 5589 buf, buf_len); in osd_get_auth_request() 5600 void *buf, int *buf_len, in osd_handle_auth_reply_more() argument 5609 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 | 125 unsigned int buf_len; in set_ecdh_privkey() local 138 buf_len = crypto_ecdh_key_len(&p); in set_ecdh_privkey() 139 buf = kmalloc(buf_len, GFP_KERNEL); in set_ecdh_privkey() 145 err = crypto_ecdh_encode_key(buf, buf_len, &p); in set_ecdh_privkey() 149 err = crypto_kpp_set_secret(tfm, buf, buf_len); in set_ecdh_privkey()
|
/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/vmw_vsock/ |
D | virtio_transport.c | 249 int buf_len = VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE; in virtio_vsock_rx_fill() local 262 pkt->buf = kmalloc(buf_len, GFP_KERNEL); in virtio_vsock_rx_fill() 268 pkt->buf_len = buf_len; in virtio_vsock_rx_fill() 269 pkt->len = buf_len; in virtio_vsock_rx_fill() 274 sg_init_one(&buf, pkt->buf, buf_len); in virtio_vsock_rx_fill()
|
D | virtio_transport_common.c | 76 pkt->buf_len = len; in virtio_transport_alloc_pkt() 1069 if ((pkt->len <= last_pkt->buf_len - last_pkt->len) && in virtio_transport_recv_enqueue()
|
/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 | 228 size_t buf_len; in rpc_sysfs_xprt_dstaddr_store() local 248 buf_len = strcspn(buf, "\n"); in rpc_sysfs_xprt_dstaddr_store() 250 dst_addr = kstrndup(buf, buf_len, GFP_KERNEL); in rpc_sysfs_xprt_dstaddr_store() 260 xprt->addrlen = rpc_pton(xprt->xprt_net, buf, buf_len, saddr, in rpc_sysfs_xprt_dstaddr_store()
|
/net/tls/ |
D | tls_device_fallback.c | 319 int buf_len; in tls_enc_skb() local 325 buf_len = TLS_CIPHER_AES_GCM_128_SALT_SIZE + in tls_enc_skb() 330 buf = kmalloc(buf_len, GFP_ATOMIC); in tls_enc_skb()
|
/net/wireless/ |
D | scan.c | 267 u8 **pos, u8 *buf, size_t buf_len) in cfg80211_copy_elem_with_frags() argument 273 if (elem->datalen + 2 > buf + buf_len - *pos) in cfg80211_copy_elem_with_frags() 290 if (elem->datalen + 2 > buf + buf_len - *pos) in cfg80211_copy_elem_with_frags()
|