Searched refs:rate_idx (Results 1 - 25 of 106) sorted by relevance

12345

/linux-master/drivers/net/wireless/ti/wl1251/
H A Drx.c88 status->rate_idx = 1;
91 status->rate_idx = 2;
94 status->rate_idx = 3;
97 status->rate_idx = 4;
100 status->rate_idx = 5;
103 status->rate_idx = 7;
106 status->rate_idx = 8;
109 status->rate_idx = 9;
112 status->rate_idx = 10;
115 status->rate_idx
[all...]
/linux-master/drivers/net/wireless/ath/ath9k/
H A Ddebug_sta.c116 if (rxs->rate_idx >= ARRAY_SIZE(rstats->ht_stats))
120 rstats->ht_stats[rxs->rate_idx].ht40_cnt++;
122 rstats->ht_stats[rxs->rate_idx].ht20_cnt++;
125 rstats->ht_stats[rxs->rate_idx].sgi_cnt++;
127 rstats->ht_stats[rxs->rate_idx].lgi_cnt++;
134 rstats->cck_stats[rxs->rate_idx].cck_sp_cnt++;
136 rstats->cck_stats[rxs->rate_idx].cck_lp_cnt++;
143 rstats->ofdm_stats[rxs->rate_idx - 4].ofdm_cnt++;
145 rstats->ofdm_stats[rxs->rate_idx].ofdm_cnt++;
H A Dcommon.c193 rxs->rate_idx = rx_stats->rs_rate & 0x7f;
199 rxs->rate_idx = i;
204 rxs->rate_idx = i;
/linux-master/drivers/net/wireless/purelifi/plfxlc/
H A Dintf.h28 u8 rate_idx; member in struct:rx_status
H A Dmac.c427 if (status->rate_idx > 7)
428 stats.rate_idx = 0;
430 stats.rate_idx = status->rate_idx;
/linux-master/net/mac80211/
H A Drate.c431 static bool rate_idx_match_legacy_mask(s8 *rate_idx, int n_bitrates, u32 mask) argument
436 for (j = *rate_idx; j >= 0; j--) {
439 *rate_idx = j;
445 for (j = *rate_idx + 1; j < n_bitrates; j++) {
448 *rate_idx = j;
455 static bool rate_idx_match_mcs_mask(s8 *rate_idx, u8 *mcs_mask) argument
460 ridx = *rate_idx / 8;
461 rbit = *rate_idx % 8;
471 *rate_idx = i * 8 + j;
478 ridx = (*rate_idx
492 rate_idx_match_vht_mcs_mask(s8 *rate_idx, u16 *vht_mask) argument
530 rate_idx_match_mask(s8 *rate_idx, u16 *rate_flags, struct ieee80211_supported_band *sband, enum nl80211_chan_width chan_width, u32 mask, u8 mcs_mask[IEEE80211_HT_MCS_MASK_LEN], u16 vht_mask[NL80211_VHT_NSS_MAX]) argument
[all...]
H A Dstatus.c219 if (status_rate && !(status_rate->rate_idx.flags &
240 if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_MCS)
242 else if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_VHT_MCS)
244 else if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_HE_MCS)
291 if (!(status_rate->rate_idx.flags &
297 legacy_rate = status_rate->rate_idx.legacy;
334 if (status_rate && (status_rate->rate_idx.flags & RATE_INFO_FLAGS_MCS))
340 if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_SHORT_GI)
342 if (status_rate->rate_idx.bw == RATE_INFO_BW_40)
344 pos[2] = status_rate->rate_idx
[all...]
H A Dairtime.c433 idx = status->rate_idx;
437 streams = ((status->rate_idx >> 3) & 3) + 1;
438 idx = status->rate_idx & 7;
443 idx = status->rate_idx;
484 if (!sband || status->rate_idx >= sband->n_bitrates)
487 rate = &sband->bitrates[status->rate_idx];
518 stat->rate_idx = ri->mcs;
537 stat->rate_idx = 0;
542 stat->rate_idx = i;
578 stat->rate_idx
[all...]
H A Dsta_info.h990 r |= STA_STATS_FIELD(VHT_MCS, s->rate_idx);
994 r |= STA_STATS_FIELD(HT_MCS, s->rate_idx);
999 r |= STA_STATS_FIELD(LEGACY_IDX, s->rate_idx);
1004 r |= STA_STATS_FIELD(HE_MCS, s->rate_idx);
1012 r |= STA_STATS_FIELD(EHT_MCS, s->rate_idx);
/linux-master/drivers/net/wireless/silabs/wfx/
H A Ddata_rx.c61 hdr->rate_idx = arg->rxed_rate - 14;
63 hdr->rate_idx = arg->rxed_rate - 2;
65 hdr->rate_idx = arg->rxed_rate;
/linux-master/drivers/net/wireless/intel/iwlegacy/
H A D3945.c80 il3945_get_prev_ieee_rate(u8 rate_idx) argument
82 u8 rate = il3945_rates[rate_idx].prev_ieee;
85 rate = rate_idx;
308 int rate_idx; local
336 rate_idx = il3945_hwrate_to_plcp_idx(tx_resp->rate);
338 rate_idx -= IL_FIRST_OFDM_RATE;
342 info->status.rates[0].idx = rate_idx;
548 rx_status.rate_idx = il3945_hwrate_to_plcp_idx(rx_hdr->rate);
550 rx_status.rate_idx -= IL_FIRST_OFDM_RATE;
584 rx_status.signal, rx_status.signal, rx_status.rate_idx);
688 u16 rate_idx = min(hw_value & 0xffff, RATE_COUNT_3945 - 1); local
1325 il3945_hw_reg_set_scan_power(struct il_priv *il, u32 scan_tbl_idx, s32 rate_idx, const s8 *clip_pwrs, struct il_channel_info *ch_info, int band_idx) argument
1384 int rate_idx, i; local
1558 u8 rate_idx; local
1975 s32 rate_idx; local
2060 u8 rate_idx; local
[all...]
H A D4965-rs.c538 struct il_scale_tbl_info *tbl, int *rate_idx)
546 *rate_idx = il4965_hwrate_to_plcp_idx(rate_n_flags);
548 if (*rate_idx == RATE_INVALID) {
549 *rate_idx = -1;
2136 int rate_idx; local
2169 il4965_rs_get_tbl_info_from_mcs(rate, il->band, tbl, &rate_idx);
2173 rate = il4965_rate_n_flags_from_tbl(il, tbl, rate_idx, use_green);
2191 int rate_idx; local
2215 rate_idx = lq_sta->last_txrate_idx;
2218 rate_idx
536 il4965_rs_get_tbl_info_from_mcs(const u32 rate_n_flags, enum nl80211_band band, struct il_scale_tbl_info *tbl, int *rate_idx) argument
2361 int rate_idx; local
[all...]
/linux-master/drivers/staging/vt6655/
H A Ddpc.c37 u8 rate_idx = 0; local
63 rate_idx = ii;
100 rx_status.rate_idx = rate_idx;
/linux-master/drivers/net/wireless/realtek/rtlwifi/
H A Dbase.c955 /* mac80211's rate_idx is like this:
983 int rate_idx; local
988 rate_idx = 0;
991 rate_idx = 1;
994 rate_idx = 2;
997 rate_idx = 3;
1000 rate_idx = 4;
1003 rate_idx = 5;
1006 rate_idx = 6;
1009 rate_idx
[all...]
/linux-master/drivers/net/wireless/ath/carl9170/
H A Drx.c364 status->rate_idx = 0;
367 status->rate_idx = 1;
370 status->rate_idx = 2;
373 status->rate_idx = 3;
389 status->rate_idx = 0;
392 status->rate_idx = 1;
395 status->rate_idx = 2;
398 status->rate_idx = 3;
401 status->rate_idx = 4;
404 status->rate_idx
[all...]
/linux-master/drivers/net/wireless/realtek/rtw88/
H A Drx.c177 rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M;
181 rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M;
183 rtw_desc_to_mcsrate(pkt_stat->rate, &rx_status->rate_idx,
H A Dphy.c550 static u32 rtw_phy_get_rrsr_mask(struct rtw_dev *rtwdev, u8 rate_idx) argument
554 rate_order = rate_idx;
556 if (rate_idx >= DESC_RATEVHT4SS_MCS0)
558 else if (rate_idx >= DESC_RATEVHT3SS_MCS0)
560 else if (rate_idx >= DESC_RATEVHT2SS_MCS0)
562 else if (rate_idx >= DESC_RATEVHT1SS_MCS0)
564 else if (rate_idx >= DESC_RATEMCS24)
566 else if (rate_idx >= DESC_RATEMCS16)
568 else if (rate_idx >= DESC_RATEMCS8)
570 else if (rate_idx >
2229 u8 base_idx, rate_idx; local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt7601u/
H A Dmac.c108 u8 phy, rate_idx; local
113 rate_idx = rate->idx;
132 rate_idx = val & 0xff;
136 rateval = FIELD_PREP(MT_RXWI_RATE_MCS, rate_idx);
407 status->rate_idx = idx;
418 status->rate_idx = idx;
425 status->rate_idx = idx;
/linux-master/drivers/staging/vt6656/
H A Dusbpipe.c274 u8 rate_idx = 0; local
315 rate_idx = ii;
352 rx_status->rate_idx = rate_idx;
/linux-master/drivers/net/wireless/ti/wlcore/
H A Dtx.c255 int ac, rate_idx; local
312 rate_idx = 0;
320 rate_idx = wlvif->sta.basic_rate_idx;
322 rate_idx = wlvif->sta.p2p_rate_idx;
324 rate_idx = wlvif->sta.ap_rate_idx;
326 rate_idx = wlvif->sta.basic_rate_idx;
329 rate_idx = wlvif->ap.mgmt_rate_idx;
337 rate_idx = wlvif->ap.bcast_rate_idx;
339 rate_idx = wlvif->ap.ucast_rate_idx[ac];
342 tx_attr |= rate_idx << TX_HW_ATTR_OFST_RATE_POLIC
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_mac.c183 u8 phy, rate_idx, nss, bw = 0; local
187 rate_idx = rate->idx;
195 rate_idx = rate->idx;
214 rate_idx = val & 0xff;
218 rateval = FIELD_PREP(MT_RXWI_RATE_INDEX, rate_idx);
671 status->rate_idx = idx;
682 status->rate_idx = idx;
689 status->rate_idx = idx;
695 status->rate_idx = FIELD_GET(MT_RATE_INDEX_VHT_IDX, idx);
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dtx.c112 int rate_idx; local
153 rate_idx = info->control.rates[0].idx;
155 (rate_idx < 0) || (rate_idx > IWL_RATE_COUNT_LEGACY))
156 rate_idx = rate_lowest_index(
160 rate_idx += IWL_FIRST_OFDM_RATE;
162 rate_plcp = iwl_rates[rate_idx].plcp;
167 if ((rate_idx >= IWL_FIRST_CCK_RATE) && (rate_idx <= IWL_LAST_CCK_RATE))
H A Drs.c565 int *rate_idx)
572 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags);
574 if (*rate_idx == IWL_RATE_INVALID) {
575 *rate_idx = -1;
2612 int rate_idx; local
2648 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx);
2652 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green);
2671 int rate_idx; local
2692 rate_idx = lq_sta->last_txrate_idx;
2695 rate_idx
562 rs_get_tbl_info_from_mcs(const u32 rate_n_flags, enum nl80211_band band, struct iwl_scale_tbl_info *tbl, int *rate_idx) argument
2848 int rate_idx; local
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drs.c1337 int rate_idx; local
1351 rate_idx = find_first_bit(&rate_mask, BITS_PER_LONG);
1353 while (rate_idx != IWL_RATE_INVALID) {
1354 if (target_tpt < (100 * tpt_tbl[rate_idx]))
1357 high_low = rs_get_adjacent_rate(mvm, rate_idx, rate_mask,
1360 rate_idx = (high_low >> 8) & 0xff;
1364 rate_idx, target_tpt,
1365 rate_idx != IWL_RATE_INVALID ?
1366 100 * tpt_tbl[rate_idx] : IWL_INVALID_VALUE);
1368 return rate_idx;
1685 u32 rate_idx = 0; local
2335 u8 rate_idx; member in struct:rs_init_rate_info
2472 int rate_idx = lq_sta->optimal_rates[i].rate_idx; local
2589 int rate_idx = initial_rates[i].rate_idx; local
[all...]
/linux-master/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00dev.c311 u8 rate_idx, rate_flags, retry_rates; local
314 rate_idx = skbdesc->tx_rate_idx;
332 tx_info->status.rates[i].idx = rate_idx - i;
335 if (rate_idx - i == 0) {
744 int rate_idx; local
811 rate_idx = rt2x00lib_rxdone_read_signal(rt2x00dev, &rxdesc);
851 rx_status->rate_idx = rate_idx;

Completed in 328 milliseconds

12345