Lines Matching refs:chip
64 static int fti2c010_reset(struct fti2c010_chip *chip) in fti2c010_reset() argument
68 struct fti2c010_regs *regs = chip->regs; in fti2c010_reset()
84 static int fti2c010_wait(struct fti2c010_chip *chip, uint32_t mask) in fti2c010_wait() argument
88 struct fti2c010_regs *regs = chip->regs; in fti2c010_wait()
101 static unsigned int set_i2c_bus_speed(struct fti2c010_chip *chip, in set_i2c_bus_speed() argument
104 struct fti2c010_regs *regs = chip->regs; in set_i2c_bus_speed()
129 struct fti2c010_chip *chip = chip_list + adap->hwadapnr; in fti2c010_init() local
144 fti2c010_reset(chip); in fti2c010_init()
146 set_i2c_bus_speed(chip, speed); in fti2c010_init()
157 struct fti2c010_chip *chip = chip_list + adap->hwadapnr; in fti2c010_probe() local
158 struct fti2c010_regs *regs = chip->regs; in fti2c010_probe()
164 ret = fti2c010_wait(chip, SR_DT); in fti2c010_probe()
171 ret = fti2c010_wait(chip, SR_DT); in fti2c010_probe()
195 struct fti2c010_chip *chip = chip_list + adap->hwadapnr; in fti2c010_read() local
196 struct fti2c010_regs *regs = chip->regs; in fti2c010_read()
209 ret = fti2c010_wait(chip, SR_DT); in fti2c010_read()
219 ret = fti2c010_wait(chip, SR_DT); in fti2c010_read()
231 ret = fti2c010_wait(chip, SR_DT); in fti2c010_read()
245 ret = fti2c010_wait(chip, stat); in fti2c010_read()
257 struct fti2c010_chip *chip = chip_list + adap->hwadapnr; in fti2c010_write() local
258 struct fti2c010_regs *regs = chip->regs; in fti2c010_write()
271 ret = fti2c010_wait(chip, SR_DT); in fti2c010_write()
281 ret = fti2c010_wait(chip, SR_DT); in fti2c010_write()
296 ret = fti2c010_wait(chip, SR_DT); in fti2c010_write()
307 struct fti2c010_chip *chip = chip_list + adap->hwadapnr; in fti2c010_set_bus_speed() local
310 fti2c010_reset(chip); in fti2c010_set_bus_speed()
311 ret = set_i2c_bus_speed(chip, speed); in fti2c010_set_bus_speed()