/kernel/linux/linux-6.6/sound/core/ |
H A D | pcm_misc.c | 489 * Determines the rate_min and rate_max fields from the rates bits of 498 if (hw->rates & (1 << i)) { in snd_pcm_hw_limit_rates() 504 if (hw->rates & (1 << i)) { in snd_pcm_hw_limit_rates() 549 static unsigned int snd_pcm_rate_mask_sanitize(unsigned int rates) in snd_pcm_rate_mask_sanitize() argument 551 if (rates & SNDRV_PCM_RATE_CONTINUOUS) in snd_pcm_rate_mask_sanitize() 553 else if (rates & SNDRV_PCM_RATE_KNOT) in snd_pcm_rate_mask_sanitize() 555 return rates; in snd_pcm_rate_mask_sanitize() 563 * This function computes the rates that are supported by both rate masks passed 567 * Return: A rate mask containing the rates that are supported by both rates_a 593 * This function has an implicit assumption: the rates i 602 unsigned int rates = 0; snd_pcm_rate_range_to_bits() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | mac.c | 725 struct ieee80211_tx_rate *rate = &info->control.rates[0]; in mt7615_mac_write_txwi() 967 struct ieee80211_tx_rate *rates, in mt7615_mac_update_rate_desc() 979 rates[i] = rates[n_rates - 1]; in mt7615_mac_update_rate_desc() 982 memcpy(sta->rateset[rateset].rates, rates, in mt7615_mac_update_rate_desc() 983 sizeof(sta->rateset[rateset].rates)); in mt7615_mac_update_rate_desc() 989 ref = &sta->rateset[rateset].rates[0]; in mt7615_mac_update_rate_desc() 992 rates = sta->rateset[rateset].rates; in mt7615_mac_update_rate_desc() 965 mt7615_mac_update_rate_desc(struct mt7615_phy *phy, struct mt7615_sta *sta, struct ieee80211_tx_rate *probe_rate, struct ieee80211_tx_rate *rates, struct mt7615_rate_desc *rd) mt7615_mac_update_rate_desc() argument 1055 mt7615_mac_queue_rate_update(struct mt7615_phy *phy, struct mt7615_sta *sta, struct ieee80211_tx_rate *probe_rate, struct ieee80211_tx_rate *rates) mt7615_mac_queue_rate_update() argument 1101 mt7615_mac_set_rates(struct mt7615_phy *phy, struct mt7615_sta *sta, struct ieee80211_tx_rate *probe_rate, struct ieee80211_tx_rate *rates) mt7615_mac_set_rates() argument [all...] |
/kernel/linux/linux-5.10/sound/firewire/bebob/ |
H A D | bebob_focusrite.c | 46 static const unsigned int rates[] = { variable 150 if (id >= ARRAY_SIZE(rates)) in saffirepro_both_clk_freq_get() 153 *rate = rates[id]; in saffirepro_both_clk_freq_get() 162 for (id = 0; id < ARRAY_SIZE(rates); id++) { in saffirepro_both_clk_freq_set() 163 if (rates[id] == rate) in saffirepro_both_clk_freq_set() 166 if (id == ARRAY_SIZE(rates)) in saffirepro_both_clk_freq_set()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | lochnagar-sc.c | 158 .rates = SNDRV_PCM_RATE_KNOT, 165 .rates = SNDRV_PCM_RATE_KNOT, 178 .rates = SNDRV_PCM_RATE_KNOT, 185 .rates = SNDRV_PCM_RATE_KNOT, 198 .rates = SNDRV_PCM_RATE_KNOT, 205 .rates = SNDRV_PCM_RATE_KNOT,
|
H A D | hdac_hda.c | 72 .rates = SNDRV_PCM_RATE_8000_192000, 80 .rates = SNDRV_PCM_RATE_8000_192000, 93 .rates = SNDRV_PCM_RATE_8000_192000, 101 .rates = SNDRV_PCM_RATE_8000_192000, 114 .rates = SNDRV_PCM_RATE_8000_192000, 122 .rates = SNDRV_PCM_RATE_8000_192000, 135 .rates = STUB_HDMI_RATES, 148 .rates = STUB_HDMI_RATES, 161 .rates = STUB_HDMI_RATES, 174 .rates [all...] |
/kernel/linux/linux-5.10/sound/soc/samsung/ |
H A D | s3c24xx_uda134x.c | 30 generating the clock for the codec. If you define this only rates 41 static unsigned int rates[33 * 2]; variable 44 .count = ARRAY_SIZE(rates), 45 .list = rates, 79 rates[i*33] = clk_get_rate(priv->xtal) / fs; in s3c24xx_uda134x_startup() 81 rates[i*33 + j] = clk_get_rate(priv->pclk) / in s3c24xx_uda134x_startup() 135 cerr = rates[i] - rate; in s3c24xx_uda134x_hw_params()
|
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | lochnagar-sc.c | 158 .rates = SNDRV_PCM_RATE_KNOT, 165 .rates = SNDRV_PCM_RATE_KNOT, 178 .rates = SNDRV_PCM_RATE_KNOT, 185 .rates = SNDRV_PCM_RATE_KNOT, 198 .rates = SNDRV_PCM_RATE_KNOT, 205 .rates = SNDRV_PCM_RATE_KNOT,
|
H A D | hdac_hda.c | 72 .rates = SNDRV_PCM_RATE_8000_192000, 80 .rates = SNDRV_PCM_RATE_8000_192000, 93 .rates = SNDRV_PCM_RATE_8000_192000, 101 .rates = SNDRV_PCM_RATE_8000_192000, 114 .rates = SNDRV_PCM_RATE_8000_192000, 122 .rates = SNDRV_PCM_RATE_8000_192000, 138 .rates = STUB_HDMI_RATES, 151 .rates = STUB_HDMI_RATES, 164 .rates = STUB_HDMI_RATES, 177 .rates [all...] |
/kernel/linux/linux-6.6/sound/firewire/bebob/ |
H A D | bebob_focusrite.c | 46 static const unsigned int rates[] = { variable 150 if (id >= ARRAY_SIZE(rates)) in saffirepro_both_clk_freq_get() 153 *rate = rates[id]; in saffirepro_both_clk_freq_get() 162 for (id = 0; id < ARRAY_SIZE(rates); id++) { in saffirepro_both_clk_freq_set() 163 if (rates[id] == rate) in saffirepro_both_clk_freq_set() 166 if (id == ARRAY_SIZE(rates)) in saffirepro_both_clk_freq_set()
|
/kernel/linux/linux-6.6/sound/soc/amd/acp/ |
H A D | acp-renoir.c | 81 .rates = SNDRV_PCM_RATE_8000_96000, 91 .rates = SNDRV_PCM_RATE_8000_48000, 106 .rates = SNDRV_PCM_RATE_8000_96000, 116 .rates = SNDRV_PCM_RATE_8000_48000, 130 .rates = SNDRV_PCM_RATE_8000_48000,
|
/kernel/linux/linux-5.10/drivers/scsi/libsas/ |
H A D | sas_init.c | 318 struct sas_phy_linkrates *rates) in sas_set_phy_speed() 322 if ((rates->minimum_linkrate && in sas_set_phy_speed() 323 rates->minimum_linkrate > phy->maximum_linkrate) || in sas_set_phy_speed() 324 (rates->maximum_linkrate && in sas_set_phy_speed() 325 rates->maximum_linkrate < phy->minimum_linkrate)) in sas_set_phy_speed() 328 if (rates->minimum_linkrate && in sas_set_phy_speed() 329 rates->minimum_linkrate < phy->minimum_linkrate_hw) in sas_set_phy_speed() 330 rates->minimum_linkrate = phy->minimum_linkrate_hw; in sas_set_phy_speed() 332 if (rates->maximum_linkrate && in sas_set_phy_speed() 333 rates in sas_set_phy_speed() 317 sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) sas_set_phy_speed() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/libsas/ |
H A D | sas_init.c | 319 struct sas_phy_linkrates *rates) in sas_set_phy_speed() 323 if ((rates->minimum_linkrate && in sas_set_phy_speed() 324 rates->minimum_linkrate > phy->maximum_linkrate) || in sas_set_phy_speed() 325 (rates->maximum_linkrate && in sas_set_phy_speed() 326 rates->maximum_linkrate < phy->minimum_linkrate)) in sas_set_phy_speed() 329 if (rates->minimum_linkrate && in sas_set_phy_speed() 330 rates->minimum_linkrate < phy->minimum_linkrate_hw) in sas_set_phy_speed() 331 rates->minimum_linkrate = phy->minimum_linkrate_hw; in sas_set_phy_speed() 333 if (rates->maximum_linkrate && in sas_set_phy_speed() 334 rates in sas_set_phy_speed() 318 sas_set_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) sas_set_phy_speed() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | mac.c | 535 struct ieee80211_tx_rate *rate = &info->control.rates[0]; in mt7615_mac_write_txwi() 831 struct ieee80211_tx_rate *rates, in mt7615_mac_update_rate_desc() 843 rates[i] = rates[n_rates - 1]; in mt7615_mac_update_rate_desc() 846 memcpy(sta->rateset[rateset].rates, rates, in mt7615_mac_update_rate_desc() 847 sizeof(sta->rateset[rateset].rates)); in mt7615_mac_update_rate_desc() 853 ref = &sta->rateset[rateset].rates[0]; in mt7615_mac_update_rate_desc() 856 rates = sta->rateset[rateset].rates; in mt7615_mac_update_rate_desc() 829 mt7615_mac_update_rate_desc(struct mt7615_phy *phy, struct mt7615_sta *sta, struct ieee80211_tx_rate *probe_rate, struct ieee80211_tx_rate *rates, struct mt7615_rate_desc *rd) mt7615_mac_update_rate_desc() argument 919 mt7615_mac_queue_rate_update(struct mt7615_phy *phy, struct mt7615_sta *sta, struct ieee80211_tx_rate *probe_rate, struct ieee80211_tx_rate *rates) mt7615_mac_queue_rate_update() argument 967 mt7615_mac_set_rates(struct mt7615_phy *phy, struct mt7615_sta *sta, struct ieee80211_tx_rate *probe_rate, struct ieee80211_tx_rate *rates) mt7615_mac_set_rates() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_mac.c | 341 struct ieee80211_tx_rate *rate = &info->control.rates[0]; in mt76x02_mac_write_txwi() 358 info->control.rates, 1); in mt76x02_mac_write_txwi() 440 mt76x02_tx_rate_fallback(struct ieee80211_tx_rate *rates, int idx, int phy) in mt76x02_tx_rate_fallback() argument 447 rates += idx - 1; in mt76x02_tx_rate_fallback() 448 rates[1] = rates[0]; in mt76x02_tx_rate_fallback() 451 mcs = ieee80211_rate_get_vht_mcs(rates); in mt76x02_tx_rate_fallback() 452 nss = ieee80211_rate_get_vht_nss(rates); in mt76x02_tx_rate_fallback() 459 ieee80211_rate_set_vht(rates + 1, mcs, nss); in mt76x02_tx_rate_fallback() 464 if (rates[ in mt76x02_tx_rate_fallback() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_mac.c | 341 struct ieee80211_tx_rate *rate = &info->control.rates[0]; in mt76x02_mac_write_txwi() 358 info->control.rates, 1); in mt76x02_mac_write_txwi() 440 mt76x02_tx_rate_fallback(struct ieee80211_tx_rate *rates, int idx, int phy) in mt76x02_tx_rate_fallback() argument 447 rates += idx - 1; in mt76x02_tx_rate_fallback() 448 rates[1] = rates[0]; in mt76x02_tx_rate_fallback() 451 mcs = ieee80211_rate_get_vht_mcs(rates); in mt76x02_tx_rate_fallback() 452 nss = ieee80211_rate_get_vht_nss(rates); in mt76x02_tx_rate_fallback() 459 ieee80211_rate_set_vht(rates + 1, mcs, nss); in mt76x02_tx_rate_fallback() 464 if (rates[ in mt76x02_tx_rate_fallback() [all...] |
/kernel/linux/linux-5.10/sound/firewire/motu/ |
H A D | motu-pcm.c | 20 struct snd_interval rates = { in motu_rate_constraint() local 33 rates.min = min(rates.min, rate); in motu_rate_constraint() 34 rates.max = max(rates.max, rate); in motu_rate_constraint() 37 return snd_interval_refine(r, &rates); in motu_rate_constraint() 87 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates()
|
/kernel/linux/linux-6.6/sound/soc/tegra/ |
H A D | tegra20_spdif.c | 189 static const unsigned int rates[] = { 32000, 44100, 48000 }; in tegra20_spdif_filter_rates() local 198 for (i = 0; i < ARRAY_SIZE(rates); i++) { in tegra20_spdif_filter_rates() 199 if (parent_rate % (rates[i] * 128) == 0) in tegra20_spdif_filter_rates() 208 valid_rates = BIT(ARRAY_SIZE(rates)) - 1; in tegra20_spdif_filter_rates() 210 return snd_interval_list(r, ARRAY_SIZE(rates), rates, valid_rates); in tegra20_spdif_filter_rates() 223 * PLL rate is controlled by I2S side. Filter out audio rates that in tegra20_spdif_startup() 256 .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
|
/kernel/linux/linux-6.6/sound/firewire/motu/ |
H A D | motu-pcm.c | 20 struct snd_interval rates = { in motu_rate_constraint() local 33 rates.min = min(rates.min, rate); in motu_rate_constraint() 34 rates.max = max(rates.max, rate); in motu_rate_constraint() 37 return snd_interval_refine(r, &rates); in motu_rate_constraint() 87 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates()
|
/third_party/ffmpeg/libavcodec/ |
H A D | libopencore-amr.c | 160 static const AMR_bitrates rates[] = { in get_bitrate_mode() local 168 if (rates[i].rate == bitrate) in get_bitrate_mode() 169 return rates[i].mode; in get_bitrate_mode() 170 if (best < 0 || abs(rates[i].rate - bitrate) < min_diff) { in get_bitrate_mode() 172 min_diff = abs(rates[i].rate - bitrate); in get_bitrate_mode() 178 av_strlcatf(log_buf, sizeof(log_buf), "%.2fk, ", rates[i].rate / 1000.f); in get_bitrate_mode() 179 av_strlcatf(log_buf, sizeof(log_buf), "using %.2fk", rates[best].rate / 1000.f); in get_bitrate_mode()
|
/kernel/linux/linux-5.10/sound/pci/hda/ |
H A D | hda_eld.c | 152 a->rates = 0; in hdmi_update_short_audio_desc() 155 a->rates |= cea_sampling_frequencies[i + 1]; in hdmi_update_short_audio_desc() 350 * SNDRV_PCM_RATE_* and AC_PAR_PCM values don't match, print correct rates with 380 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_show_short_audio_desc() 391 "HDMI: supports coding type %s: channels = %d, rates =%s%s\n", in hdmi_show_short_audio_desc() 425 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_print_sad_info() 426 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); in hdmi_print_sad_info() 540 e->sad[n].rates = val; in snd_hdmi_write_eld_info() 558 u32 rates; in snd_hdmi_eld_update_pcm_info() local 567 rates in snd_hdmi_eld_update_pcm_info() [all...] |
/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | hda_eld.c | 152 a->rates = 0; in hdmi_update_short_audio_desc() 155 a->rates |= cea_sampling_frequencies[i + 1]; in hdmi_update_short_audio_desc() 350 * SNDRV_PCM_RATE_* and AC_PAR_PCM values don't match, print correct rates with 380 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_show_short_audio_desc() 391 "HDMI: supports coding type %s: channels = %d, rates =%s%s\n", in hdmi_show_short_audio_desc() 425 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_print_sad_info() 426 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); in hdmi_print_sad_info() 544 e->sad[n].rates = val; in snd_hdmi_write_eld_info() 562 u32 rates; in snd_hdmi_eld_update_pcm_info() local 571 rates in snd_hdmi_eld_update_pcm_info() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
H A D | wl12xx_80211.h | 85 u8 rates[MAX_SUPPORTED_RATES]; member 114 struct wl12xx_ie_rates rates; member 139 struct wl12xx_ie_rates rates; member 150 struct wl12xx_ie_rates rates; member
|
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wl1251/ |
H A D | wl12xx_80211.h | 85 u8 rates[MAX_SUPPORTED_RATES]; member 114 struct wl12xx_ie_rates rates; member 139 struct wl12xx_ie_rates rates; member 150 struct wl12xx_ie_rates rates; member
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | parseutils.c | 39 static const char *const rates[] = { in test_av_parse_video_rate() local 67 for (i = 0; i < FF_ARRAY_ELEMS(rates); i++) { in test_av_parse_video_rate() 70 ret = av_parse_video_rate(&q, rates[i]); in test_av_parse_video_rate() 72 rates[i], q.num, q.den, ret ? "ERROR" : "OK"); in test_av_parse_video_rate()
|
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | rc80211_minstrel_ht.c | 174 "Use only VHT rates when VHT is supported by sta."); 177 * To enable sufficiently targeted rate sampling, MCS rates are divided into 326 return &mi->groups[group].rates[idx]; in minstrel_ht_get_stats() 332 return &mi->groups[index / MCS_GROUP_RATES].rates[index % MCS_GROUP_RATES]; in minstrel_get_ratestats() 377 * Find & sort topmost throughput rates 379 * If multiple rates provide equal throughput the sorting is based on their 381 * MCS groups, CCK rates do not provide aggregation and are therefore at last. 393 cur_prob = mi->groups[cur_group].rates[cur_idx].prob_avg; in minstrel_ht_sort_best_tp_rates() 399 tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_avg; in minstrel_ht_sort_best_tp_rates() 432 mrs = &mg->rates[inde in minstrel_ht_set_best_prob_rate() 559 minstrel_ht_find_probe_rates(struct minstrel_ht_sta *mi, u16 *rates, int *n_rates, bool faster_rate) minstrel_ht_find_probe_rates() argument 607 u16 rates[MINSTREL_GROUPS_NB]; minstrel_ht_rate_sample_switch() local 1166 struct ieee80211_sta_rates *rates; minstrel_ht_update_rates() local [all...] |