| /net/ipv4/ |
| A D | tcp_bbr.c | 258 u64 rate = bw; in bbr_bw_to_pacing_rate() 270 u64 bw; in bbr_init_pacing_rate_from_rtt() local 562 u32 inflight, bw; in bbr_is_next_cycle_phase() local 677 bbr->lt_bw = bw; in bbr_lt_bw_interval_done() 693 u64 bw; in bbr_lt_bw_sampling() local 756 do_div(bw, t); in bbr_lt_bw_sampling() 765 u64 bw; in bbr_update_bw() local 800 minmax_running_max(&bbr->bw, bbr_bw_rtts, bbr->rtt_cnt, bw); in bbr_update_bw() 1030 u32 bw; in bbr_main() local 1034 bw = bbr_bw(sk); in bbr_main() [all …]
|
| A D | tcp_yeah.c | 115 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/ |
| A D | util.c | 1505 switch (rate->bw) { in cfg80211_calculate_bitrate_vht() 1533 rate->bw, rate->mcs, rate->nss); in cfg80211_calculate_bitrate_vht() 1577 if (rate->bw == RATE_INFO_BW_160 || in cfg80211_calculate_bitrate_he() 1582 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he() 1586 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he() 1590 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he() 1604 rate->bw, rate->he_ru_alloc); in cfg80211_calculate_bitrate_he() 1678 if (rate->bw == RATE_INFO_BW_320 || in cfg80211_calculate_bitrate_eht() 1822 switch (rate->bw) { in cfg80211_calculate_bitrate_s1g() 1857 rate->bw, rate->mcs, rate->nss); in cfg80211_calculate_bitrate_s1g() [all …]
|
| A D | reg.c | 1217 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(160)); in reg_get_max_bandwidth() 1219 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(80)); in reg_get_max_bandwidth() 1221 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(40)); in reg_get_max_bandwidth() 1229 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20)); in reg_get_max_bandwidth() 1656 u32 bw; in __freq_reg_info() local 1658 for (bw = MHZ_TO_KHZ(bws[i]); bw >= min_bw; bw = MHZ_TO_KHZ(bws[i--])) { in __freq_reg_info() 2558 for (bw = MHZ_TO_KHZ(20); bw >= min_bw; bw = bw / 2) { in handle_channel_custom() 3728 snprintf(bw, sizeof(bw), "%d KHz, %u KHz AUTO", in print_rd_rules() 3732 snprintf(bw, sizeof(bw), "%d KHz", in print_rd_rules() 3750 bw, in print_rd_rules() [all …]
|
| A D | of.c | 26 u32 bw = MHZ_TO_KHZ(20); in wiphy_freq_limits_valid_chan() local 34 bw)) in wiphy_freq_limits_valid_chan()
|
| A D | chan.c | 309 int bw; in cfg80211_valid_center_freq() local 316 bw = nl80211_chan_width_to_mhz(width); in cfg80211_valid_center_freq() 317 if (bw < 0) in cfg80211_valid_center_freq() 321 if (center - bw / 2 < 5945 || center + bw / 2 > 7125) in cfg80211_valid_center_freq() 325 if (bw == 320) in cfg80211_valid_center_freq() 328 step = bw; in cfg80211_valid_center_freq() 334 return (center - bw / 2 - 5945) % step == 0; in cfg80211_valid_center_freq()
|
| /net/mac80211/ |
| A D | airtime.c | 511 int bw, streams; in ieee80211_get_rate_duration() local 515 switch (status->bw) { in ieee80211_get_rate_duration() 517 bw = BW_20; in ieee80211_get_rate_duration() 520 bw = BW_40; in ieee80211_get_rate_duration() 523 bw = BW_80; in ieee80211_get_rate_duration() 526 bw = BW_160; in ieee80211_get_rate_duration() 529 bw = BW_320; in ieee80211_get_rate_duration() 635 stat->bw = ri->bw; in ieee80211_fill_rate_info() 694 stat->bw = RATE_INFO_BW_80; in ieee80211_fill_rx_status() 696 stat->bw = RATE_INFO_BW_40; in ieee80211_fill_rx_status() [all …]
|
| A D | vht.c | 511 enum ieee80211_sta_rx_bandwidth bw; in _ieee80211_sta_cur_vht_bw() local 529 bw = __ieee80211_sta_cap_rx_bw(link_sta, chandef); in _ieee80211_sta_cur_vht_bw() 530 bw = min(bw, link_sta->cur_max_bandwidth); in _ieee80211_sta_cur_vht_bw() 532 bw = min(bw, link_sta->rx_omi_bw_tx); in _ieee80211_sta_cur_vht_bw() 547 bw = min(bw, ieee80211_chan_width_to_rx_bw(sta->tdls_chandef.width)); in _ieee80211_sta_cur_vht_bw() 549 bw = min(bw, ieee80211_chan_width_to_rx_bw(bss_width)); in _ieee80211_sta_cur_vht_bw() 551 return bw; in _ieee80211_sta_cur_vht_bw() 705 sta_opmode.bw = ieee80211_sta_rx_bw_to_chan_width(link_sta); in __ieee80211_vht_handle_opmode()
|
| A D | he.c | 274 enum ieee80211_sta_rx_bandwidth bw) in ieee80211_prepare_rx_omi_bw() argument 295 trace_api_prepare_rx_omi_bw(local, sta->sdata, link_sta, bw); in ieee80211_prepare_rx_omi_bw() 299 if (link_sta->rx_omi_bw_staging == bw) { in ieee80211_prepare_rx_omi_bw() 311 if (bw < link_sta->rx_omi_bw_staging) { in ieee80211_prepare_rx_omi_bw() 312 link_sta->rx_omi_bw_tx = bw; in ieee80211_prepare_rx_omi_bw() 315 link_sta->rx_omi_bw_rx = bw; in ieee80211_prepare_rx_omi_bw() 319 link_sta->rx_omi_bw_staging = bw; in ieee80211_prepare_rx_omi_bw()
|
| A D | rc80211_minstrel_ht.c | 62 .bw = _ht40, \ 99 .bw = _bw, \ 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() 1760 int bw, nss; in minstrel_ht_update_caps() local 1810 bw = BW_40; in minstrel_ht_update_caps() 1812 bw = BW_80; in minstrel_ht_update_caps() [all …]
|
| A D | ht.c | 149 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() 633 sta_opmode.bw = in ieee80211_ht_handle_chanwidth_notif()
|
| A D | rc80211_minstrel_ht.h | 102 u8 bw; member
|
| A D | status.c | 342 if (status_rate->rate_idx.bw == RATE_INFO_BW_40) in ieee80211_add_tx_radiotap_header() 368 switch (status_rate->rate_idx.bw) { in ieee80211_add_tx_radiotap_header() 430 switch (status_rate->rate_idx.bw) { in ieee80211_add_tx_radiotap_header() 464 WARN_ONCE(1, "Invalid SU BW %d\n", status_rate->rate_idx.bw); in ieee80211_add_tx_radiotap_header()
|
| A D | tdls.c | 1339 enum ieee80211_sta_rx_bandwidth bw; in iee80211_tdls_recalc_chanctx() local 1341 bw = ieee80211_chan_width_to_rx_bw(conf->def.width); in iee80211_tdls_recalc_chanctx() 1342 bw = min(bw, ieee80211_sta_cap_rx_bw(&sta->deflink)); in iee80211_tdls_recalc_chanctx() 1343 if (bw != sta->sta.deflink.bandwidth) { in iee80211_tdls_recalc_chanctx() 1344 sta->sta.deflink.bandwidth = bw; in iee80211_tdls_recalc_chanctx()
|
| A D | trace.h | 3171 enum ieee80211_sta_rx_bandwidth bw), 3173 TP_ARGS(local, sdata, link_sta, bw), 3180 __field(u32, bw) 3189 __entry->bw = bw; 3195 __entry->link_id, __entry->bw
|
| A D | debugfs_sta.c | 1189 u8 *mcs_vals = (u8 *)(&nss->bw._80); in link_sta_eht_capa_read() 1196 mcs_vals = (u8 *)(&nss->bw._160); in link_sta_eht_capa_read() 1202 mcs_vals = (u8 *)(&nss->bw._320); in link_sta_eht_capa_read()
|
| A D | rx.c | 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() 434 if (status->bw == RATE_INFO_BW_10) in ieee80211_add_rx_radiotap_header() 436 else if (status->bw == RATE_INFO_BW_5) in ieee80211_add_rx_radiotap_header() 494 if (status->bw == RATE_INFO_BW_40) in ieee80211_add_rx_radiotap_header() 548 switch (status->bw) { in ieee80211_add_rx_radiotap_header() 636 switch (status->bw) { in ieee80211_add_rx_radiotap_header() 670 WARN_ONCE(1, "Invalid SU BW %d\n", status->bw); in ieee80211_add_rx_radiotap_header()
|
| A D | mesh_plink.c | 432 enum ieee80211_sta_rx_bandwidth bw = sta->sta.deflink.bandwidth; in mesh_sta_info_init() local 472 if (bw != sta->sta.deflink.bandwidth) in mesh_sta_info_init()
|
| A D | util.c | 3361 ri.bw = status->bw; in ieee80211_calculate_rx_timestamp() 4440 skb_put_u8(skb, eht_cap->eht_mcs_nss_supp.bw._80.rx_tx_mcs9_max_nss); in ieee80211_put_eht_cap() 4441 skb_put_u8(skb, eht_cap->eht_mcs_nss_supp.bw._80.rx_tx_mcs9_max_nss); in ieee80211_put_eht_cap() 4442 skb_put_u8(skb, eht_cap->eht_mcs_nss_supp.bw._80.rx_tx_mcs11_max_nss); in ieee80211_put_eht_cap() 4443 skb_put_u8(skb, eht_cap->eht_mcs_nss_supp.bw._80.rx_tx_mcs13_max_nss); in ieee80211_put_eht_cap()
|
| A D | sta_info.h | 1041 r = STA_STATS_FIELD(BW, s->bw); in sta_stats_encode_rate()
|
| A D | ibss.c | 1019 enum ieee80211_sta_rx_bandwidth bw = sta->sta.deflink.bandwidth; in ieee80211_update_sta_info() local 1050 if (bw != sta->sta.deflink.bandwidth) in ieee80211_update_sta_info()
|
| A D | mlme.c | 625 unsigned int idx, int bw) in ieee80211_get_eht_cap_mcs_nss() argument 640 switch (bw) { in ieee80211_get_eht_cap_mcs_nss() 642 return sta_eht_cap->eht_mcs_nss_supp.bw._80.rx_tx_max_nss[idx]; in ieee80211_get_eht_cap_mcs_nss() 648 return sta_eht_cap->eht_mcs_nss_supp.bw._160.rx_tx_max_nss[idx]; in ieee80211_get_eht_cap_mcs_nss() 652 return sta_eht_cap->eht_mcs_nss_supp.bw._320.rx_tx_max_nss[idx]; in ieee80211_get_eht_cap_mcs_nss() 678 unsigned int bw; in ieee80211_verify_sta_eht_mcs_support() local 685 for (bw = 0; bw < 3; bw++) { in ieee80211_verify_sta_eht_mcs_support() 690 i, bw); in ieee80211_verify_sta_eht_mcs_support()
|
| A D | sta_info.c | 2504 rinfo->bw = STA_STATS_GET(BW, rate); in sta_stats_decode_rate() 2533 if (rinfo->bw == RATE_INFO_BW_5) in sta_stats_decode_rate() 2535 else if (rinfo->bw == RATE_INFO_BW_10) in sta_stats_decode_rate()
|
| /net/batman-adv/ |
| A D | bat_v.c | 520 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw) in batadv_v_gw_throughput_get() argument 541 *bw = router_ifinfo->bat_v.throughput; in batadv_v_gw_throughput_get() 542 *bw = min_t(u32, *bw, gw_node->bandwidth_down); in batadv_v_gw_throughput_get() 562 u32 max_bw = 0, bw; in batadv_v_gw_get_best_gw_node() local 569 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0) in batadv_v_gw_get_best_gw_node() 572 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node() 579 max_bw = bw; in batadv_v_gw_get_best_gw_node()
|
| /net/mac80211/tests/ |
| A D | util.c | 177 .bw._80 = { 182 .bw._160 = {
|