/linux/drivers/net/wireless/broadcom/b43/ |
A D | ppr.c | 71 struct b43_ppr_rates *rates = &ppr->rates; in b43_ppr_load_max_from_sprom() local 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() 139 rates->mcs_20[7] = rates->ofdm[7]; in b43_ppr_load_max_from_sprom() 156 rates->ofdm_20_cdd[0] = rates->mcs_20_cdd[0]; in b43_ppr_load_max_from_sprom() [all …]
|
A D | xmit.c | 260 struct ieee80211_tx_rate *rates; in b43_generate_txhdr() local 397 rates = info->control.rates; in b43_generate_txhdr() 413 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr() 422 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || in b43_generate_txhdr() 533 if (rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS && in b43_generate_txhdr() 856 retry_limit = report->status.rates[0].count; in b43_fill_txstatus_report() 871 report->status.rates[0].count = 0; in b43_fill_txstatus_report() 880 report->status.rates[0].count = 0; in b43_fill_txstatus_report() 881 report->status.rates[1].count = status->frame_count; in b43_fill_txstatus_report() 884 report->status.rates[0].count = retry_limit; in b43_fill_txstatus_report() [all …]
|
/linux/net/mac80211/ |
A D | rate.c | 624 if (!(rates[0].flags & in rate_fixup_ratelist() 654 rates[i].idx = -1; in rate_fixup_ratelist() 671 rates[i].flags |= in rate_fixup_ratelist() 689 rates[i].idx = -1; in rate_fixup_ratelist() 726 if (rates != info->control.rates) in rate_control_fill_sta_table() 727 rates[i] = info->control.rates[i]; in rate_control_fill_sta_table() 738 rates[i].idx = -1; in rate_control_fill_sta_table() 739 rates[i].count = 0; in rate_control_fill_sta_table() 742 if (rates[i].idx < 0 || !rates[i].count) in rate_control_fill_sta_table() 817 rate_idx_match_mask(&rates->rate[i].idx, &rates->rate[i].flags, in rate_control_apply_mask_ratetbl() [all …]
|
A D | rc80211_minstrel_ht.c | 640 if (!rates[i]) in __minstrel_ht_get_sample_rate() 643 cur = rates[i]; in __minstrel_ht_get_sample_rate() 644 rates[i] = 0; in __minstrel_ht_get_sample_rate() 746 cur = rates[i]; in minstrel_ht_move_sample_rates() 766 rates[i] = 0; in minstrel_ht_move_sample_rates() 774 rates[i] = 0; in minstrel_ht_move_sample_rates() 946 u16 *rates; in minstrel_ht_refill_sample_rates() local 954 if (!rates[i]) in minstrel_ht_refill_sample_rates() 968 if (!rates[i]) in minstrel_ht_refill_sample_rates() 1434 rates = kzalloc(sizeof(*rates), GFP_ATOMIC); in minstrel_ht_update_rates() [all …]
|
A D | status.c | 259 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() 327 } else if (info->status.rates[0].idx >= 0 && in ieee80211_add_tx_radiotap_header() 508 pos[2] = info->status.rates[0].idx; in ieee80211_add_tx_radiotap_header() 810 info->status.rates[i].idx = -1; in ieee80211_tx_get_rates() 811 info->status.rates[i].count = 0; in ieee80211_tx_get_rates() 817 info->status.rates[i].idx = -1; in ieee80211_tx_get_rates() 818 info->status.rates[i].count = 0; in ieee80211_tx_get_rates() 822 count += info->status.rates[i].count; in ieee80211_tx_get_rates() [all …]
|
/linux/drivers/staging/wfx/ |
A D | data_tx.c | 57 if (rates[i].idx < 0) in wfx_tx_policy_build() 62 count = rates[i].count; in wfx_tx_policy_build() 72 return !memcmp(a->rates, b->rates, sizeof(a->rates)); in tx_policy_is_equal() 131 memcpy(entry->rates, wanted.rates, sizeof(entry->rates)); in wfx_tx_policy_get() 256 if (rates[i + 1].idx == rates[i].idx && in wfx_tx_fixup_rates() 258 rates[i].count += rates[i + 1].count; in wfx_tx_fixup_rates() 266 if (rates[i + 1].idx > rates[i].idx) { in wfx_tx_fixup_rates() 267 swap(rates[i + 1], rates[i]); in wfx_tx_fixup_rates() 274 if (rates[i].idx == 0) in wfx_tx_fixup_rates() 277 rates[i].idx = 0; in wfx_tx_fixup_rates() [all …]
|
/linux/sound/soc/qcom/qdsp6/ |
A D | q6dsp-lpass-ports.c | 13 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ 31 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ 49 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ 67 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ 87 .rates = SNDRV_PCM_RATE_48000 | 104 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | 119 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | 132 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | 149 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | 162 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | [all …]
|
/linux/drivers/net/wireless/st/cw1200/ |
A D | txrx.c | 83 rates[i - 1] = rates[i]; 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() 98 rates[i] = rates[j]; in tx_policy_build() 134 rates[3] = rates[1]; in tx_policy_build() 139 rates[2].flags = rates[1].flags; in tx_policy_build() 159 rates[2] = rates[1]; in tx_policy_build() 190 rates[0].idx, rates[0].count, in tx_policy_build() 191 rates[1].idx, rates[1].count, in tx_policy_build() 192 rates[2].idx, rates[2].count, in tx_policy_build() [all …]
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
A D | cfp.c | 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() 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() 492 k = mwifiex_copy_rates(rates, k, adhoc_rates_b, in mwifiex_get_supported_rates() 498 k = mwifiex_copy_rates(rates, k, adhoc_rates_g, in mwifiex_get_supported_rates() 504 k = mwifiex_copy_rates(rates, k, adhoc_rates_bg, in mwifiex_get_supported_rates() [all …]
|
/linux/drivers/soundwire/ |
A D | generic_bandwidth_allocation.c | 28 unsigned int *rates; member 169 int *rates, int count) in sdw_compute_group_params() argument 178 params[i].rate = rates[i]; in sdw_compute_group_params() 214 if (rate == group->rates[i]) in sdw_add_element_group_count() 221 unsigned int *rates; in sdw_add_element_group_count() local 224 rates = krealloc(group->rates, in sdw_add_element_group_count() 227 if (!rates) in sdw_add_element_group_count() 229 group->rates = rates; in sdw_add_element_group_count() 248 if (!group->rates) in sdw_get_group_count() 261 kfree(group->rates); in sdw_get_group_count() [all …]
|
/linux/drivers/clk/sunxi-ng/ |
A D | ccu_frac.c | 59 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()
|
/linux/sound/usb/ |
A D | quirks-table.h | 64 .rates = SNDRV_PCM_RATE_CONTINUOUS, 108 .rates = SNDRV_PCM_RATE_48000, 1575 .rates = SNDRV_PCM_RATE_44100, 1593 .rates = SNDRV_PCM_RATE_44100, 1642 .rates = SNDRV_PCM_RATE_44100, 1660 .rates = SNDRV_PCM_RATE_44100, 2858 .rates = SNDRV_PCM_RATE_48000, 2881 .rates = SNDRV_PCM_RATE_48000, 2926 .rates = SNDRV_PCM_RATE_48000, 2951 .rates = SNDRV_PCM_RATE_48000, [all …]
|
/linux/drivers/net/wireless/intersil/orinoco/ |
A 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()
|
/linux/drivers/gpu/drm/tegra/ |
A D | dp.c | 54 link->rates[i] = 0; in drm_dp_link_reset() 82 if (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() 403 for (j = 0; j < ARRAY_SIZE(rates) && rates[j] <= rate; j++) { in drm_dp_link_choose() [all …]
|
/linux/sound/pci/ac97/ |
A D | ac97_pcm.c | 396 unsigned int rates = ~0; in get_rates() local 411 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; 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() 512 rpcm->rates &= rates; in snd_ac97_pcm_assign() 528 rates = SNDRV_PCM_RATE_96000; in snd_ac97_pcm_assign() 531 rpcm->rates |= rates; in snd_ac97_pcm_assign() [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
A D | ar9002_mac.c | 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() 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() 299 | set11nPktDurRTSCTS(i->rates, 1)); in ar9002_set_txdesc() 302 | set11nPktDurRTSCTS(i->rates, 3)); in ar9002_set_txdesc() 305 | set11nRateFlags(i->rates, 1) in ar9002_set_txdesc() 306 | set11nRateFlags(i->rates, 2) in ar9002_set_txdesc() [all …]
|
A D | xmit.c | 465 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr() 579 memcpy(tx_info->control.rates, rates, sizeof(rates)); in ath_tx_complete_aggr() 716 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer() 739 rates = tx_info->control.rates; in ath_lookup_legacy() 742 if (!rates[i].count || rates[i].idx < 0) in ath_lookup_legacy() 765 rates = bf->rates; in ath_lookup_rate() 776 if (!rates[i].count) in ath_lookup_rate() 1221 rates = bf->rates; in ath_buf_set_rate() 1232 if (!rates[i].count || (rates[i].idx < 0)) in ath_buf_set_rate() 1235 rix = rates[i].idx; in ath_buf_set_rate() [all …]
|
/linux/sound/soc/uniphier/ |
A D | aio-ld11.c | 224 .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 |
|
/linux/sound/soc/fsl/ |
A D | fsl_rpmsg.c | 121 .rates = SNDRV_PCM_RATE_KNOT, 128 .rates = SNDRV_PCM_RATE_KNOT, 142 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | 148 .rates = SNDRV_PCM_RATE_KNOT, 155 .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | 164 .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | 194 fsl_rpmsg_dai.playback.rates = rpmsg->soc_data->rates; in fsl_rpmsg_probe() 195 fsl_rpmsg_dai.capture.rates = rpmsg->soc_data->rates; in fsl_rpmsg_probe()
|
/linux/Documentation/devicetree/bindings/net/wireless/ |
A D | mediatek,mt76.yaml | 117 rates-cck: 124 rates-ofdm: 131 rates-mcs: 135 rates for multiple channel bandwidth settings. 145 rates-ru: 148 Sets of per-rate power limit values for 802.11ax rates 192 rates-ofdm = /bits/ 8 <23 23 23 23 23 23 23 23>; 193 rates-mcs = /bits/ 8 <1 23 23 23 23 23 23 23 23 23 23>, 195 rates-ru = /bits/ 8 <3 22 22 22 22 22 22 22 22 22 22 22 22>, 200 rates-ofdm = /bits/ 8 <14 14 14 14 14 14 14 14>; [all …]
|
/linux/sound/soc/intel/skylake/ |
A D | skl-pcm.c | 750 .rates = SNDRV_PCM_RATE_48000, 762 .rates = SNDRV_PCM_RATE_48000, 838 .rates = SNDRV_PCM_RATE_48000, 845 .rates = SNDRV_PCM_RATE_48000, 856 .rates = SNDRV_PCM_RATE_48000, 863 .rates = SNDRV_PCM_RATE_48000, 874 .rates = SNDRV_PCM_RATE_48000, 881 .rates = SNDRV_PCM_RATE_48000, 892 .rates = SNDRV_PCM_RATE_48000, 899 .rates = SNDRV_PCM_RATE_48000, [all …]
|
/linux/drivers/usb/serial/ |
A D | ir-usb.c | 200 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 …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
A 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 …]
|
/linux/arch/mips/lantiq/ |
A D | clk.c | 84 if (clk->rates && *clk->rates) { in clk_set_rate() 85 unsigned long *r = clk->rates; in clk_set_rate() 104 if (clk->rates && *clk->rates) { in clk_round_rate() 105 unsigned long *r = clk->rates; in clk_round_rate()
|
/linux/drivers/staging/rtl8712/ |
A D | ieee80211.c | 126 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 …]
|