/net/sunrpc/auth_gss/ |
D | gss_generic_token.c | 76 der_length_size( int length) in der_length_size() argument 78 if (length < (1<<7)) in der_length_size() 80 else if (length < (1<<8)) in der_length_size() 86 else if (length < (1<<16)) in der_length_size() 88 else if (length < (1<<24)) in der_length_size() 96 der_write_length(unsigned char **buf, int length) in der_write_length() argument 98 if (length < (1<<7)) { in der_write_length() 99 *(*buf)++ = (unsigned char) length; in der_write_length() 101 *(*buf)++ = (unsigned char) (der_length_size(length)+127); in der_write_length() 103 if (length >= (1<<24)) in der_write_length() [all …]
|
D | gss_krb5_crypto.c | 60 int length) in krb5_encrypt() argument 67 if (length % crypto_sync_skcipher_blocksize(tfm) != 0) in krb5_encrypt() 79 memcpy(out, in, length); in krb5_encrypt() 80 sg_init_one(sg, out, length); in krb5_encrypt() 84 skcipher_request_set_crypt(req, sg, sg, length, local_iv); in krb5_encrypt() 99 int length) in krb5_decrypt() argument 106 if (length % crypto_sync_skcipher_blocksize(tfm) != 0) in krb5_decrypt() 117 memcpy(out, in, length); in krb5_decrypt() 118 sg_init_one(sg, out, length); in krb5_decrypt() 122 skcipher_request_set_crypt(req, sg, sg, length, local_iv); in krb5_decrypt() [all …]
|
D | gss_rpc_xdr.c | 65 u32 length; in gssx_dec_buffer() local 72 length = be32_to_cpup(p); in gssx_dec_buffer() 73 p = xdr_inline_decode(xdr, length); in gssx_dec_buffer() 81 if (length > buf->len) in gssx_dec_buffer() 85 buf->data = kmemdup(p, length, GFP_KERNEL); in gssx_dec_buffer() 89 memcpy(buf->data, p, length); in gssx_dec_buffer() 91 buf->len = length; in gssx_dec_buffer() 171 u32 length; in gssx_dec_linux_creds() local 181 length = be32_to_cpup(p); in gssx_dec_linux_creds() 183 if (length > (3 + NGROUPS_MAX) * sizeof(u32)) in gssx_dec_linux_creds() [all …]
|
/net/sctp/ |
D | sm_make_chunk.c | 152 err.length = htons(len); in sctp_init_cause() 287 if (auth_hmacs->length) in sctp_make_init() 288 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init() 294 if (auth_chunks->length) in sctp_make_init() 295 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init() 336 sat.param_hdr.length = htons(SCTP_SAT_LEN(num_types)); in sctp_make_init() 348 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); in sctp_make_init() 358 aiparam.param_hdr.length = htons(sizeof(aiparam)); in sctp_make_init() 368 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init() 371 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init() [all …]
|
D | auth.c | 195 random_len = ntohs(random->param_hdr.length); in sctp_auth_make_key_vector() 196 hmacs_len = ntohs(hmacs->param_hdr.length); in sctp_auth_make_key_vector() 198 chunks_len = ntohs(chunks->param_hdr.length); in sctp_auth_make_key_vector() 542 n_elt = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_get_hmac() 594 n_elt = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_verify_hmac_id() 618 n_params = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_set_default_hmac() 644 if (!param || param->param_hdr.length == 0) in __sctp_auth_cid() 647 len = ntohs(param->param_hdr.length) - sizeof(struct sctp_paramhdr); in __sctp_auth_cid() 767 param_len = ntohs(p->param_hdr.length); in sctp_auth_ep_add_chunkid() 773 p->param_hdr.length = htons(param_len + 1); in sctp_auth_ep_add_chunkid() [all …]
|
/net/ethtool/ |
D | eeprom.c | 11 u32 length; member 19 u32 length; member 34 u32 length = request->length; in fallback_set_params() local 47 eeprom->len = length; in fallback_set_params() 80 reply->length = eeprom.len; in eeprom_fallback() 115 page_data.length = request->length; in eeprom_prepare_data() 119 page_data.data = kmalloc(page_data.length, GFP_KERNEL); in eeprom_prepare_data() 131 reply->length = ret; in eeprom_prepare_data() 160 request->length = nla_get_u32(tb[ETHTOOL_A_MODULE_EEPROM_LENGTH]); in eeprom_parse_request() 176 request->offset + request->length > ETH_MODULE_EEPROM_PAGE_LEN) { in eeprom_parse_request() [all …]
|
/net/wireless/ |
D | wext-priv.c | 27 if (wrqu->data.length < dev->wireless_handlers->num_private_args) { in iw_handler_get_private() 31 wrqu->data.length = dev->wireless_handlers->num_private_args; in iw_handler_get_private() 36 wrqu->data.length = dev->wireless_handlers->num_private_args; in iw_handler_get_private() 40 sizeof(struct iw_priv_args) * wrqu->data.length); in iw_handler_get_private() 67 int num = iwp->length; in adjust_priv_size() 147 if (!iwp->pointer && iwp->length != 0) in ioctl_private_iw_point() 150 if (iwp->length > (descr->set_args & IW_PRIV_SIZE_MASK)) in ioctl_private_iw_point() 160 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_private_iw_point() 232 iwp.length = iwp_compat->length; in compat_private_call() 239 iwp_compat->length = iwp.length; in compat_private_call()
|
D | wext-core.c | 512 if (wrqu->data.length > descr->max_tokens) { in wireless_send_event() 514 cmd, wrqu->data.length); in wireless_send_event() 517 if (wrqu->data.length < descr->min_tokens) { in wireless_send_event() 519 cmd, wrqu->data.length); in wireless_send_event() 524 extra_len = wrqu->data.length * descr->token_size; in wireless_send_event() 617 compat_wrqu.length = wrqu->data.length; in wireless_send_event() 676 wrqu->data.length = sizeof(struct iw_statistics); in iw_handler_get_iwstats() 739 if (iwp->length == descr->max_tokens + 1) in ioctl_standard_iw_point() 741 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point() 744 len = iwp->length * descr->token_size; in ioctl_standard_iw_point() [all …]
|
D | wext-spy.c | 52 if (wrqu->data.length > 0) { in iw_handler_set_spy() 56 for (i = 0; i < wrqu->data.length; i++) in iw_handler_set_spy() 68 spydata->spy_number = wrqu->data.length; in iw_handler_set_spy() 87 wrqu->data.length = spydata->spy_number; in iw_handler_get_spy() 170 wrqu.data.length = 1; in iw_send_thrspy_event()
|
D | wext-sme.c | 153 size_t len = data->length; in cfg80211_mgd_wext_siwessid() 229 data->length = ssid_elem->datalen; in cfg80211_mgd_wext_giwessid() 230 if (data->length > IW_ESSID_MAX_SIZE) in cfg80211_mgd_wext_giwessid() 233 memcpy(ssid, ssid_elem->data, data->length); in cfg80211_mgd_wext_giwessid() 238 data->length = wdev->wext.connect.ssid_len; in cfg80211_mgd_wext_giwessid() 239 memcpy(ssid, wdev->wext.connect.ssid, data->length); in cfg80211_mgd_wext_giwessid() 332 int ie_len = data->length, err; in cfg80211_wext_siwgenie()
|
/net/nsh/ |
D | nsh.c | 17 size_t length = nsh_hdr_len(pushed_nh); in nsh_push() local 29 if (skb_cow_head(skb, length) < 0) in nsh_push() 32 skb_push(skb, length); in nsh_push() 34 memcpy(nh, pushed_nh, length); in nsh_push() 36 skb_postpush_rcsum(skb, nh, length); in nsh_push() 50 size_t length; in nsh_pop() local 56 length = nsh_hdr_len(nh); in nsh_pop() 57 if (length < NSH_BASE_HDR_LEN) in nsh_pop() 60 if (!pskb_may_pull(skb, length)) in nsh_pop() 66 skb_pull_rcsum(skb, length); in nsh_pop()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_pcl.c | 70 u32 handle, u32 length, u64 offset) in pcl_set_read_segment() argument 76 segment->rs_length = length; in pcl_set_read_segment() 81 chunk->ch_length += length; in pcl_set_read_segment() 110 u32 position, handle, length; in pcl_alloc_call() local 115 &length, &offset); in pcl_alloc_call() 130 pcl_set_read_segment(rctxt, chunk, handle, length, offset); in pcl_alloc_call() 164 u32 position, handle, length; in pcl_alloc_read() local 169 &length, &offset); in pcl_alloc_read() 181 pcl_set_read_segment(rctxt, chunk, handle, length, offset); in pcl_alloc_read() 233 unsigned int offset, unsigned int length, in pcl_process_region() argument [all …]
|
D | svc_rdma_rw.c | 533 unsigned long length) in svc_rdma_pages_write() argument 538 length); in svc_rdma_pages_write() 834 unsigned int start, length; in svc_rdma_read_multiple_chunks() local 839 length = chunk->ch_position; in svc_rdma_read_multiple_chunks() 840 ret = svc_rdma_copy_inline_range(info, start, length); in svc_rdma_read_multiple_chunks() 853 start += length; in svc_rdma_read_multiple_chunks() 854 length = next->ch_position - info->ri_totalbytes; in svc_rdma_read_multiple_chunks() 855 ret = svc_rdma_copy_inline_range(info, start, length); in svc_rdma_read_multiple_chunks() 860 start += length; in svc_rdma_read_multiple_chunks() 861 length = head->rc_byte_len - start; in svc_rdma_read_multiple_chunks() [all …]
|
D | svc_rdma_sendto.c | 244 ctxt->sc_sges[i].length, in svc_rdma_send_ctxt_put() 248 ctxt->sc_sges[i].length); in svc_rdma_send_ctxt_put() 310 wr->sg_list[0].length, in svc_rdma_send() 373 u32 length; in svc_rdma_encode_write_segment() local 380 length = min_t(u32, *remaining, segment->rs_length); in svc_rdma_encode_write_segment() 381 *remaining -= length; in svc_rdma_encode_write_segment() 382 xdr_encode_rdma_segment(p, segment->rs_handle, length, in svc_rdma_encode_write_segment() 384 trace_svcrdma_encode_wseg(sctxt, segno, segment->rs_handle, length, in svc_rdma_encode_write_segment() 478 unsigned int length) in svc_rdma_encode_reply_chunk() argument 486 if (length > chunk->ch_length) in svc_rdma_encode_reply_chunk() [all …]
|
D | rpc_rdma.c | 547 ib_dma_unmap_page(rdmab_device(rb), sge->addr, sge->length, in rpcrdma_sendctx_unmap() 563 sge->length = len; in rpcrdma_prepare_hdr_sge() 566 ib_dma_sync_single_for_device(rdmab_device(rb), sge->addr, sge->length, in rpcrdma_prepare_hdr_sge() 584 sge->length = len; in rpcrdma_prepare_head_iov() 587 ib_dma_sync_single_for_device(rdmab_device(rb), sge->addr, sge->length, in rpcrdma_prepare_head_iov() 615 sge->length = len; in rpcrdma_prepare_pagelist() 649 sge->length = len; in rpcrdma_prepare_tail_iov() 1167 static int decode_rdma_segment(struct xdr_stream *xdr, u32 *length) in decode_rdma_segment() argument 1177 xdr_decode_rdma_segment(p, &handle, length, &offset); in decode_rdma_segment() 1178 trace_xprtrdma_decode_seg(handle, *length, offset); in decode_rdma_segment() [all …]
|
/net/ceph/ |
D | messenger.c | 716 size_t length) in ceph_msg_data_bio_cursor_init() argument 721 cursor->resid = min_t(size_t, length, data->bio_length); in ceph_msg_data_bio_cursor_init() 732 size_t *length) in ceph_msg_data_bio_next() argument 738 *length = bv.bv_len; in ceph_msg_data_bio_next() 777 size_t length) in ceph_msg_data_bvecs_cursor_init() argument 782 cursor->resid = min_t(size_t, length, data->bvec_pos.iter.bi_size); in ceph_msg_data_bvecs_cursor_init() 793 size_t *length) in ceph_msg_data_bvecs_next() argument 799 *length = bv.bv_len; in ceph_msg_data_bvecs_next() 835 size_t length) in ceph_msg_data_pages_cursor_init() argument 843 BUG_ON(!data->length); in ceph_msg_data_pages_cursor_init() [all …]
|
D | ceph_hash.c | 23 unsigned int ceph_str_hash_rjenkins(const char *str, unsigned int length) in ceph_str_hash_rjenkins() argument 30 len = length; in ceph_str_hash_rjenkins() 49 c = c + length; in ceph_str_hash_rjenkins() 94 unsigned int ceph_str_hash_linux(const char *str, unsigned int length) in ceph_str_hash_linux() argument 99 while (length--) { in ceph_str_hash_linux()
|
D | pagelist.c | 19 pl->length = 0; in ceph_pagelist_alloc() 80 memcpy(pl->mapped_tail + (pl->length & ~PAGE_MASK), in ceph_pagelist_append() 82 pl->length += bit; in ceph_pagelist_append() 91 memcpy(pl->mapped_tail + (pl->length & ~PAGE_MASK), buf, len); in ceph_pagelist_append() 92 pl->length += len; in ceph_pagelist_append()
|
/net/core/ |
D | skmsg.c | 57 sge->offset + sge->length == orig_offset) { in sk_msg_alloc() 58 sge->length += use; in sk_msg_alloc() 95 if (sge->length > off) in sk_msg_clone() 97 off -= sge->length; in sk_msg_clone() 105 sge_len = sge->length - off; in sk_msg_clone() 114 (sg_virt(sge) + off == sg_virt(sgd) + sgd->length)) { in sk_msg_clone() 115 sgd->length += sge_len; in sk_msg_clone() 144 if (bytes < sge->length) { in sk_msg_return_zero() 145 sge->length -= bytes; in sk_msg_return_zero() 151 sk_mem_uncharge(sk, sge->length); in sk_msg_return_zero() [all …]
|
/net/nfc/ |
D | llcp_commands.c | 81 u8 *tlv, length; in nfc_llcp_build_tlv() local 88 length = llcp_tlv_length[type]; in nfc_llcp_build_tlv() 89 if (length == 0 && value_length == 0) in nfc_llcp_build_tlv() 91 else if (length == 0) in nfc_llcp_build_tlv() 92 length = value_length; in nfc_llcp_build_tlv() 94 *tlv_length = 2 + length; in nfc_llcp_build_tlv() 95 tlv = kzalloc(2 + length, GFP_KERNEL); in nfc_llcp_build_tlv() 100 tlv[1] = length; in nfc_llcp_build_tlv() 101 memcpy(tlv + 2, value, length); in nfc_llcp_build_tlv() 196 u8 type, length, offset = 0; in nfc_llcp_parse_gb_tlv() local [all …]
|
/net/smc/ |
D | smc_clc.c | 55 if (ntohs(hdr->length) != in smc_clc_msg_prop_valid() 63 if (ntohs(hdr->length) != in smc_clc_msg_prop_valid() 93 ntohs(hdr->length) != SMCR_CLC_ACCEPT_CONFIRM_LEN) || in smc_clc_msg_acc_conf_valid() 95 ntohs(hdr->length) != SMCD_CLC_ACCEPT_CONFIRM_LEN)) in smc_clc_msg_acc_conf_valid() 99 ntohs(hdr->length) != SMCD_CLC_ACCEPT_CONFIRM_LEN_V2 && in smc_clc_msg_acc_conf_valid() 100 (ntohs(hdr->length) != SMCD_CLC_ACCEPT_CONFIRM_LEN_V2 + in smc_clc_msg_acc_conf_valid() 135 ((u8 *)pclc + ntohs(pclc->hdr.length) - sizeof(*trl)); in smc_clc_msg_hdr_valid() 143 ((u8 *)clc_v2 + ntohs(clc_v2->hdr.length) - in smc_clc_msg_hdr_valid() 148 if (ntohs(dclc->hdr.length) != sizeof(*dclc)) in smc_clc_msg_hdr_valid() 389 datlen = ntohs(clcm->length); in smc_clc_wait_msg() [all …]
|
/net/atm/ |
D | proc.c | 320 int length; in proc_dev_atm_read() local 329 length = -EINVAL; in proc_dev_atm_read() 331 length = dev->ops->proc_read(dev, pos, (char *)page); in proc_dev_atm_read() 332 if (length > count) in proc_dev_atm_read() 333 length = -EINVAL; in proc_dev_atm_read() 335 if (length >= 0) { in proc_dev_atm_read() 336 if (copy_to_user(buf, (char *)page, length)) in proc_dev_atm_read() 337 length = -EFAULT; in proc_dev_atm_read() 341 return length; in proc_dev_atm_read()
|
/net/netfilter/ |
D | nf_conntrack_ftp.c | 158 int length; in try_rfc959() local 161 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959() 162 if (length == 0) in try_rfc959() 168 return length; in try_rfc959() 229 int length; in try_eprt() local 255 length = try_number(data + 3, dlen - 3, array, 4, '.', delim); in try_eprt() 256 if (length != 0) in try_eprt() 261 length = get_ipv6_addr(data + 3, dlen - 3, in try_eprt() 265 if (length == 0) in try_eprt() 269 return get_port(data, 3 + length + 1, dlen, delim, &cmd->u.tcp.port); in try_eprt()
|
/net/ipv4/ |
D | ip_output.c | 966 void *from, int length, int transhdrlen, in __ip_append_data() argument 1003 if (cork->length + length > maxnonfragsize - fragheaderlen) { in __ip_append_data() 1014 length + fragheaderlen <= mtu && in __ip_append_data() 1020 if (flags & MSG_ZEROCOPY && length && sock_flag(sk, SOCK_ZEROCOPY)) { in __ip_append_data() 1021 uarg = msg_zerocopy_realloc(sk, length, skb_zcopy(skb)); in __ip_append_data() 1034 cork->length += length; in __ip_append_data() 1046 while (length > 0) { in __ip_append_data() 1049 if (copy < length) in __ip_append_data() 1070 datalen = length + fraggap; in __ip_append_data() 1084 if (datalen == length + fraggap) in __ip_append_data() [all …]
|
/net/ipv6/ |
D | ip6_output.c | 1442 cork->base.length = 0; in ip6_setup_cork() 1457 void *from, int length, int transhdrlen, in __ip6_append_data() argument 1515 if (cork->length + length > mtu - headersize && ipc6->dontfrag && in __ip6_append_data() 1528 if (cork->length + length > maxnonfragsize - headersize) { in __ip6_append_data() 1540 length <= mtu - headersize && in __ip6_append_data() 1545 if (flags & MSG_ZEROCOPY && length && sock_flag(sk, SOCK_ZEROCOPY)) { in __ip6_append_data() 1546 uarg = msg_zerocopy_realloc(sk, length, skb_zcopy(skb)); in __ip6_append_data() 1575 cork->length += length; in __ip6_append_data() 1579 while (length > 0) { in __ip6_append_data() 1581 copy = (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - skb->len; in __ip6_append_data() [all …]
|