/Zephyr-Core-3.4.0/drivers/dac/ |
D | dac_esp32.c | 25 const struct device *clock_dev; member 58 if (!cfg->clock_dev) { in dac_esp32_init() 63 if (!device_is_ready(cfg->clock_dev)) { in dac_esp32_init() 68 if (clock_control_on(cfg->clock_dev, in dac_esp32_init() 86 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
|
/Zephyr-Core-3.4.0/tests/drivers/clock_control/nrf_onoff_and_bt/src/ |
D | main.c | 22 static const struct device *const clock_dev = DEVICE_DT_GET_ONE(nordic_nrf_clock); variable 30 zassert_true(device_is_ready(clock_dev)); in setup() 124 check_hf_status(clock_dev, true, true); in ZTEST() 139 check_hf_status(clock_dev, false, true); in ZTEST() 210 check_hf_status(clock_dev, true, false); in ZTEST() 224 check_hf_status(clock_dev, false, true); in ZTEST()
|
/Zephyr-Core-3.4.0/drivers/pwm/ |
D | pwm_mcux_tpm.c | 29 const struct device *clock_dev; member 145 if (!device_is_ready(config->clock_dev)) { in mcux_tpm_init() 150 if (clock_control_on(config->clock_dev, config->clock_subsys)) { in mcux_tpm_init() 155 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_tpm_init() 192 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | pwm_rv32m1_tpm.c | 28 const struct device *clock_dev; member 144 if (!device_is_ready(config->clock_dev)) { in rv32m1_tpm_init() 149 if (clock_control_on(config->clock_dev, config->clock_subsys)) { in rv32m1_tpm_init() 154 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in rv32m1_tpm_init() 191 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | pwm_mcux.c | 25 const struct device *clock_dev; member 79 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_pwm_set_cycles() 167 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_pwm_get_cycles_per_sec() 184 if (!device_is_ready(config->clock_dev)) { in pwm_mcux_init() 239 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | pwm_rcar.c | 55 const struct device *clock_dev; member 231 ret = clock_control_on(config->clock_dev, (clock_control_subsys_t)&config->mod_clk); in pwm_rcar_init() 236 ret = clock_control_get_rate(config->clock_dev, (clock_control_subsys_t)&config->core_clk, in pwm_rcar_init() 257 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | pwm_led_esp32.c | 43 const struct device *clock_dev; member 305 if (!device_is_ready(config->clock_dev)) { in pwm_led_esp32_init() 311 clock_control_on(config->clock_dev, config->clock_subsys); in pwm_led_esp32_init() 340 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)),
|
D | pwm_mcux_pwt.c | 27 const struct device *clock_dev; member 287 if (!device_is_ready(config->clock_dev)) { in mcux_pwt_init() 292 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_pwt_init() 331 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.4.0/drivers/i2c/ |
D | i2c_rv32m1_lpi2c.c | 26 const struct device *clock_dev; member 85 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clk_freq); in rv32m1_lpi2c_configure() 217 if (!device_is_ready(config->clock_dev)) { in rv32m1_lpi2c_init() 222 err = clock_control_on(config->clock_dev, config->clock_subsys); in rv32m1_lpi2c_init() 228 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clk_freq); in rv32m1_lpi2c_init() 268 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
|
D | i2c_mcux_flexcomm.c | 24 const struct device *clock_dev; member 78 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_flexcomm_configure() 262 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_flexcomm_target_register() 346 if (!device_is_ready(config->clock_dev)) { in mcux_flexcomm_init() 352 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_flexcomm_init() 389 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
|
D | i2c_lpc11u6x.c | 63 lpc11u6x_i2c_set_bus_speed(cfg, cfg->clock_dev, speed); in lpc11u6x_i2c_configure() 318 if (!device_is_ready(cfg->clock_dev)) { in lpc11u6x_i2c_init() 323 clock_control_on(cfg->clock_dev, (clock_control_subsys_t) cfg->clkid); in lpc11u6x_i2c_init() 326 lpc11u6x_i2c_set_bus_speed(cfg, cfg->clock_dev, 100000); in lpc11u6x_i2c_init() 359 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(idx)), \
|
D | i2c_mcux_lpi2c.c | 37 const struct device *clock_dev; member 96 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_lpi2c_configure() 409 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_lpi2c_target_register() 492 if (!device_is_ready(config->clock_dev)) { in mcux_lpi2c_init() 497 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_lpi2c_init() 553 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | i2c_rcar.c | 28 const struct device *clock_dev; member 325 if (!device_is_ready(config->clock_dev)) { in i2c_rcar_init() 329 ret = clock_control_on(config->clock_dev, in i2c_rcar_init() 359 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.4.0/drivers/can/ |
D | can_mcux_mcan.c | 26 const struct device *clock_dev; member 78 return clock_control_get_rate(mcux_config->clock_dev, mcux_config->clock_subsys, in mcux_mcan_get_core_clock() 89 if (!device_is_ready(mcux_config->clock_dev)) { in mcux_mcan_init() 99 err = clock_control_on(mcux_config->clock_dev, mcux_config->clock_subsys); in mcux_mcan_init() 196 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | can_esp32_twai.c | 71 const struct device *clock_dev; member 185 if (!device_is_ready(twai_config->clock_dev)) { in can_esp32_twai_init() 196 err = clock_control_on(twai_config->clock_dev, twai_config->clock_subsys); in can_esp32_twai_init() 287 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(inst)), \
|
/Zephyr-Core-3.4.0/drivers/watchdog/ |
D | wdt_mcux_wdog.c | 23 const struct device *clock_dev; member 82 if (!device_is_ready(config->clock_dev)) { in mcux_wdog_install_timeout() 87 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_wdog_install_timeout() 170 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)),
|
D | wdt_esp32.c | 46 const struct device *clock_dev; member 156 if (!device_is_ready(config->clock_dev)) { in wdt_esp32_init() 161 clock_control_on(config->clock_dev, config->clock_subsys); in wdt_esp32_init() 190 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(idx)), \
|
D | wdt_mcux_wdog32.c | 28 const struct device *clock_dev; member 97 if (!device_is_ready(config->clock_dev)) { in mcux_wdog32_install_timeout() 102 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_wdog32_install_timeout() 198 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)),
|
/Zephyr-Core-3.4.0/drivers/interrupt_controller/ |
D | intc_rv32m1_intmux.c | 43 const struct device *clock_dev; member 146 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)), 157 if (!device_is_ready(config->clock_dev)) { in rv32m1_intmux_init() 162 clock_control_on(config->clock_dev, config->clock_subsys); in rv32m1_intmux_init()
|
/Zephyr-Core-3.4.0/drivers/serial/ |
D | serial_esp32_usb.c | 26 const struct device *clock_dev; member 86 if (!device_is_ready(config->clock_dev)) { in serial_esp32_usb_init() 90 int ret = clock_control_on(config->clock_dev, config->clock_subsys); in serial_esp32_usb_init() 250 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)),
|
D | uart_mcux_iuart.c | 19 const struct device *clock_dev; member 230 if (!device_is_ready(config->clock_dev)) { in mcux_iuart_init() 234 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_iuart_init() 244 clock_control_on(config->clock_dev, config->clock_subsys); in mcux_iuart_init() 249 clock_control_off(config->clock_dev, config->clock_subsys); in mcux_iuart_init() 313 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | uart_mcux.c | 22 const struct device *clock_dev; member 47 if (!device_is_ready(config->clock_dev)) { in uart_mcux_configure() 51 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in uart_mcux_configure() 352 clock_control_on(config->clock_dev, config->clock_subsys); in uart_mcux_pm_action() 355 clock_control_off(config->clock_dev, config->clock_subsys); in uart_mcux_pm_action() 397 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.4.0/drivers/gpio/ |
D | gpio_rv32m1.c | 28 const struct device *clock_dev; member 273 if (config->clock_dev) { in gpio_rv32m1_init() 274 if (!device_is_ready(config->clock_dev)) { in gpio_rv32m1_init() 278 ret = clock_control_on(config->clock_dev, config->clock_subsys); in gpio_rv32m1_init() 316 .clock_dev = INST_DT_CLK_CTRL_DEV(n), \
|
D | gpio_rcar.c | 28 const struct device *clock_dev; member 251 if (!device_is_ready(config->clock_dev)) { in gpio_rcar_init() 255 ret = clock_control_on(config->clock_dev, in gpio_rcar_init() 297 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.4.0/drivers/counter/ |
D | counter_mcux_gpt.c | 21 const struct device *clock_dev; member 173 if (!device_is_ready(config->clock_dev)) { in mcux_gpt_init() 178 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_gpt_init() 215 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|