/net/sunrpc/xprtrdma/ |
D | svc_rdma_sendto.c | 362 unsigned int remaining) in xdr_encode_write_chunk() argument 380 if (remaining >= seg_len) { in xdr_encode_write_chunk() 383 remaining -= seg_len; in xdr_encode_write_chunk() 386 *dst = cpu_to_be32(remaining); in xdr_encode_write_chunk() 387 remaining = 0; in xdr_encode_write_chunk() 553 unsigned int remaining; in svc_rdma_pull_up_needed() local 557 remaining = xdr->page_len; in svc_rdma_pull_up_needed() 558 while (remaining) { in svc_rdma_pull_up_needed() 560 remaining -= min_t(u32, PAGE_SIZE - pageoff, in svc_rdma_pull_up_needed() 561 remaining); in svc_rdma_pull_up_needed() [all …]
|
D | rpc_rdma.c | 139 unsigned int count, remaining, offset; in rpcrdma_args_inline() local 145 remaining = xdr->page_len; in rpcrdma_args_inline() 148 while (remaining) { in rpcrdma_args_inline() 149 remaining -= min_t(unsigned int, in rpcrdma_args_inline() 150 PAGE_SIZE - offset, remaining); in rpcrdma_args_inline() 222 u32 remaining, page_offset; in rpcrdma_convert_kvec() local 227 remaining = vec->iov_len; in rpcrdma_convert_kvec() 228 while (remaining) { in rpcrdma_convert_kvec() 231 seg->mr_len = min_t(u32, PAGE_SIZE - page_offset, remaining); in rpcrdma_convert_kvec() 232 remaining -= seg->mr_len; in rpcrdma_convert_kvec() [all …]
|
D | svc_rdma_rw.c | 367 unsigned int remaining, in svc_rdma_pagelist_to_sg() argument 379 info->wi_next_off += remaining; in svc_rdma_pagelist_to_sg() 383 sge_bytes = min_t(unsigned int, remaining, in svc_rdma_pagelist_to_sg() 387 remaining -= sge_bytes; in svc_rdma_pagelist_to_sg() 392 } while (remaining); in svc_rdma_pagelist_to_sg() 405 unsigned int remaining) in svc_rdma_build_writes() argument 427 write_len = min(remaining, seg_length - info->wi_seg_off); in svc_rdma_build_writes() 451 remaining -= write_len; in svc_rdma_build_writes() 452 } while (remaining); in svc_rdma_build_writes()
|
/net/sctp/ |
D | chunk.c | 152 size_t len, first_len, max_data, remaining; in sctp_datamsg_from_user() local 238 for (remaining = msg_len; remaining; remaining -= len) { in sctp_datamsg_from_user() 241 if (remaining == msg_len) { in sctp_datamsg_from_user() 250 if (len >= remaining) { in sctp_datamsg_from_user() 252 len = remaining; in sctp_datamsg_from_user()
|
/net/ipv4/ |
D | tcp_timer.c | 30 s32 remaining; in tcp_clamp_rto_to_user_timeout() local 36 remaining = icsk->icsk_user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout() 37 if (remaining <= 0) in tcp_clamp_rto_to_user_timeout() 40 return min_t(u32, icsk->icsk_rto, msecs_to_jiffies(remaining)); in tcp_clamp_rto_to_user_timeout() 46 u32 remaining; in tcp_clamp_probe0_to_user_timeout() local 55 remaining = msecs_to_jiffies(icsk->icsk_user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout() 56 remaining = max_t(u32, remaining, TCP_TIMEOUT_MIN); in tcp_clamp_probe0_to_user_timeout() 58 return min_t(u32, remaining, when); in tcp_clamp_probe0_to_user_timeout()
|
D | tcp_recovery.c | 88 s32 remaining; in tcp_rack_detect_loss() local 103 remaining = tcp_rack_skb_timeout(tp, skb, reo_wnd); in tcp_rack_detect_loss() 104 if (remaining <= 0) { in tcp_rack_detect_loss() 109 *reo_timeout = max_t(u32, *reo_timeout, remaining); in tcp_rack_detect_loss()
|
D | metrics.c | 16 int remaining; in ip_metrics_convert() local 21 nla_for_each_attr(nla, fc_mx, fc_mx_len, remaining) { in ip_metrics_convert()
|
D | tcp_output.c | 556 unsigned int *remaining) in smc_set_option() argument 561 if (*remaining >= TCPOLEN_EXP_SMC_BASE_ALIGNED) { in smc_set_option() 563 *remaining -= TCPOLEN_EXP_SMC_BASE_ALIGNED; in smc_set_option() 573 unsigned int *remaining) in smc_set_option_cond() argument 578 if (*remaining >= TCPOLEN_EXP_SMC_BASE_ALIGNED) { in smc_set_option_cond() 580 *remaining -= TCPOLEN_EXP_SMC_BASE_ALIGNED; in smc_set_option_cond() 595 unsigned int remaining = MAX_TCP_OPTION_SPACE; in tcp_syn_options() local 605 remaining -= TCPOLEN_MD5SIG_ALIGNED; in tcp_syn_options() 620 remaining -= TCPOLEN_MSS_ALIGNED; in tcp_syn_options() 626 remaining -= TCPOLEN_TSTAMP_ALIGNED; in tcp_syn_options() [all …]
|
D | inet_hashtables.c | 698 u32 remaining, offset; in __inet_hash_connect() local 714 remaining = high - low; in __inet_hash_connect() 715 if (likely(remaining > 1)) in __inet_hash_connect() 716 remaining &= ~1U; in __inet_hash_connect() 723 offset %= remaining; in __inet_hash_connect() 731 for (i = 0; i < remaining; i += 2, port += 2) { in __inet_hash_connect() 733 port -= remaining; in __inet_hash_connect() 772 if ((offset & 1) && remaining > 1) in __inet_hash_connect()
|
D | fib_semantics.c | 644 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining, in fib_count_nexthops() argument 649 while (rtnh_ok(rtnh, remaining)) { in fib_count_nexthops() 651 rtnh = rtnh_next(rtnh, &remaining); in fib_count_nexthops() 655 if (remaining > 0) { in fib_count_nexthops() 679 int remaining, struct fib_config *cfg, in fib_get_nhs() argument 692 if (!rtnh_ok(rtnh, remaining)) { in fib_get_nhs() 755 rtnh = rtnh_next(rtnh, &remaining); in fib_get_nhs() 830 int remaining, struct fib_config *cfg, in fib_get_nhs() argument 869 int remaining; in fib_nh_match() local 922 remaining = cfg->fc_mp_len; in fib_nh_match() [all …]
|
D | inet_connection_sock.c | 186 u32 remaining, offset; in inet_csk_find_open_port() local 204 remaining = high - low; in inet_csk_find_open_port() 205 if (likely(remaining > 1)) in inet_csk_find_open_port() 206 remaining &= ~1U; in inet_csk_find_open_port() 208 offset = prandom_u32() % remaining; in inet_csk_find_open_port() 216 for (i = 0; i < remaining; i += 2, port += 2) { in inet_csk_find_open_port() 218 port -= remaining; in inet_csk_find_open_port()
|
D | tcp_ipv4.c | 439 s32 remaining; in tcp_v4_err() local 551 remaining = icsk->icsk_rto - in tcp_v4_err() 554 if (remaining > 0) { in tcp_v4_err() 556 remaining, TCP_RTO_MAX); in tcp_v4_err()
|
D | ipmr.c | 2650 int remaining = nla_len(nla), vifi = 0; in ipmr_nla_get_ttls() local 2652 while (rtnh_ok(rtnh, remaining)) { in ipmr_nla_get_ttls() 2656 rtnh = rtnh_next(rtnh, &remaining); in ipmr_nla_get_ttls() 2659 return remaining > 0 ? -EINVAL : vifi; in ipmr_nla_get_ttls()
|
D | fib_frontend.c | 740 int err, remaining; in rtm_to_fib_config() local 770 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) { in rtm_to_fib_config()
|
/net/tls/ |
D | tls_device_fallback.c | 240 int remaining; in fill_sg_in() local 270 remaining = *sync_size; in fill_sg_in() 271 for (i = 0; remaining > 0; i++) { in fill_sg_in() 278 remaining -= skb_frag_size(frag); in fill_sg_in() 280 if (remaining < 0) in fill_sg_in() 281 sg_in[i].length += remaining; in fill_sg_in()
|
/net/mac80211/ |
D | offchannel.c | 221 long remaining; in ieee80211_end_finished_rocs() local 226 remaining = roc->start_time + in ieee80211_end_finished_rocs() 234 if (roc->abort || roc->hw_begun || remaining <= 0) in ieee80211_end_finished_rocs() 237 remaining_dur_min = min(remaining_dur_min, remaining); in ieee80211_end_finished_rocs() 513 unsigned long remaining; in ieee80211_coalesce_hw_started_roc() local 524 remaining = cur_roc->start_time + in ieee80211_coalesce_hw_started_roc() 529 if (new_roc->duration > jiffies_to_msecs(remaining)) in ieee80211_coalesce_hw_started_roc()
|
/net/core/ |
D | lwtunnel.c | 177 int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining, in lwtunnel_valid_encap_type_attr() argument 186 while (rtnh_ok(rtnh, remaining)) { in lwtunnel_valid_encap_type_attr() 204 rtnh = rtnh_next(rtnh, &remaining); in lwtunnel_valid_encap_type_attr()
|
/net/dccp/ |
D | output.c | 220 long remaining; in dccp_wait_for_ccid() local 226 remaining = schedule_timeout(delay); in dccp_wait_for_ccid() 234 return remaining; in dccp_wait_for_ccid()
|
/net/sunrpc/ |
D | svc.c | 1708 size_t len, remaining; in svc_fill_symlink_pathname() local 1716 remaining = total; in svc_fill_symlink_pathname() 1722 remaining -= len; in svc_fill_symlink_pathname() 1725 if (remaining) { in svc_fill_symlink_pathname() 1726 len = min_t(size_t, remaining, PAGE_SIZE); in svc_fill_symlink_pathname()
|
D | svcsock.c | 291 static int svc_one_sock_name(struct svc_sock *svsk, char *buf, int remaining) in svc_one_sock_name() argument 300 len = snprintf(buf, remaining, "ipv4 %s %pI4 %d\n", in svc_one_sock_name() 307 len = snprintf(buf, remaining, "ipv6 %s %pI6 %d\n", in svc_one_sock_name() 314 len = snprintf(buf, remaining, "*unknown-%d*\n", in svc_one_sock_name() 318 if (len >= remaining) { in svc_one_sock_name()
|
D | svc_xprt.c | 1313 char *pos, int remaining) in svc_one_xprt_name() argument 1317 len = snprintf(pos, remaining, "%s %u\n", in svc_one_xprt_name() 1320 if (len >= remaining) in svc_one_xprt_name()
|
/net/mpls/ |
D | af_mpls.c | 837 int remaining = len; in mpls_count_nexthops() local 843 while (rtnh_ok(rtnh, remaining)) { in mpls_count_nexthops() 875 rtnh = rtnh_next(rtnh, &remaining); in mpls_count_nexthops() 879 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops() 888 int remaining = cfg->rc_mp_len; in mpls_nh_build_multi() local 899 if (!rtnh_ok(rtnh, remaining)) in mpls_nh_build_multi() 925 rtnh = rtnh_next(rtnh, &remaining); in mpls_nh_build_multi()
|
/net/wireless/ |
D | util.c | 721 int offset = 0, remaining; in ieee80211_amsdu_to_8023s() local 738 remaining = skb->len - offset; in ieee80211_amsdu_to_8023s() 739 if (subframe_len > remaining) in ieee80211_amsdu_to_8023s() 746 last = remaining <= subframe_len + padding; in ieee80211_amsdu_to_8023s()
|
/net/xfrm/ |
D | xfrm_compat.c | 292 int len, remaining; in xfrm_xlate64() local 301 nla_for_each_attr(nla, attrs, len, remaining) { in xfrm_xlate64()
|
/net/ipv6/ |
D | route.c | 5088 int remaining; in ip6_route_multipath_add() local 5100 remaining = cfg->fc_mp_len; in ip6_route_multipath_add() 5106 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_add() 5158 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_add() 5254 int remaining; in ip6_route_multipath_del() local 5258 remaining = cfg->fc_mp_len; in ip6_route_multipath_del() 5262 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_del() 5288 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_del()
|