/openbmc/linux/drivers/usb/common/ |
H A D | debug.c | 14 static void usb_decode_get_status(__u8 bRequestType, __u16 wIndex, in usb_decode_get_status() argument 17 switch (bRequestType & USB_RECIP_MASK) { in usb_decode_get_status() 72 static void usb_decode_set_clear_feature(__u8 bRequestType, in usb_decode_set_clear_feature() argument 76 switch (bRequestType & USB_RECIP_MASK) { in usb_decode_set_clear_feature() 215 u8 recip = bRequestType & USB_RECIP_MASK; in usb_decode_ctrl_generic() 216 u8 type = bRequestType & USB_TYPE_MASK; in usb_decode_ctrl_generic() 226 (bRequestType & USB_DIR_IN) ? "IN" : "OUT", in usb_decode_ctrl_generic() 273 usb_decode_ctrl_generic(str, size, bRequestType, bRequest, in usb_decode_ctrl_standard() 304 switch (bRequestType & USB_TYPE_MASK) { in usb_decode_ctrl() 306 usb_decode_ctrl_standard(str, size, bRequestType, bRequest, in usb_decode_ctrl() [all …]
|
/openbmc/linux/drivers/media/usb/gspca/ |
H A D | dtcs033.c | 17 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()
|
/openbmc/linux/drivers/usb/usbip/ |
H A D | vudc_transfer.c | 71 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 D | usbip_common.c | 166 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()
|
H A D | stub_rx.c | 22 (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() 425 is_out = !(setup->bRequestType & USB_DIR_IN) || in masking_bogus_flags()
|
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | ep0.c | 95 crq.bRequestType, crq.bRequest, in ast_vhub_ep0_handle_setup() 99 (crq.bRequestType & USB_DIR_IN) ? "in" : "out", in ast_vhub_ep0_handle_setup() 120 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup() 125 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup() 127 else if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_CLASS) in ast_vhub_ep0_handle_setup() 131 } else if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup()
|
/openbmc/linux/drivers/usb/mtu3/ |
H A D | mtu3_trace.h | 92 __field(__u8, bRequestType) 99 __entry->bRequestType = setup->bRequestType; 106 __entry->bRequestType, __entry->bRequest,
|
H A D | mtu3_gadget_ep0.c | 214 switch (setup->bRequestType & USB_RECIP_MASK) { in ep0_get_status() 394 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()
|
/openbmc/u-boot/drivers/usb/musb-new/ |
H A D | musb_gadget_ep0.c | 63 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_tx_status_request() 157 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_in_request() 213 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_zero_data_request() 216 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_zero_data_request() 590 req->bRequestType, in musb_read_setup() 612 if (req->bRequestType & USB_DIR_IN) in musb_read_setup() 615 } else if (req->bRequestType & USB_DIR_IN) { in musb_read_setup()
|
/openbmc/linux/drivers/usb/musb/ |
H A D | musb_gadget_ep0.c | 57 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()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | composite.c | 722 standard = (ctrl->bRequestType & USB_TYPE_MASK) in composite_setup() 731 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup() 793 if (ctrl->bRequestType != 0) in composite_setup() 807 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup() 821 if (ctrl->bRequestType != USB_RECIP_INTERFACE) in composite_setup() 833 if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE)) in composite_setup() 850 ctrl->bRequestType, ctrl->bRequest, in composite_setup() 861 switch (ctrl->bRequestType & USB_RECIP_MASK) { in composite_setup()
|
H A D | atmel_usba_udc.c | 722 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup() 724 } else if (crq->bRequestType in handle_ep0_setup() 727 } else if (crq->bRequestType in handle_ep0_setup() 752 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup() 759 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup() 782 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup() 793 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup() 814 if (crq->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in handle_ep0_setup() 833 ep->ep.name, crq->bRequestType, crq->bRequest, in handle_ep0_setup() 988 if (crq.crq.bRequestType & USB_DIR_IN) { in usba_control_irq() [all …]
|
H A D | dwc2_udc_otg_xfer_dma.c | 874 printf("crq->brequest:0x%x\n", crq->bRequestType & USB_RECIP_MASK); in dwc2_udc_get_status() 875 switch (crq->bRequestType & USB_RECIP_MASK) { in dwc2_udc_get_status() 1149 switch (usb_ctrl->bRequestType & USB_RECIP_MASK) { in dwc2_udc_clear_feature() 1213 switch (usb_ctrl->bRequestType & USB_RECIP_MASK) { in dwc2_udc_set_feature() 1283 __func__, usb_ctrl->bRequestType, in dwc2_ep0_setup() 1284 (usb_ctrl->bRequestType & USB_DIR_IN) ? "IN" : "OUT", in dwc2_ep0_setup() 1330 if (likely(usb_ctrl->bRequestType & USB_DIR_IN)) { in dwc2_ep0_setup() 1336 dev->req_std = (usb_ctrl->bRequestType & USB_TYPE_MASK) in dwc2_ep0_setup() 1348 if (usb_ctrl->bRequestType in dwc2_ep0_setup() 1362 if (usb_ctrl->bRequestType == USB_RECIP_DEVICE) in dwc2_ep0_setup() [all …]
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | cdnsp-ep0.c | 153 recipient = ctrl->bRequestType & USB_RECIP_MASK; in cdnsp_ep0_handle_status() 329 switch (ctrl->bRequestType & USB_RECIP_MASK) { in cdnsp_ep0_handle_feature() 454 pdev->ep0_expect_in = !!(ctrl->bRequestType & USB_DIR_IN); in cdnsp_setup_analyze() 457 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in cdnsp_setup_analyze()
|
H A D | cdns3-ep0.c | 229 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()
|
/openbmc/linux/drivers/usb/dwc3/ |
H A D | trace.h | 76 __field(__u8, bRequestType) 83 __entry->bRequestType = ctrl->bRequestType; 90 __entry->bRequestType,
|
/openbmc/linux/include/linux/usb/ |
H A D | ch9.h | 55 extern const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType,
|
/openbmc/linux/include/linux/ |
H A D | usbdevice_fs.h | 38 u8 bRequestType; member
|
/openbmc/linux/drivers/usb/gadget/ |
H A D | composite.c | 1792 if (ctrl->bRequestType & USB_DIR_IN) { in composite_setup() 1824 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup() 1912 if (ctrl->bRequestType != 0) in composite_setup() 1927 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup() 1938 if (ctrl->bRequestType != USB_RECIP_INTERFACE) in composite_setup() 1967 if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE)) in composite_setup() 1984 if (ctrl->bRequestType != (USB_DIR_IN | in composite_setup() 2098 (ctrl->bRequestType & USB_TYPE_VENDOR) && in composite_setup() 2113 switch (ctrl->bRequestType & USB_RECIP_MASK) { in composite_setup() 2205 ctrl->bRequestType, ctrl->bRequest, in composite_setup() [all …]
|
/openbmc/linux/drivers/usb/isp1760/ |
H A D | isp1760-udc.c | 522 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()
|
/openbmc/linux/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-ep0.c | 182 recip = ctrl->bRequestType & USB_RECIP_MASK; in cdns2_req_ep0_handle_status() 315 switch (ctrl->bRequestType & USB_RECIP_MASK) { in cdns2_req_ep0_handle_feature() 429 pep->dir = ctrl->bRequestType & USB_DIR_IN; in cdns2_handle_setup_packet() 442 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in cdns2_handle_setup_packet()
|
H A D | cdns2-trace.h | 244 __field(u8, bRequestType) 251 __entry->bRequestType = ctrl->bRequestType; 258 __entry->bRequestType,
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_printer.c | 968 if ((ctrl->bRequestType & USB_RECIP_MASK) != USB_RECIP_INTERFACE || in gprinter_req_match() 969 (ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_CLASS) in gprinter_req_match() 975 if (USB_DIR_IN & ctrl->bRequestType) in gprinter_req_match() 980 (USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match() 985 !(USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match() 1011 ctrl->bRequestType, ctrl->bRequest, wValue, wIndex, wLength); in printer_func_setup() 1013 switch (ctrl->bRequestType&USB_TYPE_MASK) { in printer_func_setup() 1061 ctrl->bRequestType, ctrl->bRequest, in printer_func_setup()
|
/openbmc/linux/drivers/hid/ |
H A D | hid-thrustmaster.c | 130 .bRequestType = 0xc1, 138 .bRequestType = 0x41,
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | mv_udc_core.c | 1531 if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK)) in ch9getstatus() 1535 if ((setup->bRequestType & USB_RECIP_MASK) == USB_RECIP_DEVICE) { in ch9getstatus() 1538 } else if ((setup->bRequestType & USB_RECIP_MASK) in ch9getstatus() 1542 } else if ((setup->bRequestType & USB_RECIP_MASK) in ch9getstatus() 1566 if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9clearfeature() 1575 } else if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9clearfeature() 1609 if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9setfeature() 1666 setup->bRequestType, setup->bRequest, in handle_setup_packet() 1669 if ((setup->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in handle_setup_packet() 1698 udc->ep0_dir = (setup->bRequestType & USB_DIR_IN) in handle_setup_packet() [all …]
|