Lines Matching full:adr
24 static int __maybe_unused i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io() argument
27 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_io()
29 { .addr = adr, .flags = I2C_M_RD, in i2c_io()
35 static int __maybe_unused i2c_write(struct i2c_adapter *adap, u8 adr, in i2c_write() argument
38 struct i2c_msg msg = { .addr = adr, .flags = 0, in i2c_write()
44 static int __maybe_unused i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read() argument
46 struct i2c_msg msgs[1] = { { .addr = adr, .flags = I2C_M_RD, in i2c_read()
53 u8 adr, u8 reg, u8 *val, u8 len) in i2c_read_regs() argument
55 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read_regs()
57 { .addr = adr, .flags = I2C_M_RD, in i2c_read_regs()
64 u8 adr, u16 reg, u8 *val, u8 len) in i2c_read_regs16() argument
67 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read_regs16()
69 { .addr = adr, .flags = I2C_M_RD, in i2c_read_regs16()
76 u8 adr, u16 reg, u8 val) in i2c_write_reg16() argument
80 return i2c_write(adap, adr, msg, 3); in i2c_write_reg16()
84 u8 adr, u8 reg, u8 val) in i2c_write_reg() argument
88 return i2c_write(adap, adr, msg, 2); in i2c_write_reg()
92 u8 adr, u16 reg, u8 *val) in i2c_read_reg16() argument
94 return i2c_read_regs16(adapter, adr, reg, val, 1); in i2c_read_reg16()
98 u8 adr, u8 reg, u8 *val) in i2c_read_reg() argument
100 return i2c_read_regs(adapter, adr, reg, val, 1); in i2c_read_reg()