Lines Matching refs:req_data
157 struct cx231xx_i2c_xfer_data *req_data) in cx231xx_send_usb_command() argument
176 saddr_len = req_data->saddr_len; in cx231xx_send_usb_command()
179 ven_req.wValue = (req_data->dev_addr << 9 | _i2c_period << 4 | in cx231xx_send_usb_command()
184 if (req_data->direction & I2C_M_RD) { in cx231xx_send_usb_command()
196 ven_req.wIndex = (req_data->saddr_dat & 0xff); in cx231xx_send_usb_command()
199 ven_req.wIndex = req_data->saddr_dat; in cx231xx_send_usb_command()
204 ven_req.wLength = req_data->buf_size; in cx231xx_send_usb_command()
210 if (req_data->direction) { in cx231xx_send_usb_command()
212 memset(req_data->p_buffer, 0x00, ven_req.wLength); in cx231xx_send_usb_command()
217 ven_req.pBuff = req_data->p_buffer; in cx231xx_send_usb_command()
1573 struct cx231xx_i2c_xfer_data req_data; in cx231xx_read_i2c_master() local
1582 req_data.dev_addr = dev_addr >> 1; in cx231xx_read_i2c_master()
1583 req_data.direction = I2C_M_RD; in cx231xx_read_i2c_master()
1584 req_data.saddr_len = saddr_len; in cx231xx_read_i2c_master()
1585 req_data.saddr_dat = saddr; in cx231xx_read_i2c_master()
1586 req_data.buf_size = data_len; in cx231xx_read_i2c_master()
1587 req_data.p_buffer = (u8 *) value; in cx231xx_read_i2c_master()
1592 &req_data); in cx231xx_read_i2c_master()
1595 &req_data); in cx231xx_read_i2c_master()
1598 &req_data); in cx231xx_read_i2c_master()
1620 struct cx231xx_i2c_xfer_data req_data; in cx231xx_write_i2c_master() local
1633 req_data.dev_addr = dev_addr >> 1; in cx231xx_write_i2c_master()
1634 req_data.direction = 0; in cx231xx_write_i2c_master()
1635 req_data.saddr_len = saddr_len; in cx231xx_write_i2c_master()
1636 req_data.saddr_dat = saddr; in cx231xx_write_i2c_master()
1637 req_data.buf_size = data_len; in cx231xx_write_i2c_master()
1638 req_data.p_buffer = value; in cx231xx_write_i2c_master()
1643 &req_data); in cx231xx_write_i2c_master()
1646 &req_data); in cx231xx_write_i2c_master()
1649 &req_data); in cx231xx_write_i2c_master()
1658 struct cx231xx_i2c_xfer_data req_data; in cx231xx_read_i2c_data() local
1667 req_data.dev_addr = dev_addr >> 1; in cx231xx_read_i2c_data()
1668 req_data.direction = I2C_M_RD; in cx231xx_read_i2c_data()
1669 req_data.saddr_len = saddr_len; in cx231xx_read_i2c_data()
1670 req_data.saddr_dat = saddr; in cx231xx_read_i2c_data()
1671 req_data.buf_size = data_len; in cx231xx_read_i2c_data()
1672 req_data.p_buffer = (u8 *) value; in cx231xx_read_i2c_data()
1675 status = dev->cx231xx_send_usb_command(&dev->i2c_bus[0], &req_data); in cx231xx_read_i2c_data()
1695 struct cx231xx_i2c_xfer_data req_data; in cx231xx_write_i2c_data() local
1708 req_data.dev_addr = dev_addr >> 1; in cx231xx_write_i2c_data()
1709 req_data.direction = 0; in cx231xx_write_i2c_data()
1710 req_data.saddr_len = saddr_len; in cx231xx_write_i2c_data()
1711 req_data.saddr_dat = saddr; in cx231xx_write_i2c_data()
1712 req_data.buf_size = data_len; in cx231xx_write_i2c_data()
1713 req_data.p_buffer = value; in cx231xx_write_i2c_data()
1716 status = dev->cx231xx_send_usb_command(&dev->i2c_bus[0], &req_data); in cx231xx_write_i2c_data()