Lines Matching refs:bus_freq_hz
1803 static int npcm_i2c_init_clk(struct npcm_i2c *bus, u32 bus_freq_hz)
1815 bus_freq_khz = bus_freq_hz / 1000;
1816 bus->bus_freq = bus_freq_hz;
1819 if (bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ) {
1834 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ) {
1858 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_PLUS_FREQ) {
1887 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) {
1906 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) {
1927 u32 bus_freq_hz)
1934 bus_freq_hz < I2C_FREQ_MIN_HZ || bus_freq_hz > I2C_FREQ_MAX_HZ)
1953 ret = npcm_i2c_init_clk(bus, bus_freq_hz);