Lines Matching refs:ven_req
162 struct VENDOR_REQUEST_IN ven_req; in cx231xx_send_usb_command() local
181 ven_req.wValue = in cx231xx_send_usb_command()
186 ven_req.wValue = in cx231xx_send_usb_command()
194 ven_req.bRequest = i2c_bus->nr + 4; in cx231xx_send_usb_command()
196 ven_req.bRequest = i2c_bus->nr; /* channel number, */ in cx231xx_send_usb_command()
201 ven_req.wIndex = 0; /* need check */ in cx231xx_send_usb_command()
204 ven_req.wIndex = (req_data->saddr_dat & 0xff); in cx231xx_send_usb_command()
207 ven_req.wIndex = req_data->saddr_dat; in cx231xx_send_usb_command()
212 ven_req.wLength = req_data->buf_size; in cx231xx_send_usb_command()
215 ven_req.bData = 0; in cx231xx_send_usb_command()
219 ven_req.direction = USB_DIR_IN; in cx231xx_send_usb_command()
220 memset(req_data->p_buffer, 0x00, ven_req.wLength); in cx231xx_send_usb_command()
222 ven_req.direction = USB_DIR_OUT; in cx231xx_send_usb_command()
225 ven_req.pBuff = req_data->p_buffer; in cx231xx_send_usb_command()
229 status = cx231xx_send_vendor_cmd(dev, &ven_req); in cx231xx_send_usb_command()
344 struct VENDOR_REQUEST_IN *ven_req) in cx231xx_send_vendor_cmd() argument
354 if ((ven_req->wLength > URB_MAX_CTRL_SIZE)) in cx231xx_send_vendor_cmd()
357 if (ven_req->direction) in cx231xx_send_vendor_cmd()
366 if ((ven_req->wLength > 4) && ((ven_req->bRequest == 0x4) || in cx231xx_send_vendor_cmd()
367 (ven_req->bRequest == 0x5) || in cx231xx_send_vendor_cmd()
368 (ven_req->bRequest == 0x6))) { in cx231xx_send_vendor_cmd()
370 pdata = ven_req->pBuff; in cx231xx_send_vendor_cmd()
373 unsend_size = ven_req->wLength; in cx231xx_send_vendor_cmd()
376 ven_req->wValue = ven_req->wValue & 0xFFFB; in cx231xx_send_vendor_cmd()
377 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x2; in cx231xx_send_vendor_cmd()
378 ret = __usb_control_msg(dev, pipe, ven_req->bRequest, in cx231xx_send_vendor_cmd()
379 ven_req->direction | USB_TYPE_VENDOR | USB_RECIP_DEVICE, in cx231xx_send_vendor_cmd()
380 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
385 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x42; in cx231xx_send_vendor_cmd()
389 ven_req->bRequest, in cx231xx_send_vendor_cmd()
390 ven_req->direction | USB_TYPE_VENDOR | USB_RECIP_DEVICE, in cx231xx_send_vendor_cmd()
391 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
397 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x40; in cx231xx_send_vendor_cmd()
399 ret = __usb_control_msg(dev, pipe, ven_req->bRequest, in cx231xx_send_vendor_cmd()
400 ven_req->direction | USB_TYPE_VENDOR | USB_RECIP_DEVICE, in cx231xx_send_vendor_cmd()
401 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
404 ret = __usb_control_msg(dev, pipe, ven_req->bRequest, in cx231xx_send_vendor_cmd()
405 ven_req->direction | USB_TYPE_VENDOR | USB_RECIP_DEVICE, in cx231xx_send_vendor_cmd()
406 ven_req->wValue, ven_req->wIndex, in cx231xx_send_vendor_cmd()
407 ven_req->pBuff, ven_req->wLength, HZ); in cx231xx_send_vendor_cmd()
1433 struct VENDOR_REQUEST_IN ven_req; in cx231xx_send_gpio_cmd() local
1436 ven_req.wValue = (u16) (gpio_bit >> 16 & 0xffff); in cx231xx_send_gpio_cmd()
1441 ven_req.bRequest = VRT_GET_GPIO; /* 0x8 gpio */ in cx231xx_send_gpio_cmd()
1443 ven_req.bRequest = VRT_SET_GPIO; /* 0x9 gpio */ in cx231xx_send_gpio_cmd()
1446 ven_req.bRequest = VRT_GET_GPIE; /* 0xa gpie */ in cx231xx_send_gpio_cmd()
1448 ven_req.bRequest = VRT_SET_GPIE; /* 0xb gpie */ in cx231xx_send_gpio_cmd()
1452 ven_req.wIndex = (u16) (gpio_bit & 0xffff); in cx231xx_send_gpio_cmd()
1455 ven_req.wLength = len; in cx231xx_send_gpio_cmd()
1458 ven_req.bData = 0; in cx231xx_send_gpio_cmd()
1461 ven_req.pBuff = gpio_val; in cx231xx_send_gpio_cmd()
1465 ven_req.direction = USB_DIR_IN; in cx231xx_send_gpio_cmd()
1466 memset(ven_req.pBuff, 0x00, ven_req.wLength); in cx231xx_send_gpio_cmd()
1468 ven_req.direction = USB_DIR_OUT; in cx231xx_send_gpio_cmd()
1472 status = cx231xx_send_vendor_cmd(dev, &ven_req); in cx231xx_send_gpio_cmd()