Lines Matching refs:bus
46 struct i2c_bus *bus; member
70 LOCK_I2C_BUS(dev->bus); in saa7111_write()
71 i2c_start(dev->bus); in saa7111_write()
72 i2c_sendbyte(dev->bus, dev->addr, I2C_DELAY); in saa7111_write()
73 i2c_sendbyte(dev->bus, subaddr, I2C_DELAY); in saa7111_write()
74 ack = i2c_sendbyte(dev->bus, data, I2C_DELAY); in saa7111_write()
76 i2c_stop(dev->bus); in saa7111_write()
77 UNLOCK_I2C_BUS(dev->bus); in saa7111_write()
88 LOCK_I2C_BUS(dev->bus); in saa7111_write_block()
89 i2c_start(dev->bus); in saa7111_write_block()
90 i2c_sendbyte(dev->bus, dev->addr, I2C_DELAY); in saa7111_write_block()
91 ack = i2c_sendbyte(dev->bus, (subaddr = *data++), I2C_DELAY); in saa7111_write_block()
92 ack = i2c_sendbyte(dev->bus, (dev->reg[subaddr] = *data++), I2C_DELAY); in saa7111_write_block()
97 i2c_sendbyte(dev->bus, in saa7111_write_block()
102 i2c_stop(dev->bus); in saa7111_write_block()
103 UNLOCK_I2C_BUS(dev->bus); in saa7111_write_block()
112 LOCK_I2C_BUS(dev->bus); in saa7111_read()
113 i2c_start(dev->bus); in saa7111_read()
114 i2c_sendbyte(dev->bus, dev->addr, I2C_DELAY); in saa7111_read()
115 i2c_sendbyte(dev->bus, subaddr, I2C_DELAY); in saa7111_read()
116 i2c_start(dev->bus); in saa7111_read()
117 i2c_sendbyte(dev->bus, dev->addr | 1, I2C_DELAY); in saa7111_read()
118 data = i2c_readbyte(dev->bus, 1); in saa7111_read()
119 i2c_stop(dev->bus); in saa7111_read()
120 UNLOCK_I2C_BUS(dev->bus); in saa7111_read()
173 decoder->bus = device->bus; in saa7111_attach()