Lines Matching refs:req_data

80 	struct cx231xx_i2c_xfer_data req_data;  in cx231xx_i2c_send_bytes()  local
141 req_data.dev_addr = msg->addr; in cx231xx_i2c_send_bytes()
142 req_data.direction = msg->flags; in cx231xx_i2c_send_bytes()
143 req_data.saddr_len = saddr_len; in cx231xx_i2c_send_bytes()
144 req_data.saddr_dat = msg->buf[0]; in cx231xx_i2c_send_bytes()
145 req_data.buf_size = size > 16 ? 16 : size; in cx231xx_i2c_send_bytes()
146 req_data.p_buffer = (u8 *) (buf_ptr + loop * 16); in cx231xx_i2c_send_bytes()
152 status = dev->cx231xx_send_usb_command(bus, &req_data); in cx231xx_i2c_send_bytes()
168 req_data.dev_addr = msg->addr; in cx231xx_i2c_send_bytes()
169 req_data.direction = msg->flags; in cx231xx_i2c_send_bytes()
170 req_data.saddr_len = 0; in cx231xx_i2c_send_bytes()
171 req_data.saddr_dat = 0; in cx231xx_i2c_send_bytes()
172 req_data.buf_size = msg->len; in cx231xx_i2c_send_bytes()
173 req_data.p_buffer = msg->buf; in cx231xx_i2c_send_bytes()
176 status = dev->cx231xx_send_usb_command(bus, &req_data); in cx231xx_i2c_send_bytes()
191 struct cx231xx_i2c_xfer_data req_data; in cx231xx_i2c_recv_bytes() local
241 req_data.dev_addr = msg->addr; in cx231xx_i2c_recv_bytes()
242 req_data.direction = msg->flags; in cx231xx_i2c_recv_bytes()
243 req_data.saddr_len = msg->len; in cx231xx_i2c_recv_bytes()
244 req_data.saddr_dat = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_recv_bytes()
245 req_data.buf_size = msg->len; in cx231xx_i2c_recv_bytes()
246 req_data.p_buffer = msg->buf; in cx231xx_i2c_recv_bytes()
249 status = dev->cx231xx_send_usb_command(bus, &req_data); in cx231xx_i2c_recv_bytes()
254 req_data.dev_addr = msg->addr; in cx231xx_i2c_recv_bytes()
255 req_data.direction = msg->flags; in cx231xx_i2c_recv_bytes()
256 req_data.saddr_len = 0; in cx231xx_i2c_recv_bytes()
257 req_data.saddr_dat = 0; in cx231xx_i2c_recv_bytes()
258 req_data.buf_size = msg->len; in cx231xx_i2c_recv_bytes()
259 req_data.p_buffer = msg->buf; in cx231xx_i2c_recv_bytes()
262 status = dev->cx231xx_send_usb_command(bus, &req_data); in cx231xx_i2c_recv_bytes()
278 struct cx231xx_i2c_xfer_data req_data; in cx231xx_i2c_recv_bytes_with_saddr() local
319 req_data.dev_addr = msg2->addr; in cx231xx_i2c_recv_bytes_with_saddr()
320 req_data.direction = msg2->flags; in cx231xx_i2c_recv_bytes_with_saddr()
321 req_data.saddr_len = msg1->len; in cx231xx_i2c_recv_bytes_with_saddr()
322 req_data.saddr_dat = saddr; in cx231xx_i2c_recv_bytes_with_saddr()
323 req_data.buf_size = msg2->len; in cx231xx_i2c_recv_bytes_with_saddr()
324 req_data.p_buffer = msg2->buf; in cx231xx_i2c_recv_bytes_with_saddr()
327 status = dev->cx231xx_send_usb_command(bus, &req_data); in cx231xx_i2c_recv_bytes_with_saddr()
341 struct cx231xx_i2c_xfer_data req_data; in cx231xx_i2c_check_for_device() local
345 req_data.dev_addr = msg->addr; in cx231xx_i2c_check_for_device()
346 req_data.direction = msg->flags; in cx231xx_i2c_check_for_device()
347 req_data.saddr_len = 0; in cx231xx_i2c_check_for_device()
348 req_data.saddr_dat = 0; in cx231xx_i2c_check_for_device()
349 req_data.buf_size = 0; in cx231xx_i2c_check_for_device()
350 req_data.p_buffer = NULL; in cx231xx_i2c_check_for_device()
353 status = dev->cx231xx_send_usb_command(bus, &req_data); in cx231xx_i2c_check_for_device()