/drivers/net/wireless/b43/ |
D | ppr.c | 80 struct b43_ppr_rates *rates = &ppr->rates; in b43_ppr_load_max_from_sprom() local 130 rates->cck[i] = maxpwr - off; in b43_ppr_load_max_from_sprom() 137 rates->ofdm[i] = maxpwr - off; in b43_ppr_load_max_from_sprom() 141 rates->mcs_20[0] = rates->ofdm[0]; in b43_ppr_load_max_from_sprom() 142 rates->mcs_20[1] = rates->ofdm[2]; in b43_ppr_load_max_from_sprom() 143 rates->mcs_20[2] = rates->ofdm[3]; in b43_ppr_load_max_from_sprom() 144 rates->mcs_20[3] = rates->ofdm[4]; in b43_ppr_load_max_from_sprom() 145 rates->mcs_20[4] = rates->ofdm[5]; in b43_ppr_load_max_from_sprom() 146 rates->mcs_20[5] = rates->ofdm[6]; in b43_ppr_load_max_from_sprom() 147 rates->mcs_20[6] = rates->ofdm[7]; in b43_ppr_load_max_from_sprom() [all …]
|
D | xmit.c | 266 struct ieee80211_tx_rate *rates; in b43_generate_txhdr() local 380 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in b43_generate_txhdr() 403 rates = info->control.rates; in b43_generate_txhdr() 419 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr() 420 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { in b43_generate_txhdr() 421 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; in b43_generate_txhdr() 424 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; in b43_generate_txhdr() 428 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr() 429 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { in b43_generate_txhdr() 444 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in b43_generate_txhdr() [all …]
|
/drivers/net/wireless/cw1200/ |
D | txrx.c | 70 struct ieee80211_tx_rate *rates, size_t count) in tx_policy_build() argument 75 BUG_ON(rates[0].idx < 0); in tx_policy_build() 80 if (rates[i].idx < 0) { in tx_policy_build() 84 if (rates[i].idx > rates[i - 1].idx) { in tx_policy_build() 85 struct ieee80211_tx_rate tmp = rates[i - 1]; in tx_policy_build() 86 rates[i - 1] = rates[i]; in tx_policy_build() 87 rates[i] = tmp; in tx_policy_build() 92 total = rates[0].count; in tx_policy_build() 94 if (rates[j].idx == rates[i].idx) { in tx_policy_build() 95 rates[i].count += rates[j].count; in tx_policy_build() [all …]
|
/drivers/net/wireless/mwifiex/ |
D | cfp.c | 299 u32 mwifiex_get_active_data_rates(struct mwifiex_private *priv, u8 *rates) in mwifiex_get_active_data_rates() argument 302 return mwifiex_get_supported_rates(priv, rates); in mwifiex_get_active_data_rates() 304 return mwifiex_copy_rates(rates, 0, in mwifiex_get_active_data_rates() 393 u8 *rates, u8 radio_type) in mwifiex_get_rates_from_cfg80211() argument 405 rate_mask = request->rates[IEEE80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211() 410 rate_mask = request->rates[IEEE80211_BAND_2GHZ]; in mwifiex_get_rates_from_cfg80211() 417 rates[num_rates++] = (u8)(sband->bitrates[i].bitrate / 5); in mwifiex_get_rates_from_cfg80211() 427 u32 mwifiex_get_supported_rates(struct mwifiex_private *priv, u8 *rates) in mwifiex_get_supported_rates() argument 439 k = mwifiex_copy_rates(rates, k, supported_rates_b, in mwifiex_get_supported_rates() 447 k = mwifiex_copy_rates(rates, k, supported_rates_g, in mwifiex_get_supported_rates() [all …]
|
/drivers/net/wireless/orinoco/ |
D | scan.c | 27 static int symbol_build_supp_rates(u8 *buf, const __le16 *rates) in symbol_build_supp_rates() argument 34 rate = le16_to_cpu(rates[i]); in symbol_build_supp_rates() 45 static int prism_build_supp_rates(u8 *buf, const u8 *rates) in prism_build_supp_rates() argument 52 if (rates[i] == 0x0) in prism_build_supp_rates() 54 buf[i + 2] = rates[i]; in prism_build_supp_rates() 60 if (i == 8 && rates[i] > 0) { in prism_build_supp_rates() 64 if (rates[i] == 0x0) in prism_build_supp_rates() 66 buf[i + 2] = rates[i]; in prism_build_supp_rates() 101 ie_len += symbol_build_supp_rates(ie, bss->s.rates); in orinoco_add_hostscan_result() 105 ie_len += prism_build_supp_rates(ie, bss->p.rates); in orinoco_add_hostscan_result()
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9002_mac.c | 238 ACCESS_ONCE(ads->ds_ctl2) = set11nTries(i->rates, 0) in ar9002_set_txdesc() 239 | set11nTries(i->rates, 1) in ar9002_set_txdesc() 240 | set11nTries(i->rates, 2) in ar9002_set_txdesc() 241 | set11nTries(i->rates, 3) in ar9002_set_txdesc() 245 ACCESS_ONCE(ads->ds_ctl3) = set11nRate(i->rates, 0) in ar9002_set_txdesc() 246 | set11nRate(i->rates, 1) in ar9002_set_txdesc() 247 | set11nRate(i->rates, 2) in ar9002_set_txdesc() 248 | set11nRate(i->rates, 3); in ar9002_set_txdesc() 298 ACCESS_ONCE(ads->ds_ctl4) = set11nPktDurRTSCTS(i->rates, 0) in ar9002_set_txdesc() 299 | set11nPktDurRTSCTS(i->rates, 1); in ar9002_set_txdesc() [all …]
|
D | xmit.c | 141 ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates, in ath_set_rates() 142 ARRAY_SIZE(bf->rates)); in ath_set_rates() 445 struct ieee80211_tx_rate rates[4]; in ath_tx_complete_aggr() local 457 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr() 461 retries += rates[i].count; in ath_tx_complete_aggr() 577 memcpy(tx_info->control.rates, rates, sizeof(rates)); in ath_tx_complete_aggr() 683 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer() 684 sizeof(info->control.rates)); in ath_tx_process_buffer() 700 struct ieee80211_tx_rate *rates; in ath_lookup_legacy() local 705 rates = tx_info->control.rates; in ath_lookup_legacy() [all …]
|
D | ar9003_mac.c | 69 ACCESS_ONCE(ads->ctl13) = set11nTries(i->rates, 0) in ar9003_set_txdesc() 70 | set11nTries(i->rates, 1) in ar9003_set_txdesc() 71 | set11nTries(i->rates, 2) in ar9003_set_txdesc() 72 | set11nTries(i->rates, 3) in ar9003_set_txdesc() 76 ACCESS_ONCE(ads->ctl14) = set11nRate(i->rates, 0) in ar9003_set_txdesc() 77 | set11nRate(i->rates, 1) in ar9003_set_txdesc() 78 | set11nRate(i->rates, 2) in ar9003_set_txdesc() 79 | set11nRate(i->rates, 3); in ar9003_set_txdesc() 141 ACCESS_ONCE(ads->ctl15) = set11nPktDurRTSCTS(i->rates, 0) in ar9003_set_txdesc() 142 | set11nPktDurRTSCTS(i->rates, 1); in ar9003_set_txdesc() [all …]
|
/drivers/net/wireless/brcm80211/brcmsmac/ |
D | rate.c | 284 if (rs->rates[idx] & BRCMS_RATE_FLAG) in brcms_c_rateset_valid() 316 r = (int)rs->rates[i] & BRCMS_RATE_MASK; in brcms_c_rate_hwrs_filter_sort_validate() 319 rateset[r] = rs->rates[i]; /* preserve basic bit! */ in brcms_c_rate_hwrs_filter_sort_validate() 325 r = hw_rs->rates[i] & BRCMS_RATE_MASK; in brcms_c_rate_hwrs_filter_sort_validate() 327 rs->rates[count++] = rateset[r]; in brcms_c_rate_hwrs_filter_sort_validate() 409 bool basic_only, u8 rates, uint xmask, bool mcsallow) in brcms_c_rateset_filter() argument 417 r = src->rates[i]; in brcms_c_rateset_filter() 420 if (rates == BRCMS_RATES_CCK && in brcms_c_rateset_filter() 423 if (rates == BRCMS_RATES_OFDM && in brcms_c_rateset_filter() 426 dst->rates[count++] = r & xmask; in brcms_c_rateset_filter() [all …]
|
/drivers/staging/rtl8712/ |
D | ieee80211.c | 138 static void set_supported_rate(u8 *rates, uint mode) in set_supported_rate() argument 140 memset(rates, 0, NDIS_802_11_LENGTH_RATES_EX); in set_supported_rate() 143 memcpy(rates, WIFI_CCKRATES, IEEE80211_CCK_RATE_LEN); in set_supported_rate() 147 memcpy(rates, WIFI_OFDMRATES, IEEE80211_NUM_OFDM_RATESLEN); in set_supported_rate() 150 memcpy(rates, WIFI_CCKRATES, IEEE80211_CCK_RATE_LEN); in set_supported_rate() 151 memcpy(rates + IEEE80211_CCK_RATE_LEN, WIFI_OFDMRATES, in set_supported_rate() 197 set_supported_rate(pdev_network->rates, pregistrypriv->wireless_mode); in r8712_generate_ie() 198 rateLen = r8712_get_rateset_len(pdev_network->rates); in r8712_generate_ie() 201 pdev_network->rates, &sz); in r8712_generate_ie() 203 (pdev_network->rates + 8), &sz); in r8712_generate_ie() [all …]
|
/drivers/clk/pistachio/ |
D | clk-pll.c | 77 struct pistachio_pll_rate_table *rates; member 138 if (pll->rates[i].fref == fref && pll->rates[i].fout == fout) in pll_get_params() 139 return &pll->rates[i]; in pll_get_params() 152 if (i > 0 && pll->rates[i].fref == *parent_rate && in pll_round_rate() 153 pll->rates[i].fout <= rate) in pll_round_rate() 154 return pll->rates[i - 1].fout; in pll_round_rate() 157 return pll->rates[0].fout; in pll_round_rate() 452 struct pistachio_pll_rate_table *rates, in pll_register() argument 470 if (rates) in pll_register() 476 if (rates) in pll_register() [all …]
|
D | clk.h | 116 struct pistachio_pll_rate_table *rates; member 127 .rates = _rates, \ 138 .rates = NULL, \
|
/drivers/scsi/libsas/ |
D | sas_init.c | 329 struct sas_phy_linkrates *rates) in sas_set_phy_speed() argument 333 if ((rates->minimum_linkrate && in sas_set_phy_speed() 334 rates->minimum_linkrate > phy->maximum_linkrate) || in sas_set_phy_speed() 335 (rates->maximum_linkrate && in sas_set_phy_speed() 336 rates->maximum_linkrate < phy->minimum_linkrate)) in sas_set_phy_speed() 339 if (rates->minimum_linkrate && in sas_set_phy_speed() 340 rates->minimum_linkrate < phy->minimum_linkrate_hw) in sas_set_phy_speed() 341 rates->minimum_linkrate = phy->minimum_linkrate_hw; in sas_set_phy_speed() 343 if (rates->maximum_linkrate && in sas_set_phy_speed() 344 rates->maximum_linkrate > phy->maximum_linkrate_hw) in sas_set_phy_speed() [all …]
|
/drivers/net/wireless/b43legacy/ |
D | xmit.c | 204 struct ieee80211_tx_rate *rates; in generate_txhdr_fw3() local 278 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in generate_txhdr_fw3() 283 rates = info->control.rates; in generate_txhdr_fw3() 297 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in generate_txhdr_fw3() 298 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { in generate_txhdr_fw3() 299 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; in generate_txhdr_fw3() 302 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; in generate_txhdr_fw3() 306 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in generate_txhdr_fw3() 307 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { in generate_txhdr_fw3() 320 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in generate_txhdr_fw3()
|
D | pio.c | 511 retry_limit = info->status.rates[0].count; in b43legacy_pio_handle_txstatus() 525 info->status.rates[0].count = 0; in b43legacy_pio_handle_txstatus() 526 info->status.rates[1].count = status->frame_count; in b43legacy_pio_handle_txstatus() 529 info->status.rates[0].count = retry_limit; in b43legacy_pio_handle_txstatus() 530 info->status.rates[1].count = status->frame_count - in b43legacy_pio_handle_txstatus() 534 info->status.rates[0].count = status->frame_count; in b43legacy_pio_handle_txstatus() 535 info->status.rates[1].idx = -1; in b43legacy_pio_handle_txstatus()
|
/drivers/net/wireless/ath/ath5k/ |
D | phy.c | 2675 struct ath5k_rate_pcal_info *rates) in ath5k_get_rate_pcal_data() argument 2731 rates->freq = target; in ath5k_get_rate_pcal_data() 2733 rates->target_power_6to24 = in ath5k_get_rate_pcal_data() 2739 rates->target_power_36 = in ath5k_get_rate_pcal_data() 2745 rates->target_power_48 = in ath5k_get_rate_pcal_data() 2751 rates->target_power_54 = in ath5k_get_rate_pcal_data() 3515 u16 *rates; in ath5k_setup_rate_powertable() local 3524 rates = ah->ah_txpower.txp_rates_power_table; in ath5k_setup_rate_powertable() 3528 rates[i] = min(max_pwr, rate_info->target_power_6to24); in ath5k_setup_rate_powertable() 3531 rates[5] = min(rates[0], rate_info->target_power_36); in ath5k_setup_rate_powertable() [all …]
|
/drivers/net/wireless/ti/wl1251/ |
D | wl12xx_80211.h | 84 u8 rates[MAX_SUPPORTED_RATES]; member 113 struct wl12xx_ie_rates rates; member 138 struct wl12xx_ie_rates rates; member 149 struct wl12xx_ie_rates rates; member
|
D | acx.c | 14 struct acx_fw_gen_frame_rates *rates; in wl1251_acx_frame_rates() local 19 rates = kzalloc(sizeof(*rates), GFP_KERNEL); in wl1251_acx_frame_rates() 20 if (!rates) in wl1251_acx_frame_rates() 23 rates->tx_ctrl_frame_rate = ctrl_rate; in wl1251_acx_frame_rates() 24 rates->tx_ctrl_frame_mod = ctrl_mod; in wl1251_acx_frame_rates() 25 rates->tx_mgt_frame_rate = mgt_rate; in wl1251_acx_frame_rates() 26 rates->tx_mgt_frame_mod = mgt_mod; in wl1251_acx_frame_rates() 29 rates, sizeof(*rates)); in wl1251_acx_frame_rates() 36 kfree(rates); in wl1251_acx_frame_rates()
|
/drivers/net/wireless/p54/ |
D | txrx.c | 440 if (count >= info->status.rates[idx].count) { in p54_rx_frame_sent() 441 count -= info->status.rates[idx].count; in p54_rx_frame_sent() 443 info->status.rates[idx].count = count; in p54_rx_frame_sent() 446 info->status.rates[idx].idx = -1; in p54_rx_frame_sent() 447 info->status.rates[idx].count = 0; in p54_rx_frame_sent() 824 hdr->rts_tries = info->control.rates[0].count; in p54_tx_80211() 836 if (info->control.rates[i].idx < 0) in p54_tx_80211() 849 info->control.rates[i].count); in p54_tx_80211() 855 int tmp = info->control.rates[i].count - calculated_tries[i]; in p54_tx_80211() 869 rate = info->control.rates[i].idx; in p54_tx_80211() [all …]
|
/drivers/net/wireless/ath/wcn36xx/ |
D | main.c | 526 u32 rates = sta->supp_rates[band]; in wcn36xx_update_allowed_rates() local 536 if (rates & 0x01) { in wcn36xx_update_allowed_rates() 538 rates = rates >> 1; in wcn36xx_update_allowed_rates() 546 if (rates & 0x01) { in wcn36xx_update_allowed_rates() 548 rates = rates >> 1; in wcn36xx_update_allowed_rates() 560 void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) in wcn36xx_set_default_rates() argument 579 rates->op_rate_mode = STA_11n; in wcn36xx_set_default_rates() 580 memcpy(rates->dsss_rates, dsss_rates, in wcn36xx_set_default_rates() 582 memcpy(rates->ofdm_rates, ofdm_rates, in wcn36xx_set_default_rates() 584 rates->supported_mcs_set[0] = 0xFF; in wcn36xx_set_default_rates()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | main.c | 380 struct ieee80211_sta_rates *rates; in mt76_sta_rate_tbl_update() local 384 rates = rcu_dereference(sta->rates); in mt76_sta_rate_tbl_update() 386 if (!rates) in mt76_sta_rate_tbl_update() 389 rate.idx = rates->rate[0].idx; in mt76_sta_rate_tbl_update() 390 rate.flags = rates->rate[0].flags; in mt76_sta_rate_tbl_update()
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | rc.c | 151 struct ieee80211_tx_rate *rates = tx_info->control.rates; in rtl_get_rate() local 161 _rtl_rc_rate_set_series(rtlpriv, sta, &rates[0], txrc, in rtl_get_rate() 166 _rtl_rc_rate_set_series(rtlpriv, sta, &rates[i], in rtl_get_rate()
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00dev.c | 406 tx_info->status.rates[i].idx = rate_idx - i; in rt2x00lib_txdone() 407 tx_info->status.rates[i].flags = rate_flags; in rt2x00lib_txdone() 414 tx_info->status.rates[i].count = retry_rates - i; in rt2x00lib_txdone() 418 tx_info->status.rates[i].count = 1; in rt2x00lib_txdone() 421 tx_info->status.rates[i].idx = -1; /* terminate */ in rt2x00lib_txdone() 939 struct ieee80211_rate *rates; in rt2x00lib_probe_hw_modes() local 953 rates = kcalloc(num_rates, sizeof(*rates), GFP_KERNEL); in rt2x00lib_probe_hw_modes() 954 if (!rates) in rt2x00lib_probe_hw_modes() 961 rt2x00lib_rate(&rates[i], i, rt2x00_get_rate(i)); in rt2x00lib_probe_hw_modes() 981 rt2x00dev->bands[IEEE80211_BAND_2GHZ].bitrates = rates; in rt2x00lib_probe_hw_modes() [all …]
|
/drivers/net/wireless/zd1211rw/ |
D | zd_mac.c | 468 first_idx = info->status.rates[0].idx; in zd_mac_tx_status() 473 info->status.rates[0].idx = retries->rate[0]; in zd_mac_tx_status() 474 info->status.rates[0].count = 1; // (retry > 1 ? 2 : 1); in zd_mac_tx_status() 477 info->status.rates[i].idx = retries->rate[i]; in zd_mac_tx_status() 478 info->status.rates[i].count = 1; // ((i==retry-1) && success ? 1:2); in zd_mac_tx_status() 481 info->status.rates[i].idx = retries->rate[retry - 1]; in zd_mac_tx_status() 482 info->status.rates[i].count = 1; // (success ? 1:2); in zd_mac_tx_status() 485 info->status.rates[i].idx = -1; /* terminate */ in zd_mac_tx_status() 541 first_idx = info->status.rates[0].idx; in zd_mac_tx_failed() 680 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) in cs_set_control() [all …]
|
/drivers/staging/vt6656/ |
D | int.c | 87 idx = info->control.rates[0].idx; in vnt_int_report_rate() 112 info->status.rates[0].count = tx_retry; in vnt_int_report_rate() 115 info->status.rates[0].idx = idx; in vnt_int_report_rate()
|