Home
last modified time | relevance | path

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

12345678910>>...39

/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dppr.c80 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 …]
Dxmit.c273 struct ieee80211_tx_rate *rates; in b43_generate_txhdr() local
387 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in b43_generate_txhdr()
410 rates = info->control.rates; in b43_generate_txhdr()
426 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr()
427 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { in b43_generate_txhdr()
428 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; in b43_generate_txhdr()
431 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; in b43_generate_txhdr()
435 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr()
436 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { in b43_generate_txhdr()
451 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in b43_generate_txhdr()
[all …]
/Linux-v4.19/net/mac80211/
Drate.c345 info->control.rates[0].idx = 0; in __rate_control_send_low()
356 info->control.rates[0].idx = i; in __rate_control_send_low()
364 info->control.rates[0].count = in __rate_control_send_low()
389 info->control.rates[0].idx = mcast_rate - 1; in rate_control_send_low()
400 rc_send_low_basicrate(&info->control.rates[0].idx, in rate_control_send_low()
597 struct ieee80211_tx_rate *rates, in rate_fixup_ratelist() argument
612 if (!(rates[0].flags & in rate_fixup_ratelist()
617 rate = &sband->bitrates[rates[0].idx]; in rate_fixup_ratelist()
642 rates[i].idx = -1; in rate_fixup_ratelist()
645 if (rates[i].idx < 0) { in rate_fixup_ratelist()
[all …]
Dstatus.c265 if (info->status.rates[0].idx >= 0 && in ieee80211_tx_radiotap_len()
266 !(info->status.rates[0].flags & (IEEE80211_TX_RC_MCS | in ieee80211_tx_radiotap_len()
278 if (info->status.rates[0].idx >= 0) { in ieee80211_tx_radiotap_len()
279 if (info->status.rates[0].flags & IEEE80211_TX_RC_MCS) in ieee80211_tx_radiotap_len()
281 else if (info->status.rates[0].flags & IEEE80211_TX_RC_VHT_MCS) in ieee80211_tx_radiotap_len()
316 if (info->status.rates[0].idx >= 0 && in ieee80211_add_tx_radiotap_header()
317 !(info->status.rates[0].flags & (IEEE80211_TX_RC_MCS | in ieee80211_add_tx_radiotap_header()
322 rate = sband->bitrates[info->status.rates[0].idx].bitrate; in ieee80211_add_tx_radiotap_header()
334 if (info->status.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) in ieee80211_add_tx_radiotap_header()
336 if (info->status.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) in ieee80211_add_tx_radiotap_header()
[all …]
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dtxrx.c70 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 …]
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
Dcfp.c297 u32 mwifiex_get_active_data_rates(struct mwifiex_private *priv, u8 *rates) in mwifiex_get_active_data_rates() argument
300 return mwifiex_get_supported_rates(priv, rates); in mwifiex_get_active_data_rates()
302 return mwifiex_copy_rates(rates, 0, in mwifiex_get_active_data_rates()
391 u8 *rates, u8 radio_type) in mwifiex_get_rates_from_cfg80211() argument
403 rate_mask = request->rates[NL80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211()
408 rate_mask = request->rates[NL80211_BAND_2GHZ]; in mwifiex_get_rates_from_cfg80211()
415 rates[num_rates++] = (u8)(sband->bitrates[i].bitrate / 5); in mwifiex_get_rates_from_cfg80211()
425 u32 mwifiex_get_supported_rates(struct mwifiex_private *priv, u8 *rates) in mwifiex_get_supported_rates() argument
437 k = mwifiex_copy_rates(rates, k, supported_rates_b, in mwifiex_get_supported_rates()
445 k = mwifiex_copy_rates(rates, k, supported_rates_g, in mwifiex_get_supported_rates()
[all …]
/Linux-v4.19/drivers/clk/sunxi-ng/
Dccu_frac.c62 return (cf->rates[0] == rate) || (cf->rates[1] == rate); in ccu_frac_helper_has_rate()
76 clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]); in ccu_frac_helper_read_rate()
83 return (reg & cf->select) ? cf->rates[1] : cf->rates[0]; in ccu_frac_helper_read_rate()
96 if (cf->rates[0] == rate) in ccu_frac_helper_set_rate()
98 else if (cf->rates[1] == rate) in ccu_frac_helper_set_rate()
/Linux-v4.19/drivers/net/wireless/intersil/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()
/Linux-v4.19/drivers/usb/serial/
Dir-usb.c196 int rates; in ir_startup() local
205 rates = le16_to_cpu(irda_desc->wBaudRate); in ir_startup()
210 (rates & USB_IRDA_BR_2400) ? " 2400" : "", in ir_startup()
211 (rates & USB_IRDA_BR_9600) ? " 9600" : "", in ir_startup()
212 (rates & USB_IRDA_BR_19200) ? " 19200" : "", in ir_startup()
213 (rates & USB_IRDA_BR_38400) ? " 38400" : "", in ir_startup()
214 (rates & USB_IRDA_BR_57600) ? " 57600" : "", in ir_startup()
215 (rates & USB_IRDA_BR_115200) ? " 115200" : "", in ir_startup()
216 (rates & USB_IRDA_BR_576000) ? " 576000" : "", in ir_startup()
217 (rates & USB_IRDA_BR_1152000) ? " 1152000" : "", in ir_startup()
[all …]
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dar9002_mac.c238 WRITE_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 WRITE_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 WRITE_ONCE(ads->ds_ctl4, set11nPktDurRTSCTS(i->rates, 0) in ar9002_set_txdesc()
299 | set11nPktDurRTSCTS(i->rates, 1)); in ar9002_set_txdesc()
[all …]
Dxmit.c194 ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates, in ath_set_rates()
195 ARRAY_SIZE(bf->rates)); in ath_set_rates()
500 struct ieee80211_tx_rate rates[4]; in ath_tx_complete_aggr() local
512 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr()
516 retries += rates[i].count; in ath_tx_complete_aggr()
626 memcpy(tx_info->control.rates, rates, sizeof(rates)); in ath_tx_complete_aggr()
722 airtime += rate_dur * bf->rates[i].count; in ath_tx_count_airtime()
773 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer()
774 sizeof(info->control.rates)); in ath_tx_process_buffer()
790 struct ieee80211_tx_rate *rates; in ath_lookup_legacy() local
[all …]
Dar9003_mac.c69 WRITE_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 WRITE_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 WRITE_ONCE(ads->ctl15, set11nPktDurRTSCTS(i->rates, 0) in ar9003_set_txdesc()
142 | set11nPktDurRTSCTS(i->rates, 1)); in ar9003_set_txdesc()
[all …]
/Linux-v4.19/arch/mips/lantiq/
Dclk.c86 if (clk->rates && *clk->rates) { in clk_set_rate()
87 unsigned long *r = clk->rates; in clk_set_rate()
106 if (clk->rates && *clk->rates) { in clk_round_rate()
107 unsigned long *r = clk->rates; in clk_round_rate()
/Linux-v4.19/sound/pci/ac97/
Dac97_pcm.c411 unsigned int rates = ~0; in get_rates() local
426 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
429 rates &= ~(SNDRV_PCM_RATE_64000 | SNDRV_PCM_RATE_88200 | in get_rates()
431 return rates; in get_rates()
457 unsigned int rates; in snd_ac97_pcm_assign() local
493 rpcm->rates = ~0; in snd_ac97_pcm_assign()
498 rates = ~0; in snd_ac97_pcm_assign()
519 rates = SNDRV_PCM_RATE_48000; in snd_ac97_pcm_assign()
521 rates = get_rates(rpcm, j, tmp, 0); in snd_ac97_pcm_assign()
527 rpcm->rates &= rates; in snd_ac97_pcm_assign()
[all …]
/Linux-v4.19/drivers/net/wireless/broadcom/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 …]
/Linux-v4.19/sound/soc/uniphier/
Daio-ld11.c226 .rates = SNDRV_PCM_RATE_48000,
233 .rates = SNDRV_PCM_RATE_48000 |
250 .rates = SNDRV_PCM_RATE_48000,
265 .rates = SNDRV_PCM_RATE_48000,
272 .rates = SNDRV_PCM_RATE_48000,
287 .rates = SNDRV_PCM_RATE_48000,
302 .rates = SNDRV_PCM_RATE_48000,
317 .rates = SNDRV_PCM_RATE_48000,
332 .rates = SNDRV_PCM_RATE_48000 |
349 .rates = SNDRV_PCM_RATE_48000 |
Daio-pxs2.c179 .rates = SNDRV_PCM_RATE_48000,
194 .rates = SNDRV_PCM_RATE_48000,
201 .rates = SNDRV_PCM_RATE_48000,
216 .rates = SNDRV_PCM_RATE_48000,
223 .rates = SNDRV_PCM_RATE_48000,
238 .rates = SNDRV_PCM_RATE_48000,
253 .rates = SNDRV_PCM_RATE_48000,
/Linux-v4.19/sound/soc/intel/skylake/
Dskl-pcm.c50 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 |
689 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_8000,
698 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000,
710 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 |
723 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 |
736 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000,
748 .rates = SNDRV_PCM_RATE_48000,
760 .rates = SNDRV_PCM_RATE_48000,
772 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000,
784 .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
[all …]
/Linux-v4.19/sound/core/
Dpcm_misc.c488 if (runtime->hw.rates & (1 << i)) { in snd_pcm_limit_hw_rates()
494 if (runtime->hw.rates & (1 << i)) { in snd_pcm_limit_hw_rates()
539 static unsigned int snd_pcm_rate_mask_sanitize(unsigned int rates) in snd_pcm_rate_mask_sanitize() argument
541 if (rates & SNDRV_PCM_RATE_CONTINUOUS) in snd_pcm_rate_mask_sanitize()
543 else if (rates & SNDRV_PCM_RATE_KNOT) in snd_pcm_rate_mask_sanitize()
545 return rates; in snd_pcm_rate_mask_sanitize()
592 unsigned int rates = 0; in snd_pcm_rate_range_to_bits() local
598 rates |= 1 << i; in snd_pcm_rate_range_to_bits()
601 if (!rates) in snd_pcm_rate_range_to_bits()
602 rates = SNDRV_PCM_RATE_KNOT; in snd_pcm_rate_range_to_bits()
[all …]
/Linux-v4.19/drivers/staging/rtl8712/
Dieee80211.c134 static void set_supported_rate(u8 *rates, uint mode) in set_supported_rate() argument
136 memset(rates, 0, NDIS_802_11_LENGTH_RATES_EX); in set_supported_rate()
139 memcpy(rates, WIFI_CCKRATES, IEEE80211_CCK_RATE_LEN); in set_supported_rate()
143 memcpy(rates, WIFI_OFDMRATES, IEEE80211_NUM_OFDM_RATESLEN); in set_supported_rate()
146 memcpy(rates, WIFI_CCKRATES, IEEE80211_CCK_RATE_LEN); in set_supported_rate()
147 memcpy(rates + IEEE80211_CCK_RATE_LEN, WIFI_OFDMRATES, in set_supported_rate()
195 set_supported_rate(pdev_network->rates, pregistrypriv->wireless_mode); in r8712_generate_ie()
196 rate_len = r8712_get_rateset_len(pdev_network->rates); in r8712_generate_ie()
199 pdev_network->rates, &sz); in r8712_generate_ie()
201 (pdev_network->rates + 8), &sz); in r8712_generate_ie()
[all …]
/Linux-v4.19/drivers/clk/pistachio/
Dclk-pll.c77 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 …]
/Linux-v4.19/sound/soc/codecs/
Dbt-sco.c35 .rates = SNDRV_PCM_RATE_8000,
42 .rates = SNDRV_PCM_RATE_8000,
52 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
59 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
/Linux-v4.19/sound/soc/mediatek/mt6797/
Dmt6797-dai-hostless.c68 .rates = MTK_HOSTLESS_RATES,
75 .rates = MTK_HOSTLESS_RATES,
87 .rates = MTK_HOSTLESS_RATES,
94 .rates = MTK_HOSTLESS_RATES,
/Linux-v4.19/sound/soc/qcom/qdsp6/
Dq6afe-dai.c19 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\
40 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\
623 .rates = SNDRV_PCM_RATE_48000 |
646 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
664 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
677 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |
700 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
713 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
737 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 |
750 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |
[all …]
/Linux-v4.19/sound/soc/samsung/
Ds3c24xx_uda134x.c45 static unsigned int rates[33 * 2]; variable
48 .count = ARRAY_SIZE(rates),
49 .list = rates,
83 rates[i*33] = clk_get_rate(priv->xtal) / fs; in s3c24xx_uda134x_startup()
85 rates[i*33 + j] = clk_get_rate(priv->pclk) / in s3c24xx_uda134x_startup()
139 cerr = rates[i] - rate; in s3c24xx_uda134x_hw_params()

12345678910>>...39