Home
last modified time | relevance | path

Searched refs:rates (Results 1 – 25 of 159) sorted by relevance

1234567

/drivers/net/wireless/mwifiex/
Dcfp.c160 u32 mwifiex_get_active_data_rates(struct mwifiex_private *priv, u8 *rates) in mwifiex_get_active_data_rates() argument
163 return mwifiex_get_supported_rates(priv, rates); in mwifiex_get_active_data_rates()
165 return mwifiex_copy_rates(rates, 0, in mwifiex_get_active_data_rates()
268 u32 mwifiex_get_supported_rates(struct mwifiex_private *priv, u8 *rates) in mwifiex_get_supported_rates() argument
277 k = mwifiex_copy_rates(rates, k, supported_rates_b, in mwifiex_get_supported_rates()
284 k = mwifiex_copy_rates(rates, k, supported_rates_g, in mwifiex_get_supported_rates()
294 k = mwifiex_copy_rates(rates, k, supported_rates_bg, in mwifiex_get_supported_rates()
301 k = mwifiex_copy_rates(rates, k, supported_rates_a, in mwifiex_get_supported_rates()
308 k = mwifiex_copy_rates(rates, k, supported_rates_a, in mwifiex_get_supported_rates()
314 k = mwifiex_copy_rates(rates, k, supported_rates_n, in mwifiex_get_supported_rates()
[all …]
/drivers/net/wireless/ath/ath9k/
Dar9002_mac.c201 ACCESS_ONCE(ads->ds_ctl2) = set11nTries(i->rates, 0) in ar9002_set_txdesc()
202 | set11nTries(i->rates, 1) in ar9002_set_txdesc()
203 | set11nTries(i->rates, 2) in ar9002_set_txdesc()
204 | set11nTries(i->rates, 3) in ar9002_set_txdesc()
208 ACCESS_ONCE(ads->ds_ctl3) = set11nRate(i->rates, 0) in ar9002_set_txdesc()
209 | set11nRate(i->rates, 1) in ar9002_set_txdesc()
210 | set11nRate(i->rates, 2) in ar9002_set_txdesc()
211 | set11nRate(i->rates, 3); in ar9002_set_txdesc()
261 ACCESS_ONCE(ads->ds_ctl4) = set11nPktDurRTSCTS(i->rates, 0) in ar9002_set_txdesc()
262 | set11nPktDurRTSCTS(i->rates, 1); in ar9002_set_txdesc()
[all …]
Drc.c729 struct ieee80211_tx_rate *rates = tx_info->control.rates; in ath_rc_rate_set_rtscts() local
734 if (rates[i].count && (rates[i].idx >= 0)) { in ath_rc_rate_set_rtscts()
735 rix = ath_rc_get_rateindex(rate_table, &rates[i]); in ath_rc_rate_set_rtscts()
755 rates[0].flags |= IEEE80211_TX_RC_USE_CTS_PROTECT; in ath_rc_rate_set_rtscts()
770 struct ieee80211_tx_rate *rates = tx_info->control.rates; in ath_get_rate() local
812 ath_rc_rate_set_series(rate_table, &rates[i++], txrc, in ath_get_rate()
819 ath_rc_rate_set_series(rate_table, &rates[i++], txrc, in ath_get_rate()
825 ath_rc_rate_set_series(rate_table, &rates[i++], txrc, in ath_get_rate()
834 ath_rc_rate_set_series(rate_table, &rates[i], txrc, in ath_get_rate()
845 if ((rates[2].flags & IEEE80211_TX_RC_MCS) && in ath_get_rate()
[all …]
Dxmit.c423 struct ieee80211_tx_rate rates[4]; in ath_tx_complete_aggr() local
436 memcpy(rates, tx_info->control.rates, sizeof(rates)); in ath_tx_complete_aggr()
440 retries += rates[i].count; in ath_tx_complete_aggr()
557 memcpy(tx_info->control.rates, rates, sizeof(rates)); in ath_tx_complete_aggr()
639 struct ieee80211_tx_rate *rates; in ath_lookup_legacy() local
644 rates = tx_info->control.rates; in ath_lookup_legacy()
647 if (!rates[i].count || rates[i].idx < 0) in ath_lookup_legacy()
650 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) in ath_lookup_legacy()
662 struct ieee80211_tx_rate *rates; in ath_lookup_rate() local
669 rates = tx_info->control.rates; in ath_lookup_rate()
[all …]
Dar9003_mac.c69 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/orinoco/
Dscan.c27 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/brcm80211/brcmsmac/
Drate.c284 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/net/wireless/b43/
Dxmit.c265 struct ieee80211_tx_rate *rates; in b43_generate_txhdr() local
378 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in b43_generate_txhdr()
401 rates = info->control.rates; in b43_generate_txhdr()
417 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr()
418 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { in b43_generate_txhdr()
419 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; in b43_generate_txhdr()
422 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; in b43_generate_txhdr()
426 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr()
427 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { in b43_generate_txhdr()
442 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in b43_generate_txhdr()
[all …]
/drivers/scsi/libsas/
Dsas_init.c325 struct sas_phy_linkrates *rates) in sas_set_phy_speed() argument
329 if ((rates->minimum_linkrate && in sas_set_phy_speed()
330 rates->minimum_linkrate > phy->maximum_linkrate) || in sas_set_phy_speed()
331 (rates->maximum_linkrate && in sas_set_phy_speed()
332 rates->maximum_linkrate < phy->minimum_linkrate)) in sas_set_phy_speed()
335 if (rates->minimum_linkrate && in sas_set_phy_speed()
336 rates->minimum_linkrate < phy->minimum_linkrate_hw) in sas_set_phy_speed()
337 rates->minimum_linkrate = phy->minimum_linkrate_hw; in sas_set_phy_speed()
339 if (rates->maximum_linkrate && in sas_set_phy_speed()
340 rates->maximum_linkrate > phy->maximum_linkrate_hw) in sas_set_phy_speed()
[all …]
Dsas_host_smp.c189 struct sas_phy_linkrates rates; in sas_phy_control() local
213 rates.minimum_linkrate = min; in sas_phy_control()
214 rates.maximum_linkrate = max; in sas_phy_control()
222 if (i->dft->lldd_control_phy(asd_phy, phy_op, &rates)) in sas_phy_control()
/drivers/net/wireless/b43legacy/
Dxmit.c204 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()
295 rates = info->control.rates; in generate_txhdr_fw3()
309 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in generate_txhdr_fw3()
310 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { in generate_txhdr_fw3()
311 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; in generate_txhdr_fw3()
314 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; in generate_txhdr_fw3()
318 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in generate_txhdr_fw3()
319 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { in generate_txhdr_fw3()
332 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in generate_txhdr_fw3()
Dpio.c511 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/
Dphy.c2676 struct ath5k_rate_pcal_info *rates) in ath5k_get_rate_pcal_data() argument
2732 rates->freq = target; in ath5k_get_rate_pcal_data()
2734 rates->target_power_6to24 = in ath5k_get_rate_pcal_data()
2740 rates->target_power_36 = in ath5k_get_rate_pcal_data()
2746 rates->target_power_48 = in ath5k_get_rate_pcal_data()
2752 rates->target_power_54 = in ath5k_get_rate_pcal_data()
3516 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/wl1251/
Dwl12xx_80211.h84 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
Dacx.c15 struct acx_fw_gen_frame_rates *rates; in wl1251_acx_frame_rates() local
20 rates = kzalloc(sizeof(*rates), GFP_KERNEL); in wl1251_acx_frame_rates()
21 if (!rates) { in wl1251_acx_frame_rates()
26 rates->tx_ctrl_frame_rate = ctrl_rate; in wl1251_acx_frame_rates()
27 rates->tx_ctrl_frame_mod = ctrl_mod; in wl1251_acx_frame_rates()
28 rates->tx_mgt_frame_rate = mgt_rate; in wl1251_acx_frame_rates()
29 rates->tx_mgt_frame_mod = mgt_mod; in wl1251_acx_frame_rates()
32 rates, sizeof(*rates)); in wl1251_acx_frame_rates()
39 kfree(rates); in wl1251_acx_frame_rates()
/drivers/net/wireless/rt2x00/
Drt2x00dev.c356 tx_info->status.rates[i].idx = rate_idx - i; in rt2x00lib_txdone()
357 tx_info->status.rates[i].flags = rate_flags; in rt2x00lib_txdone()
364 tx_info->status.rates[i].count = retry_rates - i; in rt2x00lib_txdone()
368 tx_info->status.rates[i].count = 1; in rt2x00lib_txdone()
371 tx_info->status.rates[i].idx = -1; /* terminate */ in rt2x00lib_txdone()
832 struct ieee80211_rate *rates; in rt2x00lib_probe_hw_modes() local
846 rates = kcalloc(num_rates, sizeof(*rates), GFP_KERNEL); in rt2x00lib_probe_hw_modes()
847 if (!rates) in rt2x00lib_probe_hw_modes()
854 rt2x00lib_rate(&rates[i], i, rt2x00_get_rate(i)); in rt2x00lib_probe_hw_modes()
874 rt2x00dev->bands[IEEE80211_BAND_2GHZ].bitrates = rates; in rt2x00lib_probe_hw_modes()
[all …]
Drt2x00mac.c42 if (tx_info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) in rt2x00mac_tx_rts_cts()
67 rts_info->control.rates[0].flags &= ~IEEE80211_TX_RC_USE_RTS_CTS; in rt2x00mac_tx_rts_cts()
68 rts_info->control.rates[0].flags &= ~IEEE80211_TX_RC_USE_CTS_PROTECT; in rt2x00mac_tx_rts_cts()
70 if (tx_info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) in rt2x00mac_tx_rts_cts()
84 if (tx_info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) in rt2x00mac_tx_rts_cts()
143 (tx_info->control.rates[0].flags & (IEEE80211_TX_RC_USE_RTS_CTS | in rt2x00mac_tx()
/drivers/net/wireless/p54/
Dtxrx.c437 if (count >= info->status.rates[idx].count) { in p54_rx_frame_sent()
438 count -= info->status.rates[idx].count; in p54_rx_frame_sent()
440 info->status.rates[idx].count = count; in p54_rx_frame_sent()
443 info->status.rates[idx].idx = -1; in p54_rx_frame_sent()
444 info->status.rates[idx].count = 0; in p54_rx_frame_sent()
818 hdr->rts_tries = info->control.rates[0].count; in p54_tx_80211()
830 if (info->control.rates[i].idx < 0) in p54_tx_80211()
843 info->control.rates[i].count); in p54_tx_80211()
849 int tmp = info->control.rates[i].count - calculated_tries[i]; in p54_tx_80211()
863 rate = info->control.rates[i].idx; in p54_tx_80211()
[all …]
/drivers/net/wireless/rtlwifi/
Drc.c139 struct ieee80211_tx_rate *rates = tx_info->control.rates; in rtl_get_rate() local
149 _rtl_rc_rate_set_series(rtlpriv, sta, &rates[0], txrc, in rtl_get_rate()
154 _rtl_rc_rate_set_series(rtlpriv, sta, &rates[i], in rtl_get_rate()
/drivers/net/wireless/zd1211rw/
Dzd_mac.c469 first_idx = info->status.rates[0].idx; in zd_mac_tx_status()
474 info->status.rates[0].idx = retries->rate[0]; in zd_mac_tx_status()
475 info->status.rates[0].count = 1; // (retry > 1 ? 2 : 1); in zd_mac_tx_status()
478 info->status.rates[i].idx = retries->rate[i]; in zd_mac_tx_status()
479 info->status.rates[i].count = 1; // ((i==retry-1) && success ? 1:2); in zd_mac_tx_status()
482 info->status.rates[i].idx = retries->rate[retry - 1]; in zd_mac_tx_status()
483 info->status.rates[i].count = 1; // (success ? 1:2); in zd_mac_tx_status()
486 info->status.rates[i].idx = -1; /* terminate */ in zd_mac_tx_status()
543 first_idx = info->status.rates[0].idx; in zd_mac_tx_failed()
682 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) in cs_set_control()
[all …]
/drivers/net/wireless/ipw2x00/
Dipw2200.c2441 struct ipw_supported_rates *rates) in ipw_send_supported_rates() argument
2443 if (!priv || !rates) { in ipw_send_supported_rates()
2448 return ipw_send_cmd_pdu(priv, IPW_CMD_SUPPORTED_RATES, sizeof(*rates), in ipw_send_supported_rates()
2449 rates); in ipw_send_supported_rates()
5376 struct ipw_supported_rates *rates) in ipw_compatible_rates() argument
5380 memset(rates, 0, sizeof(*rates)); in ipw_compatible_rates()
5382 rates->num_rates = 0; in ipw_compatible_rates()
5385 network->rates[i])) { in ipw_compatible_rates()
5387 if (network->rates[i] & LIBIPW_BASIC_RATE_MASK) { in ipw_compatible_rates()
5390 network->rates[i]); in ipw_compatible_rates()
[all …]
/drivers/media/video/gspca/
Dtopro.c189 static const u8 rates[] = {30, 20, 15, 10, 7, 5}; variable
192 .rates = rates,
193 .nrates = ARRAY_SIZE(rates)
196 .rates = rates,
197 .nrates = ARRAY_SIZE(rates)
203 .rates = rates_6810,
207 .rates = rates_6810,
3940 for (i = 0; i < ARRAY_SIZE(rates) - 1; i++) { in get_fr_idx()
3941 if (sd->framerate >= rates[i]) in get_fr_idx()
4774 fr = rates[6 - (i & 0x07)]; in sd_get_streamparm()
[all …]
/drivers/scsi/aic94xx/
Daic94xx_scb.c904 struct sas_phy_linkrates *rates; in asd_control_phy() local
912 rates = arg; in asd_control_phy()
913 if (rates->minimum_linkrate) { in asd_control_phy()
914 pd->min_sas_lrate = rates->minimum_linkrate; in asd_control_phy()
915 pd->min_sata_lrate = rates->minimum_linkrate; in asd_control_phy()
917 if (rates->maximum_linkrate) { in asd_control_phy()
918 pd->max_sas_lrate = rates->maximum_linkrate; in asd_control_phy()
919 pd->max_sata_lrate = rates->maximum_linkrate; in asd_control_phy()
/drivers/staging/line6/
Dpodhd.c41 .rates = SNDRV_PCM_RATE_48000,
61 .rates = SNDRV_PCM_RATE_48000,
/drivers/net/wireless/ath/carl9170/
Dtx.c418 if (txinfo->status.rates[0].count == 1) in carl9170_tx_status_process_ampdu()
503 if (txinfo->status.rates[i].idx < 0) in carl9170_tx_fill_rateinfo()
507 txinfo->status.rates[i].count = tries; in carl9170_tx_fill_rateinfo()
514 txinfo->status.rates[i].idx = -1; in carl9170_tx_fill_rateinfo()
515 txinfo->status.rates[i].count = 0; in carl9170_tx_fill_rateinfo()
946 txrate = &info->control.rates[i]; in carl9170_tx_prepare()
976 txrate = &info->control.rates[i]; in carl9170_tx_prepare()
993 txrate = &info->control.rates[0]; in carl9170_tx_prepare()
1522 rate = &txinfo->control.rates[0]; in carl9170_update_beacon()
1524 if (!(txinfo->control.rates[0].flags & IEEE80211_TX_RC_MCS)) { in carl9170_update_beacon()
[all …]

1234567