/Zephyr-latest/drivers/i2c/ |
D | i2c_ifx_xmc4.c | 140 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()
|
D | i2c_gpio.c | 157 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()
|
D | i2c_ll_stm32.c | 261 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()
|
D | i2c_ambiq.c | 285 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()
|
D | i2c_mcux_lpi2c.c | 265 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()
|
D | i2c_cc32xx.c | 330 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()
|
D | i2c_sam_twihs.c | 286 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()
|
D | i2c_sam_twi.c | 314 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()
|
D | i2c_gecko.c | 159 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()
|
D | i2c_sam_twihs_rtio.c | 293 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()
|
D | i2c_imx.c | 341 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()
|
D | i2c_mcux.c | 315 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()
|
D | i2c_rcar.c | 319 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()
|
D | i2c_mcux_lpi2c_rtio.c | 291 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()
|
D | i2c_mcux_flexcomm.c | 471 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()
|
D | i2c_sam4l_twim.c | 540 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()
|
D | i2c_mchp_xec_v2.c | 1054 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()
|
D | i2c_gd32.c | 656 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()
|
D | i2c_ite_it8xxx2.c | 1103 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()
|
D | i2c_ite_enhance.c | 1179 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()
|
D | i2c_ll_stm32_v1.c | 494 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()
|
D | i2c_ll_stm32_v2.c | 326 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()
|