Lines Matching refs:msg

65 			const struct i2c_msg *msg, int tuner_type)  in is_tuner()  argument
72 if (msg->addr != dev->board.tuner_addr) in is_tuner()
85 const struct i2c_msg *msg) in cx231xx_i2c_send_bytes() argument
98 if (is_tuner(dev, bus, msg, TUNER_XC5000)) { in cx231xx_i2c_send_bytes()
99 size = msg->len; in cx231xx_i2c_send_bytes()
106 if (msg->len >= 2) in cx231xx_i2c_send_bytes()
107 saddr = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_send_bytes()
108 else if (msg->len == 1) in cx231xx_i2c_send_bytes()
109 saddr = msg->buf[0]; in cx231xx_i2c_send_bytes()
132 msg->addr, msg->len, saddr); in cx231xx_i2c_send_bytes()
135 msg->addr, in cx231xx_i2c_send_bytes()
136 msg->buf, in cx231xx_i2c_send_bytes()
137 msg->len); in cx231xx_i2c_send_bytes()
146 buf_ptr = (u8 *) (msg->buf + 1); in cx231xx_i2c_send_bytes()
150 req_data.dev_addr = msg->addr; in cx231xx_i2c_send_bytes()
151 req_data.direction = msg->flags; in cx231xx_i2c_send_bytes()
153 req_data.saddr_dat = msg->buf[0]; in cx231xx_i2c_send_bytes()
177 req_data.dev_addr = msg->addr; in cx231xx_i2c_send_bytes()
178 req_data.direction = msg->flags; in cx231xx_i2c_send_bytes()
181 req_data.buf_size = msg->len; in cx231xx_i2c_send_bytes()
182 req_data.p_buffer = msg->buf; in cx231xx_i2c_send_bytes()
196 const struct i2c_msg *msg) in cx231xx_i2c_recv_bytes() argument
205 if (is_tuner(dev, bus, msg, TUNER_XC5000)) { in cx231xx_i2c_recv_bytes()
206 if (msg->len == 2) in cx231xx_i2c_recv_bytes()
207 saddr = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_recv_bytes()
208 else if (msg->len == 1) in cx231xx_i2c_recv_bytes()
209 saddr = msg->buf[0]; in cx231xx_i2c_recv_bytes()
218 msg->buf[0] = 0; in cx231xx_i2c_recv_bytes()
219 if (msg->len == 2) in cx231xx_i2c_recv_bytes()
220 msg->buf[1] = 0; in cx231xx_i2c_recv_bytes()
234 msg->addr, msg->len, in cx231xx_i2c_recv_bytes()
235 msg->buf[0] << 8 | msg->buf[1]); in cx231xx_i2c_recv_bytes()
238 dev->cx231xx_gpio_i2c_write(dev, msg->addr, in cx231xx_i2c_recv_bytes()
239 msg->buf, in cx231xx_i2c_recv_bytes()
240 msg->len); in cx231xx_i2c_recv_bytes()
242 dev->cx231xx_gpio_i2c_read(dev, msg->addr, in cx231xx_i2c_recv_bytes()
243 msg->buf, in cx231xx_i2c_recv_bytes()
244 msg->len); in cx231xx_i2c_recv_bytes()
250 req_data.dev_addr = msg->addr; in cx231xx_i2c_recv_bytes()
251 req_data.direction = msg->flags; in cx231xx_i2c_recv_bytes()
252 req_data.saddr_len = msg->len; in cx231xx_i2c_recv_bytes()
253 req_data.saddr_dat = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_recv_bytes()
254 req_data.buf_size = msg->len; in cx231xx_i2c_recv_bytes()
255 req_data.p_buffer = msg->buf; in cx231xx_i2c_recv_bytes()
263 req_data.dev_addr = msg->addr; in cx231xx_i2c_recv_bytes()
264 req_data.direction = msg->flags; in cx231xx_i2c_recv_bytes()
267 req_data.buf_size = msg->len; in cx231xx_i2c_recv_bytes()
268 req_data.p_buffer = msg->buf; in cx231xx_i2c_recv_bytes()
346 const struct i2c_msg *msg) in cx231xx_i2c_check_for_device() argument
355 req_data.dev_addr = msg->addr; in cx231xx_i2c_check_for_device()