/net/mac80211/ |
D | rate.c | 303 static bool rate_idx_match_legacy_mask(struct ieee80211_tx_rate *rate, in rate_idx_match_legacy_mask() argument 309 for (j = rate->idx; j >= 0; j--) { in rate_idx_match_legacy_mask() 312 rate->idx = j; in rate_idx_match_legacy_mask() 318 for (j = rate->idx + 1; j < n_bitrates; j++) { in rate_idx_match_legacy_mask() 321 rate->idx = j; in rate_idx_match_legacy_mask() 328 static bool rate_idx_match_mcs_mask(struct ieee80211_tx_rate *rate, in rate_idx_match_mcs_mask() argument 334 ridx = rate->idx / 8; in rate_idx_match_mcs_mask() 335 rbit = rate->idx % 8; in rate_idx_match_mcs_mask() 345 rate->idx = i * 8 + j; in rate_idx_match_mcs_mask() 352 ridx = (rate->idx + 1) / 8; in rate_idx_match_mcs_mask() [all …]
|
D | rc80211_minstrel_ht.c | 136 minstrel_ht_get_group_idx(struct ieee80211_tx_rate *rate) in minstrel_ht_get_group_idx() argument 138 return GROUP_IDX((rate->idx / MCS_GROUP_RATES) + 1, in minstrel_ht_get_group_idx() 139 !!(rate->flags & IEEE80211_TX_RC_SHORT_GI), in minstrel_ht_get_group_idx() 140 !!(rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)); in minstrel_ht_get_group_idx() 145 struct ieee80211_tx_rate *rate) in minstrel_ht_get_stats() argument 149 if (rate->flags & IEEE80211_TX_RC_MCS) { in minstrel_ht_get_stats() 150 group = minstrel_ht_get_group_idx(rate); in minstrel_ht_get_stats() 151 idx = rate->idx % MCS_GROUP_RATES; in minstrel_ht_get_stats() 156 if (rate->idx == mp->cck_rates[idx]) in minstrel_ht_get_stats() 203 minstrel_ht_calc_tp(struct minstrel_ht_sta *mi, int group, int rate) in minstrel_ht_calc_tp() argument [all …]
|
D | rc80211_minstrel.c | 92 ratetbl->rate[offset].idx = r->rix; in minstrel_set_rate() 93 ratetbl->rate[offset].count = r->adjusted_retry_count; in minstrel_set_rate() 94 ratetbl->rate[offset].count_cts = r->retry_count_cts; in minstrel_set_rate() 95 ratetbl->rate[offset].count_rts = r->retry_count_rtscts; in minstrel_set_rate() 122 ratetbl->rate[i].idx = mi->lowest_rix; in minstrel_update_rates() 123 ratetbl->rate[i].count = mp->max_retry; in minstrel_update_rates() 124 ratetbl->rate[i].count_cts = mp->max_retry; in minstrel_update_rates() 125 ratetbl->rate[i].count_rts = mp->max_retry; in minstrel_update_rates() 289 struct ieee80211_tx_rate *rate = &info->control.rates[0]; in minstrel_get_rate() local 357 rate++; in minstrel_get_rate() [all …]
|
D | rc80211_pid_debugfs.c | 55 int index, int rate) in rate_control_pid_event_rate_change() argument 60 evd.rate = rate; in rate_control_pid_event_rate_change() 65 int index, int rate) in rate_control_pid_event_tx_rate() argument 70 evd.rate = rate; in rate_control_pid_event_tx_rate() 179 ev->data.index, ev->data.rate); in rate_control_pid_events_read() 183 ev->data.index, ev->data.rate); in rate_control_pid_events_read()
|
D | util.c | 110 int rate, int erp, int short_preamble) in ieee80211_frame_duration() argument 141 4 * rate); /* T_SYM x N_SYM */ in ieee80211_frame_duration() 156 dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate); in ieee80211_frame_duration() 167 struct ieee80211_rate *rate) in ieee80211_generic_frame_duration() argument 179 erp = rate->flags & IEEE80211_RATE_ERP_G; in ieee80211_generic_frame_duration() 182 dur = ieee80211_frame_duration(band, frame_len, rate->bitrate, erp, in ieee80211_generic_frame_duration() 194 struct ieee80211_rate *rate; in ieee80211_rts_duration() local 205 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration() 212 erp = rate->flags & IEEE80211_RATE_ERP_G; in ieee80211_rts_duration() 216 dur = ieee80211_frame_duration(sband->band, 10, rate->bitrate, in ieee80211_rts_duration() [all …]
|
D | Kconfig | 22 bool "PID controller based rate control algorithm" if EXPERT 25 This option enables a TX rate control algorithm for 27 rate. 34 This option enables the 'minstrel' TX rate control algorithm 41 This option enables the 'minstrel_ht' TX rate control algorithm 44 prompt "Default rate control algorithm" 48 This option selects the default rate control algorithm 54 bool "PID controller based rate control algorithm" 57 Select the PID controller based rate control as the 58 default rate control algorithm. You should choose [all …]
|
D | rc80211_pid.h | 68 int rate; member 158 int index, int rate); 161 int index, int rate);
|
D | debugfs_sta.c | 364 u16 rate; in sta_current_tx_rate_read() local 366 rate = cfg80211_calculate_bitrate(&rinfo); in sta_current_tx_rate_read() 370 rate/10, rate%10); in sta_current_tx_rate_read() 379 u16 rate; in sta_last_rx_rate_read() local 383 rate = cfg80211_calculate_bitrate(&rinfo); in sta_last_rx_rate_read() 387 rate/10, rate%10); in sta_last_rx_rate_read()
|
D | tx.c | 43 int rate, mrate, erp, dur, i; in ieee80211_duration() local 51 if (tx->rate.flags & IEEE80211_TX_RC_MCS) in ieee80211_duration() 55 if (WARN_ON_ONCE(tx->rate.idx < 0)) in ieee80211_duration() 59 txrate = &sband->bitrates[tx->rate.idx]; in ieee80211_duration() 116 rate = -1; in ieee80211_duration() 126 rate = r->bitrate; in ieee80211_duration() 150 if (rate == -1) { in ieee80211_duration() 153 rate = mrate; in ieee80211_duration() 164 dur = ieee80211_frame_duration(sband->band, 10, rate, erp, in ieee80211_duration() 700 struct ieee80211_tx_rate rate = { in ieee80211_tx_h_rate_ctrl() local [all …]
|
D | rx.c | 142 struct ieee80211_rate *rate, in ieee80211_add_rx_radiotap_header() argument 201 if (!rate || status->flag & (RX_FLAG_HT | RX_FLAG_VHT)) { in ieee80211_add_rx_radiotap_header() 211 *pos = rate->bitrate / 5; in ieee80211_add_rx_radiotap_header() 224 else if (rate && rate->flags & IEEE80211_RATE_ERP_G) in ieee80211_add_rx_radiotap_header() 227 else if (rate) in ieee80211_add_rx_radiotap_header() 363 struct ieee80211_rate *rate) in ieee80211_rx_monitor() argument 433 ieee80211_add_rx_radiotap_header(local, skb, rate, needed_headroom, in ieee80211_rx_monitor() 2754 struct ieee80211_rate *rate) in ieee80211_rx_cooked_monitor() argument 2783 ieee80211_add_rx_radiotap_header(local, skb, rate, needed_headroom, in ieee80211_rx_cooked_monitor() 2832 struct ieee80211_rate *rate = NULL; in ieee80211_rx_handlers_result() local [all …]
|
D | cfg.c | 382 const struct ieee80211_tx_rate *rate, in sta_set_rate_info_tx() argument 386 if (rate->flags & IEEE80211_TX_RC_MCS) { in sta_set_rate_info_tx() 388 rinfo->mcs = rate->idx; in sta_set_rate_info_tx() 389 } else if (rate->flags & IEEE80211_TX_RC_VHT_MCS) { in sta_set_rate_info_tx() 391 rinfo->mcs = ieee80211_rate_get_vht_mcs(rate); in sta_set_rate_info_tx() 392 rinfo->nss = ieee80211_rate_get_vht_nss(rate); in sta_set_rate_info_tx() 397 rinfo->legacy = sband->bitrates[rate->idx].bitrate; in sta_set_rate_info_tx() 399 if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in sta_set_rate_info_tx() 401 if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH) in sta_set_rate_info_tx() 403 if (rate->flags & IEEE80211_TX_RC_160_MHZ_WIDTH) in sta_set_rate_info_tx() [all …]
|
D | ibss.c | 141 int rate = sband->bitrates[i].bitrate; in __ieee80211_sta_join_ibss() local 145 *pos++ = basic | (u8) (rate / 5); in __ieee80211_sta_join_ibss() 164 int rate = sband->bitrates[i].bitrate; in __ieee80211_sta_join_ibss() local 168 *pos++ = basic | (u8) (rate / 5); in __ieee80211_sta_join_ibss() 276 int rate = (bss->supp_rates[i] & 0x7f) * 5; in ieee80211_sta_join_ibss() local 280 if (sband->bitrates[j].bitrate == rate) { in ieee80211_sta_join_ibss()
|
D | Makefile | 14 rate.o \
|
D | mesh_hwmp.c | 334 int rate, err; in airtime_link_metric_get() local 342 rate = cfg80211_calculate_bitrate(&rinfo); in airtime_link_metric_get() 343 if (WARN_ON(!rate)) in airtime_link_metric_get() 351 tx_time = (device_constant + 10 * test_frame_len / rate); in airtime_link_metric_get()
|
/net/netfilter/ipvs/ |
D | ip_vs_est.c | 99 u32 rate; in estimation_timer() local 117 rate = (n_conns - e->last_conns) << 9; in estimation_timer() 119 e->cps += ((long)rate - (long)e->cps) >> 2; in estimation_timer() 121 rate = (n_inpkts - e->last_inpkts) << 9; in estimation_timer() 123 e->inpps += ((long)rate - (long)e->inpps) >> 2; in estimation_timer() 125 rate = (n_outpkts - e->last_outpkts) << 9; in estimation_timer() 127 e->outpps += ((long)rate - (long)e->outpps) >> 2; in estimation_timer() 129 rate = (n_inbytes - e->last_inbytes) << 4; in estimation_timer() 131 e->inbps += ((long)rate - (long)e->inbps) >> 2; in estimation_timer() 133 rate = (n_outbytes - e->last_outbytes) << 4; in estimation_timer() [all …]
|
/net/sched/ |
D | sch_tbf.c | 107 struct psched_ratecfg rate; member 175 toks -= (s64) psched_l2t_ns(&q->rate, len); in tbf_dequeue() 248 rtab = qdisc_get_rtab(&qopt->rate, tb[TCA_TBF_RTAB]); in tbf_change() 252 if (qopt->peakrate.rate) { in tbf_change() 253 if (qopt->peakrate.rate > qopt->rate.rate) in tbf_change() 262 max_size = (n << qopt->rate.cell_log) - 1; in tbf_change() 301 psched_ratecfg_precompute(&q->rate, &rtab->rate); in tbf_change() 303 psched_ratecfg_precompute(&q->peak, &ptab->rate); in tbf_change() 353 psched_ratecfg_getrate(&opt.rate, &q->rate); in tbf_dump()
|
D | act_police.c | 35 struct psched_ratecfg rate; member 61 struct tc_ratespec rate; member 196 if (parm->rate.rate) { in tcf_act_police_locate() 198 R_tab = qdisc_get_rtab(&parm->rate, tb[TCA_POLICE_RATE]); in tcf_act_police_locate() 202 if (parm->peakrate.rate) { in tcf_act_police_locate() 230 police->tcfp_mtu = 255 << R_tab->rate.cell_log; in tcf_act_police_locate() 234 psched_ratecfg_precompute(&police->rate, &R_tab->rate); in tcf_act_police_locate() 241 psched_ratecfg_precompute(&police->peak, &P_tab->rate); in tcf_act_police_locate() 347 toks -= (s64) psched_l2t_ns(&police->rate, qdisc_pkt_len(skb)); in tcf_act_police() 379 psched_ratecfg_getrate(&opt.rate, &police->rate); in tcf_act_police_dump()
|
D | sch_netem.c | 89 u32 rate; member 330 do_div(ticks, q->rate); in packet_len_2_sched_time() 438 if (q->rate) { in netem_enqueue() 638 q->rate = r->rate; in get_rate() 873 struct tc_netem_rate rate; in netem_dump() local 900 rate.rate = q->rate; in netem_dump() 901 rate.packet_overhead = q->packet_overhead; in netem_dump() 902 rate.cell_size = q->cell_size; in netem_dump() 903 rate.cell_overhead = q->cell_overhead; in netem_dump() 904 if (nla_put(skb, TCA_NETEM_RATE, sizeof(rate), &rate)) in netem_dump()
|
D | sch_htb.c | 122 struct psched_ratecfg rate; member 591 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens() 1093 psched_ratecfg_getrate(&opt.rate, &cl->rate); in htb_dump_class() 1333 if (!hopt->rate.rate || !hopt->ceil.rate) in htb_change_class() 1443 cl->quantum = hopt->rate.rate / q->rate2quantum; in htb_change_class() 1462 psched_ratecfg_precompute(&cl->rate, &hopt->rate); in htb_change_class()
|
/net/wireless/ |
D | util.c | 903 static u32 cfg80211_calculate_bitrate_60g(struct rate_info *rate) in cfg80211_calculate_bitrate_60g() argument 944 if (WARN_ON_ONCE(rate->mcs >= ARRAY_SIZE(__mcs2bitrate))) in cfg80211_calculate_bitrate_60g() 947 return __mcs2bitrate[rate->mcs]; in cfg80211_calculate_bitrate_60g() 950 static u32 cfg80211_calculate_bitrate_vht(struct rate_info *rate) in cfg80211_calculate_bitrate_vht() argument 1001 if (WARN_ON_ONCE(rate->mcs > 9)) in cfg80211_calculate_bitrate_vht() 1004 idx = rate->flags & (RATE_INFO_FLAGS_160_MHZ_WIDTH | in cfg80211_calculate_bitrate_vht() 1006 rate->flags & RATE_INFO_FLAGS_80_MHZ_WIDTH ? 2 : in cfg80211_calculate_bitrate_vht() 1007 rate->flags & RATE_INFO_FLAGS_40_MHZ_WIDTH ? 1 : 0; in cfg80211_calculate_bitrate_vht() 1009 bitrate = base[idx][rate->mcs]; in cfg80211_calculate_bitrate_vht() 1010 bitrate *= rate->nss; in cfg80211_calculate_bitrate_vht() [all …]
|
D | wext-compat.c | 1235 struct iw_param *rate, char *extra) in cfg80211_wext_siwrate() argument 1252 if (rate->value < 0) { in cfg80211_wext_siwrate() 1254 } else if (rate->fixed) { in cfg80211_wext_siwrate() 1255 fixed = rate->value / 100000; in cfg80211_wext_siwrate() 1257 maxrate = rate->value / 100000; in cfg80211_wext_siwrate() 1286 struct iw_param *rate, char *extra) in cfg80211_wext_giwrate() argument 1318 rate->value = 100000 * cfg80211_calculate_bitrate(&sinfo.txrate); in cfg80211_wext_giwrate()
|
/net/dccp/ccids/ |
D | Kconfig | 18 rate-controlled congestion control mechanism. TFRC is designed to 20 where a flow is "reasonably fair" if its sending rate is generally 21 within a factor of two of the sending rate of a TCP flow under the 25 relatively smooth sending rate is of importance.
|
/net/ieee802154/ |
D | Kconfig | 4 IEEE Std 802.15.4 defines a low data rate, low power and low 7 devices. Maximum allowed data rate is 250 kb/s and typical personal
|
/net/core/ |
D | gen_estimator.c | 121 u32 rate; in est_timer() local 135 rate = (npackets - e->last_packets)<<(12 - idx); in est_timer() 137 e->avpps += (rate >> e->ewma_log) - (e->avpps >> e->ewma_log); in est_timer()
|
/net/can/ |
D | proc.c | 111 unsigned long rate; in calc_rate() local 123 rate = (count * HZ) / (newjif - oldjif); in calc_rate() 125 return rate; in calc_rate()
|