Home
last modified time | relevance | path

Searched refs:bw (Results 1 – 23 of 23) sorted by relevance

/net/ipv4/
Dtcp_bbr.c93 struct minmax bw; /* Max recent delivery rate in pkts/uS << 24 */ member
219 return minmax_get(&bbr->bw); in bbr_max_bw()
256 static unsigned long bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain) in bbr_bw_to_pacing_rate() argument
258 u64 rate = bw; in bbr_bw_to_pacing_rate()
270 u64 bw; in bbr_init_pacing_rate_from_rtt() local
279 bw = (u64)tcp_snd_cwnd(tp) * BW_UNIT; in bbr_init_pacing_rate_from_rtt()
280 do_div(bw, rtt_us); in bbr_init_pacing_rate_from_rtt()
281 sk->sk_pacing_rate = bbr_bw_to_pacing_rate(sk, bw, bbr_high_gain); in bbr_init_pacing_rate_from_rtt()
285 static void bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain) in bbr_set_pacing_rate() argument
289 unsigned long rate = bbr_bw_to_pacing_rate(sk, bw, gain); in bbr_set_pacing_rate()
[all …]
Dtcp_yeah.c115 u64 bw; in tcp_yeah_cong_avoid() local
133 bw = tcp_snd_cwnd(tp); in tcp_yeah_cong_avoid()
134 bw *= rtt - yeah->vegas.baseRTT; in tcp_yeah_cong_avoid()
135 do_div(bw, rtt); in tcp_yeah_cong_avoid()
136 queue = bw; in tcp_yeah_cong_avoid()
/net/wireless/
Dutil.c1224 bitrate = (rate->bw == RATE_INFO_BW_40) ? 13500000 : 6500000; in cfg80211_calculate_bitrate_ht()
1405 switch (rate->bw) { in cfg80211_calculate_bitrate_vht()
1433 rate->bw, rate->mcs, rate->nss); in cfg80211_calculate_bitrate_vht()
1477 if (rate->bw == RATE_INFO_BW_160 || in cfg80211_calculate_bitrate_he()
1478 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he()
1481 else if (rate->bw == RATE_INFO_BW_80 || in cfg80211_calculate_bitrate_he()
1482 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he()
1485 else if (rate->bw == RATE_INFO_BW_40 || in cfg80211_calculate_bitrate_he()
1486 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he()
1489 else if (rate->bw == RATE_INFO_BW_20 || in cfg80211_calculate_bitrate_he()
[all …]
Dreg.c1211 unsigned int bw = reg_get_max_bandwidth_from_range(rd, rule); in reg_get_max_bandwidth() local
1214 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(160)); in reg_get_max_bandwidth()
1216 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(80)); in reg_get_max_bandwidth()
1218 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(40)); in reg_get_max_bandwidth()
1226 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20)); in reg_get_max_bandwidth()
1228 return bw; in reg_get_max_bandwidth()
1605 const struct ieee80211_regdomain *regd, u32 bw) in freq_reg_info_regd() argument
1629 bw_fits = cfg80211_does_bw_fit_range(fr, center_freq, bw); in freq_reg_info_regd()
1648 u32 bw; in __freq_reg_info() local
1650 for (bw = MHZ_TO_KHZ(bws[i]); bw >= min_bw; bw = MHZ_TO_KHZ(bws[i--])) { in __freq_reg_info()
[all …]
Dof.c26 u32 bw = MHZ_TO_KHZ(20); in wiphy_freq_limits_valid_chan() local
34 bw)) in wiphy_freq_limits_valid_chan()
Dnl80211.c6437 switch (info->bw) { in nl80211_put_sta_rate()
6513 if (info->bw == RATE_INFO_BW_HE_RU && in nl80211_put_sta_rate()
6532 if (info->bw == RATE_INFO_BW_EHT_RU && in nl80211_put_sta_rate()
19728 nla_put_u32(msg, NL80211_ATTR_CHANNEL_WIDTH, sta_opmode->bw)) in cfg80211_sta_opmode_change_notify()
/net/mac80211/
Dairtime.c408 int bw, streams; in ieee80211_get_rate_duration() local
412 switch (status->bw) { in ieee80211_get_rate_duration()
414 bw = BW_20; in ieee80211_get_rate_duration()
417 bw = BW_40; in ieee80211_get_rate_duration()
420 bw = BW_80; in ieee80211_get_rate_duration()
423 bw = BW_160; in ieee80211_get_rate_duration()
434 group = VHT_GROUP_IDX(streams, sgi, bw); in ieee80211_get_rate_duration()
439 group = HT_GROUP_IDX(streams, sgi, bw); in ieee80211_get_rate_duration()
444 group = HE_GROUP_IDX(streams, status->he_gi, bw); in ieee80211_get_rate_duration()
516 stat->bw = ri->bw; in ieee80211_fill_rate_info()
[all …]
Dvht.c511 enum ieee80211_sta_rx_bandwidth bw; in ieee80211_sta_cur_vht_bw() local
521 bw = ieee80211_sta_cap_rx_bw(link_sta); in ieee80211_sta_cur_vht_bw()
522 bw = min(bw, link_sta->cur_max_bandwidth); in ieee80211_sta_cur_vht_bw()
537 bw = min(bw, ieee80211_chan_width_to_rx_bw(sta->tdls_chandef.width)); in ieee80211_sta_cur_vht_bw()
539 bw = min(bw, ieee80211_chan_width_to_rx_bw(bss_width)); in ieee80211_sta_cur_vht_bw()
541 return bw; in ieee80211_sta_cur_vht_bw()
694 sta_opmode.bw = ieee80211_sta_rx_bw_to_chan_width(link_sta); in __ieee80211_vht_handle_opmode()
Drc80211_minstrel_ht.c62 .bw = _ht40, \
99 .bw = _bw, \
287 minstrel_get_valid_vht_rates(int bw, int nss, __le16 mcs_map) in minstrel_get_valid_vht_rates() argument
291 if (bw == BW_20) { in minstrel_get_valid_vht_rates()
294 } else if (bw == BW_80) { in minstrel_get_valid_vht_rates()
300 WARN_ON(bw != BW_40); in minstrel_get_valid_vht_rates()
345 !!(rate->bw & RATE_INFO_BW_40)); in minstrel_ht_ri_get_group_idx()
365 !!(rate->bw & RATE_INFO_BW_40) + in minstrel_vht_ri_get_group_idx()
366 2*!!(rate->bw & RATE_INFO_BW_80)); in minstrel_vht_ri_get_group_idx()
1761 int bw, nss; in minstrel_ht_update_caps() local
[all …]
Dht.c149 enum ieee80211_sta_rx_bandwidth bw; in ieee80211_ht_cap_ie_to_sta_ht_cap() local
268 bw = IEEE80211_STA_RX_BW_20; in ieee80211_ht_cap_ie_to_sta_ht_cap()
275 bw = ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_ht_cap_ie_to_sta_ht_cap()
281 link_sta->pub->bandwidth = bw; in ieee80211_ht_cap_ie_to_sta_ht_cap()
Drc80211_minstrel_ht.h102 u8 bw; member
Dstatus.c377 if (status_rate->rate_idx.bw == RATE_INFO_BW_40) in ieee80211_add_tx_radiotap_header()
403 switch (status_rate->rate_idx.bw) { in ieee80211_add_tx_radiotap_header()
465 switch (status_rate->rate_idx.bw) { in ieee80211_add_tx_radiotap_header()
499 WARN_ONCE(1, "Invalid SU BW %d\n", status_rate->rate_idx.bw); in ieee80211_add_tx_radiotap_header()
Dtdls.c1369 enum ieee80211_sta_rx_bandwidth bw; in iee80211_tdls_recalc_chanctx() local
1371 bw = ieee80211_chan_width_to_rx_bw(conf->def.width); in iee80211_tdls_recalc_chanctx()
1372 bw = min(bw, ieee80211_sta_cap_rx_bw(&sta->deflink)); in iee80211_tdls_recalc_chanctx()
1373 if (bw != sta->sta.deflink.bandwidth) { in iee80211_tdls_recalc_chanctx()
1374 sta->sta.deflink.bandwidth = bw; in iee80211_tdls_recalc_chanctx()
Drx.c410 if (status->bw == RATE_INFO_BW_10) in ieee80211_add_rx_radiotap_header()
412 else if (status->bw == RATE_INFO_BW_5) in ieee80211_add_rx_radiotap_header()
422 if (status->bw == RATE_INFO_BW_10) in ieee80211_add_rx_radiotap_header()
424 else if (status->bw == RATE_INFO_BW_5) in ieee80211_add_rx_radiotap_header()
482 if (status->bw == RATE_INFO_BW_40) in ieee80211_add_rx_radiotap_header()
541 switch (status->bw) { in ieee80211_add_rx_radiotap_header()
620 switch (status->bw) { in ieee80211_add_rx_radiotap_header()
654 WARN_ONCE(1, "Invalid SU BW %d\n", status->bw); in ieee80211_add_rx_radiotap_header()
3569 sta_opmode.bw = in ieee80211_rx_h_action()
Ddebugfs_sta.c1185 u8 *mcs_vals = (u8 *)(&nss->bw._80); in link_sta_eht_capa_read()
1192 mcs_vals = (u8 *)(&nss->bw._160); in link_sta_eht_capa_read()
1198 mcs_vals = (u8 *)(&nss->bw._320); in link_sta_eht_capa_read()
Dmlme.c699 u32 bw = cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_add_vht_ie() local
702 if (bw == IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ || in ieee80211_add_vht_ie()
703 bw == IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) in ieee80211_add_vht_ie()
4738 unsigned int idx, int bw) in ieee80211_get_eht_cap_mcs_nss() argument
4753 switch (bw) { in ieee80211_get_eht_cap_mcs_nss()
4755 return sta_eht_cap->eht_mcs_nss_supp.bw._80.rx_tx_max_nss[idx]; in ieee80211_get_eht_cap_mcs_nss()
4761 return sta_eht_cap->eht_mcs_nss_supp.bw._160.rx_tx_max_nss[idx]; in ieee80211_get_eht_cap_mcs_nss()
4765 return sta_eht_cap->eht_mcs_nss_supp.bw._320.rx_tx_max_nss[idx]; in ieee80211_get_eht_cap_mcs_nss()
4791 unsigned int bw; in ieee80211_verify_sta_eht_mcs_support() local
4798 for (bw = 0; bw < 3; bw++) { in ieee80211_verify_sta_eht_mcs_support()
[all …]
Dmesh_plink.c426 enum ieee80211_sta_rx_bandwidth bw = sta->sta.deflink.bandwidth; in mesh_sta_info_init() local
467 if (bw != sta->sta.deflink.bandwidth) in mesh_sta_info_init()
Dsta_info.h981 r = STA_STATS_FIELD(BW, s->bw); in sta_stats_encode_rate()
Dsta_info.c2426 rinfo->bw = STA_STATS_GET(BW, rate); in sta_stats_decode_rate()
2455 if (rinfo->bw == RATE_INFO_BW_5) in sta_stats_decode_rate()
2457 else if (rinfo->bw == RATE_INFO_BW_10) in sta_stats_decode_rate()
Dibss.c1040 enum ieee80211_sta_rx_bandwidth bw = sta->sta.deflink.bandwidth; in ieee80211_update_sta_info() local
1071 if (bw != sta->sta.deflink.bandwidth) in ieee80211_update_sta_info()
Dcfg.c847 rinfo->bw = RATE_INFO_BW_40; in sta_set_rate_info_tx()
849 rinfo->bw = RATE_INFO_BW_80; in sta_set_rate_info_tx()
851 rinfo->bw = RATE_INFO_BW_160; in sta_set_rate_info_tx()
853 rinfo->bw = RATE_INFO_BW_20; in sta_set_rate_info_tx()
Dutil.c4190 ri.bw = status->bw; in ieee80211_calculate_rx_timestamp()
4292 switch (status->bw) { in ieee80211_calculate_rx_timestamp()
/net/batman-adv/
Dbat_v.c524 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw) in batadv_v_gw_throughput_get() argument
545 *bw = router_ifinfo->bat_v.throughput; in batadv_v_gw_throughput_get()
546 *bw = min_t(u32, *bw, gw_node->bandwidth_down); in batadv_v_gw_throughput_get()
566 u32 max_bw = 0, bw; in batadv_v_gw_get_best_gw_node() local
573 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0) in batadv_v_gw_get_best_gw_node()
576 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node()
583 max_bw = bw; in batadv_v_gw_get_best_gw_node()