Home
last modified time | relevance | path

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

123456

/linux/drivers/usb/common/
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
231 const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType, in usb_decode_ctrl() argument
237 usb_decode_get_status(bRequestType, wIndex, wLength, str, size); in usb_decode_ctrl()
241 usb_decode_set_clear_feature(bRequestType, bRequest, wValue, in usb_decode_ctrl()
249 usb_decode_get_set_descriptor(bRequestType, bRequest, wValue, in usb_decode_ctrl()
275 bRequestType, bRequest, in usb_decode_ctrl()
/linux/drivers/media/usb/gspca/
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()
/linux/drivers/usb/usbip/
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()
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()
414 is_out = !(setup->bRequestType & USB_DIR_IN) || in masking_bogus_flags()
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()
/linux/drivers/usb/gadget/udc/aspeed-vhub/
A Dep0.c96 crq.bRequestType, crq.bRequest, in ast_vhub_ep0_handle_setup()
100 (crq.bRequestType & USB_DIR_IN) ? "in" : "out", in ast_vhub_ep0_handle_setup()
121 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup()
126 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup()
128 else if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_CLASS) in ast_vhub_ep0_handle_setup()
132 } else if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup()
/linux/drivers/usb/mtu3/
A Dmtu3_trace.h94 __field(__u8, bRequestType)
101 __entry->bRequestType = setup->bRequestType;
108 __entry->bRequestType, __entry->bRequest,
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()
/linux/drivers/usb/musb/
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()
/linux/drivers/usb/cdns3/
A Dcdnsp-ep0.c153 recipient = ctrl->bRequestType & USB_RECIP_MASK; in cdnsp_ep0_handle_status()
329 switch (ctrl->bRequestType & USB_RECIP_MASK) { in cdnsp_ep0_handle_feature()
469 pdev->ep0_expect_in = !!(ctrl->bRequestType & USB_DIR_IN); in cdnsp_setup_analyze()
472 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in cdnsp_setup_analyze()
A Dcdns3-ep0.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()
A Dcdns3-trace.h176 __field(u8, bRequestType)
184 __entry->bRequestType = ctrl->bRequestType;
191 __entry->bRequestType,
/linux/drivers/usb/dwc3/
A Dtrace.h77 __field(__u8, bRequestType)
85 __entry->bRequestType = ctrl->bRequestType;
92 __entry->bRequestType,
/linux/drivers/usb/gadget/
A Dcomposite.c1683 if (ctrl->bRequestType & USB_DIR_IN) { in composite_setup()
1715 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
1803 if (ctrl->bRequestType != 0) in composite_setup()
1818 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
1829 if (ctrl->bRequestType != USB_RECIP_INTERFACE) in composite_setup()
1858 if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE)) in composite_setup()
1875 if (ctrl->bRequestType != (USB_DIR_IN | in composite_setup()
1942 (ctrl->bRequestType & USB_TYPE_VENDOR) && in composite_setup()
1957 switch (ctrl->bRequestType & USB_RECIP_MASK) { in composite_setup()
2000 ctrl->bRequestType, ctrl->bRequest, in composite_setup()
[all …]
/linux/drivers/usb/gadget/udc/
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()
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()
1665 setup->bRequestType, setup->bRequest, in handle_setup_packet()
1668 if ((setup->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in handle_setup_packet()
1697 udc->ep0_dir = (setup->bRequestType & USB_DIR_IN) in handle_setup_packet()
[all …]
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()
A Datmel_usba_udc.c1310 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
1312 } else if (crq->bRequestType in handle_ep0_setup()
1315 } else if (crq->bRequestType in handle_ep0_setup()
1339 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup()
1346 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup()
1369 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup()
1380 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup()
1400 if (crq->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in handle_ep0_setup()
1420 ep->ep.name, crq->bRequestType, crq->bRequest, in handle_ep0_setup()
1580 if (crq.crq.bRequestType & USB_DIR_IN) { in usba_control_irq()
[all …]
A Dudc-xilinx.c1019 if (udc->setup.bRequestType & USB_DIR_IN) { in __xudc_ep0_queue()
1607 switch (udc->setup.bRequestType & USB_RECIP_MASK) { in xudc_getstatus()
1662 switch (udc->setup.bRequestType) { in xudc_set_clear_feature()
1756 if (udc->setup.bRequestType & USB_DIR_IN) { in xudc_handle_setup()
1769 if ((udc->setup.bRequestType & in xudc_handle_setup()
1777 if (udc->setup.bRequestType != (USB_DIR_OUT | in xudc_handle_setup()
1785 if ((udc->setup.bRequestType & USB_TYPE_MASK) in xudc_handle_setup()
1877 if (udc->setup.bRequestType == in xudc_ep0_in()
/linux/drivers/usb/isp1760/
A Disp1760-udc.c522 switch (req->bRequestType) { in isp1760_udc_get_status()
596 switch (req->bRequestType) { in isp1760_ep0_setup_standard()
640 switch (req->bRequestType) { in isp1760_ep0_setup_standard()
675 if (req->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in isp1760_ep0_setup_standard()
681 if (req->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in isp1760_ep0_setup_standard()
744 else if (req.r.bRequestType & USB_DIR_IN) in isp1760_ep0_setup()
749 udc->ep0_dir = req.r.bRequestType & USB_DIR_IN; in isp1760_ep0_setup()
756 __func__, req.r.bRequestType, req.r.bRequest, in isp1760_ep0_setup()
760 if ((req.r.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in isp1760_ep0_setup()
/linux/drivers/usb/gadget/function/
A Df_printer.c950 if ((ctrl->bRequestType & USB_RECIP_MASK) != USB_RECIP_INTERFACE || in gprinter_req_match()
951 (ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_CLASS) in gprinter_req_match()
957 if (USB_DIR_IN & ctrl->bRequestType) in gprinter_req_match()
962 (USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
967 !(USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
993 ctrl->bRequestType, ctrl->bRequest, wValue, wIndex, wLength); in printer_func_setup()
995 switch (ctrl->bRequestType&USB_TYPE_MASK) { in printer_func_setup()
1043 ctrl->bRequestType, ctrl->bRequest, in printer_func_setup()
A Df_ecm.c481 switch ((ctrl->bRequestType << 8) | ctrl->bRequest) { in ecm_setup()
510 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
517 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
524 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
/linux/include/linux/usb/
A Dch9.h57 extern const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType,
/linux/include/linux/
A Dusbdevice_fs.h38 u8 bRequestType; member
/linux/drivers/hid/
A Dhid-thrustmaster.c127 .bRequestType = 0xc1,
135 .bRequestType = 0x41,

Completed in 136 milliseconds

123456