Home
last modified time | relevance | path

Searched refs:cur_clk (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/pwm/
Dpwm-atmel-hlcdc.c32 struct clk *cur_clk; member
93 if (new_clk != chip->cur_clk) { in atmel_hlcdc_pwm_apply()
101 clk_disable_unprepare(chip->cur_clk); in atmel_hlcdc_pwm_apply()
102 chip->cur_clk = new_clk; in atmel_hlcdc_pwm_apply()
163 clk_disable_unprepare(chip->cur_clk); in atmel_hlcdc_pwm_apply()
164 chip->cur_clk = NULL; in atmel_hlcdc_pwm_apply()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-s3c.c121 int cur_clk; member
255 if (ourhost->cur_clk != best_src) { in sdhci_s3c_set_clock()
259 if (ourhost->cur_clk >= 0) in sdhci_s3c_set_clock()
261 ourhost->clk_bus[ourhost->cur_clk]); in sdhci_s3c_set_clock()
263 ourhost->cur_clk = best_src; in sdhci_s3c_set_clock()
390 ret = clk_set_rate(ourhost->clk_bus[ourhost->cur_clk], clock); in sdhci_cmu_set_clock()
526 sc->cur_clk = -1; in sdhci_s3c_probe()
733 if (ourhost->cur_clk >= 0) in sdhci_s3c_runtime_suspend()
734 clk_disable_unprepare(ourhost->clk_bus[ourhost->cur_clk]); in sdhci_s3c_runtime_suspend()
747 if (ourhost->cur_clk >= 0) in sdhci_s3c_runtime_resume()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/hw/
Dclk_mgr_internal.h309 static inline bool should_set_clock(bool safe_to_lower, int calc_clk, int cur_clk) in should_set_clock() argument
311 return ((safe_to_lower && calc_clk < cur_clk) || calc_clk > cur_clk); in should_set_clock()
/kernel/linux/linux-5.10/drivers/misc/habanalabs/gaudi/
Dgaudi_hwmgr.c19 int gaudi_get_clk_rate(struct hl_device *hdev, u32 *cur_clk, u32 *max_clk) in gaudi_get_clk_rate() argument
45 *cur_clk = (value / 1000 / 1000); in gaudi_get_clk_rate()
DgaudiP.h273 int gaudi_get_clk_rate(struct hl_device *hdev, u32 *cur_clk, u32 *max_clk);
/kernel/linux/linux-5.10/drivers/cpufreq/
Darmada-8k-cpufreq.c38 static void __init armada_8k_get_sharing_cpus(struct clk *cur_clk, in armada_8k_get_sharing_cpus() argument
57 if (clk_is_match(clk, cur_clk)) in armada_8k_get_sharing_cpus()
/kernel/linux/linux-5.10/drivers/misc/habanalabs/goya/
Dgoya_hwmgr.c35 int goya_get_clk_rate(struct hl_device *hdev, u32 *cur_clk, u32 *max_clk) in goya_get_clk_rate() argument
61 *cur_clk = (value / 1000 / 1000); in goya_get_clk_rate()
DgoyaP.h234 int goya_get_clk_rate(struct hl_device *hdev, u32 *cur_clk, u32 *max_clk);
/kernel/linux/linux-5.10/drivers/misc/cardreader/
Drtsx_usb.c396 ucr->cur_clk = 0; in rtsx_usb_switch_clock()
421 card_clock, ucr->cur_clk); in rtsx_usb_switch_clock()
423 if (card_clock == ucr->cur_clk) in rtsx_usb_switch_clock()
482 ucr->cur_clk = card_clock; in rtsx_usb_switch_clock()
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx_card.c629 if (chip->cur_clk == clk) in switch_ssc_clock()
637 clk, chip->cur_clk); in switch_ssc_clock()
687 chip->cur_clk = clk; in switch_ssc_clock()
698 if (chip->cur_clk == clk) in switch_normal_clock()
815 chip->cur_clk = clk; in switch_normal_clock()
Drtsx_chip.h711 int cur_clk; /* current card clock */ member
Drtsx_chip.c1965 chip->cur_clk = 0; in rtsx_do_before_power_down()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramgk104.c1003 int cur_N, cur_clk, cur_err; in gk104_pll_calc_hiclk() local
1005 cur_clk = gk104_calc_pll_output(0, 1, n_ref, p_ref, crystal); in gk104_pll_calc_hiclk()
1006 cur_N = target_khz / cur_clk; in gk104_pll_calc_hiclk()
1008 - gk104_calc_pll_output(0xf000, 1, cur_N, 1, cur_clk); in gk104_pll_calc_hiclk()
1020 cur_err = gk104_calc_pll_output(0xf000, 1, cur_N, 1, cur_clk) in gk104_pll_calc_hiclk()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Darasan-nand-controller.c192 unsigned int cur_clk; member
285 if (nfc->cur_clk != anand->clk) { in anfc_select_target()
300 nfc->cur_clk = anand->clk; in anfc_select_target()
/kernel/linux/linux-5.10/include/linux/
Drtsx_usb.h48 unsigned int cur_clk; member
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-imx.c194 unsigned int cur_clk; member
527 if (i2c_imx->cur_clk == i2c_clk_rate) in i2c_imx_set_clk()
530 i2c_imx->cur_clk = i2c_clk_rate; in i2c_imx_set_clk()
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/
Dhabanalabs.h805 int (*get_clk_rate)(struct hl_device *hdev, u32 *cur_clk, u32 *max_clk);
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0022_linux_drivers_i2c.patch2104 if (i2c_imx->cur_clk == i2c_clk_rate)
2117 i2c_imx->cur_clk = i2c_clk_rate;