Home
last modified time | relevance | path

Searched refs:cur_rate (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.4/drivers/clk/at91/
Dclk-peripheral.c248 unsigned long cur_rate = *parent_rate; in clk_sam9x5_peripheral_round_rate() local
257 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
258 if (cur_rate <= periph->range.max) in clk_sam9x5_peripheral_round_rate()
263 if (rate >= cur_rate) in clk_sam9x5_peripheral_round_rate()
264 return cur_rate; in clk_sam9x5_peripheral_round_rate()
266 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
267 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
269 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
270 if (cur_rate < rate) in clk_sam9x5_peripheral_round_rate()
271 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()
[all …]
/Linux-v5.4/arch/arm/mach-omap2/
Dclkt2xxx_dpllcore.c112 u32 cur_rate, low, mult, div, valid_rate, done_rate; in omap2_reprogram_dpllcore() local
117 cur_rate = omap2xxx_clk_get_core_rate(); in omap2_reprogram_dpllcore()
120 if ((rate == (cur_rate / 2)) && (mult == 2)) { in omap2_reprogram_dpllcore()
122 } else if ((rate == (cur_rate * 2)) && (mult == 1)) { in omap2_reprogram_dpllcore()
124 } else if (rate != cur_rate) { in omap2_reprogram_dpllcore()
Dclkt2xxx_virt_prcm_set.c98 u32 cur_rate, done_rate, bypass = 0; in omap2_select_table_rate() local
123 cur_rate = omap2xxx_clk_get_core_rate(); in omap2_select_table_rate()
125 if (prcm->dpll_speed == cur_rate / 2) { in omap2_select_table_rate()
127 } else if (prcm->dpll_speed == cur_rate * 2) { in omap2_select_table_rate()
129 } else if (prcm->dpll_speed != cur_rate) { in omap2_select_table_rate()
/Linux-v5.4/drivers/clk/qcom/
Dkrait-cc.c294 unsigned long cur_rate, aux_rate; in krait_cc_probe() local
357 cur_rate = clk_get_rate(l2_pri_mux_clk); in krait_cc_probe()
359 if (cur_rate == 1) { in krait_cc_probe()
361 cur_rate = aux_rate; in krait_cc_probe()
365 clk_set_rate(l2_pri_mux_clk, cur_rate); in krait_cc_probe()
369 cur_rate = clk_get_rate(clk); in krait_cc_probe()
370 if (cur_rate == 1) { in krait_cc_probe()
372 cur_rate = aux_rate; in krait_cc_probe()
377 clk_set_rate(clk, cur_rate); in krait_cc_probe()
/Linux-v5.4/drivers/clk/actions/
Dowl-factor.c72 unsigned long parent_rate, try_parent_rate, best = 0, cur_rate; in owl_clk_val_best() local
103 cur_rate = DIV_ROUND_UP(parent_rate, clkt->div) * clkt->mul; in owl_clk_val_best()
104 if (cur_rate <= rate && cur_rate > best) { in owl_clk_val_best()
106 best = cur_rate; in owl_clk_val_best()
/Linux-v5.4/sound/atmel/
Dac97c.c47 unsigned int cur_rate; member
94 if (chip->cur_rate) { in atmel_ac97c_playback_open()
95 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open()
96 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open()
113 if (chip->cur_rate) { in atmel_ac97c_capture_open()
114 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_capture_open()
115 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_capture_open()
131 chip->cur_rate = 0; in atmel_ac97c_playback_close()
148 chip->cur_rate = 0; in atmel_ac97c_capture_close()
171 chip->cur_rate = params_rate(hw_params); in atmel_ac97c_playback_hw_params()
[all …]
/Linux-v5.4/sound/usb/
Dclock.c495 int err, cur_rate, prev_rate; in set_sample_rate_v2v3() local
551 cur_rate = get_sample_rate_v2v3(chip, iface, in set_sample_rate_v2v3()
554 cur_rate = prev_rate; in set_sample_rate_v2v3()
557 if (cur_rate != rate) { in set_sample_rate_v2v3()
561 iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3()
566 cur_rate, rate); in set_sample_rate_v2v3()
Dpcm.c95 if (subs->cur_rate < fp->rate_min || in find_format()
96 subs->cur_rate > fp->rate_max) in find_format()
101 if (fp->rate_table[i] == subs->cur_rate) in find_format()
643 subs->cur_rate, in configure_sync_endpoint()
651 subs->cur_rate, subs->pcm_format); in configure_sync_endpoint()
683 subs->cur_rate, in configure_sync_endpoint()
707 subs->cur_rate, in configure_endpoint()
802 subs->cur_rate = params_rate(hw_params); in snd_usb_hw_params()
808 subs->pcm_format, subs->cur_rate, subs->channels); in snd_usb_hw_params()
851 subs->cur_rate = 0; in snd_usb_hw_free()
[all …]
Dcard.h126 unsigned int cur_rate; /* current rate (for hw_params callback) */ member
/Linux-v5.4/drivers/clk/mvebu/
Dclk-cpu.c112 unsigned long fabric_div, target_div, cur_rate; in clk_cpu_on_set_rate() local
122 cur_rate = clk_hw_get_rate(hwclk); in clk_cpu_on_set_rate()
129 if (rate == 2 * cur_rate) in clk_cpu_on_set_rate()
/Linux-v5.4/drivers/infiniband/hw/mthca/
Dmthca_av.c106 static u8 ib_rate_to_memfree(u8 req_rate, u8 cur_rate) in ib_rate_to_memfree() argument
108 if (cur_rate <= req_rate) in ib_rate_to_memfree()
115 switch ((cur_rate - 1) / req_rate) { in ib_rate_to_memfree()
/Linux-v5.4/drivers/net/wireless/marvell/libertas/
Drx.c146 priv->cur_rate = lbs_fw_index_to_data_rate(p_rx_pd->rx_rate); in lbs_process_rxed_packet()
264 priv->cur_rate = lbs_fw_index_to_data_rate(prxpd->rx_rate); in process_rxed_802_11_packet()
Ddev.h174 u8 cur_rate; member
Dcfg.c1580 if (priv->cur_rate == lbs_rates[i].hw_value) { in lbs_cfg_get_station()
/Linux-v5.4/sound/soc/mxs/
Dmxs-saif.c95 if (master_saif->ongoing && rate != master_saif->cur_rate) { in mxs_saif_set_clk()
98 master_saif->id, master_saif->cur_rate); in mxs_saif_set_clk()
152 master_saif->cur_rate = rate; in mxs_saif_set_clk()
603 delay = USEC_PER_SEC / master_saif->cur_rate; in mxs_saif_trigger()
Dmxs-saif.h108 unsigned int cur_rate; member
/Linux-v5.4/sound/xen/
Dxen_snd_front_cfg.c153 char *cur_rate; in cfg_hw_rates() local
164 while ((cur_rate = strsep(&list, XENSND_LIST_SEPARATOR))) { in cfg_hw_rates()
166 if (!strncasecmp(cur_rate, in cfg_hw_rates()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7615/
Dmac.c907 struct ieee80211_tx_rate *cur_rate; in mt7615_fill_txs() local
910 cur_rate = &rs->rates[idx / 2]; in mt7615_fill_txs()
914 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7615_fill_txs()
915 cur_rate->flags != info->status.rates[i].flags)) { in mt7615_fill_txs()
920 info->status.rates[i] = *cur_rate; in mt7615_fill_txs()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7603/
Dmac.c1025 struct ieee80211_tx_rate *cur_rate; in mt7603_fill_txs() local
1028 cur_rate = &rs->rates[idx / 2]; in mt7603_fill_txs()
1032 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7603_fill_txs()
1033 cur_rate->flags != info->status.rates[i].flags)) { in mt7603_fill_txs()
1038 info->status.rates[i] = *cur_rate; in mt7603_fill_txs()
/Linux-v5.4/sound/pci/ice1712/
Dice1724.c659 return ((rate == ice->cur_rate) && !force) ? 0 : -EBUSY; in snd_vt1724_set_pro_rate()
665 return (rate == ice->cur_rate) ? 0 : -EBUSY; in snd_vt1724_set_pro_rate()
674 else if (rate == ice->cur_rate) { in snd_vt1724_set_pro_rate()
680 ice->cur_rate = rate; in snd_vt1724_set_pro_rate()
2828 if (ice->cur_rate) in snd_vt1724_resume()
2829 rate = ice->cur_rate; in snd_vt1724_resume()
Dice1712.h334 unsigned int cur_rate; /* current rate */ member
Dice1712.c1030 ice->cur_rate = rate; in snd_ice1712_set_pro_rate()
2800 if (ice->cur_rate) in snd_ice1712_resume()
2801 rate = ice->cur_rate; in snd_ice1712_resume()
2810 ice->cur_rate = rate; in snd_ice1712_resume()