Lines Matching refs:req

14 static int ec168_ctrl_msg(struct dvb_usb_device *d, struct ec168_req *req)
21 switch (req->cmd) {
27 request = req->cmd;
31 request = req->cmd;
51 KBUILD_MODNAME, req->cmd);
56 buf = kmalloc(req->size, GFP_KERNEL);
64 memcpy(buf, req->data, req->size);
73 ret = usb_control_msg(d->udev, pipe, request, requesttype, req->value,
74 req->index, buf, req->size, EC168_USB_TIMEOUT);
76 dvb_usb_dbg_usb_control_msg(d->udev, request, requesttype, req->value,
77 req->index, buf, req->size);
86 memcpy(req->data, buf, req->size);
105 struct ec168_req req;
122 req.cmd = READ_DEMOD;
123 req.value = 0;
124 req.index = 0xff00 + msg[i].buf[0]; /* reg */
125 req.size = msg[i+1].len; /* bytes to read */
126 req.data = &msg[i+1].buf[0];
127 ret = ec168_ctrl_msg(d, &req);
142 req.cmd = WRITE_DEMOD;
143 req.value = msg[i].buf[1]; /* val */
144 req.index = 0xff00 + msg[i].buf[0]; /* reg */
145 req.size = 0;
146 req.data = NULL;
147 ret = ec168_ctrl_msg(d, &req);
154 req.cmd = WRITE_I2C;
155 req.value = msg[i].buf[0]; /* val */
156 req.index = 0x0100 + msg[i].addr; /* I2C addr */
157 req.size = msg[i].len-1;
158 req.data = &msg[i].buf[1];
159 ret = ec168_ctrl_msg(d, &req);
189 struct ec168_req req = {GET_CONFIG, 0, 1, sizeof(reply), &reply};
192 ret = ec168_ctrl_msg(d, &req);
213 struct ec168_req req = {DOWNLOAD_FIRMWARE, 0, 0, 0, NULL};
222 req.size = len;
223 req.data = (u8 *) &fw->data[fw->size - remaining];
224 req.index = fw->size - remaining;
226 ret = ec168_ctrl_msg(d, &req);
235 req.size = 0;
238 req.cmd = SET_CONFIG;
239 req.value = 0;
240 req.index = 0x0001;
241 ret = ec168_ctrl_msg(d, &req);
246 req.cmd = GPIO;
247 req.value = 0;
248 req.index = 0x0206;
249 ret = ec168_ctrl_msg(d, &req);
254 req.cmd = WRITE_I2C;
255 req.value = 0;
256 req.index = 0x00c6;
257 ret = ec168_ctrl_msg(d, &req);
313 struct ec168_req req = {STREAMING_CTRL, 0x7f01, 0x0202, 0, NULL};
317 req.index = 0x0102;
318 return ec168_ctrl_msg(d, &req);