/linux-4.1.27/drivers/net/wireless/b43/ |
H A D | ppr.c | 80 struct b43_ppr_rates *rates = &ppr->rates; b43_ppr_load_max_from_sprom() local 130 rates->cck[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 137 rates->ofdm[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 141 rates->mcs_20[0] = rates->ofdm[0]; b43_ppr_load_max_from_sprom() 142 rates->mcs_20[1] = rates->ofdm[2]; b43_ppr_load_max_from_sprom() 143 rates->mcs_20[2] = rates->ofdm[3]; b43_ppr_load_max_from_sprom() 144 rates->mcs_20[3] = rates->ofdm[4]; b43_ppr_load_max_from_sprom() 145 rates->mcs_20[4] = rates->ofdm[5]; b43_ppr_load_max_from_sprom() 146 rates->mcs_20[5] = rates->ofdm[6]; b43_ppr_load_max_from_sprom() 147 rates->mcs_20[6] = rates->ofdm[7]; b43_ppr_load_max_from_sprom() 148 rates->mcs_20[7] = rates->ofdm[7]; b43_ppr_load_max_from_sprom() 153 rates->mcs_20_cdd[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 155 rates->mcs_20_cdd[i] -= extra_cdd_po; b43_ppr_load_max_from_sprom() 159 rates->mcs_20_cdd[4 + i] = maxpwr - off; b43_ppr_load_max_from_sprom() 161 rates->mcs_20_cdd[4 + i] -= extra_cdd_po; b43_ppr_load_max_from_sprom() 165 rates->ofdm_20_cdd[0] = rates->mcs_20_cdd[0]; b43_ppr_load_max_from_sprom() 166 rates->ofdm_20_cdd[1] = rates->mcs_20_cdd[0]; b43_ppr_load_max_from_sprom() 167 rates->ofdm_20_cdd[2] = rates->mcs_20_cdd[1]; b43_ppr_load_max_from_sprom() 168 rates->ofdm_20_cdd[3] = rates->mcs_20_cdd[2]; b43_ppr_load_max_from_sprom() 169 rates->ofdm_20_cdd[4] = rates->mcs_20_cdd[3]; b43_ppr_load_max_from_sprom() 170 rates->ofdm_20_cdd[5] = rates->mcs_20_cdd[4]; b43_ppr_load_max_from_sprom() 171 rates->ofdm_20_cdd[6] = rates->mcs_20_cdd[5]; b43_ppr_load_max_from_sprom() 172 rates->ofdm_20_cdd[7] = rates->mcs_20_cdd[6]; b43_ppr_load_max_from_sprom() 177 rates->mcs_20_stbc[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 179 rates->mcs_20_stbc[i] -= extra_stbc_po; b43_ppr_load_max_from_sprom() 183 rates->mcs_20_stbc[4 + i] = maxpwr - off; b43_ppr_load_max_from_sprom() 185 rates->mcs_20_stbc[4 + i] -= extra_stbc_po; b43_ppr_load_max_from_sprom() 191 rates->mcs_20_sdm[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 195 rates->mcs_20_sdm[4 + i] = maxpwr - off; b43_ppr_load_max_from_sprom()
|
H A D | xmit.c | 266 struct ieee80211_tx_rate *rates; b43_generate_txhdr() local 380 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) b43_generate_txhdr() 403 rates = info->control.rates; b43_generate_txhdr() 415 /* Overwrite rates[0].count to make the retry calculation b43_generate_txhdr() 419 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || b43_generate_txhdr() 420 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { b43_generate_txhdr() 421 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; b43_generate_txhdr() 424 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; b43_generate_txhdr() 428 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || b43_generate_txhdr() 429 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { b43_generate_txhdr() 444 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { b43_generate_txhdr() 539 if (rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS && b43_generate_txhdr() 890 retry_limit = report->status.rates[0].count; b43_fill_txstatus_report() 905 report->status.rates[0].count = 0; b43_fill_txstatus_report() 914 report->status.rates[0].count = 0; b43_fill_txstatus_report() 915 report->status.rates[1].count = status->frame_count; b43_fill_txstatus_report() 918 report->status.rates[0].count = retry_limit; b43_fill_txstatus_report() 919 report->status.rates[1].count = status->frame_count - b43_fill_txstatus_report() 923 report->status.rates[0].count = status->frame_count; b43_fill_txstatus_report() 924 report->status.rates[1].idx = -1; b43_fill_txstatus_report()
|
H A D | ppr.h | 28 struct b43_ppr_rates rates; member in union:b43_ppr::__anon7773
|
/linux-4.1.27/net/mac80211/ |
H A D | rate.c | 205 return; /* assume basic rates unknown and accept rate */ rc_send_low_basicrate() 235 info->control.rates[0].idx = 0; __rate_control_send_low() 246 info->control.rates[0].idx = i; __rate_control_send_low() 251 info->control.rates[0].count = __rate_control_send_low() 276 info->control.rates[0].idx = mcast_rate - 1; rate_control_send_low() 287 rc_send_low_basicrate(&info->control.rates[0].idx, rate_control_send_low() 370 /* handle HT rates */ rate_idx_match_mask() 375 /* also try the legacy rates. */ rate_idx_match_mask() 389 /* handle legacy rates */ rate_idx_match_mask() 393 /* if HT BSS, and we handle a data frame, also try HT rates */ rate_idx_match_mask() 425 * configure supported rates and TX rate mask in incompatible way, rate_idx_match_mask() 434 struct ieee80211_tx_rate *rates, rate_fixup_ratelist() 447 * XXX: Should this check all retry rates? rate_fixup_ratelist() 449 if (!(rates[0].flags & rate_fixup_ratelist() 454 rate = &sband->bitrates[rates[0].idx]; rate_fixup_ratelist() 479 rates[i].idx = -1; rate_fixup_ratelist() 482 if (rates[i].idx < 0) { rate_fixup_ratelist() 491 if (rates[i].flags & IEEE80211_TX_RC_MCS) { rate_fixup_ratelist() 492 WARN_ON(rates[i].idx > 76); rate_fixup_ratelist() 494 if (!(rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) && rate_fixup_ratelist() 496 rates[i].flags |= rate_fixup_ratelist() 501 if (rates[i].flags & IEEE80211_TX_RC_VHT_MCS) { rate_fixup_ratelist() 502 WARN_ON(ieee80211_rate_get_vht_mcs(&rates[i]) > 9); rate_fixup_ratelist() 508 rates[i].flags |= IEEE80211_TX_RC_USE_RTS_CTS; rate_fixup_ratelist() 513 if (WARN_ON_ONCE(rates[i].idx >= sband->n_bitrates)) { rate_fixup_ratelist() 514 rates[i].idx = -1; rate_fixup_ratelist() 518 rate = &sband->bitrates[rates[i].idx]; rate_fixup_ratelist() 523 rates[i].flags |= IEEE80211_TX_RC_USE_SHORT_PREAMBLE; rate_fixup_ratelist() 526 if (!(rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) && rate_fixup_ratelist() 529 rates[i].flags |= IEEE80211_TX_RC_USE_CTS_PROTECT; rate_fixup_ratelist() 536 struct ieee80211_tx_rate *rates, rate_control_fill_sta_table() 543 ratetbl = rcu_dereference(sta->rates); rate_control_fill_sta_table() 548 if (i < ARRAY_SIZE(info->control.rates) && rate_control_fill_sta_table() 549 info->control.rates[i].idx >= 0 && rate_control_fill_sta_table() 550 info->control.rates[i].count) { rate_control_fill_sta_table() 551 if (rates != info->control.rates) rate_control_fill_sta_table() 552 rates[i] = info->control.rates[i]; rate_control_fill_sta_table() 554 rates[i].idx = ratetbl->rate[i].idx; rate_control_fill_sta_table() 555 rates[i].flags = ratetbl->rate[i].flags; rate_control_fill_sta_table() 557 rates[i].count = ratetbl->rate[i].count_rts; rate_control_fill_sta_table() 559 rates[i].count = ratetbl->rate[i].count_cts; rate_control_fill_sta_table() 561 rates[i].count = ratetbl->rate[i].count; rate_control_fill_sta_table() 563 rates[i].idx = -1; rate_control_fill_sta_table() 564 rates[i].count = 0; rate_control_fill_sta_table() 567 if (rates[i].idx < 0 || !rates[i].count) rate_control_fill_sta_table() 576 struct ieee80211_tx_rate *rates, rate_control_apply_mask() 588 * default mask (allow all rates) is used to save some processing for rate_control_apply_mask() 609 /* Filter out rates that the STA does not support */ rate_control_apply_mask() 622 /* Skip invalid rates */ rate_control_apply_mask() 623 if (rates[i].idx < 0) rate_control_apply_mask() 626 rate_idx_match_mask(&rates[i], sband, chan_width, mask, rate_control_apply_mask() 678 info->control.rates[i].idx = -1; rate_control_get_rate() 679 info->control.rates[i].flags = 0; rate_control_get_rate() 680 info->control.rates[i].count = 0; rate_control_get_rate() 692 info->control.rates, rate_control_get_rate() 693 ARRAY_SIZE(info->control.rates)); rate_control_get_rate() 698 struct ieee80211_sta_rates *rates) rate_control_set_rates() 709 old = rcu_dereference_protected(pubsta->rates, true); rate_control_set_rates() 710 rcu_assign_pointer(pubsta->rates, rates); rate_control_set_rates() 431 rate_fixup_ratelist(struct ieee80211_vif *vif, struct ieee80211_supported_band *sband, struct ieee80211_tx_info *info, struct ieee80211_tx_rate *rates, int max_rates) rate_fixup_ratelist() argument 534 rate_control_fill_sta_table(struct ieee80211_sta *sta, struct ieee80211_tx_info *info, struct ieee80211_tx_rate *rates, int max_rates) rate_control_fill_sta_table() argument 572 rate_control_apply_mask(struct ieee80211_sub_if_data *sdata, struct ieee80211_sta *sta, struct ieee80211_supported_band *sband, struct ieee80211_tx_info *info, struct ieee80211_tx_rate *rates, int max_rates) rate_control_apply_mask() argument 696 rate_control_set_rates(struct ieee80211_hw *hw, struct ieee80211_sta *pubsta, struct ieee80211_sta_rates *rates) rate_control_set_rates() argument
|
H A D | rc80211_minstrel_ht.c | 143 "Use only VHT rates when VHT is supported by sta."); 147 * To enable sufficiently targeted rate sampling, MCS rates are divided into 307 return &mi->groups[group].rates[idx]; minstrel_ht_get_stats() 313 return &mi->groups[index / MCS_GROUP_RATES].rates[index % MCS_GROUP_RATES]; minstrel_get_ratestats() 348 * Find & sort topmost throughput rates 350 * If multiple rates provide equal throughput the sorting is based on their 352 * MCS groups, CCK rates do not provide aggregation and are therefore at last. 364 cur_prob = mi->groups[cur_group].rates[cur_idx].prob_ewma; minstrel_ht_sort_best_tp_rates() 370 tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_ewma; minstrel_ht_sort_best_tp_rates() 403 mrs = &mg->rates[index % MCS_GROUP_RATES]; minstrel_ht_set_best_prob_rate() 407 tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_ewma; minstrel_ht_set_best_prob_rate() 411 * MCS_GROUP as well as CCK_GROUP rates do not allow aggregation */ minstrel_ht_set_best_prob_rate() 425 max_gpr_prob = mi->groups[max_gpr_group].rates[max_gpr_idx].prob_ewma; minstrel_ht_set_best_prob_rate() 434 if (mrs->prob_ewma > mg->rates[mg->max_group_prob_rate].prob_ewma) minstrel_ht_set_best_prob_rate() 441 * Assign new rate set per sta and use CCK rates only if the fastest 443 * rate sets where MCS and CCK rates are mixed, because CCK rates can 456 tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_ewma; minstrel_ht_assign_best_tp_rates() 461 tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_ewma; minstrel_ht_assign_best_tp_rates() 492 tmp_prob = mi->groups[group].rates[tmp_idx].prob_ewma; minstrel_ht_prob_rate_reduce_streams() 505 * Update rate statistics and select new primary rates 511 * higher throughput rates, even if the probablity is a bit lower 557 mrs = &mg->rates[i]; minstrel_ht_update_stats() 593 /* try to sample all available rates during each interval */ minstrel_ht_update_stats() 704 struct ieee80211_tx_rate *ar = info->status.rates; minstrel_ht_tx_status() 882 struct ieee80211_sta_rates *rates; minstrel_ht_update_rates() local 885 rates = kzalloc(sizeof(*rates), GFP_ATOMIC); minstrel_ht_update_rates() 886 if (!rates) minstrel_ht_update_rates() 890 minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_tp_rate[0]); minstrel_ht_update_rates() 893 /* At least 3 tx rates supported, use max_tp_rate[1] next */ minstrel_ht_update_rates() 894 minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_tp_rate[1]); minstrel_ht_update_rates() 899 * At least 2 tx rates supported, use max_prob_rate next */ minstrel_ht_update_rates() 900 minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_prob_rate); minstrel_ht_update_rates() 903 rates->rate[i].idx = -1; minstrel_ht_update_rates() 904 rate_control_set_rates(mp->hw, mi->sta, rates); minstrel_ht_update_rates() 938 mrs = &mg->rates[sample_idx]; minstrel_get_sample_rate() 944 * used rates. minstrel_get_sample_rate() 959 * Make sure that lower rates get sampled only occasionally, minstrel_get_sample_rate() 1003 struct ieee80211_tx_rate *rate = &info->status.rates[0]; minstrel_ht_get_rate() 1226 /* create an initial rate table with the lowest supported rates */ minstrel_ht_update_caps() 1328 prob = mi->groups[i].rates[j].prob_ewma; minstrel_ht_get_expected_throughput()
|
H A D | status.c | 248 if (info->status.rates[0].idx >= 0 && ieee80211_tx_radiotap_len() 249 !(info->status.rates[0].flags & (IEEE80211_TX_RC_MCS | ieee80211_tx_radiotap_len() 261 if (info->status.rates[0].idx >= 0) { ieee80211_tx_radiotap_len() 262 if (info->status.rates[0].flags & IEEE80211_TX_RC_MCS) ieee80211_tx_radiotap_len() 264 else if (info->status.rates[0].flags & IEEE80211_TX_RC_VHT_MCS) ieee80211_tx_radiotap_len() 299 if (info->status.rates[0].idx >= 0 && ieee80211_add_tx_radiotap_header() 300 !(info->status.rates[0].flags & (IEEE80211_TX_RC_MCS | ieee80211_add_tx_radiotap_header() 305 rate = sband->bitrates[info->status.rates[0].idx].bitrate; ieee80211_add_tx_radiotap_header() 317 if (info->status.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) ieee80211_add_tx_radiotap_header() 319 if (info->status.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) ieee80211_add_tx_radiotap_header() 330 if (info->status.rates[0].idx < 0) ieee80211_add_tx_radiotap_header() 335 if (info->status.rates[0].flags & IEEE80211_TX_RC_MCS) { ieee80211_add_tx_radiotap_header() 340 if (info->status.rates[0].flags & IEEE80211_TX_RC_SHORT_GI) ieee80211_add_tx_radiotap_header() 342 if (info->status.rates[0].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) ieee80211_add_tx_radiotap_header() 344 if (info->status.rates[0].flags & IEEE80211_TX_RC_GREEN_FIELD) ieee80211_add_tx_radiotap_header() 346 pos[2] = info->status.rates[0].idx; ieee80211_add_tx_radiotap_header() 348 } else if (info->status.rates[0].flags & IEEE80211_TX_RC_VHT_MCS) { ieee80211_add_tx_radiotap_header() 363 if (info->status.rates[0].flags & IEEE80211_TX_RC_SHORT_GI) ieee80211_add_tx_radiotap_header() 368 if (info->status.rates[0].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) ieee80211_add_tx_radiotap_header() 370 else if (info->status.rates[0].flags & IEEE80211_TX_RC_80_MHZ_WIDTH) ieee80211_add_tx_radiotap_header() 372 else if (info->status.rates[0].flags & IEEE80211_TX_RC_160_MHZ_WIDTH) ieee80211_add_tx_radiotap_header() 379 *pos = (ieee80211_rate_get_vht_mcs(&info->status.rates[0]) << 4) | ieee80211_add_tx_radiotap_header() 380 ieee80211_rate_get_vht_nss(&info->status.rates[0]); ieee80211_add_tx_radiotap_header() 568 info->status.rates[i].idx = -1; ieee80211_tx_get_rates() 569 info->status.rates[i].count = 0; ieee80211_tx_get_rates() 571 } else if (info->status.rates[i].idx < 0) { ieee80211_tx_get_rates() 575 info->status.rates[i].idx = -1; ieee80211_tx_get_rates() 576 info->status.rates[i].count = 0; ieee80211_tx_get_rates() 580 count += info->status.rates[i].count; ieee80211_tx_get_rates() 709 sta->last_tx_rate = info->status.rates[rates_idx]; ieee80211_tx_status()
|
H A D | rc80211_minstrel_ht.h | 55 /* bitfield of supported MCS rates of this group */ 63 struct minstrel_rate_stats rates[MCS_GROUP_RATES]; member in struct:minstrel_mcs_group_data
|
H A D | rc80211_minstrel.c | 91 /* find & sort topmost throughput rates */ 138 /* At least 3 tx rates supported, use max_tp_rate2 next */ minstrel_update_rates() 143 /* At least 2 tx rates supported, use max_prob_rate next */ minstrel_update_rates() 228 * (1) if any success probabilitiy >= 95%, out of those rates minstrel_update_stats() 270 struct ieee80211_tx_rate *ar = info->status.rates; minstrel_tx_status() 339 struct ieee80211_tx_rate *rate = &info->control.rates[0]; minstrel_get_rate() 401 * Respect such rates that are not sampled for 20 interations. minstrel_get_rate() 662 /* number of packets (in %) to use for sampling other rates minstrel_alloc()
|
/linux-4.1.27/drivers/net/wireless/orinoco/ |
H A D | scan.c | 27 static int symbol_build_supp_rates(u8 *buf, const __le16 *rates) symbol_build_supp_rates() argument 34 rate = le16_to_cpu(rates[i]); symbol_build_supp_rates() 45 static int prism_build_supp_rates(u8 *buf, const u8 *rates) prism_build_supp_rates() argument 52 if (rates[i] == 0x0) prism_build_supp_rates() 54 buf[i + 2] = rates[i]; prism_build_supp_rates() 58 /* We might still have another 2 rates, which need to go in prism_build_supp_rates() 59 * extended supported rates */ prism_build_supp_rates() 60 if (i == 8 && rates[i] > 0) { prism_build_supp_rates() 64 if (rates[i] == 0x0) prism_build_supp_rates() 66 buf[i + 2] = rates[i]; prism_build_supp_rates() 101 ie_len += symbol_build_supp_rates(ie, bss->s.rates); orinoco_add_hostscan_result() 105 ie_len += prism_build_supp_rates(ie, bss->p.rates); orinoco_add_hostscan_result()
|
H A D | hw.h | 51 int *numrates, s32 *rates, int max);
|
/linux-4.1.27/drivers/net/wireless/cw1200/ |
H A D | txrx.c | 70 struct ieee80211_tx_rate *rates, size_t count) tx_policy_build() 75 BUG_ON(rates[0].idx < 0); tx_policy_build() 78 /* Sort rates in descending order. */ tx_policy_build() 80 if (rates[i].idx < 0) { tx_policy_build() 84 if (rates[i].idx > rates[i - 1].idx) { tx_policy_build() 85 struct ieee80211_tx_rate tmp = rates[i - 1]; tx_policy_build() 86 rates[i - 1] = rates[i]; tx_policy_build() 87 rates[i] = tmp; tx_policy_build() 92 total = rates[0].count; tx_policy_build() 94 if (rates[j].idx == rates[i].idx) { tx_policy_build() 95 rates[i].count += rates[j].count; tx_policy_build() 96 } else if (rates[j].idx > rates[i].idx) { tx_policy_build() 101 rates[i] = rates[j]; tx_policy_build() 103 total += rates[j].count; tx_policy_build() 115 if (rates[i].count > limit - left) tx_policy_build() 116 rates[i].count = limit - left; tx_policy_build() 117 limit -= rates[i].count; tx_policy_build() 124 * As a workaround, additional g-rates are injected to the tx_policy_build() 127 if (count == 2 && !(rates[0].flags & IEEE80211_TX_RC_MCS) && tx_policy_build() 128 rates[0].idx > 4 && rates[0].count > 2 && tx_policy_build() 129 rates[1].idx < 2) { tx_policy_build() 130 int mid_rate = (rates[0].idx + 4) >> 1; tx_policy_build() 133 rates[0].count -= 2; tx_policy_build() 137 rates[3] = rates[1]; tx_policy_build() 140 rates[2].idx = 4; tx_policy_build() 141 rates[2].count = 1; tx_policy_build() 142 rates[2].flags = rates[1].flags; tx_policy_build() 145 rates[1].idx = mid_rate; tx_policy_build() 146 rates[1].count = 1; tx_policy_build() 153 if (rates[0].count >= 3) { tx_policy_build() 154 --rates[0].count; tx_policy_build() 155 ++rates[2].count; tx_policy_build() 158 /* Adjust amount of rates defined */ tx_policy_build() 162 rates[2] = rates[1]; tx_policy_build() 165 rates[1].idx = 4; tx_policy_build() 166 rates[1].count = 2; tx_policy_build() 168 /* Adjust amount of rates defined */ tx_policy_build() 173 policy->defined = cw1200_get_tx_rate(priv, &rates[0])->hw_value + 1; tx_policy_build() 178 rateid = cw1200_get_tx_rate(priv, &rates[i])->hw_value; tx_policy_build() 182 retries = rates[i].count; tx_policy_build() 184 rates[i].count = 0x0f; tx_policy_build() 193 rates[0].idx, rates[0].count, tx_policy_build() 194 rates[1].idx, rates[1].count, tx_policy_build() 195 rates[2].idx, rates[2].count, tx_policy_build() 196 rates[3].idx, rates[3].count); tx_policy_build() 300 struct ieee80211_tx_rate *rates, tx_policy_get() 307 tx_policy_build(priv, &wanted, rates, count); tx_policy_get() 416 u32 cw1200_rate_mask_to_wsm(struct cw1200_common *priv, u32 rates) cw1200_rate_mask_to_wsm() argument 421 if (rates & BIT(i)) cw1200_rate_mask_to_wsm() 422 ret |= BIT(priv->rates[i].hw_value); cw1200_rate_mask_to_wsm() 648 t->tx_info->control.rates, IEEE80211_TX_MAX_RATES, cw1200_tx_h_rate_policy() 656 &t->tx_info->control.rates[0]), cw1200_tx_h_rate_policy() 939 if (tx->status.rates[i].count >= tx_count) { cw1200_tx_confirm_cb() 940 tx->status.rates[i].count = tx_count; cw1200_tx_confirm_cb() 943 tx_count -= tx->status.rates[i].count; cw1200_tx_confirm_cb() 944 if (tx->status.rates[i].flags & IEEE80211_TX_RC_MCS) cw1200_tx_confirm_cb() 945 tx->status.rates[i].flags |= ht_flags; cw1200_tx_confirm_cb() 949 tx->status.rates[i].count = 0; cw1200_tx_confirm_cb() 950 tx->status.rates[i].idx = -1; cw1200_tx_confirm_cb() 68 tx_policy_build(const struct cw1200_common *priv, struct tx_policy *policy, struct ieee80211_tx_rate *rates, size_t count) tx_policy_build() argument 299 tx_policy_get(struct cw1200_common *priv, struct ieee80211_tx_rate *rates, size_t count, bool *renew) tx_policy_get() argument
|
H A D | txrx.h | 63 u32 rates);
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
H A D | hostap_80211.h | 29 /* followed by SSID and Supported rates */ 36 /* followed by Supported rates */ 43 /* followed by SSID and Supported rates */ 55 /* followed by some of SSID, Supported rates,
|
/linux-4.1.27/drivers/net/wireless/mwifiex/ |
H A D | cfp.c | 95 /* AC rates */ 195 * This function maps an index in supported rates table into 240 /* 11n non-HT rates */ mwifiex_index_to_acs_data_rate() 249 /* This function maps an index in supported rates table into 295 * This function returns the current active data rates. 299 u32 mwifiex_get_active_data_rates(struct mwifiex_private *priv, u8 *rates) mwifiex_get_active_data_rates() argument 302 return mwifiex_get_supported_rates(priv, rates); mwifiex_get_active_data_rates() 304 return mwifiex_copy_rates(rates, 0, mwifiex_get_active_data_rates() 387 /* This function gets the supported data rates from bitmask inside 391 u8 *rates, u8 radio_type) mwifiex_get_rates_from_cfg80211() 403 rate_mask = request->rates[IEEE80211_BAND_5GHZ]; mwifiex_get_rates_from_cfg80211() 408 rate_mask = request->rates[IEEE80211_BAND_2GHZ]; mwifiex_get_rates_from_cfg80211() 415 rates[num_rates++] = (u8)(sband->bitrates[i].bitrate / 5); mwifiex_get_rates_from_cfg80211() 421 /* This function gets the supported data rates. The function works in 423 * data rates. 425 u32 mwifiex_get_supported_rates(struct mwifiex_private *priv, u8 *rates) mwifiex_get_supported_rates() argument 436 k = mwifiex_copy_rates(rates, k, supported_rates_b, mwifiex_get_supported_rates() 443 k = mwifiex_copy_rates(rates, k, supported_rates_g, mwifiex_get_supported_rates() 454 k = mwifiex_copy_rates(rates, k, supported_rates_bg, mwifiex_get_supported_rates() 461 k = mwifiex_copy_rates(rates, k, supported_rates_a, mwifiex_get_supported_rates() 471 k = mwifiex_copy_rates(rates, k, supported_rates_a, mwifiex_get_supported_rates() 477 k = mwifiex_copy_rates(rates, k, supported_rates_n, mwifiex_get_supported_rates() 486 k = mwifiex_copy_rates(rates, k, adhoc_rates_b, mwifiex_get_supported_rates() 492 k = mwifiex_copy_rates(rates, k, adhoc_rates_g, mwifiex_get_supported_rates() 498 k = mwifiex_copy_rates(rates, k, adhoc_rates_bg, mwifiex_get_supported_rates() 504 k = mwifiex_copy_rates(rates, k, adhoc_rates_a, mwifiex_get_supported_rates() 390 mwifiex_get_rates_from_cfg80211(struct mwifiex_private *priv, u8 *rates, u8 radio_type) mwifiex_get_rates_from_cfg80211() argument
|
H A D | join.c | 139 * This function finds out the common rates between rate1 and rate2. 141 * It will fill common rates in rate1 as output if found. 143 * NOTE: Setting the MSB of the basic rates needs to be taken 198 * This function creates the intersection of the rates supported by a 209 /* Copy AP supported rates */ mwifiex_setup_rates_from_bssdesc() 211 /* Get the STA supported rates */ mwifiex_setup_rates_from_bssdesc() 213 /* Get the common rates between AP and STA supported rates */ mwifiex_setup_rates_from_bssdesc() 217 dev_err(priv->adapter->dev, "%s: cannot get common rates\n", mwifiex_setup_rates_from_bssdesc() 394 u8 rates[MWIFIEX_SUPPORTED_RATES]; mwifiex_cmd_802_11_associate() local 441 /* Get the common rates supported between the driver and the BSS Desc */ mwifiex_cmd_802_11_associate() 443 (priv, bss_desc, rates, &rates_size)) mwifiex_cmd_802_11_associate() 446 /* Save the data rates into Current BSS state structure */ mwifiex_cmd_802_11_associate() 448 memcpy(&priv->curr_bss_params.data_rates, rates, rates_size); mwifiex_cmd_802_11_associate() 454 memcpy(rates_tlv->rates, rates, rates_size); mwifiex_cmd_802_11_associate() 456 dev_dbg(priv->adapter->dev, "info: ASSOC_CMD: rates size = %d\n", mwifiex_cmd_802_11_associate() 762 * will fill up beacon period, basic rates and operational rates. 810 * Firmware will fill up beacon period, Basic rates mwifiex_cmd_802_11_ad_hoc_start() 811 * and operational rates. mwifiex_cmd_802_11_ad_hoc_start() 917 /* Copy the ad-hoc creating rates into Current BSS rate structure */ mwifiex_cmd_802_11_ad_hoc_start() 921 dev_dbg(adapter->dev, "info: ADHOC_S_CMD: rates=%4ph\n", mwifiex_cmd_802_11_ad_hoc_start() 1129 /* Copy the adhoc join rates into Current BSS state structure */ mwifiex_cmd_802_11_ad_hoc_join()
|
H A D | uap_cmd.c | 257 /* This function finds supported rates IE from beacon parameter and sets 258 * these rates into bss_config structure. 272 memcpy(bss_cfg->rates, rate_ie + 1, rate_ie->len); mwifiex_set_uap_rates() 280 memcpy(bss_cfg->rates + rate_len, rate_ie + 1, rate_ie->len); mwifiex_set_uap_rates() 493 if (bss_cfg->rates[0]) { mwifiex_uap_bss_param_prepare() 497 for (i = 0; i < MWIFIEX_SUPPORTED_RATES && bss_cfg->rates[i]; mwifiex_uap_bss_param_prepare() 499 tlv_rates->rates[i] = bss_cfg->rates[i]; mwifiex_uap_bss_param_prepare()
|
H A D | tdls.c | 126 u8 rates[MWIFIEX_SUPPORTED_RATES], *pos; mwifiex_tdls_append_rates_ie() local 129 memset(rates, 0, sizeof(rates)); mwifiex_tdls_append_rates_ie() 130 rates_size = mwifiex_get_supported_rates(priv, rates); mwifiex_tdls_append_rates_ie() 136 "Insuffient space while adding rates\n"); mwifiex_tdls_append_rates_ie() 143 memcpy(pos, rates, supp_rates_size); mwifiex_tdls_append_rates_ie() 150 memcpy(pos, rates + MWIFIEX_TDLS_SUPPORTED_RATES, mwifiex_tdls_append_rates_ie() 901 sta_ptr->tdls_cap.rates[i] = pos[i + 2]; mwifiex_process_tdls_action_frame() 907 sta_ptr->tdls_cap.rates[basic + i] = pos[i + 2]; mwifiex_process_tdls_action_frame()
|
/linux-4.1.27/drivers/clk/pistachio/ |
H A D | clk-pll.c | 56 struct pistachio_pll_rate_table *rates; member in struct:pistachio_clk_pll 90 if (pll->rates[i].fref == fref && pll->rates[i].fout == fout) pll_get_params() 91 return &pll->rates[i]; pll_get_params() 104 if (i > 0 && pll->rates[i].fref == *parent_rate && pll_round_rate() 105 pll->rates[i].fout <= rate) pll_round_rate() 106 return pll->rates[i - 1].fout; pll_round_rate() 109 return pll->rates[0].fout; pll_round_rate() 339 struct pistachio_pll_rate_table *rates, pll_register() 357 if (rates) pll_register() 363 if (rates) pll_register() 376 pll->rates = rates; pll_register() 396 pll[i].type, pll[i].rates, pistachio_clk_register_pll() 336 pll_register(const char *name, const char *parent_name, unsigned long flags, void __iomem *base, enum pistachio_pll_type type, struct pistachio_pll_rate_table *rates, unsigned int nr_rates) pll_register() argument
|
H A D | clk.h | 116 struct pistachio_pll_rate_table *rates; member in struct:pistachio_pll 127 .rates = _rates, \ 138 .rates = NULL, \
|
/linux-4.1.27/arch/mips/lantiq/ |
H A D | clk.c | 86 if (clk->rates && *clk->rates) { clk_set_rate() 87 unsigned long *r = clk->rates; clk_set_rate() 106 if (clk->rates && *clk->rates) { clk_round_rate() 107 unsigned long *r = clk->rates; clk_round_rate()
|
H A D | clk.h | 58 unsigned long *rates; member in struct:clk
|
/linux-4.1.27/drivers/staging/rtl8188eu/include/ |
H A D | ieee80211_ext.h | 196 /* followed by SSID and Supported rates */ 203 /* followed by Supported rates */ 210 /* followed by SSID and Supported rates */ 220 /* followed by some of SSID, Supported rates, 225 /* only variable items: SSID, Supported rates */ 232 /* followed by some of SSID, Supported rates, 271 * code, AID and supported rates, 272 * and directly by supported rates in
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | ar9002_mac.c | 238 ACCESS_ONCE(ads->ds_ctl2) = set11nTries(i->rates, 0) ar9002_set_txdesc() 239 | set11nTries(i->rates, 1) ar9002_set_txdesc() 240 | set11nTries(i->rates, 2) ar9002_set_txdesc() 241 | set11nTries(i->rates, 3) ar9002_set_txdesc() 245 ACCESS_ONCE(ads->ds_ctl3) = set11nRate(i->rates, 0) ar9002_set_txdesc() 246 | set11nRate(i->rates, 1) ar9002_set_txdesc() 247 | set11nRate(i->rates, 2) ar9002_set_txdesc() 248 | set11nRate(i->rates, 3); ar9002_set_txdesc() 298 ACCESS_ONCE(ads->ds_ctl4) = set11nPktDurRTSCTS(i->rates, 0) ar9002_set_txdesc() 299 | set11nPktDurRTSCTS(i->rates, 1); ar9002_set_txdesc() 301 ACCESS_ONCE(ads->ds_ctl5) = set11nPktDurRTSCTS(i->rates, 2) ar9002_set_txdesc() 302 | set11nPktDurRTSCTS(i->rates, 3); ar9002_set_txdesc() 304 ACCESS_ONCE(ads->ds_ctl7) = set11nRateFlags(i->rates, 0) ar9002_set_txdesc() 305 | set11nRateFlags(i->rates, 1) ar9002_set_txdesc() 306 | set11nRateFlags(i->rates, 2) ar9002_set_txdesc() 307 | set11nRateFlags(i->rates, 3) ar9002_set_txdesc()
|
H A D | ar9003_mac.c | 69 ACCESS_ONCE(ads->ctl13) = set11nTries(i->rates, 0) ar9003_set_txdesc() 70 | set11nTries(i->rates, 1) ar9003_set_txdesc() 71 | set11nTries(i->rates, 2) ar9003_set_txdesc() 72 | set11nTries(i->rates, 3) ar9003_set_txdesc() 76 ACCESS_ONCE(ads->ctl14) = set11nRate(i->rates, 0) ar9003_set_txdesc() 77 | set11nRate(i->rates, 1) ar9003_set_txdesc() 78 | set11nRate(i->rates, 2) ar9003_set_txdesc() 79 | set11nRate(i->rates, 3); ar9003_set_txdesc() 141 ACCESS_ONCE(ads->ctl15) = set11nPktDurRTSCTS(i->rates, 0) ar9003_set_txdesc() 142 | set11nPktDurRTSCTS(i->rates, 1); ar9003_set_txdesc() 144 ACCESS_ONCE(ads->ctl16) = set11nPktDurRTSCTS(i->rates, 2) ar9003_set_txdesc() 145 | set11nPktDurRTSCTS(i->rates, 3); ar9003_set_txdesc() 147 ACCESS_ONCE(ads->ctl18) = set11nRateFlags(i->rates, 0) ar9003_set_txdesc() 148 | set11nRateFlags(i->rates, 1) ar9003_set_txdesc() 149 | set11nRateFlags(i->rates, 2) ar9003_set_txdesc() 150 | set11nRateFlags(i->rates, 3) ar9003_set_txdesc()
|
H A D | xmit.c | 152 ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates, ath_set_rates() 153 ARRAY_SIZE(bf->rates)); ath_set_rates() 456 struct ieee80211_tx_rate rates[4]; ath_tx_complete_aggr() local 468 memcpy(rates, bf->rates, sizeof(rates)); ath_tx_complete_aggr() 472 retries += rates[i].count; ath_tx_complete_aggr() 588 memcpy(tx_info->control.rates, rates, sizeof(rates)); ath_tx_complete_aggr() 694 memcpy(info->control.rates, bf->rates, ath_tx_process_buffer() 695 sizeof(info->control.rates)); ath_tx_process_buffer() 711 struct ieee80211_tx_rate *rates; ath_lookup_legacy() local 716 rates = tx_info->control.rates; ath_lookup_legacy() 719 if (!rates[i].count || rates[i].idx < 0) ath_lookup_legacy() 722 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) ath_lookup_legacy() 734 struct ieee80211_tx_rate *rates; ath_lookup_rate() local 742 rates = bf->rates; ath_lookup_rate() 753 if (!rates[i].count) ath_lookup_rate() 756 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) { ath_lookup_rate() 761 if (rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) ath_lookup_rate() 766 if (rates[i].flags & IEEE80211_TX_RC_SHORT_GI) ath_lookup_rate() 769 frmlen = sc->tx.max_aggr_framelen[q][modeidx][rates[i].idx]; ath_lookup_rate() 818 * The hardware can keep up at lower rates, but not higher rates ath_compute_num_delims() 845 rix = bf->rates[0].idx; ath_compute_num_delims() 846 flags = bf->rates[0].flags; ath_compute_num_delims() 1179 struct ieee80211_tx_rate *rates; ath_buf_set_rate() local 1189 rates = bf->rates; ath_buf_set_rate() 1196 for (i = 0; i < ARRAY_SIZE(bf->rates); i++) { ath_buf_set_rate() 1200 if (!rates[i].count || (rates[i].idx < 0)) ath_buf_set_rate() 1203 rix = rates[i].idx; ath_buf_set_rate() 1204 info->rates[i].Tries = rates[i].count; ath_buf_set_rate() 1210 (rates[i].flags & IEEE80211_TX_RC_MCS) && ath_buf_set_rate() 1216 if (rts || rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) { ath_buf_set_rate() 1217 info->rates[i].RateFlags |= ATH9K_RATESERIES_RTS_CTS; ath_buf_set_rate() 1219 } else if (rates[i].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { ath_buf_set_rate() 1220 info->rates[i].RateFlags |= ATH9K_RATESERIES_RTS_CTS; ath_buf_set_rate() 1224 if (rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) ath_buf_set_rate() 1225 info->rates[i].RateFlags |= ATH9K_RATESERIES_2040; ath_buf_set_rate() 1226 if (rates[i].flags & IEEE80211_TX_RC_SHORT_GI) ath_buf_set_rate() 1227 info->rates[i].RateFlags |= ATH9K_RATESERIES_HALFGI; ath_buf_set_rate() 1229 is_sgi = !!(rates[i].flags & IEEE80211_TX_RC_SHORT_GI); ath_buf_set_rate() 1230 is_40 = !!(rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH); ath_buf_set_rate() 1231 is_sp = !!(rates[i].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE); ath_buf_set_rate() 1233 if (rates[i].flags & IEEE80211_TX_RC_MCS) { ath_buf_set_rate() 1234 /* MCS rates */ ath_buf_set_rate() 1235 info->rates[i].Rate = rix | 0x80; ath_buf_set_rate() 1236 info->rates[i].ChSel = ath_txchainmask_reduction(sc, ath_buf_set_rate() 1237 ah->txchainmask, info->rates[i].Rate); ath_buf_set_rate() 1238 info->rates[i].PktDuration = ath_pkt_duration(sc, rix, len, ath_buf_set_rate() 1241 info->rates[i].RateFlags |= ATH9K_RATESERIES_STBC; ath_buf_set_rate() 1248 /* legacy rates */ ath_buf_set_rate() 1249 rate = &common->sbands[tx_info->band].bitrates[rates[i].idx]; ath_buf_set_rate() 1256 info->rates[i].Rate = rate->hw_value; ath_buf_set_rate() 1258 if (rates[i].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) ath_buf_set_rate() 1259 info->rates[i].Rate |= rate->hw_value_short; ath_buf_set_rate() 1265 info->rates[i].ChSel = ah->txchainmask; ath_buf_set_rate() 1267 info->rates[i].ChSel = ath_txchainmask_reduction(sc, ath_buf_set_rate() 1268 ah->txchainmask, info->rates[i].Rate); ath_buf_set_rate() 1270 info->rates[i].PktDuration = ath9k_hw_computetxtime(sc->sc_ah, ath_buf_set_rate() 1273 is_cck = IS_CCK_RATE(info->rates[i].Rate); ath_buf_set_rate() 2450 duration += info.rates[0].PktDuration; ath_tx_cabq() 2619 * successfully by eventually preferring slower rates. ath_tx_rc_status() 2626 tx_info->status.rates[tx_rateindex].count = ath_tx_rc_status() 2631 tx_info->status.rates[i].count = 0; ath_tx_rc_status() 2632 tx_info->status.rates[i].idx = -1; ath_tx_rc_status() 2635 tx_info->status.rates[tx_rateindex].count = ts->ts_longretry + 1; ath_tx_rc_status()
|
H A D | wmi.h | 59 * Legacy rates are indicated as indices. 60 * HT rates are indicated as dot11 numbers.
|
H A D | dynack.c | 209 if (!(info->status.rates[ridx].flags & IEEE80211_TX_RC_MCS)) { ath_dynack_sample_tx_ts() 212 struct ieee80211_tx_rate *rates = info->status.rates; ath_dynack_sample_tx_ts() local 214 rate = &common->sbands[info->band].bitrates[rates[ridx].idx]; ath_dynack_sample_tx_ts()
|
H A D | link.c | 183 tx_info->control.rates[0].idx = 0; ath_paprd_send_frame() 184 tx_info->control.rates[0].count = 1; ath_paprd_send_frame() 185 tx_info->control.rates[0].flags = IEEE80211_TX_RC_MCS; ath_paprd_send_frame() 186 tx_info->control.rates[1].idx = -1; ath_paprd_send_frame()
|
/linux-4.1.27/drivers/net/wireless/ti/wl1251/ |
H A D | wl12xx_80211.h | 84 u8 rates[MAX_SUPPORTED_RATES]; member in struct:wl12xx_ie_rates 113 struct wl12xx_ie_rates rates; member in struct:wl12xx_beacon_template 138 struct wl12xx_ie_rates rates; member in struct:wl12xx_probe_req_template 149 struct wl12xx_ie_rates rates; member in struct:wl12xx_probe_resp_template
|
H A D | acx.c | 14 struct acx_fw_gen_frame_rates *rates; wl1251_acx_frame_rates() local 17 wl1251_debug(DEBUG_ACX, "acx frame rates"); wl1251_acx_frame_rates() 19 rates = kzalloc(sizeof(*rates), GFP_KERNEL); wl1251_acx_frame_rates() 20 if (!rates) wl1251_acx_frame_rates() 23 rates->tx_ctrl_frame_rate = ctrl_rate; wl1251_acx_frame_rates() 24 rates->tx_ctrl_frame_mod = ctrl_mod; wl1251_acx_frame_rates() 25 rates->tx_mgt_frame_rate = mgt_rate; wl1251_acx_frame_rates() 26 rates->tx_mgt_frame_mod = mgt_mod; wl1251_acx_frame_rates() 29 rates, sizeof(*rates)); wl1251_acx_frame_rates() 31 wl1251_error("Failed to set FW rates and modulation"); wl1251_acx_frame_rates() 36 kfree(rates); wl1251_acx_frame_rates()
|
/linux-4.1.27/sound/usb/ |
H A D | format.c | 151 * parse the format descriptor and stores the possible sample rates 209 fp->rates |= snd_pcm_rate_to_rate_bit(rate); parse_audio_format_rates_v1() 213 hwc_debug("All rates were zero. Skipping format!\n"); parse_audio_format_rates_v1() 217 /* continuous rates */ parse_audio_format_rates_v1() 218 fp->rates = SNDRV_PCM_RATE_CONTINUOUS; parse_audio_format_rates_v1() 228 * get to know how many sample rates we have to expect. 237 fp->rates = fp->rate_min = fp->rate_max = 0; parse_uac2_sample_rate_range() 256 fp->rates = SNDRV_PCM_RATE_CONTINUOUS; parse_uac2_sample_rate_range() 267 fp->rates |= snd_pcm_rate_to_rate_bit(rate); parse_uac2_sample_rate_range() 271 usb_audio_err(chip, "invalid uac2 rates\n"); parse_uac2_sample_rate_range() 285 * parse the format descriptor and stores the possible sample rates 303 /* get the number of sample rates first by only fetching 2 bytes */ parse_audio_format_rates_v2() 312 "%s(): unable to retrieve number of sample rates (clock %d)\n", parse_audio_format_rates_v2() 341 * We just use the return value to know how many sample rates we parse_audio_format_rates_v2() 360 * allocated, so the rates will be stored */ parse_audio_format_rates_v2() 403 /* gather possible sample rates */ parse_audio_format_i() 404 /* audio class v1 reports possible sample rates as part of the parse_audio_format_i() 466 ret = parse_audio_format_rates_v1(chip, fp, _fmt, 8); /* fmt[8..] sample rates */ parse_audio_format_ii() 510 /* extigy apparently supports sample rates other than 48k snd_usb_parse_audio_format() 517 fp->rates != SNDRV_PCM_RATE_48000 && snd_usb_parse_audio_format() 518 fp->rates != SNDRV_PCM_RATE_96000) snd_usb_parse_audio_format()
|
H A D | quirks-table.h | 68 .rates = SNDRV_PCM_RATE_CONTINUOUS, 528 .rates = SNDRV_PCM_RATE_CONTINUOUS, 545 .rates = SNDRV_PCM_RATE_CONTINUOUS, 1016 .rates = SNDRV_PCM_RATE_CONTINUOUS, 1033 .rates = SNDRV_PCM_RATE_CONTINUOUS, 1636 .rates = SNDRV_PCM_RATE_44100, 1654 .rates = SNDRV_PCM_RATE_44100, 1703 .rates = SNDRV_PCM_RATE_44100, 1721 .rates = SNDRV_PCM_RATE_44100, 2117 .rates = SNDRV_PCM_RATE_44100 | 2143 .rates = SNDRV_PCM_RATE_44100 | 2188 .rates = SNDRV_PCM_RATE_44100 | 2214 .rates = SNDRV_PCM_RATE_44100 | 2258 .rates = SNDRV_PCM_RATE_44100 | 2282 .rates = SNDRV_PCM_RATE_44100 | 2325 .rates = SNDRV_PCM_RATE_44100 | 2349 .rates = SNDRV_PCM_RATE_44100 | 2695 .rates = SNDRV_PCM_RATE_44100 | 2735 .rates = SNDRV_PCM_RATE_44100 | 2929 .rates = SNDRV_PCM_RATE_48000, 2952 .rates = SNDRV_PCM_RATE_48000, 2997 .rates = SNDRV_PCM_RATE_48000, 3022 .rates = SNDRV_PCM_RATE_48000, 3080 .rates = SNDRV_PCM_RATE_44100 | 3122 .rates = SNDRV_PCM_RATE_CONTINUOUS, 3140 .rates = SNDRV_PCM_RATE_CONTINUOUS, 3176 .rates = SNDRV_PCM_RATE_44100 |
|
H A D | card.h | 26 unsigned int rates; /* rate bitmasks */ member in struct:audioformat 27 unsigned int rate_min, rate_max; /* min/max rates */ 145 struct snd_pcm_hw_constraint_list rate_list; /* limited rates */
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | rate.c | 43 /* rates are in units of Kbps */ 188 /* Hardware rates (also encodes default basic rates) */ 282 /* error if no basic rates */ brcms_c_rateset_valid() 284 if (rs->rates[idx] & BRCMS_RATE_FLAG) brcms_c_rateset_valid() 316 r = (int)rs->rates[i] & BRCMS_RATE_MASK; brcms_c_rate_hwrs_filter_sort_validate() 319 rateset[r] = rs->rates[i]; /* preserve basic bit! */ brcms_c_rate_hwrs_filter_sort_validate() 322 /* fill out the rates in order, looking at only supported rates */ brcms_c_rate_hwrs_filter_sort_validate() 325 r = hw_rs->rates[i] & BRCMS_RATE_MASK; brcms_c_rate_hwrs_filter_sort_validate() 327 rs->rates[count++] = rateset[r]; brcms_c_rate_hwrs_filter_sort_validate() 400 * 'basic_only' means only copy basic rates. 401 * 'rates' indicates cck (11b) and ofdm rates combinations. 409 bool basic_only, u8 rates, uint xmask, bool mcsallow) brcms_c_rateset_filter() 417 r = src->rates[i]; brcms_c_rateset_filter() 420 if (rates == BRCMS_RATES_CCK && brcms_c_rateset_filter() 423 if (rates == BRCMS_RATES_OFDM && brcms_c_rateset_filter() 426 dst->rates[count++] = r & xmask; brcms_c_rateset_filter() 431 if (mcsallow && rates != BRCMS_RATES_CCK) brcms_c_rateset_filter() 408 brcms_c_rateset_filter(struct brcms_c_rateset *src, struct brcms_c_rateset *dst, bool basic_only, u8 rates, uint xmask, bool mcsallow) brcms_c_rateset_filter() argument
|
H A D | pub.h | 25 #define BRCMS_NUMRATES 16 /* max # of rates in a rateset */ 59 /* legacy rx Antenna diversity for SISO rates */ 68 /* legacy rx Antenna diversity for SISO rates */ 105 /* # rates in this set */ 107 /* rates in 500kbps units w/hi bit set if basic */ 108 u8 rates[WL_NUMRATES]; member in struct:brcm_rateset 112 uint count; /* number of rates in rates[] */ 113 /* rates in 500kbps units w/hi bit set if basic */ 114 u8 rates[BRCMS_NUMRATES]; member in struct:brcms_c_rateset 134 struct brcms_c_rateset rateset; /* supported rates */
|
H A D | mac80211_if.h | 28 * Starting index for 5G rates in the
|
/linux-4.1.27/sound/pci/ac97/ |
H A D | ac97_pcm.c | 46 /* standard rates */ 97 /* double rates */ 411 unsigned int rates = ~0; get_rates() local 426 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; get_rates() 429 rates &= ~(SNDRV_PCM_RATE_64000 | SNDRV_PCM_RATE_88200 | get_rates() 431 return rates; get_rates() 457 unsigned int rates; snd_ac97_pcm_assign() local 493 rpcm->rates = ~0; snd_ac97_pcm_assign() 498 rates = ~0; snd_ac97_pcm_assign() 519 rates = SNDRV_PCM_RATE_48000; snd_ac97_pcm_assign() 521 rates = get_rates(rpcm, j, tmp, 0); snd_ac97_pcm_assign() 527 rpcm->rates &= rates; snd_ac97_pcm_assign() 543 rates = SNDRV_PCM_RATE_96000; snd_ac97_pcm_assign() 545 rates = get_rates(rpcm, 0, tmp, 1); snd_ac97_pcm_assign() 546 rpcm->rates |= rates; snd_ac97_pcm_assign() 549 if (rpcm->rates == ~0) snd_ac97_pcm_assign() 550 rpcm->rates = 0; /* not used */ snd_ac97_pcm_assign() 732 * Installs the hardware constraint rules to prevent using double rates and
|
/linux-4.1.27/sound/firewire/dice/ |
H A D | dice-proc.c | 67 static const char *const rates[] = { dice_proc_read() local 139 str_from_array(rates, ARRAY_SIZE(rates), dice_proc_read() 145 str_from_array(rates, ARRAY_SIZE(rates), dice_proc_read() 160 snd_iprintf(buffer, " %s", rates[i]); dice_proc_read() 235 str_from_array(rates, ARRAY_SIZE(rates), dice_proc_read()
|
H A D | dice-pcm.c | 22 struct snd_interval rates = { dice_rate_constraint() local 40 rates.min = min(rates.min, rate); dice_rate_constraint() 41 rates.max = max(rates.max, rate); dice_rate_constraint() 44 return snd_interval_refine(r, &rates); dice_rate_constraint() 96 hw->rates |= snd_pcm_rate_to_rate_bit(rate); limit_channels_and_rates()
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | ad73311.c | 47 .rates = SNDRV_PCM_RATE_8000, 53 .rates = SNDRV_PCM_RATE_8000,
|
H A D | ak4554.c | 54 .rates = SNDRV_PCM_RATE_8000_48000, 61 .rates = SNDRV_PCM_RATE_8000_48000,
|
H A D | bt-sco.c | 34 .rates = SNDRV_PCM_RATE_8000, 41 .rates = SNDRV_PCM_RATE_8000,
|
H A D | hdmi.c | 44 .rates = SNDRV_PCM_RATE_32000 | 56 .rates = SNDRV_PCM_RATE_32000 |
|
H A D | ac97.c | 61 .rates = STD_AC97_RATES, 67 .rates = STD_AC97_RATES,
|
H A D | cq93vc.c | 114 .rates = CQ93VC_RATES, 120 .rates = CQ93VC_RATES,
|
H A D | pcm3008.c | 89 .rates = PCM3008_RATES, 96 .rates = PCM3008_RATES,
|
H A D | ads117x.c | 55 .rates = ADS117X_RATES,
|
H A D | dmic.c | 36 .rates = SNDRV_PCM_RATE_CONTINUOUS,
|
H A D | spdif_receiver.c | 53 .rates = STUB_RATES,
|
H A D | spdif_transmitter.c | 53 .rates = STUB_RATES,
|
H A D | wm8727.c | 51 .rates = WM8727_RATES,
|
H A D | wm8782.c | 46 .rates = SNDRV_PCM_RATE_8000_48000,
|
H A D | cs4270.c | 171 * rates the CS4270 currently supports. 188 * never select any sample rates that require divide-by-1.5. 228 * cs4270_set_dai_sysclk - determine the CS4270 samples rates. 237 * The value of MCLK is used to determine which sample rates are supported 243 * of supported sample rates. 246 * otherwise the list of supported sample rates will not be available in 250 * theoretically possible sample rates to be enabled. Call it again with a 480 .rates = SNDRV_PCM_RATE_CONTINUOUS, 489 .rates = SNDRV_PCM_RATE_CONTINUOUS,
|
H A D | wm1250-ev1.c | 133 .rates = WM1250_EV1_RATES, 140 .rates = WM1250_EV1_RATES,
|
H A D | cs4265.c | 532 .rates = CS4265_RATES, 539 .rates = CS4265_RATES, 550 .rates = CS4265_RATES, 557 .rates = CS4265_RATES,
|
H A D | ak4641.c | 459 .hw_params = NULL, /* rates are controlled by BT chip */ 473 .rates = AK4641_RATES, 480 .rates = AK4641_RATES, 493 .rates = AK4641_RATES_BT, 500 .rates = AK4641_RATES_BT,
|
H A D | arizona.c | 879 unsigned int *rates; arizona_set_opclk() local 896 rates = arizona_sysclk_44k1_rates; arizona_set_opclk() 898 rates = arizona_sysclk_48k_rates; arizona_set_opclk() 901 rates[ref] <= refclk; ref++) { arizona_set_opclk() 903 while (rates[ref] / div >= freq && div < 32) { arizona_set_opclk() 904 if (rates[ref] / div == freq) { arizona_set_opclk() 1347 const int *rates; arizona_hw_params() local 1358 rates = &arizona_44k1_bclk_rates[0]; arizona_hw_params() 1360 rates = &arizona_48k_bclk_rates[0]; arizona_hw_params() 1390 if (rates[i] >= bclk_target && arizona_hw_params() 1391 rates[i] % params_rate(params) == 0) { arizona_hw_params() 1402 lrclk = rates[bclk] / params_rate(params); arizona_hw_params() 1405 rates[bclk], rates[bclk] / lrclk); arizona_hw_params()
|
H A D | wm8997.c | 961 .rates = WM8997_RATES, 968 .rates = WM8997_RATES, 983 .rates = WM8997_RATES, 990 .rates = WM8997_RATES, 1004 .rates = WM8997_RATES, 1011 .rates = WM8997_RATES, 1023 .rates = WM8997_RATES, 1030 .rates = WM8997_RATES, 1042 .rates = WM8997_RATES, 1049 .rates = WM8997_RATES,
|
H A D | mc13783.c | 99 /* Mapping between sample rates and register value */ 673 * forces us to use symmetric rates (mc13783-hifi). 683 .rates = SNDRV_PCM_RATE_8000_96000, 694 .rates = MC13783_RATES_RECORD, 716 .rates = SNDRV_PCM_RATE_8000_96000, 723 .rates = MC13783_RATES_RECORD,
|
H A D | sigmadsp.c | 281 unsigned int *rates; sigma_fw_load_samplerates() local 295 rates = kcalloc(num_rates, sizeof(*rates), GFP_KERNEL); sigma_fw_load_samplerates() 296 if (!rates) sigma_fw_load_samplerates() 300 rates[i] = le32_to_cpu(rate_chunk->samplerates[i]); sigma_fw_load_samplerates() 303 sigmadsp->rate_constraints.list = rates; sigma_fw_load_samplerates()
|
H A D | stac9766.c | 301 .rates = SNDRV_PCM_RATE_8000_48000, 308 .rates = SNDRV_PCM_RATE_8000_48000, 322 .rates = SNDRV_PCM_RATE_32000 | \
|
H A D | wm5102.c | 1711 .rates = WM5102_RATES, 1718 .rates = WM5102_RATES, 1733 .rates = WM5102_RATES, 1740 .rates = WM5102_RATES, 1755 .rates = WM5102_RATES, 1762 .rates = WM5102_RATES, 1776 .rates = WM5102_RATES, 1783 .rates = WM5102_RATES, 1795 .rates = WM5102_RATES, 1802 .rates = WM5102_RATES, 1814 .rates = WM5102_RATES, 1821 .rates = WM5102_RATES,
|
H A D | wm5110.c | 1482 .rates = WM5110_RATES, 1489 .rates = WM5110_RATES, 1504 .rates = WM5110_RATES, 1511 .rates = WM5110_RATES, 1526 .rates = WM5110_RATES, 1533 .rates = WM5110_RATES, 1547 .rates = WM5110_RATES, 1554 .rates = WM5110_RATES, 1566 .rates = WM5110_RATES, 1573 .rates = WM5110_RATES, 1585 .rates = WM5110_RATES, 1592 .rates = WM5110_RATES,
|
H A D | wm8523.c | 122 /* The set of sample rates that can be supported depends on the wm8523_startup() 200 * cope with others and having the odd rates confuses wm8523_set_dai_sysclk() 369 .rates = WM8523_RATES,
|
H A D | wm9705.c | 272 .rates = WM9705_AC97_RATES, 279 .rates = WM9705_AC97_RATES, 290 .rates = WM9705_AC97_RATES,
|
H A D | max98357a.c | 94 .rates = SNDRV_PCM_RATE_8000 |
|
/linux-4.1.27/sound/soc/sirf/ |
H A D | sirf-audio-port.c | 34 .rates = SNDRV_PCM_RATE_48000, 40 .rates = SNDRV_PCM_RATE_48000,
|
/linux-4.1.27/sound/soc/pxa/ |
H A D | pxa2xx-ac97.c | 165 .rates = PXA2XX_AC97_RATES, 171 .rates = PXA2XX_AC97_RATES, 182 .rates = PXA2XX_AC97_RATES, 188 .rates = PXA2XX_AC97_RATES, 199 .rates = PXA2XX_AC97_RATES,
|
H A D | raumfeld.c | 72 /* set freq to 0 to enable all possible codec sample rates */ raumfeld_cs4270_startup() 81 /* set freq to 0 to enable all possible codec sample rates */ raumfeld_cs4270_shutdown()
|
/linux-4.1.27/drivers/scsi/libsas/ |
H A D | sas_init.c | 329 struct sas_phy_linkrates *rates) sas_set_phy_speed() 333 if ((rates->minimum_linkrate && sas_set_phy_speed() 334 rates->minimum_linkrate > phy->maximum_linkrate) || sas_set_phy_speed() 335 (rates->maximum_linkrate && sas_set_phy_speed() 336 rates->maximum_linkrate < phy->minimum_linkrate)) sas_set_phy_speed() 339 if (rates->minimum_linkrate && sas_set_phy_speed() 340 rates->minimum_linkrate < phy->minimum_linkrate_hw) sas_set_phy_speed() 341 rates->minimum_linkrate = phy->minimum_linkrate_hw; sas_set_phy_speed() 343 if (rates->maximum_linkrate && sas_set_phy_speed() 344 rates->maximum_linkrate > phy->maximum_linkrate_hw) sas_set_phy_speed() 345 rates->maximum_linkrate = phy->maximum_linkrate_hw; sas_set_phy_speed() 355 rates); sas_set_phy_speed() 360 PHY_FUNC_LINK_RESET, rates); sas_set_phy_speed() 328 sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) sas_set_phy_speed() argument
|
H A D | sas_host_smp.c | 189 struct sas_phy_linkrates rates; sas_phy_control() local 213 rates.minimum_linkrate = min; sas_phy_control() 214 rates.maximum_linkrate = max; sas_phy_control() 222 if (i->dft->lldd_control_phy(asd_phy, phy_op, &rates)) sas_phy_control()
|
/linux-4.1.27/sound/atmel/ |
H A D | abdac.c | 72 * ABDAC supports a maximum of 6 different rates from a generic clock. The 77 /* ALSA seems to use rates between 192000 Hz and 5112 Hz. */ 103 unsigned int rates[MAX_NUM_RATES]; member in struct:atmel_abdac 163 .rates = (SNDRV_PCM_RATE_KNOT), 180 atmel_abdac_hw.rate_max = dac->rates[dac->rates_num - 1]; atmel_abdac_open() 181 atmel_abdac_hw.rate_min = dac->rates[0]; atmel_abdac_open() 364 dac->rates[index] = new_rate / 256; set_sample_rates() 376 unsigned int tmp = dac->rates[index - 1 - i]; set_sample_rates() 377 dac->rates[index - 1 - i] = dac->rates[i]; set_sample_rates() 378 dac->rates[i] = tmp; set_sample_rates() 382 dac->constraints_rates.list = dac->rates; set_sample_rates() 452 dev_dbg(&pdev->dev, "could not set supported rates\n"); atmel_abdac_probe()
|
/linux-4.1.27/sound/soc/samsung/ |
H A D | s3c24xx_uda134x.c | 28 generating the clock for the codec. If you define this only rates 48 static unsigned int rates[33 * 2]; variable 51 .count = ARRAY_SIZE(rates), 52 .list = rates, 89 rates[i*33] = clk_get_rate(xtal) / fs; s3c24xx_uda134x_startup() 91 rates[i*33 + j] = clk_get_rate(pclk) / s3c24xx_uda134x_startup() 142 cerr = rates[i] - rate; s3c24xx_uda134x_hw_params()
|
H A D | h1940_uda1380.c | 29 static unsigned int rates[] = { variable 36 .count = ARRAY_SIZE(rates), 37 .list = rates,
|
H A D | rx1950_uda1380.c | 41 static unsigned int rates[] = { variable 48 .count = ARRAY_SIZE(rates), 49 .list = rates,
|
H A D | s3c2412-i2s.c | 135 .rates = S3C2412_I2S_RATES, 141 .rates = S3C2412_I2S_RATES,
|
H A D | smdk_spdif.c | 77 * scheme of Samsudng SoCs did not support to set rates from abstrct 133 /* Set audio source clock rates */ smdk_hw_params()
|
H A D | ac97.c | 296 .rates = SNDRV_PCM_RATE_8000_48000, 302 .rates = SNDRV_PCM_RATE_8000_48000, 314 .rates = SNDRV_PCM_RATE_8000_48000,
|
/linux-4.1.27/drivers/net/wireless/b43legacy/ |
H A D | xmit.c | 204 struct ieee80211_tx_rate *rates; generate_txhdr_fw3() local 278 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) generate_txhdr_fw3() 283 rates = info->control.rates; generate_txhdr_fw3() 293 /* Overwrite rates[0].count to make the retry calculation generate_txhdr_fw3() 297 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || generate_txhdr_fw3() 298 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) { generate_txhdr_fw3() 299 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count; generate_txhdr_fw3() 302 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count; generate_txhdr_fw3() 306 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || generate_txhdr_fw3() 307 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { generate_txhdr_fw3() 320 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { generate_txhdr_fw3()
|
H A D | pio.c | 511 retry_limit = info->status.rates[0].count; b43legacy_pio_handle_txstatus() 525 info->status.rates[0].count = 0; b43legacy_pio_handle_txstatus() 526 info->status.rates[1].count = status->frame_count; b43legacy_pio_handle_txstatus() 529 info->status.rates[0].count = retry_limit; b43legacy_pio_handle_txstatus() 530 info->status.rates[1].count = status->frame_count - b43legacy_pio_handle_txstatus() 534 info->status.rates[0].count = status->frame_count; b43legacy_pio_handle_txstatus() 535 info->status.rates[1].idx = -1; b43legacy_pio_handle_txstatus()
|
/linux-4.1.27/drivers/clk/ |
H A D | clk-conf.c | 86 of_property_for_each_u32(node, "assigned-clock-rates", prop, cur, rate) { __set_clk_rates() 123 * This function parses 'assigned-{clocks/clock-parents/clock-rates}' properties 124 * and sets any specified clock parents and rates. The @clk_supplier argument
|
/linux-4.1.27/sound/usb/line6/ |
H A D | podhd.c | 46 .rates = SNDRV_PCM_RATE_48000, 63 .rates = SNDRV_PCM_RATE_48000, 73 .rates = {
|
H A D | playback.c | 151 line6pcm->properties->rates.rats[0].num_min; submit_audio_out_urb() 153 line6pcm->properties->rates.rats[0].den * submit_audio_out_urb() 373 &line6pcm->properties->rates); snd_line6_playback_open()
|
H A D | pod.c | 140 .rates = SNDRV_PCM_RATE_KNOT, 157 .rates = SNDRV_PCM_RATE_KNOT, 167 .rates = {
|
H A D | toneport.c | 87 .rates = SNDRV_PCM_RATE_KNOT, 104 .rates = SNDRV_PCM_RATE_KNOT, 114 .rates = {
|
/linux-4.1.27/drivers/net/wireless/libertas/ |
H A D | cfg.c | 130 * Various firmware commands need the list of supported rates, but with 131 * the hight-bit set for basic rates 133 static int lbs_add_rates(u8 *rates) lbs_add_rates() argument 142 rates[i] = rate; lbs_add_rates() 238 * Add rates TLV 240 * The rates are in lbs_bg_rates[], but for the 802.11b 241 * rates the high bit is set. We add this TLV only because 249 /* Adds a TLV with all rates the hardware supports */ lbs_add_supported_rates_tlv() 258 * rates 82 84 8b 96 0c 12 18 24 30 48 60 6c lbs_add_supported_rates_tlv() 268 /* Add common rates from a TLV and return the new end of the TLV */ 293 * Adds a TLV with all rates the hardware *and* BSS supports. 308 * 82 84 8b 96 rates lbs_add_common_rates_tlv() 313 /* Add basic rates */ lbs_add_common_rates_tlv() 317 /* Add extended rates, if any */ lbs_add_common_rates_tlv() 322 /* Fallback: add basic 802.11b rates */ lbs_add_common_rates_tlv() 675 * TLV and a rates TLV. Determine the maximum size of them: 729 /* add rates TLV */ lbs_scan_worker() 1159 /* add rates TLV */ lbs_associate() 1704 2 + 4 + /* basic rates */ lbs_join_post() 1707 2 + 8]; /* extended rates */ lbs_join_post() 1723 /* Fake supported basic rates IE */ lbs_join_post() 1739 /* Fake extended rates IE, TODO: don't add this for 802.11b only, lbs_join_post() 1821 * rates 82 84 8b 96 0c 12 18 24 30 48 60 6c 00 lbs_ibss_join_existing() 1840 /* set rates to the intersection of our rates and the rates in the lbs_ibss_join_existing() 1845 lbs_add_rates(cmd.bss.rates); lbs_ibss_join_existing() 1849 u8 *rates = cmd.bss.rates; lbs_ibss_join_existing() local 1858 *rates++ = rate; lbs_ibss_join_existing() 1932 * rates 82 84 8b 96 (basic rates with have bit 7 set) lbs_ibss_start_new() 1953 lbs_add_rates(cmd.rates); lbs_ibss_start_new()
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | kl5kusb105.h | 17 /* baud rates */
|
/linux-4.1.27/include/net/irda/ |
H A D | qos.h | 46 /* Baud rates (first byte) */ 56 /* Baud rates (second byte) */
|
/linux-4.1.27/sound/firewire/bebob/ |
H A D | bebob_focusrite.c | 45 static const unsigned int rates[] = { variable 143 if (id >= ARRAY_SIZE(rates)) saffirepro_both_clk_freq_get() 146 *rate = rates[id]; saffirepro_both_clk_freq_get() 155 for (id = 0; id < ARRAY_SIZE(rates); id++) { saffirepro_both_clk_freq_set() 156 if (rates[id] == rate) saffirepro_both_clk_freq_set() 159 if (id == ARRAY_SIZE(rates)) saffirepro_both_clk_freq_set()
|
/linux-4.1.27/sound/pci/hda/ |
H A D | hda_eld.c | 178 a->rates = 0; hdmi_update_short_audio_desc() 181 a->rates |= cea_sampling_frequencies[i + 1]; hdmi_update_short_audio_desc() 375 * SNDRV_PCM_RATE_* and AC_PAR_PCM values don't match, print correct rates with 405 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); hdmi_show_short_audio_desc() 416 "HDMI: supports coding type %s: channels = %d, rates =%s%s\n", hdmi_show_short_audio_desc() 462 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); hdmi_print_sad_info() 463 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); hdmi_print_sad_info() 577 e->sad[n].rates = val; snd_hdmi_write_eld_info() 595 u32 rates; snd_hdmi_eld_update_pcm_info() local 604 rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | snd_hdmi_eld_update_pcm_info() 611 rates |= a->rates; snd_hdmi_eld_update_pcm_info() 629 hinfo->rates &= rates; snd_hdmi_eld_update_pcm_info() 757 /* rates from the extra byte */ snd_hdmi_get_eld_ati()
|
H A D | patch_si3054.c | 172 static unsigned int rates[] = { 8000, 9600, 16000 }; si3054_pcm_open() local 174 .count = ARRAY_SIZE(rates), si3054_pcm_open() 175 .list = rates, si3054_pcm_open() 189 .rates = SNDRV_PCM_RATE_8000|SNDRV_PCM_RATE_16000|SNDRV_PCM_RATE_KNOT,
|
/linux-4.1.27/sound/usb/6fire/ |
H A D | pcm.c | 30 static const int rates[] = { 44100, 48000, 88200, 96000, 176400, 192000 }; variable 56 .rates = SNDRV_PCM_RATE_44100 | 84 rates[rt->rate]); usb6fire_pcm_set_rate() 92 rates[rt->rate]); usb6fire_pcm_set_rate() 101 rates[rt->rate]); usb6fire_pcm_set_rate() 110 rates[rt->rate]); usb6fire_pcm_set_rate() 403 if (rt->rate < ARRAY_SIZE(rates)) usb6fire_pcm_open() 404 alsa_rt->hw.rates = rates_alsaid[rt->rate]; usb6fire_pcm_open() 408 if (rt->rate < ARRAY_SIZE(rates)) usb6fire_pcm_open() 409 alsa_rt->hw.rates = rates_alsaid[rt->rate]; usb6fire_pcm_open() 446 rt->rate = ARRAY_SIZE(rates); usb6fire_pcm_close() 482 for (rt->rate = 0; rt->rate < ARRAY_SIZE(rates); rt->rate++) usb6fire_pcm_prepare() 483 if (alsa_rt->rate == rates[rt->rate]) usb6fire_pcm_prepare() 485 if (rt->rate == ARRAY_SIZE(rates)) { usb6fire_pcm_prepare() 636 rt->rate = ARRAY_SIZE(rates); usb6fire_pcm_init()
|
/linux-4.1.27/sound/soc/kirkwood/ |
H A D | kirkwood-i2s.c | 111 /* use internal dco for the supported rates kirkwood_set_rate() 119 /* use the external clock for the other rates kirkwood_set_rate() 448 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 455 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 467 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 474 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 489 .rates = SNDRV_PCM_RATE_CONTINUOUS, 497 .rates = SNDRV_PCM_RATE_CONTINUOUS, 510 .rates = SNDRV_PCM_RATE_CONTINUOUS, 518 .rates = SNDRV_PCM_RATE_CONTINUOUS,
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
H A D | rs.h | 112 /* uCode API values for legacy bit rates, both OFDM and CCK */ 131 /* uCode API values for OFDM high-throughput (HT) bit rates */ 162 /* MAC header values for bit rates */ 305 * struct iwl_scale_tbl_info -- tx params and success history for all rates 351 u32 total_failed; /* total failed frames, any/all rates */ 352 u32 total_success; /* total successful frames, any/all rates */ 360 /* The following are bitmaps of rates; IWL_RATE_6M_MASK, etc. */
|
H A D | rs.c | 169 * The following tables contain the expected throughput metrics for all rates 175 * CCK rates are only valid in legacy table and will only be used in G 702 * in SISO rates. Until we find that bug, disable GF, it rs_use_green() 710 * rs_get_supported_rates - get the available rates 713 * basic available rates. 799 /* check if we need to switch from HT to legacy rates. rs_get_lower_rate() 800 * assumption is that mandatory rates (1Mbps or 6Mbps) rs_get_lower_rate() 944 mac_flags = info->status.rates[0].flags; rs_tx_status() 945 mac_index = info->status.rates[0].idx; rs_tx_status() 953 * HT OFDM rates after CCK rates in 2.4 GHz band rs_tx_status() 969 * Since rates mis-match, the last LQ command may have failed. rs_tx_status() 1036 retries = info->status.rates[0].count - 1; rs_tx_status() 1082 * and reset overall (spanning all rates) tx success history statistics. 1122 /* Legacy rates have only one table */ rs_set_expected_tpt_table() 2166 * history bitmaps and rate-specific stats for all rates in rs_stay_in_table() 2289 /* rates available for this association, and for modulation mode */ rs_rate_scale_perform() 2440 /* Collect measured throughputs for current and adjacent rates */ rs_rate_scale_perform() 2454 /* No throughput measured yet for adjacent rates; try increase. */ rs_rate_scale_perform() 2570 * 1) Not changing rates right now rs_rate_scale_perform() 2651 * The uCode's station table contains a table of fallback rates 2763 info->control.rates[0].flags = IEEE80211_TX_RC_MCS; rs_get_rate() 2765 info->control.rates[0].flags |= IEEE80211_TX_RC_SHORT_GI; rs_get_rate() 2767 info->control.rates[0].flags |= IEEE80211_TX_RC_DUP_DATA; rs_get_rate() 2769 info->control.rates[0].flags |= IEEE80211_TX_RC_40_MHZ_WIDTH; rs_get_rate() 2771 info->control.rates[0].flags |= IEEE80211_TX_RC_GREEN_FIELD; rs_get_rate() 2773 /* Check for invalid rates */ rs_get_rate() 2781 info->control.rates[0].flags = 0; rs_get_rate() 2783 info->control.rates[0].idx = rate_idx; rs_get_rate() 2784 info->control.rates[0].count = 1; rs_get_rate() 2841 * active legacy rates as per supported rates bitmap iwl_rs_rate_init() 3019 /* Don't allow HT rates after next pass. rs_fill_link_cmd()
|
H A D | rxon.c | 806 /* make sure basic rates 6Mbps and 1Mbps are supported */ iwl_check_rxon_cmd() 970 * Now we've got the basic rates as bitmaps in the ofdm and cck iwl_calc_basic_rates() 972 * be all the right rates in the bitmap. E.g. if the only basic iwl_calc_basic_rates() 973 * rates are 5.5 Mbps and 11 Mbps, we still need to add 1 Mbps iwl_calc_basic_rates() 988 * As a consequence, we need to add all mandatory rates that are iwl_calc_basic_rates() 989 * lower than all of the basic rates to these bitmaps. iwl_calc_basic_rates() 1002 * - if no CCK rates are basic, it must be ERP since there must iwl_calc_basic_rates() 1003 * be some basic rates at all, so they're OFDM => ERP PHY iwl_calc_basic_rates() 1010 * any lower rates to the ACK rate bitmap. iwl_calc_basic_rates() 1021 IWL_DEBUG_RATE(priv, "Set basic rates cck:0x%.2x ofdm:0x%.2x\n", iwl_calc_basic_rates() 1024 /* "basic_rates" is a misnomer here -- should be called ACK rates */ iwl_calc_basic_rates() 1068 /* recalculate basic rates */ iwlagn_commit_rxon() 1313 * stream MCS rates, it can't be transmitting them either. iwlagn_check_needed_chains()
|
/linux-4.1.27/drivers/clk/rockchip/ |
H A D | clk-cpu.c | 17 * clock for CPU domain. The rates of these auxiliary clocks are related to the 49 * @rate_count: number of rates in the rate_table 50 * @rate_table: pll-rates and their associated dividers 236 const struct rockchip_cpuclk_rate_table *rates, rockchip_clk_register_cpuclk() 304 cpuclk->rate_table = kmemdup(rates, rockchip_clk_register_cpuclk() 305 sizeof(*rates) * nrates, rockchip_clk_register_cpuclk() 308 pr_err("%s: could not allocate memory for cpuclk rates\n", rockchip_clk_register_cpuclk() 233 rockchip_clk_register_cpuclk(const char *name, const char **parent_names, u8 num_parents, const struct rockchip_cpuclk_reg_data *reg_data, const struct rockchip_cpuclk_rate_table *rates, int nrates, void __iomem *reg_base, spinlock_t *lock) rockchip_clk_register_cpuclk() argument
|
H A D | clk.h | 102 * @rate_table: Table of usable pll rates 178 const struct rockchip_cpuclk_rate_table *rates, 408 const struct rockchip_cpuclk_rate_table *rates,
|
/linux-4.1.27/sound/core/ |
H A D | pcm_misc.c | 469 * Determines the rate_min and rate_max fields from the rates bits of 478 if (runtime->hw.rates & (1 << i)) { snd_pcm_limit_hw_rates() 484 if (runtime->hw.rates & (1 << i)) { snd_pcm_limit_hw_rates() 530 static unsigned int snd_pcm_rate_mask_sanitize(unsigned int rates) snd_pcm_rate_mask_sanitize() argument 532 if (rates & SNDRV_PCM_RATE_CONTINUOUS) snd_pcm_rate_mask_sanitize() 534 else if (rates & SNDRV_PCM_RATE_KNOT) snd_pcm_rate_mask_sanitize() 536 return rates; snd_pcm_rate_mask_sanitize() 544 * This function computes the rates that are supported by both rate masks passed 548 * Return: A rate mask containing the rates that are supported by both rates_a
|
/linux-4.1.27/sound/soc/fsl/ |
H A D | mpc5200_psc_i2s.c | 22 * PSC_I2S_RATES: sample rates supported by the I2S 26 * ALSA that we support all rates and let the codec driver decide what rates 137 .rates = PSC_I2S_RATES, 144 .rates = PSC_I2S_RATES,
|
H A D | mpc5200_psc_ac97.c | 246 .rates = SNDRV_PCM_RATE_8000_48000, 253 .rates = SNDRV_PCM_RATE_8000_48000, 265 .rates = SNDRV_PCM_RATE_32000 | \
|
H A D | imx-ssi.c | 21 * manually skip this data in the FIQ handler. With sampling rates different 370 .rates = SNDRV_PCM_RATE_8000_96000, 376 .rates = SNDRV_PCM_RATE_8000_96000, 389 .rates = SNDRV_PCM_RATE_8000_48000, 396 .rates = SNDRV_PCM_RATE_48000,
|
/linux-4.1.27/drivers/staging/vt6656/ |
H A D | int.c | 87 idx = info->control.rates[0].idx; vnt_int_report_rate() 112 info->status.rates[0].count = tx_retry; vnt_int_report_rate() 115 info->status.rates[0].idx = idx; vnt_int_report_rate()
|
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/ |
H A D | main.c | 524 u32 rates = sta->supp_rates[band]; wcn36xx_update_allowed_rates() local 534 if (rates & 0x01) { wcn36xx_update_allowed_rates() 536 rates = rates >> 1; wcn36xx_update_allowed_rates() 544 if (rates & 0x01) { wcn36xx_update_allowed_rates() 546 rates = rates >> 1; wcn36xx_update_allowed_rates() 558 void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) wcn36xx_set_default_rates() argument 577 rates->op_rate_mode = STA_11n; wcn36xx_set_default_rates() 578 memcpy(rates->dsss_rates, dsss_rates, wcn36xx_set_default_rates() 580 memcpy(rates->ofdm_rates, ofdm_rates, wcn36xx_set_default_rates() 582 rates->supported_mcs_set[0] = 0xFF; wcn36xx_set_default_rates()
|
/linux-4.1.27/net/wireless/ |
H A D | mesh.c | 165 * check if basic rates are available otherwise use mandatory rates as __cfg80211_join_mesh() 166 * basic rates __cfg80211_join_mesh()
|
/linux-4.1.27/drivers/net/wireless/zd1211rw/ |
H A D | zd_mac.h | 62 /* The ZD1211 firmware uses proprietary encodings of the 802.11b (CCK) rates. 63 * For OFDM the PLCP rate encodings are used. We combine these "pure" rates 64 * with the modulation type flag and call the resulting values zd-rates. 144 int rate[10]; /* retry rates, described by an index in zd_rates[] */ 201 struct ieee80211_rate rates[12]; member in struct:zd_mac 278 * Notify that these values are *not* used in the zd-rates.
|
H A D | zd_mac.c | 50 /* This table contains the hardware specific values for the modulation rates. */ 93 * Zydas retry rates table. Each line is listed in the same order as 95 * starting with a given rates. Let's consider an example : 98 * - packet is sent using 4 different rates 468 first_idx = info->status.rates[0].idx; zd_mac_tx_status() 473 info->status.rates[0].idx = retries->rate[0]; zd_mac_tx_status() 474 info->status.rates[0].count = 1; // (retry > 1 ? 2 : 1); zd_mac_tx_status() 477 info->status.rates[i].idx = retries->rate[i]; zd_mac_tx_status() 478 info->status.rates[i].count = 1; // ((i==retry-1) && success ? 1:2); zd_mac_tx_status() 481 info->status.rates[i].idx = retries->rate[retry - 1]; zd_mac_tx_status() 482 info->status.rates[i].count = 1; // (success ? 1:2); zd_mac_tx_status() 485 info->status.rates[i].idx = -1; /* terminate */ zd_mac_tx_status() 541 first_idx = info->status.rates[0].idx; skb_queue_walk() 680 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) cs_set_control() 683 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) cs_set_control() 888 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) fill_ctrlset() 1392 memcpy(mac->rates, zd_rates, sizeof(zd_rates)); zd_mac_alloc_hw() 1394 mac->band.bitrates = mac->rates; zd_mac_alloc_hw() 1419 hw->max_rate_tries = 18; /* 9 rates * 2 retries/rate */ zd_mac_alloc_hw()
|
/linux-4.1.27/sound/pci/cs5535audio/ |
H A D | cs5535audio_pcm.c | 49 .rates = ( 76 .rates = ( 99 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC]; snd_cs5535audio_playback_open() 358 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_ADC]; snd_cs5535audio_capture_open()
|
/linux-4.1.27/drivers/media/pci/mantis/ |
H A D | mantis_uart.c | 46 } rates[5] = { variable in typeref:struct:__anon5640 152 rates[params.baud_rate].string, mantis_uart_init()
|
/linux-4.1.27/sound/aoa/codecs/ |
H A D | toonie.c | 41 * the rates are taken from Info.plist 46 .rates = SNDRV_PCM_RATE_32000 |
|
/linux-4.1.27/sound/soc/cirrus/ |
H A D | edb93xx.c | 43 * rates below 50kHz and 128 for higher sample rates edb93xx_hw_params()
|
/linux-4.1.27/sound/soc/ |
H A D | soc-utils.c | 110 .rates = STUB_RATES, 117 .rates = STUB_RATES,
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | fwil_types.h | 49 #define BRCMF_MAXRATES_IN_SET 16 /* max # of rates in rateset */ 246 __le32 count; /* # rates in this set */ 247 u8 rates[16]; /* rates in 500kbps units w/hi bit set if basic */ member in struct:brcmf_bss_info_le::__anon7804 248 } rateset; /* supported rates */ 272 /* # rates in this set */ 274 /* rates in 500kbps units w/hi bit set if basic */ 275 u8 rates[BRCMF_MAXRATES_IN_SET]; member in struct:brcm_rateset_le 465 __le32 count; /* # rates in this set */ 466 u8 rates[BRCMF_MAXRATES_IN_SET]; /* rates in 500kbps units */ member in struct:brcmf_sta_info_le
|
/linux-4.1.27/drivers/net/wireless/p54/ |
H A D | txrx.c | 437 /* walk through the rates array and adjust the counts */ p54_rx_frame_sent() 440 if (count >= info->status.rates[idx].count) { p54_rx_frame_sent() 441 count -= info->status.rates[idx].count; p54_rx_frame_sent() 443 info->status.rates[idx].count = count; p54_rx_frame_sent() 446 info->status.rates[idx].idx = -1; p54_rx_frame_sent() 447 info->status.rates[idx].count = 0; p54_rx_frame_sent() 824 hdr->rts_tries = info->control.rates[0].count; p54_tx_80211() 827 * we register the rates in perfect order, and p54_tx_80211() 834 /* see how many rates got used */ p54_tx_80211() 836 if (info->control.rates[i].idx < 0) p54_tx_80211() 849 info->control.rates[i].count); p54_tx_80211() 855 int tmp = info->control.rates[i].count - calculated_tries[i]; p54_tx_80211() 868 /* we register the rates in perfect order */ p54_tx_80211() 869 rate = info->control.rates[i].idx; p54_tx_80211() 874 info->control.rates[i].count = calculated_tries[i]; p54_tx_80211() 876 rc_flags = info->control.rates[i].flags; p54_tx_80211()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/ |
H A D | rc.c | 151 struct ieee80211_tx_rate *rates = tx_info->control.rates; rtl_get_rate() local 161 _rtl_rc_rate_set_series(rtlpriv, sta, &rates[0], txrc, rtl_get_rate() 166 _rtl_rc_rate_set_series(rtlpriv, sta, &rates[i], rtl_get_rate()
|
/linux-4.1.27/drivers/staging/rtl8723au/include/ |
H A D | ieee80211.h | 234 * only use 8, and then use extended rates for the remaining supported 235 * rates. Other APs, however, stick all of their supported rates on the 236 * main rates information element... */
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | wl12xx_80211.h | 85 u8 rates[MAX_SUPPORTED_RATES]; member in struct:wl12xx_ie_rates
|
H A D | cmd.h | 58 int index, u32 rates); 321 __le32 remote_rates; /* remote supported rates */ 329 __le32 local_rates; /* local supported rates */ 341 __le32 remote_rates; /* remote supported rates */ 344 __le32 local_rates; /* local supported rates */ 367 __le32 local_rates; /* local supported rates */
|
H A D | init.c | 467 * If the basic rates contain OFDM rates, use OFDM only wl1271_init_ap_rates() 468 * rates for unicast TX as well. Else use all supported rates. wl1271_init_ap_rates() 475 /* unconditionally enable HT rates */ wl1271_init_ap_rates() 478 /* get extra MIMO or wide-chan rates where the HW supports it */ wl1271_init_ap_rates()
|
H A D | tx.c | 333 * otherwise use default basic rates wl1271_tx_fill_hdr() 469 /* MCS rates indication are on bits 16 - 31 */ wl1271_tx_enabled_rates_get() 953 info->status.rates[0].idx = rate; wl1271_tx_complete_packet() 954 info->status.rates[0].count = retries; wl1271_tx_complete_packet() 955 info->status.rates[0].flags = rate_flags; wl1271_tx_complete_packet() 1047 info->status.rates[0].idx = -1; wl1271_tx_reset_link_queues() 1048 info->status.rates[0].count = 0; wl1271_tx_reset_link_queues() 1136 info->status.rates[0].idx = -1; wl12xx_tx_reset() 1137 info->status.rates[0].count = 0; wl12xx_tx_reset()
|
/linux-4.1.27/include/linux/ |
H A D | tfrc.h | 42 * enables a finer resolution of sending rates and avoids problems with
|
/linux-4.1.27/include/linux/usb/ |
H A D | irda.h | 60 /* Baud rates */
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | atafdreg.h | 73 /* step rates */
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | clock.h | 113 #define RATE_IN_3430ES1 (1 << 2) /* 3430ES1 rates only */ 114 #define RATE_IN_3430ES2PLUS (1 << 3) /* 3430 ES >= 2 rates only */ 152 * @rates: available divisors for this parent clock 159 const struct clksel_rate *rates; member in struct:clksel
|
H A D | clkt_clksel.c | 131 for (clkr = clks->rates; clkr->div; clkr++) { _clksel_to_divisor() 174 for (clkr = clks->rates; clkr->div; clkr++) { _divisor_to_clksel() 223 * rates. The divider array must be sorted with smallest divider first. 256 for (clkr = clks->rates; clkr->div; clkr++) { omap2_clksel_round_rate_div() 327 for (clkr = clks->rates; clkr->div && !found; clkr++) { omap2_clksel_find_parent_index() 384 * rates. The divider array must be sorted with smallest divider first.
|
H A D | clkt_dpll.c | 232 * or sys_clk. Bypass rates on OMAP3 depend on the DPLL: DPLLs 1 and 234 * (generated by DPLL3), while DPLL 3, 4, and 5 bypass rates are sys_clk. 340 /* skip rates above our target rate */ omap2_dpll_round_rate()
|
/linux-4.1.27/sound/soc/sh/ |
H A D | hac.c | 277 .rates = AC97_RATES, 283 .rates = AC97_RATES, 295 .rates = AC97_RATES, 301 .rates = AC97_RATES,
|
H A D | ssi.c | 349 .rates = SSI_RATES, 355 .rates = SSI_RATES, 366 .rates = SSI_RATES, 372 .rates = SSI_RATES,
|
/linux-4.1.27/sound/pci/au88x0/ |
H A D | au88x0_pcm.c | 41 .rates = SNDRV_PCM_RATE_CONTINUOUS, 62 .rates = SNDRV_PCM_RATE_CONTINUOUS, 83 .rates = 102 .rates = SNDRV_PCM_RATE_8000_48000 | SNDRV_PCM_RATE_CONTINUOUS, // SNDRV_PCM_RATE_48000, 168 runtime->hw.rates = SNDRV_PCM_RATE_32000; snd_vortex_pcm_open() 171 runtime->hw.rates = SNDRV_PCM_RATE_44100; snd_vortex_pcm_open() 174 runtime->hw.rates = SNDRV_PCM_RATE_48000; snd_vortex_pcm_open()
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
H A D | 3945-rs.c | 458 retries = info->status.rates[0].count; il3945_rs_tx_status() 463 first_idx = sband->bitrates[info->status.rates[0].idx].hw_value; il3945_rs_tx_status() 486 * Update the win for each rate. We determine which rates il3945_rs_tx_status() 614 * The rate control algorithm uses a single table of rates that goes across 719 /* Collect Measured throughputs of adjacent rates */ il3945_rs_get_rate() 734 /* No throughput measured yet for adjacent rates, il3945_rs_get_rate() 754 /* At least one of the rates has better throughput */ il3945_rs_get_rate() 813 info->control.rates[0].idx = idx - IL_FIRST_OFDM_RATE; il3945_rs_get_rate() 816 info->control.rates[0].idx = rs_sta->last_txrate_idx; il3945_rs_get_rate() 818 info->control.rates[0].count = 1; il3945_rs_get_rate()
|
H A D | 4965-rs.c | 161 * The following tables contain the expected throughput metrics for all rates 167 * CCK rates are only valid in legacy table and will only be used in G 650 * il4965_rs_get_supported_rates - get the available rates 653 * basic available rates. 740 /* check if we need to switch from HT to legacy rates. il4965_rs_get_lower_rate() 741 * assumption is that mandatory rates (1Mbps or 6Mbps) il4965_rs_get_lower_rate() 856 mac_flags = info->status.rates[0].flags; il4965_rs_tx_status() 857 mac_idx = info->status.rates[0].idx; il4965_rs_tx_status() 865 * HT OFDM rates after CCK rates in 2.4 GHz band il4965_rs_tx_status() 882 * Since rates mis-match, the last LQ command may have failed. il4965_rs_tx_status() 951 retries = info->status.rates[0].count - 1; il4965_rs_tx_status() 996 * and reset overall (spanning all rates) tx success history stats. 1038 /* Legacy rates have only one table */ il4965_rs_set_expected_tpt_table() 1694 * history bitmaps and rate-specific stats for all rates in il4965_rs_stay_in_table() 1812 /* rates available for this association, and for modulation mode */ il4965_rs_rate_scale_perform() 1959 /* Collect measured throughputs for current and adjacent rates */ il4965_rs_rate_scale_perform() 1973 /* No throughput measured yet for adjacent rates; try increase. */ il4965_rs_rate_scale_perform() 2054 * 1) Not changing rates right now il4965_rs_rate_scale_perform() 2135 * The uCode's station table contains a table of fallback rates 2245 info->control.rates[0].flags = IEEE80211_TX_RC_MCS; il4965_rs_get_rate() 2247 info->control.rates[0].flags |= il4965_rs_get_rate() 2250 info->control.rates[0].flags |= il4965_rs_get_rate() 2253 info->control.rates[0].flags |= il4965_rs_get_rate() 2256 info->control.rates[0].flags |= il4965_rs_get_rate() 2259 /* Check for invalid rates */ il4965_rs_get_rate() 2267 info->control.rates[0].flags = 0; il4965_rs_get_rate() 2269 info->control.rates[0].idx = rate_idx; il4965_rs_get_rate() 2270 info->control.rates[0].count = 1; il4965_rs_get_rate() 2476 /* Don't allow HT rates after next pass. il4965_rs_fill_link_cmd()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
H A D | rs.h | 88 /* uCode API values for HT/VHT bit rates */ 258 * struct iwl_scale_tbl_info -- tx params and success history for all rates 294 u32 total_failed; /* total failed frames, any/all rates */ 295 u32 total_success; /* total successful frames, any/all rates */ 309 /* The following are bitmaps of rates; IWL_RATE_6M_MASK, etc. */
|
H A D | fw-api-rs.h | 71 * TODO: avoid overlap between legacy and HT rates 111 /* fw API values for legacy bit rates, both OFDM and CCK */ 306 * Dyanmic BW selection allows Tx with narrower BW then requested in rates 353 * and SISO rates 367 * @rs_table: array of rates for each TX try, each is rate_n_flags,
|
H A D | rs.c | 412 * The following tables contain the expected throughput metrics for all rates 418 * CCK rates are only valid in legacy table and will only be used in G 1028 /* Check if both rates are identical 1056 /* Check if both rates share the same column */ rs_rate_column_match() 1168 attempts = info->status.rates[0].count; iwl_mvm_rs_tx_status() 1213 * Since rates mis-match, the last LQ command may have failed. iwl_mvm_rs_tx_status() 1221 "Too many rates mismatch. Send sync LQ. rs_state %d\n", iwl_mvm_rs_tx_status() 1284 retries = info->status.rates[0].count - 1; iwl_mvm_rs_tx_status() 1354 * and reset overall (spanning all rates) tx success history statistics. 1415 /* Legacy rates have only one table */ rs_get_expected_tpt_table() 1589 * history bitmaps and rate-specific stats for all rates in rs_stay_in_table() 1807 "No data about high/low rates. Increase rate\n"); rs_get_rate_action() 2041 /* Collect measured throughputs for current and adjacent rates */ rs_tpc_perform() 2141 /* rates available for this association, and for modulation mode */ rs_rate_scale_perform() 2254 /* Collect measured throughputs for current and adjacent rates */ rs_rate_scale_perform() 2321 * 1) Not changing rates right now rs_rate_scale_perform() 2518 * The uCode's station table contains a table of fallback rates 2596 info->band, &info->control.rates[0]); rs_get_rate() 2598 info->control.rates[0].count = 1; rs_get_rate() 2840 * active legacy rates as per supported rates bitmap iwl_mvm_rs_rate_init()
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2x00dev.c | 401 * different rates to send out the frame, at each rt2x00lib_txdone() 406 tx_info->status.rates[i].idx = rate_idx - i; rt2x00lib_txdone() 407 tx_info->status.rates[i].flags = rate_flags; rt2x00lib_txdone() 414 tx_info->status.rates[i].count = retry_rates - i; rt2x00lib_txdone() 418 tx_info->status.rates[i].count = 1; rt2x00lib_txdone() 421 tx_info->status.rates[i].idx = -1; /* terminate */ rt2x00lib_txdone() 437 * which rates are suitable. rt2x00lib_txdone() 650 * For non-HT rates the MCS value needs to contain the rt2x00lib_rxdone_read_signal() 939 struct ieee80211_rate *rates; rt2x00lib_probe_hw_modes() local 953 rates = kcalloc(num_rates, sizeof(*rates), GFP_KERNEL); rt2x00lib_probe_hw_modes() 954 if (!rates) rt2x00lib_probe_hw_modes() 961 rt2x00lib_rate(&rates[i], i, rt2x00_get_rate(i)); rt2x00lib_probe_hw_modes() 981 rt2x00dev->bands[IEEE80211_BAND_2GHZ].bitrates = rates; rt2x00lib_probe_hw_modes() 999 rt2x00dev->bands[IEEE80211_BAND_5GHZ].bitrates = &rates[4]; rt2x00lib_probe_hw_modes()
|
/linux-4.1.27/sound/drivers/ |
H A D | dummy.c | 125 unsigned int rates; member in struct:dummy_model 202 .rates = SNDRV_PCM_RATE_48000, 216 .rates = SNDRV_PCM_RATE_48000|SNDRV_PCM_RATE_96000|SNDRV_PCM_RATE_192000, 528 .rates = USE_RATE, 936 static int rates[] = { print_rates() local 942 if (dummy->pcm_hw.rates & SNDRV_PCM_RATE_CONTINUOUS) print_rates() 944 if (dummy->pcm_hw.rates & SNDRV_PCM_RATE_KNOT) print_rates() 946 for (i = 0; i < ARRAY_SIZE(rates); i++) print_rates() 947 if (dummy->pcm_hw.rates & (1 << i)) print_rates() 948 snd_iprintf(buffer, " %d", rates[i]); print_rates() 970 FIELD_ENTRY(rates, "%#x"), 998 else if (!strcmp(fields[i].name, "rates")) dummy_proc_read() 1095 if (m->rates) snd_dummy_probe() 1096 dummy->pcm_hw.rates = m->rates; snd_dummy_probe()
|
/linux-4.1.27/drivers/net/wireless/ipw2x00/ |
H A D | libipw.h | 448 /* SSID, supported rates */ 457 /* SSID, supported rates, FH params, DS params, 469 /* SSID, supported rates, RSN */ 486 /* supported rates */ 504 * only use 8, and then use extended rates for the remaining supported 505 * rates. Other APs, however, stick all of their supported rates on the 506 * main rates information element... */ 630 u8 rates[MAX_RATES_LENGTH]; member in struct:libipw_network
|
H A D | ipw2200.c | 2441 struct ipw_supported_rates *rates) ipw_send_supported_rates() 2443 if (!priv || !rates) { ipw_send_supported_rates() 2448 return ipw_send_cmd_pdu(priv, IPW_CMD_SUPPORTED_RATES, sizeof(*rates), ipw_send_supported_rates() 2449 rates); ipw_send_supported_rates() 4166 * rate match to B rates */ ipw_get_max_rate() 4170 /* TODO: Verify that the rate is supported by the current rates ipw_get_max_rate() 5369 struct ipw_supported_rates *rates) ipw_compatible_rates() 5373 memset(rates, 0, sizeof(*rates)); ipw_compatible_rates() 5375 rates->num_rates = 0; ipw_compatible_rates() 5378 network->rates[i])) { ipw_compatible_rates() 5380 if (network->rates[i] & LIBIPW_BASIC_RATE_MASK) { ipw_compatible_rates() 5383 network->rates[i]); ipw_compatible_rates() 5384 rates->supported_rates[rates->num_rates++] = ipw_compatible_rates() 5385 network->rates[i]; ipw_compatible_rates() 5390 network->rates[i], priv->rates_mask); ipw_compatible_rates() 5394 rates->supported_rates[rates->num_rates++] = network->rates[i]; ipw_compatible_rates() 5406 rates->supported_rates[rates->num_rates++] = ipw_compatible_rates() 5407 network->rates[i]; ipw_compatible_rates() 5416 rates->supported_rates[rates->num_rates++] = ipw_compatible_rates() 5433 * mask should ever be used -- right now all callers to add the scan rates are 5435 static void ipw_add_cck_scan_rates(struct ipw_supported_rates *rates, ipw_add_cck_scan_rates() argument 5442 rates->supported_rates[rates->num_rates++] = ipw_add_cck_scan_rates() 5446 rates->supported_rates[rates->num_rates++] = ipw_add_cck_scan_rates() 5450 rates->supported_rates[rates->num_rates++] = basic_mask | ipw_add_cck_scan_rates() 5454 rates->supported_rates[rates->num_rates++] = basic_mask | ipw_add_cck_scan_rates() 5458 static void ipw_add_ofdm_scan_rates(struct ipw_supported_rates *rates, ipw_add_ofdm_scan_rates() argument 5465 rates->supported_rates[rates->num_rates++] = basic_mask | ipw_add_ofdm_scan_rates() 5469 rates->supported_rates[rates->num_rates++] = ipw_add_ofdm_scan_rates() 5473 rates->supported_rates[rates->num_rates++] = basic_mask | ipw_add_ofdm_scan_rates() 5477 rates->supported_rates[rates->num_rates++] = ipw_add_ofdm_scan_rates() 5481 rates->supported_rates[rates->num_rates++] = basic_mask | ipw_add_ofdm_scan_rates() 5485 rates->supported_rates[rates->num_rates++] = ipw_add_ofdm_scan_rates() 5489 rates->supported_rates[rates->num_rates++] = ipw_add_ofdm_scan_rates() 5493 rates->supported_rates[rates->num_rates++] = ipw_add_ofdm_scan_rates() 5499 struct ipw_supported_rates rates; member in struct:ipw_network_match 5507 struct ipw_supported_rates rates; ipw_find_adhoc_network() local 5607 /* Ensure that the rates supported by the driver are compatible with ipw_find_adhoc_network() 5608 * this AP, including verification of basic rates (mandatory) */ ipw_find_adhoc_network() 5609 if (!ipw_compatible_rates(priv, network, &rates)) { ipw_find_adhoc_network() 5616 if (rates.num_rates == 0) { ipw_find_adhoc_network() 5617 IPW_DEBUG_MERGE("Network '%*pE (%pM)' excluded because of no compatible rates.\n", ipw_find_adhoc_network() 5628 ipw_copy_rates(&match->rates, &rates); ipw_find_adhoc_network() 5683 struct ipw_supported_rates rates; ipw_best_network() local 5802 /* Ensure that the rates supported by the driver are compatible with ipw_best_network() 5803 * this AP, including verification of basic rates (mandatory) */ ipw_best_network() 5804 if (!ipw_compatible_rates(priv, network, &rates)) { ipw_best_network() 5811 if (rates.num_rates == 0) { ipw_best_network() 5812 IPW_DEBUG_ASSOC("Network '%*pE (%pM)' excluded because of no compatible rates.\n", ipw_best_network() 5823 ipw_copy_rates(&match->rates, &rates); ipw_best_network() 5900 network->rates_len = min(priv->rates.num_rates, MAX_RATES_LENGTH); ipw_adhoc_create() 5901 memcpy(network->rates, priv->rates.supported_rates, network->rates_len); ipw_adhoc_create() 5902 network->rates_ex_len = priv->rates.num_rates - network->rates_len; ipw_adhoc_create() 5904 &priv->rates.supported_rates[network->rates_len], ipw_adhoc_create() 6100 * Tx rates */ ipw_set_fixed_rate() 7298 struct ipw_supported_rates *rates, int roaming) ipw_associate_network() 7371 rates->num_rates, ipw_associate_network() 7418 rates->ieee_mode = priv->assoc_request.ieee_mode; ipw_associate_network() 7419 rates->purpose = IPW_RATE_CONNECT; ipw_associate_network() 7420 ipw_send_supported_rates(priv, rates); ipw_associate_network() 7533 ipw_compatible_rates(priv, priv->assoc_network, &match.rates); ipw_roam() 7534 ipw_associate_network(priv, priv->assoc_network, &match.rates, 1); ipw_roam() 7555 struct ipw_supported_rates *rates; ipw_associate() local 7595 rates = &match.rates; ipw_associate() 7626 rates = &priv->rates; ipw_associate() 7648 ipw_associate_network(priv, network, rates, 0); ipw_associate() 8866 range->num_bitrates = min(priv->rates.num_rates, (u8) IW_MAX_BITRATES); ipw_wx_get_range() 8869 range->bitrate[i] = (priv->rates.supported_rates[i] & 0x7F) * ipw_wx_get_range() 9154 /* value = -1, fixed = 0 means auto only, so we should use all rates offered by AP */ ipw_wx_set_rate() 9156 /* value = X, fixed = 0 means all rates lower equal X */ ipw_wx_set_rate() 9233 mask, fixed ? "fixed" : "sub-rates"); ipw_wx_set_rate() 9250 IPW_DEBUG_ASSOC("[re]association triggered due to rates change.\n"); ipw_wx_set_rate() 9709 init_supported_rates(priv, &priv->rates); ipw_wx_set_wireless_mode() 9714 ipw_send_supported_rates(priv, &priv->rates); ipw_wx_set_wireless_mode() 10796 struct ipw_supported_rates *rates) init_supported_rates() 10798 /* TODO: Mask out rates based on priv->rates_mask */ init_supported_rates() 10800 memset(rates, 0, sizeof(*rates)); init_supported_rates() 10801 /* configure supported rates */ init_supported_rates() 10804 rates->ieee_mode = IPW_A_MODE; init_supported_rates() 10805 rates->purpose = IPW_RATE_CAPABILITIES; init_supported_rates() 10806 ipw_add_ofdm_scan_rates(rates, LIBIPW_CCK_MODULATION, init_supported_rates() 10811 rates->ieee_mode = IPW_G_MODE; init_supported_rates() 10812 rates->purpose = IPW_RATE_CAPABILITIES; init_supported_rates() 10813 ipw_add_cck_scan_rates(rates, LIBIPW_CCK_MODULATION, init_supported_rates() 10816 ipw_add_ofdm_scan_rates(rates, LIBIPW_CCK_MODULATION, init_supported_rates() 10870 init_supported_rates(priv, &priv->rates); ipw_config() 10871 if (ipw_send_supported_rates(priv, &priv->rates)) ipw_config() 2440 ipw_send_supported_rates(struct ipw_priv *priv, struct ipw_supported_rates *rates) ipw_send_supported_rates() argument 5367 ipw_compatible_rates(struct ipw_priv *priv, const struct libipw_network *network, struct ipw_supported_rates *rates) ipw_compatible_rates() argument 7296 ipw_associate_network(struct ipw_priv *priv, struct libipw_network *network, struct ipw_supported_rates *rates, int roaming) ipw_associate_network() argument 10795 init_supported_rates(struct ipw_priv *priv, struct ipw_supported_rates *rates) init_supported_rates() argument
|
/linux-4.1.27/sound/soc/intel/atom/ |
H A D | sst-mfld-platform-pcm.c | 479 .rates = SNDRV_PCM_RATE_44100|SNDRV_PCM_RATE_48000, 486 .rates = SNDRV_PCM_RATE_44100|SNDRV_PCM_RATE_48000, 498 .rates = SNDRV_PCM_RATE_48000, 510 .rates = SNDRV_PCM_RATE_48000, 517 .rates = SNDRV_PCM_RATE_48000, 528 .rates = SNDRV_PCM_RATE_8000|SNDRV_PCM_RATE_16000|SNDRV_PCM_RATE_48000, 535 .rates = SNDRV_PCM_RATE_8000|SNDRV_PCM_RATE_16000|SNDRV_PCM_RATE_48000, 546 .rates = SNDRV_PCM_RATE_48000, 553 .rates = SNDRV_PCM_RATE_48000,
|
/linux-4.1.27/drivers/net/wireless/ath/ath5k/ |
H A D | phy.c | 1131 /* Tweak power detector for half/quarter rates */ ath5k_hw_rfregs_init() 2665 * @rates: The &struct ath5k_rate_pcal_info to fill 2675 struct ath5k_rate_pcal_info *rates) ath5k_get_rate_pcal_data() 2731 rates->freq = target; ath5k_get_rate_pcal_data() 2733 rates->target_power_6to24 = ath5k_get_rate_pcal_data() 2739 rates->target_power_36 = ath5k_get_rate_pcal_data() 2745 rates->target_power_48 = ath5k_get_rate_pcal_data() 2751 rates->target_power_54 = ath5k_get_rate_pcal_data() 3497 * rates[0] - rates[7] -> OFDM rates 3498 * rates[8] - rates[14] -> CCK rates 3499 * rates[15] -> XR rates (they all have the same power) 3515 u16 *rates; ath5k_setup_rate_powertable() local 3524 rates = ah->ah_txpower.txp_rates_power_table; ath5k_setup_rate_powertable() 3526 /* OFDM rates 6 to 24Mb/s */ ath5k_setup_rate_powertable() 3528 rates[i] = min(max_pwr, rate_info->target_power_6to24); ath5k_setup_rate_powertable() 3530 /* Rest OFDM rates */ ath5k_setup_rate_powertable() 3531 rates[5] = min(rates[0], rate_info->target_power_36); ath5k_setup_rate_powertable() 3532 rates[6] = min(rates[0], rate_info->target_power_48); ath5k_setup_rate_powertable() 3533 rates[7] = min(rates[0], rate_info->target_power_54); ath5k_setup_rate_powertable() 3535 /* CCK rates */ ath5k_setup_rate_powertable() 3537 rates[8] = min(rates[0], rate_info->target_power_6to24); ath5k_setup_rate_powertable() 3539 rates[9] = min(rates[0], rate_info->target_power_36); ath5k_setup_rate_powertable() 3541 rates[10] = min(rates[0], rate_info->target_power_36); ath5k_setup_rate_powertable() 3543 rates[11] = min(rates[0], rate_info->target_power_48); ath5k_setup_rate_powertable() 3545 rates[12] = min(rates[0], rate_info->target_power_48); ath5k_setup_rate_powertable() 3547 rates[13] = min(rates[0], rate_info->target_power_54); ath5k_setup_rate_powertable() 3549 rates[14] = min(rates[0], rate_info->target_power_54); ath5k_setup_rate_powertable() 3551 /* XR rates */ ath5k_setup_rate_powertable() 3552 rates[15] = min(rates[0], rate_info->target_power_6to24); ath5k_setup_rate_powertable() 3554 /* CCK rates have different peak to average ratio ath5k_setup_rate_powertable() 3561 rates[i] -= ah->ah_txpower.txp_cck_ofdm_gainf_delta; ath5k_setup_rate_powertable() 3566 * Note: We use rates[0] for current tx power because ath5k_setup_rate_powertable() 3567 * it covers most of the rates, in most cases. It's our ath5k_setup_rate_powertable() 3569 ah->ah_txpower.txp_min_pwr = 2 * rates[7]; ath5k_setup_rate_powertable() 3570 ah->ah_txpower.txp_cur_pwr = 2 * rates[0]; ath5k_setup_rate_powertable() 3572 /* Set max txpower for correct OFDM operation on all rates ath5k_setup_rate_powertable() 3575 ah->ah_txpower.txp_ofdm = rates[7]; ath5k_setup_rate_powertable() 3577 /* Now that we have all rates setup use table offset to ath5k_setup_rate_powertable() 3581 rate_idx_scaled = rates[i] + ah->ah_txpower.txp_offset; ath5k_setup_rate_powertable() 3587 rates[i] = rate_idx_scaled; ath5k_setup_rate_powertable() 2673 ath5k_get_rate_pcal_data(struct ath5k_hw *ah, struct ieee80211_channel *channel, struct ath5k_rate_pcal_info *rates) ath5k_get_rate_pcal_data() argument
|
H A D | base.c | 372 sband->bitrates = &ah->rates[IEEE80211_BAND_2GHZ][0]; ath5k_setup_bands() 393 /* 5211 only supports B rates and uses 4bit rate codes ath5k_setup_bands() 420 sband->bitrates = &ah->rates[IEEE80211_BAND_5GHZ][0]; ath5k_setup_bands() 704 if (bf->rates[idx].idx < 0) { ath5k_get_rate() 708 return &hw->wiphy->bands[info->band]->bitrates[ bf->rates[idx].idx ]; ath5k_get_rate() 724 rc_flags = bf->rates[idx].flags; ath5k_get_rate_hw_value() 757 ieee80211_get_tx_rates(info->control.vif, (control) ? control->sta : NULL, skb, bf->rates, ath5k_txbuf_setup() 758 ARRAY_SIZE(bf->rates)); ath5k_txbuf_setup() 770 rc_flags = info->control.rates[0].flags; ath5k_txbuf_setup() 801 bf->rates[0].count, keyidx, ah->ah_tx_ant, flags, ath5k_txbuf_setup() 818 mrr_tries[i] = bf->rates[i].count; ath5k_txbuf_setup() 1680 size = min_t(int, sizeof(info->status.rates), sizeof(bf->rates)); ath5k_tx_frame_completed() 1681 memcpy(info->status.rates, bf->rates, size); ath5k_tx_frame_completed() 1683 tries[0] = info->status.rates[0].count; ath5k_tx_frame_completed() 1684 tries[1] = info->status.rates[1].count; ath5k_tx_frame_completed() 1685 tries[2] = info->status.rates[2].count; ath5k_tx_frame_completed() 1691 &info->status.rates[i]; ath5k_tx_frame_completed() 1696 info->status.rates[ts->ts_final_idx].count = ts->ts_final_retry; ath5k_tx_frame_completed() 1697 info->status.rates[ts->ts_final_idx + 1].idx = -1; ath5k_tx_frame_completed() 1714 info->status.rates[ts->ts_final_idx].count++; ath5k_tx_frame_completed() 2771 /* Use higher rates for acks instead of base ath5k_start()
|
H A D | pcu.c | 68 * DOC: ACK rates 70 * AR5212+ can use higher rates for ack transmission 73 * There is a mapping between G rates (that cover both 74 * CCK and OFDM) and ack rates that we use when setting 266 * the hardware, based on current mode, for each rate. The rates which are 267 * capable of short preamble (802.11b rates 2Mbps, 5.5Mbps, and 11Mbps) have 272 * on both a and g modes. So all we have to do is set values for all g rates 273 * that include all OFDM and CCK rates.
|
/linux-4.1.27/sound/aoa/soundbus/i2sbus/ |
H A D | pcm.c | 66 do { if (rates & SNDRV_PCM_RATE_ ##rate) { \ 70 rates &= ~SNDRV_PCM_RATE_ ##rate; \ 81 unsigned int rates = 0; i2sbus_pcm_open() local 105 while (ti->formats && ti->rates) { i2sbus_pcm_open() 111 rates &= v.rates; i2sbus_pcm_open() 114 rates = v.rates; i2sbus_pcm_open() 143 hw->rates = rates; i2sbus_pcm_open() 167 * These are the highest and lowest rates alsa can i2sbus_pcm_open() 183 /* see above, restrict rates to the one we already have */ i2sbus_pcm_open() 900 || !ci->transfers->rates || !ci->usable) i2sbus_attach_codec() 925 while (tmp->formats && tmp->rates) { i2sbus_attach_codec()
|
/linux-4.1.27/sound/usb/hiface/ |
H A D | pcm.c | 68 static const unsigned int rates[] = { 44100, 48000, 88200, 96000, 176400, 192000, variable 71 .count = ARRAY_SIZE(rates), 72 .list = rates, 86 .rates = SNDRV_PCM_RATE_44100 | 94 .rate_max = 192000, /* changes in hiface_pcm_open to support extra rates */ 379 alsa_rt->hw.rates |= SNDRV_PCM_RATE_KNOT; hiface_pcm_open()
|
/linux-4.1.27/drivers/net/wireless/ |
H A D | mac80211_hwsim.h | 162 * in an array of retry rates, that no more rates should be tried.
|
H A D | mac80211_hwsim.c | 485 struct ieee80211_rate rates[ARRAY_SIZE(hwsim_rates)]; member in struct:mac80211_hwsim_data 1011 tx_attempts[i].idx = info->status.rates[i].idx; mac80211_hwsim_tx_frame_nl() 1012 tx_attempts[i].count = info->status.rates[i].count; mac80211_hwsim_tx_frame_nl() 1133 if (info->control.rates[0].flags & IEEE80211_TX_RC_VHT_MCS) { mac80211_hwsim_tx_frame_no_nl() 1135 ieee80211_rate_get_vht_mcs(&info->control.rates[0]); mac80211_hwsim_tx_frame_no_nl() 1137 ieee80211_rate_get_vht_nss(&info->control.rates[0]); mac80211_hwsim_tx_frame_no_nl() 1140 rx_status.rate_idx = info->control.rates[0].idx; mac80211_hwsim_tx_frame_no_nl() 1141 if (info->control.rates[0].flags & IEEE80211_TX_RC_MCS) mac80211_hwsim_tx_frame_no_nl() 1144 if (info->control.rates[0].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) mac80211_hwsim_tx_frame_no_nl() 1146 if (info->control.rates[0].flags & IEEE80211_TX_RC_SHORT_GI) mac80211_hwsim_tx_frame_no_nl() 1291 txi->control.rates, mac80211_hwsim_tx() 1292 ARRAY_SIZE(txi->control.rates)); mac80211_hwsim_tx() 1316 txi->control.rates[0].count = 1; mac80211_hwsim_tx() 1317 txi->control.rates[1].idx = -1; mac80211_hwsim_tx() 1401 txi->control.rates, mac80211_hwsim_tx_frame() 1402 ARRAY_SIZE(txi->control.rates)); mac80211_hwsim_tx_frame() 1437 info->control.rates, mac80211_hwsim_beacon_tx() 1438 ARRAY_SIZE(info->control.rates)); mac80211_hwsim_beacon_tx() 2425 memcpy(data->rates, hwsim_rates, sizeof(hwsim_rates)); mac80211_hwsim_new_radio() 2433 sband->bitrates = data->rates; mac80211_hwsim_new_radio() 2439 sband->bitrates = data->rates + 4; mac80211_hwsim_new_radio() 2764 txi->status.rates[i].idx = tx_attempts[i].idx; hwsim_tx_info_frame_received_nl() 2765 txi->status.rates[i].count = tx_attempts[i].count; hwsim_tx_info_frame_received_nl() 2766 /*txi->status.rates[i].flags = 0;*/ hwsim_tx_info_frame_received_nl()
|
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/ |
H A D | tx.c | 108 info->band, &info->status.rates[0]); wl18xx_tx_complete_packet() 110 info->status.rates[0].count = 1; /* no data about retries */ wl18xx_tx_complete_packet()
|
/linux-4.1.27/include/uapi/sound/ |
H A D | sb16_csp.h | 44 /* CSP rates */ 90 unsigned short acc_rates; /* accepted sample rates */
|
/linux-4.1.27/arch/cris/include/uapi/asm/ |
H A D | termbits.h | 175 /* Unsupported rates, but needed to avoid compile error. */ 187 /* etrax supports these additional three baud rates */
|
/linux-4.1.27/sound/arm/ |
H A D | pxa2xx-ac97.c | 76 runtime->hw.rates = pxa2xx_ac97_ac97->rates[r]; pxa2xx_ac97_pcm_startup()
|
/linux-4.1.27/sound/soc/adi/ |
H A D | axi-i2s.c | 157 .rates = SNDRV_PCM_RATE_KNOT, 163 .rates = SNDRV_PCM_RATE_KNOT,
|
/linux-4.1.27/sound/soc/blackfin/ |
H A D | bf6xx-i2s.c | 178 .rates = BFIN_I2S_RATES, 184 .rates = BFIN_I2S_RATES,
|
/linux-4.1.27/sound/soc/txx9/ |
H A D | txx9aclc-ac97.c | 159 .rates = AC97_RATES, 165 .rates = AC97_RATES,
|
/linux-4.1.27/sound/usb/caiaq/ |
H A D | audio.c | 50 .rates = (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 175 * all sample rates are allowed again */ snd_usb_caiaq_substream_close() 177 cdev->pcm_info.rates = cdev->samplerates; snd_usb_caiaq_substream_close() 202 static unsigned int rates[] = { 5512, 8000, 11025, 16000, 22050, 32000, 44100, variable 256 for (i=0; i < ARRAY_SIZE(rates); i++) snd_usb_caiaq_pcm_prepare() 257 if (runtime->rate == rates[i]) snd_usb_caiaq_pcm_prepare() 258 cdev->pcm_info.rates = 1 << i; snd_usb_caiaq_pcm_prepare() 842 cdev->samplerates = cdev->pcm_info.rates; snd_usb_caiaq_audio_init()
|
/linux-4.1.27/sound/soc/davinci/ |
H A D | davinci-vcif.c | 189 .rates = DAVINCI_VCIF_RATES, 194 .rates = DAVINCI_VCIF_RATES,
|
/linux-4.1.27/drivers/net/wireless/brcm80211/include/ |
H A D | defs.h | 49 #define WL_NUMRATES 16 /* max # of rates in a rateset */
|
/linux-4.1.27/drivers/thermal/ti-soc-thermal/ |
H A D | ti-thermal.h | 68 /* Update rates */
|
/linux-4.1.27/include/sound/ |
H A D | sb16_csp.h | 66 int acc_rates; /* accepted sample rates */
|
/linux-4.1.27/arch/avr32/mach-at32ap/include/mach/ |
H A D | board.h | 15 * Clock rates for various on-board oscillators. The number of entries
|
/linux-4.1.27/sound/pci/echoaudio/ |
H A D | darla20.c | 83 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000,
|
H A D | darla24.c | 88 .rates = SNDRV_PCM_RATE_8000_48000 |
|
H A D | echo3g.c | 101 .rates = SNDRV_PCM_RATE_32000 |
|
H A D | gina20.c | 87 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000,
|
H A D | indigo.c | 88 .rates = SNDRV_PCM_RATE_32000 |
|
H A D | indigodj.c | 88 .rates = SNDRV_PCM_RATE_32000 |
|
H A D | indigodjx.c | 88 .rates = SNDRV_PCM_RATE_32000 |
|
H A D | indigoio.c | 89 .rates = SNDRV_PCM_RATE_32000 |
|
H A D | indigoiox.c | 89 .rates = SNDRV_PCM_RATE_32000 |
|
H A D | layla20.c | 97 .rates = SNDRV_PCM_RATE_8000_48000 | SNDRV_PCM_RATE_CONTINUOUS,
|
H A D | mia.c | 98 .rates = SNDRV_PCM_RATE_32000 |
|
H A D | gina24.c | 108 .rates = SNDRV_PCM_RATE_8000_48000 |
|
H A D | layla24.c | 107 .rates = SNDRV_PCM_RATE_8000_96000,
|
H A D | mona.c | 117 .rates = SNDRV_PCM_RATE_8000_48000 |
|
/linux-4.1.27/sound/soc/jz4740/ |
H A D | jz4740-i2s.c | 443 .rates = SNDRV_PCM_RATE_8000_48000, 449 .rates = SNDRV_PCM_RATE_8000_48000, 464 .rates = SNDRV_PCM_RATE_8000_48000, 470 .rates = SNDRV_PCM_RATE_8000_48000,
|
/linux-4.1.27/arch/m68k/atari/ |
H A D | debug.c | 175 baud = B9600; /* use default 9600bps for non-implemented rates */ atari_init_mfp_port() 224 baud = B9600; /* use default 9600bps for non-implemented rates */ atari_init_scc_port() 231 /* special treatment for TT, where rates >= 38400 are done via TRxC */ atari_init_scc_port()
|
/linux-4.1.27/sound/pci/ctxfi/ |
H A D | ctpcm.c | 35 .rates = (SNDRV_PCM_RATE_CONTINUOUS | 56 .rates = (SNDRV_PCM_RATE_48000 | 83 .rates = (SNDRV_PCM_RATE_CONTINUOUS |
|
/linux-4.1.27/sound/pci/asihpi/ |
H A D | asihpi.c | 369 unsigned int rates = 0; snd_card_asihpi_pcm_samplerates() local 372 rates |= SNDRV_PCM_RATE_CONTINUOUS; snd_card_asihpi_pcm_samplerates() 373 rates |= SNDRV_PCM_RATE_8000_96000; snd_card_asihpi_pcm_samplerates() 378 valid rates are determined by sampleclock */ snd_card_asihpi_pcm_samplerates() 402 rates |= SNDRV_PCM_RATE_5512; snd_card_asihpi_pcm_samplerates() 405 rates |= SNDRV_PCM_RATE_8000; snd_card_asihpi_pcm_samplerates() 408 rates |= SNDRV_PCM_RATE_11025; snd_card_asihpi_pcm_samplerates() 411 rates |= SNDRV_PCM_RATE_16000; snd_card_asihpi_pcm_samplerates() 414 rates |= SNDRV_PCM_RATE_22050; snd_card_asihpi_pcm_samplerates() 417 rates |= SNDRV_PCM_RATE_32000; snd_card_asihpi_pcm_samplerates() 420 rates |= SNDRV_PCM_RATE_44100; snd_card_asihpi_pcm_samplerates() 423 rates |= SNDRV_PCM_RATE_48000; snd_card_asihpi_pcm_samplerates() 426 rates |= SNDRV_PCM_RATE_64000; snd_card_asihpi_pcm_samplerates() 429 rates |= SNDRV_PCM_RATE_88200; snd_card_asihpi_pcm_samplerates() 432 rates |= SNDRV_PCM_RATE_96000; snd_card_asihpi_pcm_samplerates() 435 rates |= SNDRV_PCM_RATE_176400; snd_card_asihpi_pcm_samplerates() 438 rates |= SNDRV_PCM_RATE_192000; snd_card_asihpi_pcm_samplerates() 441 rates |= SNDRV_PCM_RATE_KNOT; snd_card_asihpi_pcm_samplerates() 446 pcmhw->rates = rates; snd_card_asihpi_pcm_samplerates() 2465 /* Need to change this to enumerated control with list of rates */ snd_asihpi_clklocal_info()
|
/linux-4.1.27/sound/pci/emu10k1/ |
H A D | p16v.h | 50 * Find out how to change capture sample rates. E.g. To record SPDIF at 48000Hz. 218 /* SRC48 converts samples rates 44.1, 48, 96, 192 to 48 khz. */ 219 /* SRCMulti converts 48khz samples rates to 44.1, 48, 96, 192 to 48. */ 245 /* SRC48 converts samples rates 44.1, 48, 96, 192 to 48 khz. */ 250 /* SRCMulti converts 48khz samples rates to 44.1, 48, 96, 192 to 48. */
|
H A D | emupcm.c | 566 .rates = SNDRV_PCM_RATE_48000, 985 .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_96000, 1009 .rates = SNDRV_PCM_RATE_8000_48000, 1029 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 1241 runtime->hw.rates = SNDRV_PCM_RATE_8000; snd_emu10k1_capture_mic_open() 1281 runtime->hw.rates = SNDRV_PCM_RATE_48000; snd_emu10k1_capture_efx_open() 1310 runtime->hw.rates = SNDRV_PCM_RATE_44100; snd_emu10k1_capture_efx_open() 1317 runtime->hw.rates = SNDRV_PCM_RATE_48000; snd_emu10k1_capture_efx_open() 1326 runtime->hw.rates = SNDRV_PCM_RATE_96000; snd_emu10k1_capture_efx_open() 1332 runtime->hw.rates = SNDRV_PCM_RATE_192000; snd_emu10k1_capture_efx_open() 1751 .rates = SNDRV_PCM_RATE_48000,
|
/linux-4.1.27/sound/soc/dwc/ |
H A D | designware_i2s.c | 412 unsigned int rates) dw_configure_dai() 431 dw_i2s_dai->playback.rates = rates; dw_configure_dai() 443 dw_i2s_dai->capture.rates = rates; dw_configure_dai() 410 dw_configure_dai(struct dw_i2s_dev *dev, struct snd_soc_dai_driver *dw_i2s_dai, unsigned int rates) dw_configure_dai() argument
|
/linux-4.1.27/arch/arm/mach-lpc32xx/ |
H A D | clock.c | 24 * generate the CPU and bus rates and the individual peripheral clocks in 51 * The CPU and chip bus rates are derived from the HCLK PLL, which can 52 * generate various clock rates up to 266MHz and beyond. The internal bus 53 * rates (PCLK and HCLK) are generated from dividers based on the HCLK 58 * rates should not be changed. 79 * - HCLK and PCLK rates cannot be changed as part of this driver. 81 * block. Changing SYSCLK, HCLK PLL, HCLK, or PCLK sources or rates 82 * will also impact the individual peripheral rates. 1249 * the many system clock rates in the device. clk_init() 1261 /* Compute HCLK and PCLK bus rates */ clk_init()
|
H A D | timer.c | 115 * timer rates. This rate is needed to compute the tick rate. lpc32xx_timer_init()
|
/linux-4.1.27/drivers/scsi/mpt2sas/ |
H A D | mpt2sas_transport.c | 1770 * _transport_phy_speed - set phy min/max link rates 1772 * @rates: rates defined in sas_phy_linkrates 1778 _transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) _transport_phy_speed() argument 1798 if (!rates->minimum_linkrate) _transport_phy_speed() 1799 rates->minimum_linkrate = phy->minimum_linkrate; _transport_phy_speed() 1800 else if (rates->minimum_linkrate < phy->minimum_linkrate_hw) _transport_phy_speed() 1801 rates->minimum_linkrate = phy->minimum_linkrate_hw; _transport_phy_speed() 1803 if (!rates->maximum_linkrate) _transport_phy_speed() 1804 rates->maximum_linkrate = phy->maximum_linkrate; _transport_phy_speed() 1805 else if (rates->maximum_linkrate > phy->maximum_linkrate_hw) _transport_phy_speed() 1806 rates->maximum_linkrate = phy->maximum_linkrate_hw; _transport_phy_speed() 1810 phy->minimum_linkrate = rates->minimum_linkrate; _transport_phy_speed() 1811 phy->maximum_linkrate = rates->maximum_linkrate; _transport_phy_speed() 1851 (rates->minimum_linkrate + _transport_phy_speed() 1852 (rates->maximum_linkrate << 4)); _transport_phy_speed() 1867 /* read phy page 0, then update the rates in the sas transport phy */ _transport_phy_speed()
|
/linux-4.1.27/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_transport.c | 1754 * _transport_phy_speed - set phy min/max link rates 1756 * @rates: rates defined in sas_phy_linkrates 1762 _transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) _transport_phy_speed() argument 1782 if (!rates->minimum_linkrate) _transport_phy_speed() 1783 rates->minimum_linkrate = phy->minimum_linkrate; _transport_phy_speed() 1784 else if (rates->minimum_linkrate < phy->minimum_linkrate_hw) _transport_phy_speed() 1785 rates->minimum_linkrate = phy->minimum_linkrate_hw; _transport_phy_speed() 1787 if (!rates->maximum_linkrate) _transport_phy_speed() 1788 rates->maximum_linkrate = phy->maximum_linkrate; _transport_phy_speed() 1789 else if (rates->maximum_linkrate > phy->maximum_linkrate_hw) _transport_phy_speed() 1790 rates->maximum_linkrate = phy->maximum_linkrate_hw; _transport_phy_speed() 1794 phy->minimum_linkrate = rates->minimum_linkrate; _transport_phy_speed() 1795 phy->maximum_linkrate = rates->maximum_linkrate; _transport_phy_speed() 1835 (rates->minimum_linkrate + _transport_phy_speed() 1836 (rates->maximum_linkrate << 4)); _transport_phy_speed() 1851 /* read phy page 0, then update the rates in the sas transport phy */ _transport_phy_speed()
|
/linux-4.1.27/drivers/net/wireless/prism54/ |
H A D | oid_mgt.c | 295 bss->rates = le16_to_cpu(bss->rates); mgt_le_to_cpu() 364 bss->rates = cpu_to_le16(bss->rates); mgt_cpu_to_le() 810 bss->rates, bss->basic_rates); mgt_response_to_str() 825 list->bsslist[i].rates, mgt_response_to_str()
|
/linux-4.1.27/sound/pci/ice1712/ |
H A D | maya44.c | 661 * supported sample rates (to override the default one) 664 static unsigned int rates[] = { variable 668 /* playback rates: 32..192 kHz */ 670 .count = ARRAY_SIZE(rates), 671 .list = rates, 708 /* set card specific rates */ maya44_init()
|
/linux-4.1.27/drivers/net/wireless/ath/ar5523/ |
H A D | ar5523.c | 1198 ar5523_info(ar, "STA not found. Cannot set rates\n"); ar5523_create_rateset() 1226 struct ar5523_cmd_rates rates; ar5523_set_basic_rates() local 1228 memset(&rates, 0, sizeof(rates)); ar5523_set_basic_rates() 1229 rates.connid = cpu_to_be32(2); /* XXX */ ar5523_set_basic_rates() 1230 rates.size = cpu_to_be32(sizeof(struct ar5523_cmd_rateset)); ar5523_set_basic_rates() 1231 ar5523_create_rateset(ar, bss, &rates.rateset, true); ar5523_set_basic_rates() 1233 return ar5523_cmd_write(ar, WDCMSG_SET_BASIC_RATE, &rates, ar5523_set_basic_rates() 1234 sizeof(rates), 0); ar5523_set_basic_rates() 1470 BUILD_BUG_ON(sizeof(ar->rates) != sizeof(ar5523_rates)); ar5523_init_modes() 1473 memcpy(ar->rates, ar5523_rates, sizeof(ar5523_rates)); ar5523_init_modes() 1478 ar->band.bitrates = ar->rates; ar5523_init_modes()
|
H A D | ar5523.h | 128 struct ieee80211_rate rates[12]; member in struct:ar5523
|
/linux-4.1.27/drivers/clk/spear/ |
H A D | spear6xx_clock.c | 84 /* vco rate configuration table, in ascending order of rates */ 91 /* aux rate configuration table, in ascending order of rates */ 109 /* gpt rate configuration table, in ascending order of rates */
|
H A D | spear1310_clock.c | 233 /* pll rate configuration table, in ascending order of rates */ 245 /* vco-pll4 rate configuration table, in ascending order of rates */ 253 /* aux rate configuration table, in ascending order of rates */ 264 /* gmac rate configuration table, in ascending order of rates */ 273 /* clcd rate configuration table, in ascending order of rates */ 312 /* i2s prs1 aux rate configuration table, in ascending order of rates */ 332 /* i2s sclk aux rate configuration table, in ascending order of rates */ 339 /* adc rate configuration table, in ascending order of rates */ 349 /* General synth rate configuration table, in ascending order of rates */
|
H A D | spear1340_clock.c | 166 /* pll rate configuration table, in ascending order of rates */ 179 /* vco-pll4 rate configuration table, in ascending order of rates */ 265 /* aux rate configuration table, in ascending order of rates */ 293 /* gmac rate configuration table, in ascending order of rates */ 302 /* clcd rate configuration table, in ascending order of rates */ 351 /* i2s prs1 aux rate configuration table, in ascending order of rates */ 370 /* i2s sclk aux rate configuration table, in ascending order of rates */ 377 /* adc rate configuration table, in ascending order of rates */ 387 /* General synth rate configuration table, in ascending order of rates */
|
/linux-4.1.27/arch/mips/lantiq/xway/ |
H A D | sysctrl.c | 189 if (clk->rates[i] == clk->rate) { clkout_enable() 248 clk->rates = valid_pci_rates; clkdev_add_pci() 288 clk->rates = valid_clkout_rates[i]; clkdev_add_clkout()
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | mvsdio.h | 13 * Clock rates
|
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8180/ |
H A D | rtl8180.h | 119 struct ieee80211_rate rates[12]; member in struct:rtl8180_priv
|
/linux-4.1.27/sound/pci/oxygen/ |
H A D | oxygen_pcm.c | 49 .rates = SNDRV_PCM_RATE_32000 | 77 .rates = SNDRV_PCM_RATE_32000 | 104 .rates = SNDRV_PCM_RATE_48000, 148 runtime->hw.rates &= ~(SNDRV_PCM_RATE_32000 | oxygen_open()
|
H A D | xonar_hdmi.c | 83 hardware->rates = SNDRV_PCM_RATE_44100 | xonar_hdmi_pcm_hardware_filter()
|
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8187/ |
H A D | dev.c | 261 if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) { rtl8187_tx() 266 } else if (info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { rtl8187_tx() 286 hdr->retry = cpu_to_le32((info->control.rates[0].count - 1) << 8); rtl8187_tx() 302 hdr->retry = cpu_to_le32((info->control.rates[0].count - 1) << 8); rtl8187_tx() 536 info->status.rates[0].count = pkt_rc + 1; rtl8187b_status_cb() 793 * one of the 12 rates, all are enabled */ rtl8187b_init_hw() 915 info->status.rates[0].count = avg_retry + 1; rtl8187_work() 916 if (info->status.rates[0].count > RETRY_COUNT) rtl8187_work() 1467 BUILD_BUG_ON(sizeof(priv->rates) != sizeof(rtl818x_rates)); rtl8187_probe() 1470 memcpy(priv->rates, rtl818x_rates, sizeof(rtl818x_rates)); rtl8187_probe() 1476 priv->band.bitrates = priv->rates; rtl8187_probe()
|
/linux-4.1.27/drivers/iio/adc/ |
H A D | mcp3422.c | 74 /* sample rates to integer conversion table */ 81 /* sample rates to sign extension table */
|
/linux-4.1.27/drivers/scsi/aic94xx/ |
H A D | aic94xx_scb.c | 904 struct sas_phy_linkrates *rates; asd_control_phy() local 912 rates = arg; asd_control_phy() 913 if (rates->minimum_linkrate) { asd_control_phy() 914 pd->min_sas_lrate = rates->minimum_linkrate; asd_control_phy() 915 pd->min_sata_lrate = rates->minimum_linkrate; asd_control_phy() 917 if (rates->maximum_linkrate) { asd_control_phy() 918 pd->max_sas_lrate = rates->maximum_linkrate; asd_control_phy() 919 pd->max_sata_lrate = rates->maximum_linkrate; asd_control_phy()
|
/linux-4.1.27/drivers/staging/rtl8192u/ |
H A D | r8190_rtl8256.c | 250 powerBase0 = powerlevel + priv->TxPowerDiff; /* OFDM rates */ PHY_SetRF8256OFDMTxPower() 252 powerBase1 = powerlevel; /* MCS rates */ PHY_SetRF8256OFDMTxPower()
|