Home
last modified time | relevance | path

Searched refs:bRequestType (Results 1 – 25 of 162) sorted by relevance

1234567

/OK3568_Linux_fs/kernel/drivers/usb/common/
H A Ddebug.c13 static void usb_decode_get_status(__u8 bRequestType, __u16 wIndex, in usb_decode_get_status() argument
16 switch (bRequestType & USB_RECIP_MASK) { in usb_decode_get_status()
71 static void usb_decode_set_clear_feature(__u8 bRequestType, in usb_decode_set_clear_feature() argument
75 switch (bRequestType & USB_RECIP_MASK) { in usb_decode_set_clear_feature()
104 static void usb_decode_get_set_descriptor(__u8 bRequestType, __u8 bRequest, in usb_decode_get_set_descriptor() argument
210 static void usb_decode_ctrl_generic(char *str, size_t size, __u8 bRequestType, in usb_decode_ctrl_generic() argument
214 u8 recip = bRequestType & USB_RECIP_MASK; in usb_decode_ctrl_generic()
215 u8 type = bRequestType & USB_TYPE_MASK; in usb_decode_ctrl_generic()
225 (bRequestType & USB_DIR_IN) ? "IN" : "OUT", in usb_decode_ctrl_generic()
229 static void usb_decode_ctrl_standard(char *str, size_t size, __u8 bRequestType, in usb_decode_ctrl_standard() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/media/usb/gspca/
H A Ddtcs033.c17 u8 bRequestType; member
26 u8 bRequestType, u8 bRequest, in reg_rw() argument
38 bRequestType, in reg_rw()
60 reg_rw(gspca_dev, preq->bRequestType, preq->bRequest, in reg_reqs()
67 } else if (preq->bRequestType & USB_DIR_IN) { in reg_reqs()
161 const u8 bRequestType = in dtcs033_setexposure() local
166 bRequestType, bRequest, wValue, wIndex, 0); in dtcs033_setexposure()
171 bRequestType, bRequest, (xtimeVal<<4), 0x6300, 0); in dtcs033_setexposure()
/OK3568_Linux_fs/kernel/drivers/usb/usbip/
H A Dvudc_transfer.c71 if (setup->bRequestType != DEV_REQUEST) in handle_control_request()
78 if (setup->bRequestType == DEV_REQUEST) { in handle_control_request()
99 } else if (setup->bRequestType == EP_REQUEST) { in handle_control_request()
112 if (setup->bRequestType == DEV_REQUEST) { in handle_control_request()
132 } else if (setup->bRequestType == EP_REQUEST) { in handle_control_request()
146 if (setup->bRequestType == DEV_INREQUEST in handle_control_request()
147 || setup->bRequestType == INTF_INREQUEST in handle_control_request()
148 || setup->bRequestType == EP_INREQUEST) { in handle_control_request()
157 if (setup->bRequestType == EP_INREQUEST) { in handle_control_request()
164 } else if (setup->bRequestType == in handle_control_request()
H A Dstub_rx.c22 (req->bRequestType == USB_RECIP_ENDPOINT) && in is_clear_halt_cmd()
33 (req->bRequestType == USB_RECIP_INTERFACE); in is_set_interface_cmd()
43 (req->bRequestType == USB_RECIP_DEVICE); in is_set_configuration_cmd()
57 (req->bRequestType == USB_RT_PORT) && in is_reset_device_cmd()
416 is_out = !(setup->bRequestType & USB_DIR_IN) || in masking_bogus_flags()
H A Dusbip_common.c166 cmd->bRequestType, cmd->bRequest, in usbip_dump_usb_ctrlrequest()
170 if ((cmd->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in usbip_dump_usb_ctrlrequest()
210 usbip_dump_request_type(cmd->bRequestType); in usbip_dump_usb_ctrlrequest()
211 } else if ((cmd->bRequestType & USB_TYPE_MASK) == USB_TYPE_CLASS) { in usbip_dump_usb_ctrlrequest()
213 } else if ((cmd->bRequestType & USB_TYPE_MASK) == USB_TYPE_VENDOR) { in usbip_dump_usb_ctrlrequest()
215 } else if ((cmd->bRequestType & USB_TYPE_MASK) == USB_TYPE_RESERVED) { in usbip_dump_usb_ctrlrequest()
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/aspeed-vhub/
H A Dep0.c101 crq.bRequestType, crq.bRequest, in ast_vhub_ep0_handle_setup()
105 (crq.bRequestType & USB_DIR_IN) ? "in" : "out", in ast_vhub_ep0_handle_setup()
126 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup()
131 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup()
133 else if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_CLASS) in ast_vhub_ep0_handle_setup()
137 } else if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup()
/OK3568_Linux_fs/kernel/drivers/usb/mtu3/
H A Dmtu3_trace.h94 __field(__u8, bRequestType)
101 __entry->bRequestType = setup->bRequestType;
108 __entry->bRequestType, __entry->bRequest,
H A Dmtu3_gadget_ep0.c214 switch (setup->bRequestType & USB_RECIP_MASK) { in ep0_get_status()
392 switch (setup->bRequestType & USB_RECIP_MASK) { in ep0_handle_feature()
615 setup->bRequestType, setup->bRequest, in ep0_read_setup()
626 } else if (setup->bRequestType & USB_DIR_IN) { in ep0_read_setup()
648 if ((setup.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ep0_handle_setup()
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Dmusb_gadget_ep0.c57 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_tx_status_request()
155 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_in_request()
211 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_zero_data_request()
214 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_zero_data_request()
586 req->bRequestType, in musb_read_setup()
608 if (req->bRequestType & USB_DIR_IN) in musb_read_setup()
611 } else if (req->bRequestType & USB_DIR_IN) { in musb_read_setup()
/OK3568_Linux_fs/u-boot/drivers/usb/musb-new/
H A Dmusb_gadget_ep0.c64 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_tx_status_request()
158 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_in_request()
214 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_zero_data_request()
217 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_zero_data_request()
591 req->bRequestType, in musb_read_setup()
613 if (req->bRequestType & USB_DIR_IN) in musb_read_setup()
616 } else if (req->bRequestType & USB_DIR_IN) { in musb_read_setup()
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Datmel_usba_udc.c723 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
725 } else if (crq->bRequestType in handle_ep0_setup()
728 } else if (crq->bRequestType in handle_ep0_setup()
753 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup()
760 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup()
783 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup()
794 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup()
815 if (crq->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in handle_ep0_setup()
834 ep->ep.name, crq->bRequestType, crq->bRequest, in handle_ep0_setup()
989 if (crq.crq.bRequestType & USB_DIR_IN) { in usba_control_irq()
[all …]
H A Dcomposite.c817 standard = (ctrl->bRequestType & USB_TYPE_MASK) in composite_setup()
827 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
905 if (ctrl->bRequestType != 0) in composite_setup()
919 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
933 if (ctrl->bRequestType != USB_RECIP_INTERFACE) in composite_setup()
945 if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE)) in composite_setup()
962 ctrl->bRequestType, ctrl->bRequest, in composite_setup()
973 switch (ctrl->bRequestType & USB_RECIP_MASK) { in composite_setup()
H A Ddwc2_udc_otg_xfer_dma.c896 printf("crq->brequest:0x%x\n", crq->bRequestType & USB_RECIP_MASK); in dwc2_udc_get_status()
897 switch (crq->bRequestType & USB_RECIP_MASK) { in dwc2_udc_get_status()
1171 switch (usb_ctrl->bRequestType & USB_RECIP_MASK) { in dwc2_udc_clear_feature()
1235 switch (usb_ctrl->bRequestType & USB_RECIP_MASK) { in dwc2_udc_set_feature()
1305 __func__, usb_ctrl->bRequestType, in dwc2_ep0_setup()
1306 (usb_ctrl->bRequestType & USB_DIR_IN) ? "IN" : "OUT", in dwc2_ep0_setup()
1352 if (likely(usb_ctrl->bRequestType & USB_DIR_IN)) { in dwc2_ep0_setup()
1358 dev->req_std = (usb_ctrl->bRequestType & USB_TYPE_MASK) in dwc2_ep0_setup()
1370 if (usb_ctrl->bRequestType in dwc2_ep0_setup()
1384 if (usb_ctrl->bRequestType == USB_RECIP_DEVICE) in dwc2_ep0_setup()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/dwc3/
H A Dtrace.h75 __field(__u8, bRequestType)
83 __entry->bRequestType = ctrl->bRequestType;
90 __entry->bRequestType,
/OK3568_Linux_fs/kernel/drivers/usb/gadget/
H A Dcomposite.c1696 if (ctrl->bRequestType & USB_DIR_IN) { in composite_setup()
1721 if ((ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) in composite_setup()
1728 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
1816 if (ctrl->bRequestType != 0) in composite_setup()
1831 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
1842 if (ctrl->bRequestType != USB_RECIP_INTERFACE) in composite_setup()
1871 if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE)) in composite_setup()
1888 if (ctrl->bRequestType != (USB_DIR_IN | in composite_setup()
1905 if (ctrl->bRequestType != (USB_DIR_IN | USB_RECIP_INTERFACE)) in composite_setup()
1928 if (ctrl->bRequestType != (USB_DIR_OUT | USB_RECIP_INTERFACE)) in composite_setup()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/
H A Ds3c2410_udc.c516 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
529 switch (crq->bRequestType & USB_RECIP_MASK) { in s3c2410_udc_get_status()
597 crq->bRequest, crq->bRequestType, crq->wLength); in s3c2410_udc_handle_ep0_idle()
600 dev->req_std = (crq->bRequestType & USB_TYPE_MASK) in s3c2410_udc_handle_ep0_idle()
609 if (crq->bRequestType == USB_RECIP_DEVICE) { in s3c2410_udc_handle_ep0_idle()
618 if (crq->bRequestType == USB_RECIP_INTERFACE) { in s3c2410_udc_handle_ep0_idle()
627 if (crq->bRequestType == USB_RECIP_DEVICE) { in s3c2410_udc_handle_ep0_idle()
650 if (crq->bRequestType != USB_RECIP_ENDPOINT) in s3c2410_udc_handle_ep0_idle()
663 if (crq->bRequestType != USB_RECIP_ENDPOINT) in s3c2410_udc_handle_ep0_idle()
678 if (crq->bRequestType & USB_DIR_IN) in s3c2410_udc_handle_ep0_idle()
H A Dmv_udc_core.c1530 if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK)) in ch9getstatus()
1534 if ((setup->bRequestType & USB_RECIP_MASK) == USB_RECIP_DEVICE) { in ch9getstatus()
1537 } else if ((setup->bRequestType & USB_RECIP_MASK) in ch9getstatus()
1541 } else if ((setup->bRequestType & USB_RECIP_MASK) in ch9getstatus()
1565 if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9clearfeature()
1574 } else if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9clearfeature()
1608 if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9setfeature()
1629 } else if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9setfeature()
1665 setup->bRequestType, setup->bRequest, in handle_setup_packet()
1668 if ((setup->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in handle_setup_packet()
[all …]
H A Ds3c-hsudc.c516 if (ctrl->bRequestType == USB_RECIP_ENDPOINT) { in s3c_hsudc_handle_reqfeat()
545 switch (ctrl->bRequestType & USB_RECIP_MASK) { in s3c_hsudc_process_req_status()
585 if (ctrl.bRequestType & USB_DIR_IN) { in s3c_hsudc_process_setup()
595 if (ctrl.bRequestType != (USB_TYPE_STANDARD | USB_RECIP_DEVICE)) in s3c_hsudc_process_setup()
601 if ((ctrl.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) in s3c_hsudc_process_setup()
608 if ((ctrl.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) in s3c_hsudc_process_setup()
/OK3568_Linux_fs/kernel/drivers/usb/isp1760/
H A Disp1760-udc.c459 switch (req->bRequestType) { in isp1760_udc_get_status()
530 switch (req->bRequestType) { in isp1760_ep0_setup_standard()
574 switch (req->bRequestType) { in isp1760_ep0_setup_standard()
609 if (req->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in isp1760_ep0_setup_standard()
615 if (req->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in isp1760_ep0_setup_standard()
678 else if (req.r.bRequestType & USB_DIR_IN) in isp1760_ep0_setup()
683 udc->ep0_dir = req.r.bRequestType & USB_DIR_IN; in isp1760_ep0_setup()
690 __func__, req.r.bRequestType, req.r.bRequest, in isp1760_ep0_setup()
694 if ((req.r.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in isp1760_ep0_setup()
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Df_printer.c951 if ((ctrl->bRequestType & USB_RECIP_MASK) != USB_RECIP_INTERFACE || in gprinter_req_match()
952 (ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_CLASS) in gprinter_req_match()
958 if (USB_DIR_IN & ctrl->bRequestType) in gprinter_req_match()
963 (USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
968 !(USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
994 ctrl->bRequestType, ctrl->bRequest, wValue, wIndex, wLength); in printer_func_setup()
996 switch (ctrl->bRequestType&USB_TYPE_MASK) { in printer_func_setup()
1044 ctrl->bRequestType, ctrl->bRequest, in printer_func_setup()
/OK3568_Linux_fs/kernel/include/linux/usb/
H A Dch9.h57 extern const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType,
/OK3568_Linux_fs/kernel/include/linux/
H A Dusbdevice_fs.h38 u8 bRequestType; member
/OK3568_Linux_fs/kernel/drivers/usb/cdns3/
H A Dep0.c229 recip = ctrl->bRequestType & USB_RECIP_MASK; in cdns3_req_ep0_get_status()
402 recip = ctrl->bRequestType & USB_RECIP_MASK; in cdns3_req_ep0_handle_feature()
537 priv_dev->ep0_data_dir = ctrl->bRequestType & USB_DIR_IN; in cdns3_ep0_setup_phase()
555 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in cdns3_ep0_setup_phase()
H A Dtrace.h176 __field(u8, bRequestType)
184 __entry->bRequestType = ctrl->bRequestType;
191 __entry->bRequestType,
/OK3568_Linux_fs/u-boot/drivers/usb/cdns3/
H A Dep0.c251 recip = ctrl->bRequestType & USB_RECIP_MASK; in cdns3_req_ep0_get_status()
430 recip = ctrl->bRequestType & USB_RECIP_MASK; in cdns3_req_ep0_handle_feature()
565 priv_dev->ep0_data_dir = ctrl->bRequestType & USB_DIR_IN; in cdns3_ep0_setup_phase()
583 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in cdns3_ep0_setup_phase()

1234567