/net/ipv4/ |
D | tcp_bbr.c | 62 struct minmax bw; /* Max recent delivery rate in pkts/uS << 24 */ member 163 return minmax_get(&bbr->bw); in bbr_max_bw() 188 static u32 bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain) in bbr_bw_to_pacing_rate() argument 190 u64 rate = bw; in bbr_bw_to_pacing_rate() 202 u64 bw; in bbr_init_pacing_rate_from_rtt() local 211 bw = (u64)tp->snd_cwnd * BW_UNIT; in bbr_init_pacing_rate_from_rtt() 212 do_div(bw, rtt_us); in bbr_init_pacing_rate_from_rtt() 213 sk->sk_pacing_rate = bbr_bw_to_pacing_rate(sk, bw, bbr_high_gain); in bbr_init_pacing_rate_from_rtt() 223 static void bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain) in bbr_set_pacing_rate() argument 227 u32 rate = bbr_bw_to_pacing_rate(sk, bw, gain); in bbr_set_pacing_rate() [all …]
|
D | tcp_yeah.c | 133 u64 bw; in tcp_yeah_cong_avoid() local 151 bw = tp->snd_cwnd; in tcp_yeah_cong_avoid() 152 bw *= rtt - yeah->vegas.baseRTT; in tcp_yeah_cong_avoid() 153 do_div(bw, rtt); in tcp_yeah_cong_avoid() 154 queue = bw; in tcp_yeah_cong_avoid()
|
/net/wireless/ |
D | reg.c | 692 unsigned int bw = reg_get_max_bandwidth_from_range(rd, rule); in reg_get_max_bandwidth() local 695 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(80)); in reg_get_max_bandwidth() 697 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(40)); in reg_get_max_bandwidth() 705 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20)); in reg_get_max_bandwidth() 707 return bw; in reg_get_max_bandwidth() 1049 const struct ieee80211_regdomain *regd, u32 bw) in freq_reg_info_regd() argument 1073 bw_fits = reg_does_bw_fit(fr, center_freq, bw); in freq_reg_info_regd() 1090 u32 bw; in __freq_reg_info() local 1092 for (bw = MHZ_TO_KHZ(20); bw >= min_bw; bw = bw / 2) { in __freq_reg_info() 1093 reg_rule = freq_reg_info_regd(center_freq, regd, bw); in __freq_reg_info() [all …]
|
D | genregdb.awk | 59 bw = $5 60 sub(/\),/, "", bw) 119 …printf "\t\tREG_RULE_EXT(%d, %d, %d, %d, %.0f, %d, %s),\n", start, end, bw, gain, power, dfs_cac, …
|
D | util.c | 1206 switch (rate->bw) { in cfg80211_calculate_bitrate_vht() 1254 bitrate = (rate->bw == RATE_INFO_BW_40) ? 13500000 : 6500000; in cfg80211_calculate_bitrate()
|
D | nl80211.c | 4101 switch (info->bw) { in nl80211_put_sta_rate()
|
/net/mac80211/ |
D | vht.c | 384 enum ieee80211_sta_rx_bandwidth bw; in ieee80211_sta_cur_vht_bw() local 387 bw = ieee80211_sta_cap_rx_bw(sta); in ieee80211_sta_cur_vht_bw() 388 bw = min(bw, sta->cur_max_bandwidth); in ieee80211_sta_cur_vht_bw() 389 bw = min(bw, ieee80211_chan_width_to_rx_bw(bss_width)); in ieee80211_sta_cur_vht_bw() 391 return bw; in ieee80211_sta_cur_vht_bw()
|
D | rc80211_minstrel_ht.c | 232 minstrel_get_valid_vht_rates(int bw, int nss, __le16 mcs_map) in minstrel_get_valid_vht_rates() argument 236 if (bw == BW_20) { in minstrel_get_valid_vht_rates() 239 } else if (bw == BW_80) { in minstrel_get_valid_vht_rates() 245 WARN_ON(bw != BW_40); in minstrel_get_valid_vht_rates() 1225 int bw, nss; in minstrel_ht_update_caps() local 1280 bw = BW_40; in minstrel_ht_update_caps() 1282 bw = BW_80; in minstrel_ht_update_caps() 1284 bw = BW_20; in minstrel_ht_update_caps() 1286 mi->groups[i].supported = minstrel_get_valid_vht_rates(bw, nss, in minstrel_ht_update_caps()
|
D | ht.c | 139 enum ieee80211_sta_rx_bandwidth bw; in ieee80211_ht_cap_ie_to_sta_ht_cap() local 249 bw = IEEE80211_STA_RX_BW_20; in ieee80211_ht_cap_ie_to_sta_ht_cap() 255 bw = ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_ht_cap_ie_to_sta_ht_cap() 260 sta->sta.bandwidth = bw; in ieee80211_ht_cap_ie_to_sta_ht_cap()
|
D | tdls.c | 1278 enum ieee80211_sta_rx_bandwidth bw; in iee80211_tdls_recalc_chanctx() local 1280 bw = ieee80211_chan_width_to_rx_bw(conf->def.width); in iee80211_tdls_recalc_chanctx() 1281 bw = min(bw, ieee80211_sta_cap_rx_bw(sta)); in iee80211_tdls_recalc_chanctx() 1282 if (bw != sta->sta.bandwidth) { in iee80211_tdls_recalc_chanctx() 1283 sta->sta.bandwidth = bw; in iee80211_tdls_recalc_chanctx()
|
D | util.c | 2722 ri.bw = RATE_INFO_BW_40; in ieee80211_calculate_rx_timestamp() 2724 ri.bw = RATE_INFO_BW_20; in ieee80211_calculate_rx_timestamp() 2732 ri.bw = RATE_INFO_BW_40; in ieee80211_calculate_rx_timestamp() 2734 ri.bw = RATE_INFO_BW_80; in ieee80211_calculate_rx_timestamp() 2736 ri.bw = RATE_INFO_BW_160; in ieee80211_calculate_rx_timestamp() 2738 ri.bw = RATE_INFO_BW_20; in ieee80211_calculate_rx_timestamp() 2748 ri.bw = RATE_INFO_BW_10; in ieee80211_calculate_rx_timestamp() 2751 ri.bw = RATE_INFO_BW_5; in ieee80211_calculate_rx_timestamp() 2753 ri.bw = RATE_INFO_BW_20; in ieee80211_calculate_rx_timestamp()
|
D | mesh_plink.c | 410 enum ieee80211_sta_rx_bandwidth bw = sta->sta.bandwidth; in mesh_sta_info_init() local 439 if (bw != sta->sta.bandwidth) in mesh_sta_info_init()
|
D | sta_info.c | 1968 rinfo->bw = (rate & STA_STATS_RATE_BW_MASK) >> in sta_stats_decode_rate() 1985 if (rinfo->bw == RATE_INFO_BW_5) in sta_stats_decode_rate() 1987 else if (rinfo->bw == RATE_INFO_BW_10) in sta_stats_decode_rate()
|
D | cfg.c | 630 rinfo->bw = RATE_INFO_BW_40; in sta_set_rate_info_tx() 632 rinfo->bw = RATE_INFO_BW_80; in sta_set_rate_info_tx() 634 rinfo->bw = RATE_INFO_BW_160; in sta_set_rate_info_tx() 636 rinfo->bw = RATE_INFO_BW_20; in sta_set_rate_info_tx()
|
D | ibss.c | 1057 enum ieee80211_sta_rx_bandwidth bw = sta->sta.bandwidth; in ieee80211_update_sta_info() local 1083 if (bw != sta->sta.bandwidth) in ieee80211_update_sta_info()
|
D | mlme.c | 526 u32 bw = cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_add_vht_ie() local 529 if (bw == IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ || in ieee80211_add_vht_ie() 530 bw == IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) in ieee80211_add_vht_ie()
|
/net/batman-adv/ |
D | bat_v.c | 706 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw) in batadv_v_gw_throughput_get() argument 727 *bw = router_ifinfo->bat_v.throughput; in batadv_v_gw_throughput_get() 728 *bw = min_t(u32, *bw, gw_node->bandwidth_down); in batadv_v_gw_throughput_get() 750 u32 max_bw = 0, bw; in batadv_v_gw_get_best_gw_node() local 757 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0) in batadv_v_gw_get_best_gw_node() 760 if (curr_gw && (bw <= max_bw)) in batadv_v_gw_get_best_gw_node() 768 max_bw = bw; in batadv_v_gw_get_best_gw_node()
|