Lines Matching refs:req
26 static int ce6230_ctrl_msg(struct dvb_usb_device *d, struct usb_req *req) in ce6230_ctrl_msg() argument
36 request = req->cmd; in ce6230_ctrl_msg()
37 value = req->value; in ce6230_ctrl_msg()
38 index = req->index; in ce6230_ctrl_msg()
40 switch (req->cmd) { in ce6230_ctrl_msg()
53 KBUILD_MODNAME, req->cmd); in ce6230_ctrl_msg()
58 buf = kmalloc(req->data_len, GFP_KERNEL); in ce6230_ctrl_msg()
66 memcpy(buf, req->data, req->data_len); in ce6230_ctrl_msg()
76 buf, req->data_len, CE6230_USB_TIMEOUT); in ce6230_ctrl_msg()
79 buf, req->data_len); in ce6230_ctrl_msg()
89 memcpy(req->data, buf, req->data_len); in ce6230_ctrl_msg()
104 struct usb_req req; in ce6230_i2c_master_xfer() local
109 memset(&req, 0, sizeof(req)); in ce6230_i2c_master_xfer()
118 req.cmd = DEMOD_READ; in ce6230_i2c_master_xfer()
119 req.value = msg[i].addr >> 1; in ce6230_i2c_master_xfer()
120 req.index = msg[i].buf[0]; in ce6230_i2c_master_xfer()
121 req.data_len = msg[i+1].len; in ce6230_i2c_master_xfer()
122 req.data = &msg[i+1].buf[0]; in ce6230_i2c_master_xfer()
123 ret = ce6230_ctrl_msg(d, &req); in ce6230_i2c_master_xfer()
134 req.cmd = DEMOD_WRITE; in ce6230_i2c_master_xfer()
135 req.value = msg[i].addr >> 1; in ce6230_i2c_master_xfer()
136 req.index = msg[i].buf[0]; in ce6230_i2c_master_xfer()
137 req.data_len = msg[i].len-1; in ce6230_i2c_master_xfer()
138 req.data = &msg[i].buf[1]; in ce6230_i2c_master_xfer()
139 ret = ce6230_ctrl_msg(d, &req); in ce6230_i2c_master_xfer()
141 req.cmd = I2C_WRITE; in ce6230_i2c_master_xfer()
142 req.value = 0x2000 + (msg[i].addr >> 1); in ce6230_i2c_master_xfer()
143 req.index = 0x0000; in ce6230_i2c_master_xfer()
144 req.data_len = msg[i].len; in ce6230_i2c_master_xfer()
145 req.data = &msg[i].buf[0]; in ce6230_i2c_master_xfer()
146 ret = ce6230_ctrl_msg(d, &req); in ce6230_i2c_master_xfer()