Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/clk/at91/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/clk/qcom/
H A 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()
/OK3568_Linux_fs/kernel/arch/arm/mach-omap2/
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/drivers/devfreq/
H A Drockchip_bus.c47 unsigned long cur_rate; member
322 dev_dbg(dev, "%luHz -> %luHz\n", bus->cur_rate, target_rate); in rockchip_bus_cpufreq_target()
328 bus->cur_rate = target_rate; in rockchip_bus_cpufreq_target()
340 if (bus->cur_rate == target_rate) { in rockchip_bus_cpufreq_target()
356 if (bus->cur_rate < target_rate) { in rockchip_bus_cpufreq_target()
372 if (bus->cur_rate > target_rate) { in rockchip_bus_cpufreq_target()
382 dev_dbg(dev, "%luHz %luuV -> %luHz %luuV\n", bus->cur_rate, in rockchip_bus_cpufreq_target()
384 bus->cur_rate = target_rate; in rockchip_bus_cpufreq_target()
409 bus->cur_rate != bus->high_rate) { in rockchip_bus_cpufreq_notifier()
422 bus->cur_rate != bus->low_rate) { in rockchip_bus_cpufreq_notifier()
/OK3568_Linux_fs/kernel/drivers/clk/actions/
H A 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()
/OK3568_Linux_fs/kernel/sound/atmel/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtw88/
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/sound/usb/
H A Dpcm.c97 if (subs->cur_rate < fp->rate_min || in find_format()
98 subs->cur_rate > fp->rate_max) in find_format()
103 if (fp->rate_table[i] == subs->cur_rate) in find_format()
163 if (subs->cur_rate < fp->rate_min || in find_format_and_si()
164 subs->cur_rate > fp->rate_max) in find_format_and_si()
168 if (fp->rate_table[i] == subs->cur_rate) in find_format_and_si()
721 subs->pcm_format, subs->cur_rate, subs->channels); in snd_usb_enable_audio_stream()
746 subs->cur_rate); in snd_usb_enable_audio_stream()
749 subs->cur_rate); in snd_usb_enable_audio_stream()
831 subs->cur_rate, in configure_sync_endpoint()
[all …]
H A 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()
/OK3568_Linux_fs/kernel/drivers/clk/mvebu/
H A 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()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mthca/
H A 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()
/OK3568_Linux_fs/kernel/sound/soc/mxs/
H A 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()
H A Dmxs-saif.h108 unsigned int cur_rate; member
/OK3568_Linux_fs/kernel/drivers/net/wireless/marvell/libertas/
H A 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()
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/
H A Drockchip_opp_select.c850 unsigned long rate, pvtpll_rate, old_rate, cur_rate, delta0, delta1; in rockchip_pvtpll_calibrate_opp() local
883 cur_rate = old_rate; in rockchip_pvtpll_calibrate_opp()
917 cur_rate = rate; in rockchip_pvtpll_calibrate_opp()
974 if (cur_rate > old_rate) in rockchip_pvtpll_calibrate_opp()
980 if (cur_rate < old_rate) in rockchip_pvtpll_calibrate_opp()
1740 unsigned long cur_rate; in rockchip_init_read_margin() local
1767 cur_rate = clk_get_rate(clk); in rockchip_init_read_margin()
1771 cur_rate, opp_info->intermediate_threshold_freq, in rockchip_init_read_margin()
1774 cur_rate > opp_info->intermediate_threshold_freq) { in rockchip_init_read_margin()
1777 clk_set_rate(clk, cur_rate); in rockchip_init_read_margin()
/OK3568_Linux_fs/kernel/sound/xen/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189es/core/
H A Drtw_vht.c98 u8 cur_rate, target_rate; in rtw_vht_nss_to_mcsmap() local
105 cur_rate = (cur_mcs_map[i] >> j) & 3; in rtw_vht_nss_to_mcsmap()
106 if(cur_rate == 3) //0x3 indicates not supported that num of SS in rtw_vht_nss_to_mcsmap()
111 target_rate = cur_rate; in rtw_vht_nss_to_mcsmap()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/core/
H A Drtw_vht.c98 u8 cur_rate, target_rate; in rtw_vht_nss_to_mcsmap() local
105 cur_rate = (cur_mcs_map[i] >> j) & 3; in rtw_vht_nss_to_mcsmap()
106 if(cur_rate == 3) //0x3 indicates not supported that num of SS in rtw_vht_nss_to_mcsmap()
111 target_rate = cur_rate; in rtw_vht_nss_to_mcsmap()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/halmac/halmac_88xx/
H A Dhalmac_mimo_88xx.h66 cfg_csi_rate_88xx(struct halmac_adapter *adapter, u8 rssi, u8 cur_rate,
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/halmac/halmac_88xx/
H A Dhalmac_mimo_88xx.h66 cfg_csi_rate_88xx(struct halmac_adapter *adapter, u8 rssi, u8 cur_rate,
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/halmac/halmac_88xx/
H A Dhalmac_mimo_88xx.h66 cfg_csi_rate_88xx(struct halmac_adapter *adapter, u8 rssi, u8 cur_rate,
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/halmac/halmac_88xx/
H A Dhalmac_mimo_88xx.h67 cfg_csi_rate_88xx(struct halmac_adapter *adapter, u8 rssi, u8 cur_rate,
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/core/
H A Drtw_vht.c107 u8 cur_rate, target_rate; in rtw_vht_nss_to_mcsmap() local
112 cur_rate = (cur_mcs_map[i] >> j) & 3; in rtw_vht_nss_to_mcsmap()
113 if (cur_rate == 3) /* 0x3 indicates not supported that num of SS */ in rtw_vht_nss_to_mcsmap()
118 target_rate = cur_rate; in rtw_vht_nss_to_mcsmap()

123