/Zephyr-Core-3.7.0/drivers/dac/ |
D | dac_esp32.c | 23 const struct device *clock_dev; member 56 if (!cfg->clock_dev) { in dac_esp32_init() 61 if (!device_is_ready(cfg->clock_dev)) { in dac_esp32_init() 66 if (clock_control_on(cfg->clock_dev, in dac_esp32_init() 84 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
|
/Zephyr-Core-3.7.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.7.0/drivers/pinctrl/ |
D | pinctrl_kinetis.c | 38 const struct device *clock_dev; member 64 if (!device_is_ready(config->clock_dev)) { in pinctrl_mcux_init() 69 err = clock_control_on(config->clock_dev, config->clock_subsys); in pinctrl_mcux_init() 89 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.7.0/drivers/ethernet/eth_nxp_enet_qos/ |
D | eth_nxp_enet_qos.c | 22 ret = clock_control_on(config->clock_dev, config->clock_subsys); in nxp_enet_qos_init() 35 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.7.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 | 26 const struct device *clock_dev; member 63 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_pwm_set_cycles_internal() 181 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_pwm_get_cycles_per_sec() 200 if (!device_is_ready(config->clock_dev)) { in pwm_mcux_init() 257 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | pwm_mcux_sctimer.c | 30 const struct device *clock_dev; member 53 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_sctimer_new_channel() 200 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_sctimer_pwm_get_cycles_per_sec() 259 .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)), \
|
/Zephyr-Core-3.7.0/drivers/i2c/ |
D | i2c_rv32m1_lpi2c.c | 27 const struct device *clock_dev; member 86 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clk_freq); in rv32m1_lpi2c_configure() 218 if (!device_is_ready(config->clock_dev)) { in rv32m1_lpi2c_init() 223 err = clock_control_on(config->clock_dev, config->clock_subsys); in rv32m1_lpi2c_init() 229 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clk_freq); in rv32m1_lpi2c_init() 269 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
|
/Zephyr-Core-3.7.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 | 50 const struct device *clock_dev; member 160 if (!device_is_ready(config->clock_dev)) { in wdt_esp32_init() 165 clock_control_on(config->clock_dev, config->clock_subsys); in wdt_esp32_init() 194 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(idx)), \
|
D | xt_wdt_esp32.c | 42 const struct device *clock_dev; member 108 clock_control_configure(cfg->clock_dev, in esp32_xt_wdt_isr() 152 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)),
|
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.7.0/drivers/interrupt_controller/ |
D | intc_rv32m1_intmux.c | 44 const struct device *clock_dev; member 147 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)), 158 if (!device_is_ready(config->clock_dev)) { in rv32m1_intmux_init() 163 clock_control_on(config->clock_dev, config->clock_subsys); in rv32m1_intmux_init()
|
/Zephyr-Core-3.7.0/drivers/can/ |
D | can_mcux_mcan.c | 27 const struct device *clock_dev; member 80 return clock_control_get_rate(mcux_config->clock_dev, mcux_config->clock_subsys, in mcux_mcan_get_core_clock() 91 if (!device_is_ready(mcux_config->clock_dev)) { in mcux_mcan_init() 111 err = clock_control_on(mcux_config->clock_dev, mcux_config->clock_subsys); in mcux_mcan_init() 207 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | can_esp32_twai.c | 71 const struct device *clock_dev; member 170 if (!device_is_ready(twai_config->clock_dev)) { in can_esp32_twai_init() 181 err = clock_control_on(twai_config->clock_dev, twai_config->clock_subsys); in can_esp32_twai_init() 271 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(inst)), \
|
/Zephyr-Core-3.7.0/drivers/serial/ |
D | serial_esp32_usb.c | 43 const struct device *clock_dev; member 104 if (!device_is_ready(config->clock_dev)) { in serial_esp32_usb_init() 108 int ret = clock_control_on(config->clock_dev, config->clock_subsys); in serial_esp32_usb_init() 270 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)),
|
D | uart_mcux_iuart.c | 19 const struct device *clock_dev; member 232 if (!device_is_ready(config->clock_dev)) { in mcux_iuart_init() 236 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_iuart_init() 246 clock_control_on(config->clock_dev, config->clock_subsys); in mcux_iuart_init() 265 clock_control_off(config->clock_dev, config->clock_subsys); in mcux_iuart_init() 329 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.7.0/drivers/mdio/ |
D | mdio_nxp_s32_gmac.c | 29 const struct device *clock_dev; member 124 if (!device_is_ready(cfg->clock_dev)) { in mdio_nxp_s32_init() 129 if (clock_control_get_rate(cfg->clock_dev, cfg->clock_subsys, &data->clock_freq)) { in mdio_nxp_s32_init() 165 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.7.0/drivers/gpio/ |
D | gpio_rv32m1.c | 28 const struct device *clock_dev; member 275 if (config->clock_dev) { in gpio_rv32m1_init() 276 if (!device_is_ready(config->clock_dev)) { in gpio_rv32m1_init() 280 ret = clock_control_on(config->clock_dev, config->clock_subsys); in gpio_rv32m1_init() 318 .clock_dev = INST_DT_CLK_CTRL_DEV(n), \
|
/Zephyr-Core-3.7.0/drivers/counter/ |
D | counter_nxp_s32_sys_timer.c | 36 const struct device *clock_dev; member 150 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, &clock_rate)) { in nxp_s32_sys_timer_get_frequency() 166 if (!device_is_ready(config->clock_dev)) { in nxp_s32_sys_timer_init() 171 err = clock_control_on(config->clock_dev, config->clock_subsys); in nxp_s32_sys_timer_init() 266 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | counter_mcux_tpm.c | 26 const struct device *clock_dev; member 220 if (!device_is_ready(config->clock_dev)) { 225 if (clock_control_on(config->clock_dev, config->clock_subsys)) { 230 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, 268 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
D | counter_mcux_gpt.c | 28 const struct device *clock_dev; member 189 if (!device_is_ready(config->clock_dev)) { in mcux_gpt_init() 194 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_gpt_init() 232 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
/Zephyr-Core-3.7.0/drivers/ptp_clock/ |
D | ptp_clock_nxp_enet.c | 25 const struct device *clock_dev; member 103 (void) clock_control_get_rate(config->clock_dev, config->clock_subsys, in ptp_clock_nxp_enet_rate_adjust() 166 (void) clock_control_get_rate(config->clock_dev, config->clock_subsys, in nxp_enet_ptp_clock_callback() 253 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|