Lines Matching refs:i2c_speed
834 (tscl_h >= stm32_i2c_charac[i2c_speed].hscl_min) && \
857 uint32_t i2c_compute_scll_sclh(uint32_t clock_src_freq, uint32_t i2c_speed) in i2c_compute_scll_sclh() argument
869 ti2cspeed = (NSEC_PER_SEC + (stm32_i2c_charac[i2c_speed].freq / 2U)) / in i2c_compute_scll_sclh()
870 stm32_i2c_charac[i2c_speed].freq; in i2c_compute_scll_sclh()
877 dnf_delay = stm32_i2c_charac[i2c_speed].dnf * ti2cclk; in i2c_compute_scll_sclh()
879 clk_max = NSEC_PER_SEC / stm32_i2c_charac[i2c_speed].freq_min; in i2c_compute_scll_sclh()
880 clk_min = NSEC_PER_SEC / stm32_i2c_charac[i2c_speed].freq_max; in i2c_compute_scll_sclh()
897 if ((tscl_l > stm32_i2c_charac[i2c_speed].lscl_min) && in i2c_compute_scll_sclh()
909 tscl_h + stm32_i2c_charac[i2c_speed].trise + in i2c_compute_scll_sclh()
910 stm32_i2c_charac[i2c_speed].tfall; in i2c_compute_scll_sclh()
950 void i2c_compute_presc_scldel_sdadel(uint32_t clock_src_freq, uint32_t i2c_speed) in i2c_compute_presc_scldel_sdadel() argument
971 tsdadel_min = (int32_t)stm32_i2c_charac[i2c_speed].tfall + in i2c_compute_presc_scldel_sdadel()
972 (int32_t)stm32_i2c_charac[i2c_speed].hddat_min - in i2c_compute_presc_scldel_sdadel()
974 (int32_t)(((int32_t)stm32_i2c_charac[i2c_speed].dnf + 3) * in i2c_compute_presc_scldel_sdadel()
977 tsdadel_max = (int32_t)stm32_i2c_charac[i2c_speed].vddat_max - in i2c_compute_presc_scldel_sdadel()
978 (int32_t)stm32_i2c_charac[i2c_speed].trise - in i2c_compute_presc_scldel_sdadel()
980 (int32_t)(((int32_t)stm32_i2c_charac[i2c_speed].dnf + 4) * in i2c_compute_presc_scldel_sdadel()
984 tscldel_min = (int32_t)stm32_i2c_charac[i2c_speed].trise + in i2c_compute_presc_scldel_sdadel()
985 (int32_t)stm32_i2c_charac[i2c_speed].sudat_min; in i2c_compute_presc_scldel_sdadel()
1050 data->current_timing.i2c_speed = i2c_freq; in stm32_i2c_configure_timing()
1072 uint32_t speed = i2c_map_dt_bitrate(preset->i2c_speed); in stm32_i2c_configure_timing()