| /OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43/ |
| H A D | ppr.c | 71 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 …]
|
| H A D | xmit.c | 260 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() 409 /* Overwrite rates[0].count to make the retry calculation 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() [all …]
|
| /OK3568_Linux_fs/kernel/net/mac80211/ |
| H A D | rate.c | 292 "no overlap between basic rates (0x%x) and user mask (0x%x on band %d) - clearing the latter", in ieee80211_check_rate_mask() 325 return; /* assume basic rates unknown and accept rate */ in rc_send_low_basicrate() 352 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() 376 "no supported rates for sta %pM (0x%x, band %d) in rate_mask 0x%x with flags 0x%x\n", 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() [all …]
|
| H A D | rc80211_minstrel_ht.c | 174 "Use only VHT rates when VHT is supported by sta."); 177 * To enable sufficiently targeted rate sampling, MCS rates are divided into 326 return &mi->groups[group].rates[idx]; in minstrel_ht_get_stats() 332 return &mi->groups[index / MCS_GROUP_RATES].rates[index % MCS_GROUP_RATES]; in minstrel_get_ratestats() 377 * Find & sort topmost throughput rates 379 * If multiple rates provide equal throughput the sorting is based on their 381 * MCS groups, CCK rates do not provide aggregation and are therefore at last. 393 cur_prob = mi->groups[cur_group].rates[cur_idx].prob_avg; in minstrel_ht_sort_best_tp_rates() 399 tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_avg; in minstrel_ht_sort_best_tp_rates() 432 mrs = &mg->rates[index % MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate() [all …]
|
| H 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() 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/wfx/ |
| H A D | data_tx.c | 47 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() 60 // Pack two values in each byte of policy->rates 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 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/st/cw1200/ |
| H A D | txrx.c | 67 struct ieee80211_tx_rate *rates, size_t count) in tx_policy_build() argument 72 BUG_ON(rates[0].idx < 0); in tx_policy_build() 75 /* Sort rates in descending order. */ 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soundwire/ |
| H A D | generic_bandwidth_allocation.c | 28 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/tegra/ |
| H A D | dp.c | 54 link->rates[i] = 0; in drm_dp_link_reset() 60 * drm_dp_link_add_rate() - add a rate to the list of supported rates 64 * Add a link rate to the list of supported link rates. 68 * - ENOSPC if the maximum number of supported rates has been reached 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() 98 * drm_dp_link_remove_rate() - remove a rate from the list of supported rates 102 * Removes a link rate from the list of supported link rates. [all …]
|
| /OK3568_Linux_fs/kernel/sound/usb/ |
| H A D | format.c | 165 fp->rates = rate_bits; in set_fixed_rate() 171 * parse the format descriptor and stores the possible sample rates 230 fp->rates |= snd_pcm_rate_to_rate_bit(rate); in parse_audio_format_rates_v1() 234 hwc_debug("All rates were zero. Skipping format!\n"); in parse_audio_format_rates_v1() 238 /* continuous rates */ in parse_audio_format_rates_v1() 239 fp->rates = SNDRV_PCM_RATE_CONTINUOUS; in parse_audio_format_rates_v1() 257 * rates per altsetting but reports the full set each time. 258 * If we don't filter out the unsupported rates and attempt 262 * The list of supported rates per altsetting (set of available 285 * Many Focusrite devices supports a limited set of sampling rates per [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/marvell/mwifiex/ |
| H A D | cfp.c | 95 /* AC rates */ 193 * This function maps an index in supported rates table into 238 /* 11n non-HT rates */ in mwifiex_index_to_acs_data_rate() 247 /* This function maps an index in supported rates table into 293 * This function returns the current active data rates. 297 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() 387 /* This function gets the supported data rates from bitmask inside 391 u8 *rates, u8 radio_type) in mwifiex_get_rates_from_cfg80211() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/sunxi-ng/ |
| H A D | ccu_frac.c | 59 return (cf->rates[0] == rate) || (cf->rates[1] == rate); in ccu_frac_helper_has_rate() 72 pr_debug("%s: clock is fractional (rates %lu and %lu)\n", in ccu_frac_helper_read_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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intersil/orinoco/ |
| H 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() 58 /* We might still have another 2 rates, which need to go in in prism_build_supp_rates() 59 * extended supported rates */ 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/include/ |
| H A D | ieee80211_ext.h | 221 /* followed by SSID and Supported rates */ 228 /* followed by Supported rates */ 235 /* followed by SSID and Supported rates */ 245 /* followed by some of SSID, Supported rates, 250 /* only variable items: SSID, Supported rates */ 257 /* followed by some of SSID, Supported rates, 311 * code, AID and supported rates, 312 * and directly by supported rates in 354 /* followed by SSID and Supported rates */ 361 /* followed by Supported rates */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/include/ |
| H A D | ieee80211_ext.h | 226 /* followed by SSID and Supported rates */ 233 /* followed by Supported rates */ 240 /* followed by SSID and Supported rates */ 250 /* followed by some of SSID, Supported rates, 255 /* only variable items: SSID, Supported rates */ 262 /* followed by some of SSID, Supported rates, 316 * code, AID and supported rates, 317 * and directly by supported rates in 359 /* followed by SSID and Supported rates */ 366 /* followed by Supported rates */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189es/include/ |
| H A D | ieee80211_ext.h | 226 /* followed by SSID and Supported rates */ 233 /* followed by Supported rates */ 240 /* followed by SSID and Supported rates */ 250 /* followed by some of SSID, Supported rates, 255 /* only variable items: SSID, Supported rates */ 262 /* followed by some of SSID, Supported rates, 316 * code, AID and supported rates, 317 * and directly by supported rates in 359 /* followed by SSID and Supported rates */ 366 /* followed by Supported rates */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/include/ |
| H A D | ieee80211_ext.h | 226 /* followed by SSID and Supported rates */ 233 /* followed by Supported rates */ 240 /* followed by SSID and Supported rates */ 250 /* followed by some of SSID, Supported rates, 255 /* only variable items: SSID, Supported rates */ 262 /* followed by some of SSID, Supported rates, 316 * code, AID and supported rates, 317 * and directly by supported rates in 359 /* followed by SSID and Supported rates */ 366 /* followed by Supported rates */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9002_mac.c | 238 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 …]
|
| H A D | xmit.c | 160 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/smac/ |
| H A D | ssv_ht_rc.c | 67 return &mi->groups.rates[index % MCS_GROUP_RATES]; in minstrel_get_ratestats() 97 mr = &mi->groups.rates[rate]; in minstrel_ht_calc_tp() 134 mr = &mg->rates[i]; in rate_control_ht_sample() 322 mr = &mg->rates[sample_idx]; in minstrel_get_sample_rate() 340 info->control.rates[0].idx = ssv_rc->rc_table[ar[0].drate].dot11_rate_idx; in _fill_txinfo_rates() 341 info->control.rates[0].count = 1; in _fill_txinfo_rates() 342 info->control.rates[SSV_DRATE_IDX].count = ar[0].drate; in _fill_txinfo_rates() 343 info->control.rates[SSV_CRATE_IDX].count = ar[0].crate; in _fill_txinfo_rates() 516 mi->groups.rates[i].rc_index = ssv6xxx_rc_rate_set[rc_sta->ht_rc_type][i+1]; in ssv62xx_ht_rc_caps() 543 if(report_data->rates[i].data_rate == -1) in ssv6xxx_ht_report_handler() [all …]
|
| H A D | ssv_rc.c | 738 …report !MPDU! wsid[%d]rate[%d]M[%d]S[%d]R[%d]\n",report_data->wsid,report_data->rates[0].data_rate, in ssv6xxx_legacy_report_handler() 739 report_data->ampdu_len,report_data->ampdu_ack_len,report_data->rates[0].count); in ssv6xxx_legacy_report_handler() 748 if(report_data->rates[0].data_rate < 7) in ssv6xxx_legacy_report_handler() 750 if(report_data->rates[0].data_rate>3) in ssv6xxx_legacy_report_handler() 752 report_data->rates[0].data_rate -= 3; in ssv6xxx_legacy_report_handler() 755 …e[rc_sta->pinfo.rinfo[spinfo->txrate_idx].rc_index].hw_rate_idx == report_data->rates[0].data_rate) in ssv6xxx_legacy_report_handler() 759 …rc_sta->pinfo.rinfo[spinfo->tmp_rate_idx].rc_index].hw_rate_idx == report_data->rates[0].data_rate) in ssv6xxx_legacy_report_handler() 767 report_data->rates[0].data_rate,spinfo->tmp_rate_idx, in ssv6xxx_legacy_report_handler() 776 spinfo->tx_num_xmit += report_data->rates[0].count; in ssv6xxx_legacy_report_handler() 777 spinfo->tx_num_failed += (report_data->rates[0].count - report_data->ampdu_ack_len ); in ssv6xxx_legacy_report_handler() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/mt7603/ |
| H A D | mac.c | 703 struct ieee80211_tx_rate *rates) in mt7603_wtbl_set_rates() argument 721 rates[i] = rates[n_rates - 1]; in mt7603_wtbl_set_rates() 724 memcpy(sta->rateset[rateset].rates, rates, in mt7603_wtbl_set_rates() 725 sizeof(sta->rateset[rateset].rates)); in mt7603_wtbl_set_rates() 731 ref = &sta->rateset[rateset].rates[0]; in mt7603_wtbl_set_rates() 734 rates = sta->rateset[rateset].rates; in mt7603_wtbl_set_rates() 735 for (i = 0; i < ARRAY_SIZE(sta->rateset[rateset].rates); i++) { in mt7603_wtbl_set_rates() 743 if ((ref->flags ^ rates[i].flags) & IEEE80211_TX_RC_SHORT_GI) in mt7603_wtbl_set_rates() 744 rates[i].flags ^= IEEE80211_TX_RC_SHORT_GI; in mt7603_wtbl_set_rates() 747 if (rates[i].idx != rates[k].idx) in mt7603_wtbl_set_rates() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/skylake/ |
| H A D | skl-pcm.c | 42 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | 692 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_8000, 701 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, 713 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | 726 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | 739 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, 751 .rates = SNDRV_PCM_RATE_48000, 763 .rates = SNDRV_PCM_RATE_48000, 775 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, 787 .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/pistachio/ |
| H A D | clk-pll.c | 74 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 …]
|
| /OK3568_Linux_fs/kernel/sound/pci/ac97/ |
| H A D | ac97_pcm.c | 31 /* standard rates */ 82 /* double rates */ 396 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() [all …]
|