| /net/ceph/ |
| A D | crypto.c | 150 const void *buf, unsigned int buf_len) in setup_sgtable() argument 156 unsigned int chunk_len = PAGE_ALIGN(off + buf_len); in setup_sgtable() 160 if (buf_len == 0) { in setup_sgtable() 183 unsigned int len = min(chunk_len - off, buf_len); in setup_sgtable() 194 buf_len -= len; in setup_sgtable() 196 WARN_ON(buf_len != 0); in setup_sgtable() 208 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument 218 WARN_ON(crypt_len > buf_len); in ceph_aes_crypt() 272 void *buf, int buf_len, int in_len, int *pout_len) in ceph_crypt() argument 279 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
|
| A D | auth.c | 165 void *buf, int buf_len) in build_request() argument 167 void *end = buf + buf_len; in build_request() 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 582 void *end = buf + *buf_len; in ceph_auth_handle_svc_reply_more() [all …]
|
| A 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()
|
| A D | auth_none.h | 18 int buf_len; member
|
| A D | crypto.h | 30 void *buf, int buf_len, int in_len, int *pout_len);
|
| A 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()
|
| A D | messenger_v2.c | 880 if (!buf_len) in calc_sg_cnt() 883 sg_cnt = need_padding(buf_len) ? 1 : 0; in calc_sg_cnt() 916 void *end = buf + buf_len; in init_sgs() 921 if (!buf_len) in init_sgs() 935 sg_set_buf(*sg, buf, buf_len); in init_sgs() 939 if (need_padding(buf_len)) { in init_sgs() 940 sg_set_buf(*sg, pad, padding_len(buf_len)); in init_sgs() 1183 buf = alloc_conn_buf(con, buf_len); in prepare_banner() 1192 WARN_ON(p != buf + buf_len); in prepare_banner() 1194 add_out_kvec(con, buf, buf_len); in prepare_banner() [all …]
|
| A 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()
|
| A D | osd_client.c | 5595 void *buf, int *buf_len, in osd_get_auth_request() argument 5604 buf, buf_len); in osd_get_auth_request() 5615 void *buf, int *buf_len, in osd_handle_auth_reply_more() argument 5624 buf, buf_len); in osd_handle_auth_reply_more()
|
| /net/ipv4/ |
| A D | cipso_ipv4.c | 1773 memset(buf, 0, buf_len); in cipso_v4_genopt() 1858 u32 buf_len; in cipso_v4_sock_setattr() local 1884 buf_len = ret_val; in cipso_v4_sock_setattr() 1890 opt_len = (buf_len + 3) & ~3; in cipso_v4_sock_setattr() 1942 u32 buf_len; in cipso_v4_req_setattr() local 1960 buf_len = ret_val; in cipso_v4_req_setattr() 1966 opt_len = (buf_len + 3) & ~3; in cipso_v4_req_setattr() 2187 buf_len = ret_val; in cipso_v4_skbuff_setattr() 2188 opt_len = (buf_len + 3) & ~3; in cipso_v4_skbuff_setattr() 2230 if (opt_len > buf_len) in cipso_v4_skbuff_setattr() [all …]
|
| A D | tcp_sigpool.c | 310 size_t tcp_sigpool_algo(unsigned int id, char *buf, size_t buf_len) in tcp_sigpool_algo() argument 315 return strscpy(buf, cpool[id].alg, buf_len); in tcp_sigpool_algo()
|
| /net/bluetooth/ |
| A 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()
|
| A D | sco.c | 1108 int buf_len; in sco_sock_getsockopt() local 1179 buf_len = 0; in sco_sock_getsockopt() 1208 buf_len += 1 + caps->len; in sco_sock_getsockopt() 1211 buf_len += sizeof(struct bt_codec); in sco_sock_getsockopt() 1215 buf_len += sizeof(struct bt_codecs); in sco_sock_getsockopt() 1216 if (buf_len > len) { in sco_sock_getsockopt() 1269 if (!err && put_user(buf_len, optlen)) in sco_sock_getsockopt()
|
| /net/ipv6/ |
| A D | calipso.c | 732 if (buf_len <= start + pad + CALIPSO_HDR_LEN) in calipso_genopt() 744 buf_len - start - pad - len); in calipso_genopt() 909 unsigned int start, end, buf_len, pad, hop_len; in calipso_opt_insert() local 924 buf_len = hop_len + start - end + CALIPSO_OPT_LEN_MAX_WITH_PAD; in calipso_opt_insert() 925 new = kzalloc(buf_len, GFP_ATOMIC); in calipso_opt_insert() 938 buf_len = start + ret_val; in calipso_opt_insert() 940 pad = ((buf_len & 4) + (end & 7)) & 7; in calipso_opt_insert() 941 calipso_pad_write((unsigned char *)new, buf_len, pad); in calipso_opt_insert() 942 buf_len += pad; in calipso_opt_insert() 946 buf_len += hop_len - end; in calipso_opt_insert() [all …]
|
| /net/netfilter/ipvs/ |
| A 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()
|
| A 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/tls/ |
| A D | tls_device_fallback.c | 311 int buf_len; in tls_enc_skb() local 320 buf_len = cipher_desc->salt + cipher_desc->iv + TLS_AAD_SPACE_SIZE + in tls_enc_skb() 322 buf = kmalloc(buf_len, GFP_ATOMIC); in tls_enc_skb()
|
| /net/sunrpc/ |
| A D | sysfs.c | 374 size_t buf_len; in rpc_sysfs_xprt_dstaddr_store() local 395 buf_len = strcspn(buf, "\n"); in rpc_sysfs_xprt_dstaddr_store() 397 dst_addr = kstrndup(buf, buf_len, GFP_KERNEL); in rpc_sysfs_xprt_dstaddr_store() 407 xprt->addrlen = rpc_pton(xprt->xprt_net, buf, buf_len, saddr, in rpc_sysfs_xprt_dstaddr_store()
|
| /net/wireless/ |
| A D | scan.c | 232 u8 **pos, u8 *buf, size_t buf_len) in cfg80211_copy_elem_with_frags() argument 238 if (elem->datalen + 2 > buf + buf_len - *pos) in cfg80211_copy_elem_with_frags() 255 if (elem->datalen + 2 > buf + buf_len - *pos) in cfg80211_copy_elem_with_frags() 2686 size_t buf_len; in cfg80211_defrag_mle() local 2694 buf_len = mle->datalen - 1; in cfg80211_defrag_mle() 2700 buf_len += elem->datalen; in cfg80211_defrag_mle() 2708 res->data, buf_len, in cfg80211_defrag_mle() 2743 buf_len = (u8 *)res->sta_prof[idx + 1] - in cfg80211_defrag_mle() 2746 buf_len = ielen + ie - (u8 *)elem; in cfg80211_defrag_mle() 2750 (u8 *)elem, buf_len, in cfg80211_defrag_mle() [all …]
|
| A D | nl80211.c | 18799 size_t buf_len; member 18814 msg = nlmsg_new(100 + event->buf_len + event->req_ies_len, gfp); in nl80211_send_mlme_event() 18826 nla_put(msg, NL80211_ATTR_FRAME, event->buf_len, event->buf) || in nl80211_send_mlme_event() 18866 .buf_len = len, in nl80211_send_rx_auth() 18880 .buf_len = data->len, in nl80211_send_rx_assoc() 18896 .buf_len = len, in nl80211_send_deauth() 18911 .buf_len = len, in nl80211_send_disassoc() 18928 .buf_len = len, in cfg80211_rx_unprot_mlme_mgmt() 19371 .buf_len = data->len, in nl80211_mlo_reconf_add_done()
|