| /linux/drivers/mmc/core/ |
| H A D | pwrseq_simple.c | 32 struct clk *ext_clk; member 67 if (!IS_ERR(pwrseq->ext_clk) && !pwrseq->clk_enabled) { in mmc_pwrseq_simple_pre_power_on() 68 clk_prepare_enable(pwrseq->ext_clk); in mmc_pwrseq_simple_pre_power_on() 105 if (!IS_ERR(pwrseq->ext_clk) && pwrseq->clk_enabled) { in mmc_pwrseq_simple_power_off() 106 clk_disable_unprepare(pwrseq->ext_clk); in mmc_pwrseq_simple_power_off() 133 pwrseq->ext_clk = devm_clk_get(dev, "ext_clock"); in mmc_pwrseq_simple_probe() 134 if (IS_ERR(pwrseq->ext_clk) && PTR_ERR(pwrseq->ext_clk) != -ENOENT) in mmc_pwrseq_simple_probe() 135 return dev_err_probe(dev, PTR_ERR(pwrseq->ext_clk), "external clock not ready\n"); in mmc_pwrseq_simple_probe()
|
| /linux/sound/soc/ti/ |
| H A D | davinci-i2s.c | 135 struct clk *ext_clk; member 508 if (dev->ext_clk) { in davinci_i2s_hw_params() 509 freq = clk_get_rate(dev->ext_clk); in davinci_i2s_hw_params() 546 if (dev->ext_clk) { in davinci_i2s_hw_params() 547 freq = clk_get_rate(dev->ext_clk); in davinci_i2s_hw_params() 859 dev->ext_clk = devm_clk_get_optional(&pdev->dev, "clks"); in davinci_i2s_probe() 860 if (IS_ERR(dev->ext_clk)) in davinci_i2s_probe() 861 return dev_err_probe(&pdev->dev, PTR_ERR(dev->ext_clk), "Invalid external clock\n"); in davinci_i2s_probe() 867 if (dev->ext_clk) { in davinci_i2s_probe() 869 ret = clk_prepare_enable(dev->ext_clk); in davinci_i2s_probe() [all …]
|
| /linux/drivers/bluetooth/ |
| H A D | hci_ll.c | 69 struct clk *ext_clk; member 132 if (!IS_ERR(lldev->ext_clk)) in ll_open() 133 clk_prepare_enable(lldev->ext_clk); in ll_open() 169 clk_disable_unprepare(lldev->ext_clk); in ll_close() 708 lldev->ext_clk = devm_clk_get(&serdev->dev, "ext_clock"); in hci_ti_probe() 709 if (IS_ERR(lldev->ext_clk) && PTR_ERR(lldev->ext_clk) != -ENOENT) in hci_ti_probe() 710 return PTR_ERR(lldev->ext_clk); in hci_ti_probe()
|
| /linux/sound/soc/fsl/ |
| H A D | fsl_utils.c | 170 struct clk *ext_clk, int *target_rates) in fsl_asoc_constrain_rates() argument 176 if (pll8k_clk || pll11k_clk || ext_clk) { in fsl_asoc_constrain_rates() 182 clk_rate[2] = clk_get_rate(ext_clk); in fsl_asoc_constrain_rates()
|
| H A D | fsl_utils.h | 33 struct clk *ext_clk, int *target_rates);
|
| /linux/drivers/iio/imu/ |
| H A D | adis16480.c | 176 struct clk *ext_clk; member 1667 return clk_prepare_enable(st->ext_clk); in adis16480_ext_clk_config() 1674 st->ext_clk = devm_clk_get_optional(dev, "sync"); in adis16480_get_ext_clocks() 1675 if (IS_ERR(st->ext_clk)) in adis16480_get_ext_clocks() 1676 return dev_err_probe(dev, PTR_ERR(st->ext_clk), "failed to get ext clk\n"); in adis16480_get_ext_clocks() 1677 if (st->ext_clk) { in adis16480_get_ext_clocks() 1683 st->ext_clk = devm_clk_get_optional(dev, "pps"); in adis16480_get_ext_clocks() 1684 if (IS_ERR(st->ext_clk)) in adis16480_get_ext_clocks() 1685 return dev_err_probe(dev, PTR_ERR(st->ext_clk), "failed to get ext clk\n"); in adis16480_get_ext_clocks() 1686 if (st->ext_clk) { in adis16480_get_ext_clocks() [all …]
|
| /linux/drivers/media/i2c/ccs/ |
| H A D | ccs-quirk.c | 155 switch (sensor->hwcfg.ext_clk) { in jt8ev1_post_poweron() 161 sensor->hwcfg.ext_clk); in jt8ev1_post_poweron()
|
| H A D | ccs-core.c | 1485 unsigned int ext_freq = sensor->hwcfg.ext_clk; in ccs_setup_flash_strobe() 1665 if (sensor->reset || sensor->xshutdown || sensor->ext_clk) { in ccs_power_on() 1668 rval = clk_prepare_enable(sensor->ext_clk); in ccs_power_on() 1678 sleep = SMIAPP_RESET_DELAY(sensor->hwcfg.ext_clk); in ccs_power_on() 1732 sensor->hwcfg.ext_clk / (1000000 / (1 << 8))); in ccs_power_on() 1777 clk_disable_unprepare(sensor->ext_clk); in ccs_power_on() 1805 clk_disable_unprepare(sensor->ext_clk); in ccs_power_off() 3214 &hwcfg->ext_clk); in ccs_get_hwconfig() 3302 sensor->ext_clk = devm_v4l2_sensor_clk_get(&client->dev, NULL); in ccs_probe() 3303 if (IS_ERR(sensor->ext_clk)) in ccs_probe() [all …]
|
| /linux/drivers/video/fbdev/omap/ |
| H A D | hwa742.c | 762 static void calc_hwa742_clk_rates(unsigned long ext_clk, in calc_hwa742_clk_rates() argument 775 *sys_clk = ext_clk * sys_mul / sys_div; in calc_hwa742_clk_rates() 777 *sys_clk = ext_clk; in calc_hwa742_clk_rates() 782 ext_clk, pix_clk_src & (0x3 << 1), pix_div, sys_div, sys_mul); in calc_hwa742_clk_rates() 939 unsigned long ext_clk; in hwa742_init() local 962 ext_clk = clk_get_rate(hwa742.sys_ck); in hwa742_init() 963 if ((r = calc_extif_timings(ext_clk, &extif_mem_div)) < 0) in hwa742_init() 968 calc_hwa742_clk_rates(ext_clk, &sys_clk, &pix_clk); in hwa742_init()
|
| /linux/arch/arm/boot/dts/axis/ |
| H A D | artpec6.dtsi | 91 ext_clk: ext_clk { label 107 clocks = <&ext_clk>;
|
| /linux/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A D | regulatory.h | 220 int iwl_bios_get_eckv(struct iwl_fw_runtime *fwrt, u32 *ext_clk);
|
| /linux/drivers/iio/adc/ |
| H A D | ad4170-4.c | 2494 struct clk *ext_clk; in ad4170_clock_select() local 2497 ext_clk = devm_clk_get_optional_enabled(dev, NULL); in ad4170_clock_select() 2498 if (IS_ERR(ext_clk)) in ad4170_clock_select() 2499 return dev_err_probe(dev, PTR_ERR(ext_clk), in ad4170_clock_select() 2502 if (!ext_clk) { in ad4170_clock_select() 2523 st->mclk_hz = clk_get_rate(ext_clk); in ad4170_clock_select()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | stv0900_core.c | 270 static u32 stv0900_get_mclk_freq(struct stv0900_internal *intp, u32 ext_clk) in stv0900_get_mclk_freq() argument 277 mclk = (div + 1) * ext_clk / ad_div; in stv0900_get_mclk_freq()
|