Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/clk/at91/
Dclk-peripheral.c330 unsigned long cur_rate = *parent_rate; in clk_sam9x5_peripheral_round_rate() local
339 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
340 if (cur_rate <= periph->range.max) in clk_sam9x5_peripheral_round_rate()
345 if (rate >= cur_rate) in clk_sam9x5_peripheral_round_rate()
346 return cur_rate; in clk_sam9x5_peripheral_round_rate()
348 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
349 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
351 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
352 if (cur_rate < rate) in clk_sam9x5_peripheral_round_rate()
353 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dbf.h90 void rtw_bf_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate,
107 static inline void rtw_chip_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, in rtw_chip_cfg_csi_rate() argument
111 rtwdev->chip->ops->cfg_csi_rate(rtwdev, rssi, cur_rate, in rtw_chip_cfg_csi_rate()
Dbf.c376 void rtw_bf_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, in rtw_bf_cfg_csi_rate() argument
386 if (cur_rate != DESC_RATE54M) { in rtw_bf_cfg_csi_rate()
395 if (cur_rate != DESC_RATE24M) { in rtw_bf_cfg_csi_rate()
Dmain.h835 void (*cfg_csi_rate)(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate,
/kernel/linux/linux-5.10/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()
165 chip->cur_rate = params_rate(hw_params); in atmel_ac97c_playback_hw_params()
[all …]
/kernel/linux/linux-5.10/sound/usb/
Dclock.c591 int err, cur_rate, prev_rate; in set_sample_rate_v2v3() local
645 cur_rate = get_sample_rate_v2v3(chip, iface, in set_sample_rate_v2v3()
648 cur_rate = prev_rate; in set_sample_rate_v2v3()
651 if (cur_rate != rate) { in set_sample_rate_v2v3()
655 iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3()
660 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()
685 subs->cur_rate, in configure_sync_endpoint()
693 subs->cur_rate, subs->pcm_format); in configure_sync_endpoint()
725 subs->cur_rate, in configure_sync_endpoint()
750 subs->cur_rate, in configure_endpoint()
836 subs->cur_rate = params_rate(hw_params); in snd_usb_hw_params()
842 subs->pcm_format, subs->cur_rate, subs->channels); in snd_usb_hw_params()
885 subs->cur_rate = 0; in snd_usb_hw_free()
[all …]
Dcard.h131 unsigned int cur_rate; /* current rate (for hw_params callback) */ member
Dquirks.c1484 sr[0] = subs->cur_rate & 0xff; in pioneer_djm_set_format_quirk()
1485 sr[1] = (subs->cur_rate >> 8) & 0xff; in pioneer_djm_set_format_quirk()
1486 sr[2] = (subs->cur_rate >> 16) & 0xff; in pioneer_djm_set_format_quirk()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/
Drx.c143 priv->cur_rate = lbs_fw_index_to_data_rate(p_rx_pd->rx_rate); in lbs_process_rxed_packet()
258 priv->cur_rate = lbs_fw_index_to_data_rate(prxpd->rx_rate); in process_rxed_802_11_packet()
Ddev.h174 u8 cur_rate; member
/kernel/linux/linux-5.10/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()
606 delay = USEC_PER_SEC / master_saif->cur_rate; in mxs_saif_trigger()
Dmxs-saif.h108 unsigned int cur_rate; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7603/
Dmac.c1138 struct ieee80211_tx_rate *cur_rate; in mt7603_fill_txs() local
1141 cur_rate = &rs->rates[idx / 2]; in mt7603_fill_txs()
1145 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7603_fill_txs()
1146 cur_rate->flags != info->status.rates[i].flags)) { in mt7603_fill_txs()
1153 info->status.rates[i] = *cur_rate; in mt7603_fill_txs()
/kernel/linux/linux-5.10/sound/pci/ice1712/
Dice1724.c660 return ((rate == ice->cur_rate) && !force) ? 0 : -EBUSY; in snd_vt1724_set_pro_rate()
666 return (rate == ice->cur_rate) ? 0 : -EBUSY; in snd_vt1724_set_pro_rate()
675 else if (rate == ice->cur_rate) { in snd_vt1724_set_pro_rate()
681 ice->cur_rate = rate; in snd_vt1724_set_pro_rate()
2819 if (ice->cur_rate) in snd_vt1724_resume()
2820 rate = ice->cur_rate; in snd_vt1724_resume()
Dice1712.h334 unsigned int cur_rate; /* current rate */ member
Dice1712.c1006 ice->cur_rate = rate; in snd_ice1712_set_pro_rate()
2773 if (ice->cur_rate) in snd_ice1712_resume()
2774 rate = ice->cur_rate; in snd_ice1712_resume()
2783 ice->cur_rate = rate; in snd_ice1712_resume()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dmac.c1249 struct ieee80211_tx_rate *cur_rate; in mt7615_fill_txs() local
1252 cur_rate = &rs->rates[idx / 2]; in mt7615_fill_txs()
1256 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7615_fill_txs()
1257 cur_rate->flags != info->status.rates[i].flags)) { in mt7615_fill_txs()
1264 info->status.rates[i] = *cur_rate; in mt7615_fill_txs()

12