Lines Matching refs:bus_freq_hz
1807 static int npcm_i2c_init_clk(struct npcm_i2c *bus, u32 bus_freq_hz)
1819 bus_freq_khz = bus_freq_hz / 1000;
1820 bus->bus_freq = bus_freq_hz;
1823 if (bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ) {
1838 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ) {
1862 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_PLUS_FREQ) {
1891 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) {
1910 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) {
1931 u32 bus_freq_hz)
1938 bus_freq_hz < I2C_FREQ_MIN_HZ || bus_freq_hz > I2C_FREQ_MAX_HZ)
1957 ret = npcm_i2c_init_clk(bus, bus_freq_hz);