Lines Matching refs:bus_freq_hz
1786 static int npcm_i2c_init_clk(struct npcm_i2c *bus, u32 bus_freq_hz)
1798 bus_freq_khz = bus_freq_hz / 1000;
1799 bus->bus_freq = bus_freq_hz;
1802 if (bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ) {
1817 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ) {
1841 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_PLUS_FREQ) {
1870 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) {
1889 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) {
1910 u32 bus_freq_hz)
1917 bus_freq_hz < I2C_FREQ_MIN_HZ || bus_freq_hz > I2C_FREQ_MAX_HZ)
1936 ret = npcm_i2c_init_clk(bus, bus_freq_hz);