Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 5 of 5) sorted by relevance

/net/dccp/ccids/lib/
Dpacket_history.c406 u32 sample = 0, in tfrc_rx_hist_sample_rtt() local
412 sample = SUB16(tfrc_rx_hist_rtt_prev_s(h)->tfrchrx_ccval, in tfrc_rx_hist_sample_rtt()
414 if (sample) in tfrc_rx_hist_sample_rtt()
415 sample = 4 / sample * in tfrc_rx_hist_sample_rtt()
434 sample = ktime_to_us(net_timedelta(tfrc_rx_hist_rtt_last_s(h)->tfrchrx_tstamp)); in tfrc_rx_hist_sample_rtt()
440 if (unlikely(sample > DCCP_SANE_RTT_MAX)) { in tfrc_rx_hist_sample_rtt()
441 DCCP_WARN("RTT sample %u too large, using max\n", sample); in tfrc_rx_hist_sample_rtt()
442 sample = DCCP_SANE_RTT_MAX; in tfrc_rx_hist_sample_rtt()
448 return sample; in tfrc_rx_hist_sample_rtt()
/net/dccp/
Dinput.c527 u32 sample = dp->dccps_options_received.dccpor_timestamp_echo; in dccp_rcv_respond_partopen_state_process() local
553 if (likely(sample)) { in dccp_rcv_respond_partopen_state_process()
554 long delta = dccp_timestamp() - sample; in dccp_rcv_respond_partopen_state_process()
/net/dccp/ccids/
Dccid3.c764 const u32 sample = tfrc_rx_hist_sample_rtt(&hc->rx_hist, skb); in ccid3_hc_rx_packet_recv() local
770 if (sample != 0) in ccid3_hc_rx_packet_recv()
771 hc->rx_rtt = tfrc_ewma(hc->rx_rtt, sample, 9); in ccid3_hc_rx_packet_recv()
/net/openvswitch/
Dactions.c396 static int sample(struct datapath *dp, struct sk_buff *skb, in sample() function
504 err = sample(dp, skb, a); in do_execute_actions()
/net/ipv4/
Dtcp_input.c461 static void tcp_rcv_rtt_update(struct tcp_sock *tp, u32 sample, int win_dep) in tcp_rcv_rtt_update() argument
464 long m = sample; in tcp_rcv_rtt_update()