Lines Matching refs:len
46 __u8 reg, char *buf, int len) in tm6000_i2c_send_regs() argument
57 if (len < 1 || len > i2c_packet_limit) { in tm6000_i2c_send_regs()
59 len, i2c_packet_limit); in tm6000_i2c_send_regs()
66 addr | reg << 8, 0, buf, len); in tm6000_i2c_send_regs()
79 __u8 reg, char *buf, int len) in tm6000_i2c_recv_regs() argument
91 if (len < 1 || len > i2c_packet_limit) { in tm6000_i2c_recv_regs()
93 len, i2c_packet_limit); in tm6000_i2c_recv_regs()
103 len += 1; in tm6000_i2c_recv_regs()
106 REQ_16_SET_GET_I2C_WR1_RDN, addr | reg << 8, 0, b, len); in tm6000_i2c_recv_regs()
111 REQ_16_SET_GET_I2C_WR1_RDN, addr | reg << 8, 0, buf, len); in tm6000_i2c_recv_regs()
123 __u16 reg, char *buf, int len) in tm6000_i2c_recv_regs16() argument
128 if (!buf || len != 2) in tm6000_i2c_recv_regs16()
145 reg, 0, buf, len); in tm6000_i2c_recv_regs16()
149 addr, reg, buf, len); in tm6000_i2c_recv_regs16()
168 i == num - 1 ? "stop" : "nonstop", addr, msgs[i].len); in tm6000_i2c_xfer()
180 } else if (i + 1 < num && msgs[i].len <= 2 && in tm6000_i2c_xfer()
185 for (byte = 0; byte < msgs[i].len; byte++) in tm6000_i2c_xfer()
189 msgs[i + 1].len); in tm6000_i2c_xfer()
191 if (msgs[i].len == 2) { in tm6000_i2c_xfer()
194 msgs[i + 1].buf, msgs[i + 1].len); in tm6000_i2c_xfer()
197 msgs[i + 1].buf, msgs[i + 1].len); in tm6000_i2c_xfer()
207 for (byte = 0; byte < msgs[i].len; byte++) in tm6000_i2c_xfer()
212 for (byte = 0; byte < msgs[i].len; byte++) in tm6000_i2c_xfer()
215 msgs[i].buf + 1, msgs[i].len - 1); in tm6000_i2c_xfer()