Home
last modified time | relevance | path

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

12345678910>>...48

/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dppr.c71 struct b43_ppr_rates *rates = &ppr->rates; in b43_ppr_load_max_from_sprom() local
121 rates->cck[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
128 rates->ofdm[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
132 rates->mcs_20[0] = rates->ofdm[0]; in b43_ppr_load_max_from_sprom()
133 rates->mcs_20[1] = rates->ofdm[2]; in b43_ppr_load_max_from_sprom()
134 rates->mcs_20[2] = rates->ofdm[3]; in b43_ppr_load_max_from_sprom()
135 rates->mcs_20[3] = rates->ofdm[4]; in b43_ppr_load_max_from_sprom()
136 rates->mcs_20[4] = rates->ofdm[5]; in b43_ppr_load_max_from_sprom()
137 rates->mcs_20[5] = rates->ofdm[6]; in b43_ppr_load_max_from_sprom()
138 rates->mcs_20[6] = rates->ofdm[7]; in b43_ppr_load_max_from_sprom()
[all …]
Dxmit.c260 struct ieee80211_tx_rate *rates; in b43_generate_txhdr() local
374 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in b43_generate_txhdr()
397 rates = info->control.rates; in b43_generate_txhdr()
413 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr()
414 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { in b43_generate_txhdr()
415 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; in b43_generate_txhdr()
418 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; in b43_generate_txhdr()
422 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr()
423 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { in b43_generate_txhdr()
438 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in b43_generate_txhdr()
[all …]
/kernel/linux/linux-5.10/net/mac80211/
Drate.c352 info->control.rates[0].flags |= IEEE80211_TX_RC_S1G_MCS; in __rate_control_send_low()
353 info->control.rates[0].idx = 0; in __rate_control_send_low()
361 info->control.rates[0].idx = 0; in __rate_control_send_low()
372 info->control.rates[0].idx = i; in __rate_control_send_low()
382 info->control.rates[0].count = in __rate_control_send_low()
406 info->control.rates[0].idx = mcast_rate - 1; in rate_control_send_low()
417 rc_send_low_basicrate(&info->control.rates[0], in rate_control_send_low()
613 struct ieee80211_tx_rate *rates, in rate_fixup_ratelist() argument
628 if (!(rates[0].flags & in rate_fixup_ratelist()
633 rate = &sband->bitrates[rates[0].idx]; in rate_fixup_ratelist()
[all …]
Dstatus.c259 else if (info->status.rates[0].idx >= 0 && in ieee80211_tx_radiotap_len()
260 !(info->status.rates[0].flags & in ieee80211_tx_radiotap_len()
279 } else if (info->status.rates[0].idx >= 0) { in ieee80211_tx_radiotap_len()
280 if (info->status.rates[0].flags & IEEE80211_TX_RC_MCS) in ieee80211_tx_radiotap_len()
282 else if (info->status.rates[0].flags & IEEE80211_TX_RC_VHT_MCS) in ieee80211_tx_radiotap_len()
327 } else if (info->status.rates[0].idx >= 0 && in ieee80211_add_tx_radiotap_header()
328 !(info->status.rates[0].flags & (IEEE80211_TX_RC_MCS | in ieee80211_add_tx_radiotap_header()
331 sband->bitrates[info->status.rates[0].idx].bitrate; in ieee80211_add_tx_radiotap_header()
346 if (info->status.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) in ieee80211_add_tx_radiotap_header()
348 if (info->status.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) in ieee80211_add_tx_radiotap_header()
[all …]
/kernel/linux/linux-5.10/drivers/staging/wfx/
Ddata_tx.c47 struct ieee80211_tx_rate *rates) in wfx_tx_policy_build() argument
53 WARN(rates[0].idx < 0, "invalid rate policy"); in wfx_tx_policy_build()
56 if (rates[i].idx < 0) in wfx_tx_policy_build()
58 WARN_ON(rates[i].count > 15); in wfx_tx_policy_build()
59 rateid = wfx_get_hw_rate(wdev, &rates[i]); in wfx_tx_policy_build()
61 count = rates[i].count; in wfx_tx_policy_build()
64 policy->rates[rateid / 2] |= count; in wfx_tx_policy_build()
71 return !memcmp(a->rates, b->rates, sizeof(a->rates)); in tx_policy_is_equal()
106 struct ieee80211_tx_rate *rates, bool *renew) in wfx_tx_policy_get() argument
112 wfx_tx_policy_build(wvif, &wanted, rates); in wfx_tx_policy_get()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dtxrx.c67 struct ieee80211_tx_rate *rates, size_t count) in tx_policy_build() argument
72 BUG_ON(rates[0].idx < 0); in tx_policy_build()
77 if (rates[i].idx < 0) { in tx_policy_build()
81 if (rates[i].idx > rates[i - 1].idx) { in tx_policy_build()
82 struct ieee80211_tx_rate tmp = rates[i - 1]; in tx_policy_build()
83 rates[i - 1] = rates[i]; in tx_policy_build()
84 rates[i] = tmp; in tx_policy_build()
89 total = rates[0].count; in tx_policy_build()
91 if (rates[j].idx == rates[i].idx) { in tx_policy_build()
92 rates[i].count += rates[j].count; in tx_policy_build()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/soundwire/
Dgeneric_bandwidth_allocation.c28 unsigned int *rates; member
170 int *rates, int count) in sdw_compute_group_params() argument
179 params[i].rate = rates[i]; in sdw_compute_group_params()
215 if (rate == group->rates[i]) in sdw_add_element_group_count()
222 unsigned int *rates; in sdw_add_element_group_count() local
225 rates = krealloc(group->rates, in sdw_add_element_group_count()
228 if (!rates) in sdw_add_element_group_count()
230 group->rates = rates; in sdw_add_element_group_count()
233 group->rates[group->count++] = rate; in sdw_add_element_group_count()
248 group->rates = kcalloc(group->max_size, sizeof(int), GFP_KERNEL); in sdw_get_group_count()
[all …]
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/
Dccu_frac.c59 return (cf->rates[0] == rate) || (cf->rates[1] == rate); in ccu_frac_helper_has_rate()
73 clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]); in ccu_frac_helper_read_rate()
80 return (reg & cf->select) ? cf->rates[1] : cf->rates[0]; in ccu_frac_helper_read_rate()
93 if (cf->rates[0] == rate) in ccu_frac_helper_set_rate()
95 else if (cf->rates[1] == rate) in ccu_frac_helper_set_rate()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/sound/soc/uniphier/
Daio-ld11.c224 .rates = SNDRV_PCM_RATE_48000,
231 .rates = SNDRV_PCM_RATE_48000 |
246 .rates = SNDRV_PCM_RATE_48000,
259 .rates = SNDRV_PCM_RATE_48000,
266 .rates = SNDRV_PCM_RATE_48000,
279 .rates = SNDRV_PCM_RATE_48000,
292 .rates = SNDRV_PCM_RATE_48000,
305 .rates = SNDRV_PCM_RATE_48000,
318 .rates = SNDRV_PCM_RATE_48000 |
333 .rates = SNDRV_PCM_RATE_48000 |
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
Ddp.c54 link->rates[i] = 0; in drm_dp_link_reset()
82 if (rate <= link->rates[pivot]) in drm_dp_link_add_rate()
85 if (pivot != link->num_rates && rate == link->rates[pivot]) in drm_dp_link_add_rate()
89 link->rates[i] = link->rates[i - 1]; in drm_dp_link_add_rate()
91 link->rates[pivot] = rate; in drm_dp_link_add_rate()
116 if (rate == link->rates[i]) in drm_dp_link_remove_rate()
125 link->rates[i] = link->rates[i + 1]; in drm_dp_link_remove_rate()
149 if (link->rates[i] != 0) in drm_dp_link_update_rates()
150 link->rates[count++] = link->rates[i]; in drm_dp_link_update_rates()
154 link->rates[i] = 0; in drm_dp_link_update_rates()
[all …]
/kernel/linux/linux-5.10/sound/pci/ac97/
Dac97_pcm.c396 unsigned int rates = ~0; in get_rates() local
411 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
414 rates &= ~(SNDRV_PCM_RATE_64000 | SNDRV_PCM_RATE_88200 | in get_rates()
416 return rates; in get_rates()
442 unsigned int rates; in snd_ac97_pcm_assign() local
478 rpcm->rates = ~0; in snd_ac97_pcm_assign()
483 rates = ~0; in snd_ac97_pcm_assign()
504 rates = SNDRV_PCM_RATE_48000; in snd_ac97_pcm_assign()
506 rates = get_rates(rpcm, j, tmp, 0); in snd_ac97_pcm_assign()
512 rpcm->rates &= rates; in snd_ac97_pcm_assign()
[all …]
/kernel/linux/linux-5.10/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.c160 ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates, in ath_set_rates()
161 ARRAY_SIZE(bf->rates)); in ath_set_rates()
455 struct ieee80211_tx_rate rates[4]; in ath_tx_complete_aggr() local
465 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr()
469 retries += rates[i].count; in ath_tx_complete_aggr()
579 memcpy(tx_info->control.rates, rates, sizeof(rates)); in ath_tx_complete_aggr()
675 airtime += rate_dur * bf->rates[i].count; in ath_tx_count_airtime()
716 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer()
717 sizeof(info->control.rates)); in ath_tx_process_buffer()
734 struct ieee80211_tx_rate *rates; in ath_lookup_legacy() local
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/usb/serial/
Dir-usb.c200 int rates; in ir_startup() local
209 rates = le16_to_cpu(irda_desc->wBaudRate); in ir_startup()
214 (rates & USB_IRDA_BR_2400) ? " 2400" : "", in ir_startup()
215 (rates & USB_IRDA_BR_9600) ? " 9600" : "", in ir_startup()
216 (rates & USB_IRDA_BR_19200) ? " 19200" : "", in ir_startup()
217 (rates & USB_IRDA_BR_38400) ? " 38400" : "", in ir_startup()
218 (rates & USB_IRDA_BR_57600) ? " 57600" : "", in ir_startup()
219 (rates & USB_IRDA_BR_115200) ? " 115200" : "", in ir_startup()
220 (rates & USB_IRDA_BR_576000) ? " 576000" : "", in ir_startup()
221 (rates & USB_IRDA_BR_1152000) ? " 1152000" : "", in ir_startup()
[all …]
/kernel/linux/linux-5.10/arch/mips/lantiq/
Dclk.c85 if (clk->rates && *clk->rates) { in clk_set_rate()
86 unsigned long *r = clk->rates; in clk_set_rate()
105 if (clk->rates && *clk->rates) { in clk_round_rate()
106 unsigned long *r = clk->rates; in clk_round_rate()
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
Dskl-pcm.c42 .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 …]
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
Dieee80211.c126 static void set_supported_rate(u8 *rates, uint mode) in set_supported_rate() argument
128 memset(rates, 0, NDIS_802_11_LENGTH_RATES_EX); in set_supported_rate()
131 memcpy(rates, WIFI_CCKRATES, IEEE80211_CCK_RATE_LEN); in set_supported_rate()
135 memcpy(rates, WIFI_OFDMRATES, IEEE80211_NUM_OFDM_RATESLEN); in set_supported_rate()
138 memcpy(rates, WIFI_CCKRATES, IEEE80211_CCK_RATE_LEN); in set_supported_rate()
139 memcpy(rates + IEEE80211_CCK_RATE_LEN, WIFI_OFDMRATES, in set_supported_rate()
187 set_supported_rate(dev_network->rates, registrypriv->wireless_mode); in r8712_generate_ie()
188 rate_len = r8712_get_rateset_len(dev_network->rates); in r8712_generate_ie()
191 dev_network->rates, &sz); in r8712_generate_ie()
193 (dev_network->rates + 8), &sz); in r8712_generate_ie()
[all …]
/kernel/linux/linux-5.10/sound/core/
Dpcm_misc.c494 if (hw->rates & (1 << i)) { in snd_pcm_hw_limit_rates()
500 if (hw->rates & (1 << i)) { in snd_pcm_hw_limit_rates()
545 static unsigned int snd_pcm_rate_mask_sanitize(unsigned int rates) in snd_pcm_rate_mask_sanitize() argument
547 if (rates & SNDRV_PCM_RATE_CONTINUOUS) in snd_pcm_rate_mask_sanitize()
549 else if (rates & SNDRV_PCM_RATE_KNOT) in snd_pcm_rate_mask_sanitize()
551 return rates; in snd_pcm_rate_mask_sanitize()
598 unsigned int rates = 0; in snd_pcm_rate_range_to_bits() local
604 rates |= 1 << i; in snd_pcm_rate_range_to_bits()
607 if (!rates) in snd_pcm_rate_range_to_bits()
608 rates = SNDRV_PCM_RATE_KNOT; in snd_pcm_rate_range_to_bits()
[all …]
/kernel/linux/linux-5.10/drivers/clk/pistachio/
Dclk-pll.c74 struct pistachio_pll_rate_table *rates; member
135 if (pll->rates[i].fref == fref && pll->rates[i].fout == fout) in pll_get_params()
136 return &pll->rates[i]; in pll_get_params()
149 if (i > 0 && pll->rates[i].fref == *parent_rate && in pll_round_rate()
150 pll->rates[i].fout <= rate) in pll_round_rate()
151 return pll->rates[i - 1].fout; in pll_round_rate()
154 return pll->rates[0].fout; in pll_round_rate()
449 struct pistachio_pll_rate_table *rates, in pll_register() argument
467 if (rates) in pll_register()
473 if (rates) in pll_register()
[all …]
/kernel/linux/linux-5.10/sound/usb/
Dquirks-table.h64 .rates = SNDRV_PCM_RATE_CONTINUOUS,
110 .rates = SNDRV_PCM_RATE_48000,
469 .rates = SNDRV_PCM_RATE_CONTINUOUS,
486 .rates = SNDRV_PCM_RATE_CONTINUOUS,
957 .rates = SNDRV_PCM_RATE_CONTINUOUS,
974 .rates = SNDRV_PCM_RATE_CONTINUOUS,
1577 .rates = SNDRV_PCM_RATE_44100,
1595 .rates = SNDRV_PCM_RATE_44100,
1644 .rates = SNDRV_PCM_RATE_44100,
1662 .rates = SNDRV_PCM_RATE_44100,
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dgtm601.c38 .rates = SNDRV_PCM_RATE_8000,
45 .rates = SNDRV_PCM_RATE_8000,
56 .rates = SNDRV_PCM_RATE_48000,
63 .rates = SNDRV_PCM_RATE_48000,
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8183/
Dmt8183-dai-hostless.c68 .rates = MTK_HOSTLESS_RATES,
75 .rates = MTK_HOSTLESS_RATES,
87 .rates = MTK_HOSTLESS_RATES,
94 .rates = MTK_HOSTLESS_RATES,

12345678910>>...48