Lines Matching refs:bus_speed
190 unsigned int bus_speed; member
991 unsigned int bus_speed; in bcm_iproc_i2c_cfg_speed() local
994 "clock-frequency", &bus_speed); in bcm_iproc_i2c_cfg_speed()
998 bus_speed = I2C_MAX_STANDARD_MODE_FREQ; in bcm_iproc_i2c_cfg_speed()
1001 if (bus_speed < I2C_MAX_STANDARD_MODE_FREQ) { in bcm_iproc_i2c_cfg_speed()
1003 bus_speed); in bcm_iproc_i2c_cfg_speed()
1007 } else if (bus_speed < I2C_MAX_FAST_MODE_FREQ) { in bcm_iproc_i2c_cfg_speed()
1008 bus_speed = I2C_MAX_STANDARD_MODE_FREQ; in bcm_iproc_i2c_cfg_speed()
1010 bus_speed = I2C_MAX_FAST_MODE_FREQ; in bcm_iproc_i2c_cfg_speed()
1013 iproc_i2c->bus_speed = bus_speed; in bcm_iproc_i2c_cfg_speed()
1016 val |= (bus_speed == I2C_MAX_FAST_MODE_FREQ) << TIM_CFG_MODE_400_SHIFT; in bcm_iproc_i2c_cfg_speed()
1019 dev_info(iproc_i2c->device, "bus set to %u Hz\n", bus_speed); in bcm_iproc_i2c_cfg_speed()
1169 val |= (iproc_i2c->bus_speed == I2C_MAX_FAST_MODE_FREQ) << TIM_CFG_MODE_400_SHIFT; in bcm_iproc_i2c_resume()