Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 19 of 19) sorted by relevance

/net/ceph/
Dcrypto.c162 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()
Dauth.c165 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 …]
Dauth_none.c55 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()
Dauth_none.h18 int buf_len; member
Dcrypto.h31 void *buf, int buf_len, int in_len, int *pout_len);
Dmessenger_v2.c882 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 …]
Dmon_client.c1352 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()
Dauth_x.c58 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()
Dosd_client.c5580 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/
Dcipso_ipv4.c1761 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/
Decdh_helper.c125 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/
Dcalipso.c723 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/
Dvirtio_transport.c249 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()
Dvirtio_transport_common.c76 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/
Dip_vs_pe_sip.c13 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()
Dip_vs_ftp.c258 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/
Dsysfs.c228 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/
Dtls_device_fallback.c319 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/
Dscan.c267 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()