Lines Matching full:adr
44 static int i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io() argument
47 struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, in i2c_io()
49 {.addr = adr, .flags = I2C_M_RD, in i2c_io()
54 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 *data, int len) in i2c_write() argument
56 struct i2c_msg msg = {.addr = adr, .flags = 0, in i2c_write()
62 static int i2c_write_reg(struct i2c_adapter *adap, u8 adr, in i2c_write_reg() argument
67 return i2c_write(adap, adr, msg, 2); in i2c_write_reg()
70 static int i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read() argument
72 struct i2c_msg msgs[1] = {{.addr = adr, .flags = I2C_M_RD, in i2c_read()
77 static int i2c_read_reg16(struct i2c_adapter *adapter, u8 adr, in i2c_read_reg16() argument
81 struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, in i2c_read_reg16()
83 {.addr = adr, .flags = I2C_M_RD, in i2c_read_reg16()
89 u8 adr, u8 reg, u8 *val, u8 len) in i2c_read_regs() argument
91 struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, in i2c_read_regs()
93 {.addr = adr, .flags = I2C_M_RD, in i2c_read_regs()
99 static int i2c_read_reg(struct i2c_adapter *adapter, u8 adr, u8 reg, u8 *val) in i2c_read_reg() argument
101 return i2c_read_regs(adapter, adr, reg, val, 1); in i2c_read_reg()
153 u8 adr = 4 + ((chan->number & 1) ? 0x63 : 0x60); in tuner_attach_stv6111() local
155 fe = dvb_attach(stv6111_attach, chan->fe, i2c, adr); in tuner_attach_stv6111()
157 fe = dvb_attach(stv6111_attach, chan->fe, i2c, adr & ~4); in tuner_attach_stv6111()
202 unsigned short adr) in tuner_tda18212_ping() argument
212 if (i2c_read_regs(i2c, adr, subaddr, tda_id, sizeof(tda_id)) < 0) in tuner_tda18212_ping()
214 if (i2c_read_regs(i2c, adr, subaddr, tda_id, sizeof(tda_id)) < 0) in tuner_tda18212_ping()
313 .adr = 0x68,
334 cfg.adr = 0x6c; in demod_attach_stv0910()
496 config.adr = 0x29 + (chan->number ^ 2); in demod_attach_drxk()
788 u8 adr, u16 reg, u8 data) in i2c_write_eeprom() argument
792 struct i2c_msg msg = {.addr = adr, .flags = 0, .buf = m, in i2c_write_eeprom()
803 u8 adr, u16 reg, u8 *data, int len) in i2c_read_eeprom() argument
807 struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, in i2c_read_eeprom()
809 {.addr = adr, .flags = I2C_M_RD, in i2c_read_eeprom()