Lines Matching refs:bus_speed
192 unsigned int bus_speed; member
817 unsigned int bus_speed; in bcm_iproc_i2c_cfg_speed() local
820 "clock-frequency", &bus_speed); in bcm_iproc_i2c_cfg_speed()
824 bus_speed = 100000; in bcm_iproc_i2c_cfg_speed()
827 if (bus_speed < 100000) { in bcm_iproc_i2c_cfg_speed()
829 bus_speed); in bcm_iproc_i2c_cfg_speed()
833 } else if (bus_speed < 400000) { in bcm_iproc_i2c_cfg_speed()
834 bus_speed = 100000; in bcm_iproc_i2c_cfg_speed()
836 bus_speed = 400000; in bcm_iproc_i2c_cfg_speed()
839 iproc_i2c->bus_speed = bus_speed; in bcm_iproc_i2c_cfg_speed()
842 val |= (bus_speed == 400000) << TIM_CFG_MODE_400_SHIFT; in bcm_iproc_i2c_cfg_speed()
845 dev_info(iproc_i2c->device, "bus set to %u Hz\n", bus_speed); in bcm_iproc_i2c_cfg_speed()
995 val |= (iproc_i2c->bus_speed == 400000) << TIM_CFG_MODE_400_SHIFT; in bcm_iproc_i2c_resume()