Home
last modified time | relevance | path

Searched refs:bitrate_cfg (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/drivers/i2c/
Di2c_ifx_xmc4.c140 uint32_t bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in ifx_xmc4_i2c_get_config() local
142 *dev_config = I2C_MODE_CONTROLLER | bitrate_cfg; in ifx_xmc4_i2c_get_config()
174 uint32_t bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in ifx_xmc4_i2c_transfer() local
176 ret = ifx_xmc4_i2c_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in ifx_xmc4_i2c_transfer()
311 uint32_t bitrate_cfg; in ifx_xmc4_i2c_target_register() local
338 bitrate_cfg = i2c_map_dt_bitrate(bitrate); in ifx_xmc4_i2c_target_register()
340 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in ifx_xmc4_i2c_target_register()
343 if (ifx_xmc4_i2c_configure(dev, bitrate_cfg) != 0) { in ifx_xmc4_i2c_target_register()
Di2c_gpio.c157 uint32_t bitrate_cfg; in i2c_gpio_init() local
189 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_gpio_init()
191 I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_gpio_init()
Di2c_ll_stm32.c261 uint32_t bitrate_cfg; in i2c_stm32_recover_bus() local
292 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate) | I2C_MODE_CONTROLLER; in i2c_stm32_recover_bus()
293 error = i2c_bitbang_configure(&bitbang_ctx, bitrate_cfg); in i2c_stm32_recover_bus()
386 uint32_t bitrate_cfg; in i2c_stm32_init() local
433 bitrate_cfg = i2c_map_dt_bitrate(cfg->bitrate); in i2c_stm32_init()
435 ret = i2c_stm32_runtime_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_stm32_init()
Di2c_ambiq.c285 uint32_t bitrate_cfg; in i2c_ambiq_recover_bus() local
316 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate) | I2C_MODE_CONTROLLER; in i2c_ambiq_recover_bus()
317 error = i2c_bitbang_configure(&bitbang_ctx, bitrate_cfg); in i2c_ambiq_recover_bus()
341 uint32_t bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_ambiq_init() local
355 ret |= i2c_ambiq_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_ambiq_init()
Di2c_mcux_lpi2c.c265 uint32_t bitrate_cfg; in mcux_lpi2c_recover_bus() local
294 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate) | I2C_MODE_CONTROLLER; in mcux_lpi2c_recover_bus()
295 error = i2c_bitbang_configure(&bitbang_ctx, bitrate_cfg); in mcux_lpi2c_recover_bus()
500 uint32_t clock_freq, bitrate_cfg; in mcux_lpi2c_init() local
533 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in mcux_lpi2c_init()
535 error = mcux_lpi2c_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in mcux_lpi2c_init()
Di2c_cc32xx.c330 uint32_t bitrate_cfg; in i2c_cc32xx_init() local
364 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_cc32xx_init()
365 error = i2c_cc32xx_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_cc32xx_init()
Di2c_sam_twihs.c286 uint32_t bitrate_cfg; in i2c_sam_twihs_initialize() local
308 bitrate_cfg = i2c_map_dt_bitrate(dev_cfg->bitrate); in i2c_sam_twihs_initialize()
310 ret = i2c_sam_twihs_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_sam_twihs_initialize()
Di2c_sam_twi.c314 uint32_t bitrate_cfg; in i2c_sam_twi_initialize() local
337 bitrate_cfg = i2c_map_dt_bitrate(dev_cfg->bitrate); in i2c_sam_twi_initialize()
339 ret = i2c_sam_twi_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_sam_twi_initialize()
Di2c_gecko.c159 uint32_t bitrate_cfg; in i2c_gecko_init() local
175 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_gecko_init()
177 error = i2c_gecko_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_gecko_init()
Di2c_sam_twihs_rtio.c293 uint32_t bitrate_cfg; in i2c_sam_twihs_initialize() local
312 bitrate_cfg = i2c_map_dt_bitrate(dev_cfg->bitrate); in i2c_sam_twihs_initialize()
314 ret = i2c_sam_twihs_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_sam_twihs_initialize()
Di2c_imx.c341 uint32_t bitrate_cfg; in i2c_imx_init() local
351 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_imx_init()
353 error = i2c_imx_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_imx_init()
Di2c_mcux.c315 uint32_t clock_freq, bitrate_cfg; in i2c_mcux_init() local
328 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_mcux_init()
335 error = i2c_mcux_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_mcux_init()
Di2c_rcar.c319 uint32_t bitrate_cfg; in i2c_rcar_init() local
335 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_rcar_init()
337 ret = i2c_rcar_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_rcar_init()
Di2c_mcux_lpi2c_rtio.c291 uint32_t clock_freq, bitrate_cfg; in mcux_lpi2c_init() local
321 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in mcux_lpi2c_init()
323 error = mcux_lpi2c_do_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in mcux_lpi2c_init()
Di2c_mcux_flexcomm.c471 uint32_t clock_freq, bitrate_cfg; in mcux_flexcomm_init() local
510 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in mcux_flexcomm_init()
512 error = mcux_flexcomm_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in mcux_flexcomm_init()
Di2c_sam4l_twim.c540 uint32_t bitrate_cfg; in i2c_sam_twim_initialize() local
575 bitrate_cfg = i2c_map_dt_bitrate(cfg->bitrate); in i2c_sam_twim_initialize()
577 ret = i2c_sam_twim_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_sam_twim_initialize()
Di2c_mchp_xec_v2.c1054 uint32_t bitrate_cfg; in i2c_xec_init() local
1066 bitrate_cfg = i2c_map_dt_bitrate(cfg->clock_freq); in i2c_xec_init()
1067 if (!bitrate_cfg) { in i2c_xec_init()
1072 ret = i2c_xec_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_xec_init()
Di2c_gd32.c656 uint32_t bitrate_cfg; in i2c_gd32_init() local
677 bitrate_cfg = i2c_map_dt_bitrate(cfg->bitrate); in i2c_gd32_init()
679 i2c_gd32_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_gd32_init()
Di2c_ite_it8xxx2.c1103 uint32_t bitrate_cfg; in i2c_it8xxx2_init() local
1165 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_it8xxx2_init()
1168 bitrate_cfg = I2C_SPEED_DT << I2C_SPEED_SHIFT; in i2c_it8xxx2_init()
1171 error = i2c_it8xxx2_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_it8xxx2_init()
Di2c_ite_enhance.c1179 uint32_t bitrate_cfg; in i2c_enhance_init() local
1238 bitrate_cfg = i2c_map_dt_bitrate(config->bitrate); in i2c_enhance_init()
1241 bitrate_cfg = I2C_SPEED_DT << I2C_SPEED_SHIFT; in i2c_enhance_init()
1244 error = i2c_enhance_configure(dev, I2C_MODE_CONTROLLER | bitrate_cfg); in i2c_enhance_init()
Di2c_ll_stm32_v1.c494 uint32_t bitrate_cfg; in i2c_stm32_target_register() local
509 bitrate_cfg = i2c_map_dt_bitrate(cfg->bitrate); in i2c_stm32_target_register()
511 ret = i2c_stm32_runtime_configure(dev, bitrate_cfg); in i2c_stm32_target_register()
Di2c_ll_stm32_v2.c326 uint32_t bitrate_cfg; in i2c_stm32_target_register() local
341 bitrate_cfg = i2c_map_dt_bitrate(cfg->bitrate); in i2c_stm32_target_register()
343 ret = i2c_stm32_runtime_configure(dev, bitrate_cfg); in i2c_stm32_target_register()