/net/ipv4/ |
D | tcp_cubic.c | 158 s32 delta; in bictcp_cwnd_event() local 160 delta = now - tcp_sk(sk)->lsndtime; in bictcp_cwnd_event() 165 if (ca->epoch_start && delta > 0) { in bictcp_cwnd_event() 166 ca->epoch_start += delta; in bictcp_cwnd_event() 227 u32 delta, bic_target, max_cnt; in bictcp_update() local 290 delta = (cube_rtt_scale * offs * offs * offs) >> (10+3*BICTCP_HZ); in bictcp_update() 292 bic_target = ca->bic_origin_point - delta; in bictcp_update() 294 bic_target = ca->bic_origin_point + delta; in bictcp_update() 315 delta = (cwnd * scale) >> 3; in bictcp_update() 316 while (ca->ack_cnt > delta) { /* update tcp cwnd */ in bictcp_update() [all …]
|
D | tcp_offload.c | 62 __be32 delta; in tcp_gso_segment() local 112 delta = htonl(oldlen + (thlen + mss)); in tcp_gso_segment() 122 (__force u32)delta)); in tcp_gso_segment() 152 int delta; in tcp_gso_segment() local 157 delta = sum_truesize - gso_skb->truesize; in tcp_gso_segment() 161 if (likely(delta >= 0)) in tcp_gso_segment() 162 refcount_add(delta, &skb->sk->sk_wmem_alloc); in tcp_gso_segment() 164 WARN_ON_ONCE(refcount_sub_and_test(-delta, &skb->sk->sk_wmem_alloc)); in tcp_gso_segment() 167 delta = htonl(oldlen + (skb_tail_pointer(skb) - in tcp_gso_segment() 171 (__force u32)delta)); in tcp_gso_segment()
|
D | tcp_westwood.c | 86 static void westwood_filter(struct westwood *w, u32 delta) in westwood_filter() argument 90 w->bw_ns_est = w->bk / delta; in westwood_filter() 93 w->bw_ns_est = westwood_do_filter(w->bw_ns_est, w->bk / delta); in westwood_filter() 120 s32 delta = tcp_jiffies32 - w->rtt_win_sx; in westwood_update_window() local 140 if (w->rtt && delta > max_t(u32, w->rtt, TCP_WESTWOOD_RTT_MIN)) { in westwood_update_window() 141 westwood_filter(w, delta); in westwood_update_window()
|
D | tcp_lp.c | 269 u32 delta; in tcp_lp_pkts_acked() local 275 delta = now - tp->rx_opt.rcv_tsecr; in tcp_lp_pkts_acked() 276 if ((s32)delta > 0) in tcp_lp_pkts_acked() 277 lp->inference = 3 * delta; in tcp_lp_pkts_acked()
|
D | inet_fragment.c | 415 int delta; in inet_frag_reasm_prepare() local 438 delta = -head->truesize; in inet_frag_reasm_prepare() 444 delta += head->truesize; in inet_frag_reasm_prepare() 445 if (delta) in inet_frag_reasm_prepare() 446 add_frag_mem_limit(q->fqdir, delta); in inet_frag_reasm_prepare() 503 int delta; in inet_frag_reasm_finish() local 512 &delta)) { in inet_frag_reasm_finish()
|
D | tcp_illinois.c | 277 u32 delta; in tcp_illinois_cong_avoid() local 286 delta = (tp->snd_cwnd_cnt * ca->alpha) >> ALPHA_SHIFT; in tcp_illinois_cong_avoid() 287 if (delta >= tp->snd_cwnd) { in tcp_illinois_cong_avoid() 288 tp->snd_cwnd = min(tp->snd_cwnd + delta / tp->snd_cwnd, in tcp_illinois_cong_avoid()
|
D | inetpeer.c | 153 __u32 delta, ttl; in inet_peer_gc() local 171 delta = (__u32)jiffies - READ_ONCE(p->dtime); in inet_peer_gc() 173 if (delta < ttl || !refcount_dec_if_one(&p->refcnt)) in inet_peer_gc()
|
D | tcp_cong.c | 427 u32 delta = tp->snd_cwnd_cnt / w; in tcp_cong_avoid_ai() local 429 tp->snd_cwnd_cnt -= delta * w; in tcp_cong_avoid_ai() 430 tp->snd_cwnd += delta; in tcp_cong_avoid_ai()
|
/net/dccp/ccids/ |
D | ccid3.c | 95 u32 delta = ktime_us_delta(now, hc->tx_t_last_win_count); in ccid3_hc_tx_idle_rtt() local 97 return delta / hc->tx_rtt; in ccid3_hc_tx_idle_rtt() 175 u32 delta = ktime_us_delta(now, hc->tx_t_last_win_count), in ccid3_hc_tx_update_win_count() local 176 quarter_rtts = (4 * delta) / hc->tx_rtt; in ccid3_hc_tx_update_win_count() 591 s64 delta = 0; in ccid3_hc_rx_send_feedback() local 613 delta = ktime_us_delta(now, hc->rx_tstamp_last_feedback); in ccid3_hc_rx_send_feedback() 614 if (delta <= 0) in ccid3_hc_rx_send_feedback() 615 delta = 1; in ccid3_hc_rx_send_feedback() 616 hc->rx_x_recv = scaled_div32(hc->rx_bytes_recv, delta); in ccid3_hc_rx_send_feedback() 622 ccid3_pr_debug("Interval %lldusec, X_recv=%u, 1/p=%u\n", delta, in ccid3_hc_rx_send_feedback() [all …]
|
/net/dccp/ |
D | input.c | 551 long delta = dccp_timestamp() - sample; in dccp_rcv_respond_partopen_state_process() local 553 dp->dccps_syn_rtt = dccp_sample_rtt(sk, 10 * delta); in dccp_rcv_respond_partopen_state_process() 723 u32 dccp_sample_rtt(struct sock *sk, long delta) in dccp_sample_rtt() argument 726 delta -= dccp_sk(sk)->dccps_options_received.dccpor_elapsed_time * 10; in dccp_sample_rtt() 728 if (unlikely(delta <= 0)) { in dccp_sample_rtt() 729 DCCP_WARN("unusable RTT sample %ld, using min\n", delta); in dccp_sample_rtt() 732 if (unlikely(delta > DCCP_SANE_RTT_MAX)) { in dccp_sample_rtt() 733 DCCP_WARN("RTT sample %ld too large, using max\n", delta); in dccp_sample_rtt() 737 return delta; in dccp_sample_rtt()
|
D | dccp.h | 124 u64 delta = SUB48(seqno2, seqno1); in dccp_delta_seqno() local 126 return TO_SIGNED48(delta); in dccp_delta_seqno() 157 s64 delta = dccp_delta_seqno(s1, s2); in dccp_loss_count() local 159 WARN_ON(delta < 0); in dccp_loss_count() 160 delta -= ndp + 1; in dccp_loss_count() 162 return delta > 0 ? delta : 0; in dccp_loss_count() 326 u32 dccp_sample_rtt(struct sock *sk, long delta);
|
D | ackvec.c | 286 s64 delta; in dccp_ackvec_clear_state() local 296 delta = dccp_delta_seqno(av->av_tail_ackno, avr->avr_ack_ackno); in dccp_ackvec_clear_state() 297 if (delta < 0) in dccp_ackvec_clear_state() 303 eff_runlen = delta < avr->avr_ack_runlen ? delta : avr->avr_ack_runlen; in dccp_ackvec_clear_state()
|
D | timer.c | 261 u64 delta = (u64)ktime_us_delta(ktime_get_real(), dccp_timestamp_seed); in dccp_timestamp() local 263 do_div(delta, 10); in dccp_timestamp() 264 return delta; in dccp_timestamp()
|
/net/netfilter/ipvs/ |
D | ip_vs_app.c | 297 if (vseq->delta || vseq->previous_delta) { in vs_fix_seq() 299 th->seq = htonl(seq + vseq->delta); in vs_fix_seq() 301 __func__, vseq->delta); in vs_fix_seq() 324 if (vseq->delta || vseq->previous_delta) { in vs_fix_ack_seq() 327 if(after(ack_seq, vseq->init_seq+vseq->delta)) { in vs_fix_ack_seq() 328 th->ack_seq = htonl(ack_seq - vseq->delta); in vs_fix_ack_seq() 330 "(%d) from ack_seq\n", __func__, vseq->delta); in vs_fix_ack_seq() 352 vseq->previous_delta = vseq->delta; in vs_seq_update() 353 vseq->delta += diff; in vs_seq_update()
|
/net/sched/ |
D | sch_etf.c | 33 s32 delta; /* in ns */ member 67 if (qopt->delta < 0) { in validate_input_params() 131 next = ktime_sub_ns(skb->tstamp, q->delta); in reset_watchdog() 281 next = ktime_sub_ns(skb->tstamp, q->delta); in etf_dequeue_timesortedlist() 374 qopt->delta, qopt->clockid, in etf_init() 391 q->delta = qopt->delta; in etf_init() 476 opt.delta = q->delta; in etf_dump()
|
D | sch_pie.c | 336 s64 delta = 0; /* determines the change in probability */ in calculate_probability() local 382 delta += alpha * (u64)(qdelay - q->params.target); in calculate_probability() 383 delta += beta * (u64)(qdelay - qdelay_old); in calculate_probability() 388 if (delta > (s64)(MAX_PROB / (100 / 2)) && in calculate_probability() 390 delta = (MAX_PROB / 100) * 2; in calculate_probability() 398 delta += MAX_PROB / (100 / 2); in calculate_probability() 400 q->vars.prob += delta; in calculate_probability() 402 if (delta > 0) { in calculate_probability()
|
D | sch_codel.c | 260 codel_tdiff_t delta = q->vars.drop_next - codel_get_time(); in codel_dump_stats() local 262 if (delta >= 0) in codel_dump_stats() 263 st.drop_next = codel_time_to_us(delta); in codel_dump_stats() 265 st.drop_next = -codel_time_to_us(-delta); in codel_dump_stats()
|
/net/ipv6/ |
D | calipso.c | 975 unsigned int start, end, delta, pad, hop_len; in calipso_opt_del() local 988 delta = (end - start) & ~7; in calipso_opt_del() 989 *new = kzalloc(hop_len - delta, GFP_ATOMIC); in calipso_opt_del() 994 (*new)->hdrlen -= delta / 8; in calipso_opt_del() 1374 u32 old_hop_len, start = 0, end = 0, delta, size, pad; in calipso_skbuff_delattr() local 1395 delta = old_hop_len; in calipso_skbuff_delattr() 1399 delta = (end - start) & ~7; in calipso_skbuff_delattr() 1400 if (delta) in calipso_skbuff_delattr() 1401 old_hop->hdrlen -= delta / 8; in calipso_skbuff_delattr() 1407 if (delta) { in calipso_skbuff_delattr() [all …]
|
/net/tls/ |
D | tls_device_fallback.c | 198 int delta; in complete_skb() local 216 delta = nskb->truesize - skb->truesize; in complete_skb() 217 if (likely(delta < 0)) in complete_skb() 218 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc)); in complete_skb() 219 else if (delta) in complete_skb() 220 refcount_add(delta, &sk->sk_wmem_alloc); in complete_skb()
|
/net/bluetooth/ |
D | selftest.c | 202 ktime_t calltime, delta, rettime; in test_ecdh() local 239 delta = ktime_sub(rettime, calltime); in test_ecdh() 240 duration = (unsigned long long) ktime_to_ns(delta) >> 10; in test_ecdh()
|
/net/netfilter/ |
D | nft_limit.c | 31 s64 delta; in nft_limit_eval() local 40 delta = tokens - cost; in nft_limit_eval() 41 if (delta >= 0) { in nft_limit_eval() 42 limit->tokens = delta; in nft_limit_eval()
|
/net/rds/ |
D | recv.c | 89 int delta, __be16 port) in rds_recv_rcvbuf_delta() argument 93 if (delta == 0) in rds_recv_rcvbuf_delta() 96 rs->rs_rcv_bytes += delta; in rds_recv_rcvbuf_delta() 97 if (delta > 0) in rds_recv_rcvbuf_delta() 98 rds_stats_add(s_recv_bytes_added_to_socket, delta); in rds_recv_rcvbuf_delta() 100 rds_stats_add(s_recv_bytes_removed_from_socket, -delta); in rds_recv_rcvbuf_delta() 112 rds_sk_rcvbuf(rs), now_congested, delta); in rds_recv_rcvbuf_delta()
|
/net/mac80211/ |
D | rc80211_minstrel.c | 334 int delta; in minstrel_get_rate() local 359 delta = (mi->total_packets * sampling_ratio / 100) - in minstrel_get_rate() 365 if (delta < 0 || (!mrr_capable && prev_sample)) in minstrel_get_rate() 371 } else if (delta > mi->n_rates * 2) { in minstrel_get_rate() 381 mi->sample_packets += (delta - mi->n_rates * 2); in minstrel_get_rate()
|
D | led.c | 249 unsigned long traffic, delta; in tpt_trig_traffic() local 253 delta = traffic - tpt_trig->prev_traffic; in tpt_trig_traffic() 255 return DIV_ROUND_UP(delta, 1024 / 8); in tpt_trig_traffic()
|
/net/sunrpc/xprtrdma/ |
D | frwr_ops.c | 220 int max_qp_wr, depth, delta; in frwr_open() local 254 delta = RPCRDMA_MAX_DATA_SEGS - ia->ri_max_frwr_depth; in frwr_open() 257 delta -= ia->ri_max_frwr_depth; in frwr_open() 258 } while (delta > 0); in frwr_open()
|