Home
last modified time | relevance | path

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

123456

/Linux-v6.6/drivers/usb/common/
Ddebug.c14 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()
105 static void usb_decode_get_set_descriptor(__u8 bRequestType, __u8 bRequest, in usb_decode_get_set_descriptor() argument
211 static void usb_decode_ctrl_generic(char *str, size_t size, __u8 bRequestType, in usb_decode_ctrl_generic() argument
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()
230 static void usb_decode_ctrl_standard(char *str, size_t size, __u8 bRequestType, in usb_decode_ctrl_standard() argument
[all …]
/Linux-v6.6/drivers/media/usb/gspca/
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-v6.6/drivers/usb/usbip/
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()
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()
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-v6.6/drivers/usb/gadget/udc/aspeed-vhub/
Dep0.c95 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()
/Linux-v6.6/drivers/usb/mtu3/
Dmtu3_trace.h92 __field(__u8, bRequestType)
99 __entry->bRequestType = setup->bRequestType;
106 __entry->bRequestType, __entry->bRequest,
Dmtu3_gadget_ep0.c214 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()
/Linux-v6.6/drivers/usb/musb/
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-v6.6/drivers/usb/cdns3/
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()
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()
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()
Dcdns3-trace.h173 __field(u8, bRequestType)
180 __entry->bRequestType = ctrl->bRequestType;
187 __entry->bRequestType,
/Linux-v6.6/drivers/usb/dwc3/
Dtrace.h76 __field(__u8, bRequestType)
83 __entry->bRequestType = ctrl->bRequestType;
90 __entry->bRequestType,
/Linux-v6.6/drivers/usb/gadget/
Dcomposite.c1792 if (ctrl->bRequestType & USB_DIR_IN) { in composite_setup()
1817 if ((ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) 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()
2001 if (ctrl->bRequestType != (USB_DIR_IN | USB_RECIP_INTERFACE)) in composite_setup()
2035 if (ctrl->bRequestType != (USB_DIR_OUT | USB_RECIP_INTERFACE)) in composite_setup()
[all …]
/Linux-v6.6/include/linux/usb/
Dch9.h55 extern const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType,
/Linux-v6.6/drivers/usb/isp1760/
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-v6.6/include/linux/
Dusbdevice_fs.h38 u8 bRequestType; member
/Linux-v6.6/drivers/usb/gadget/udc/cdns2/
Dcdns2-ep0.c182 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()
Dcdns2-trace.h244 __field(u8, bRequestType)
251 __entry->bRequestType = ctrl->bRequestType;
258 __entry->bRequestType,
/Linux-v6.6/drivers/usb/gadget/function/
Df_printer.c948 if ((ctrl->bRequestType & USB_RECIP_MASK) != USB_RECIP_INTERFACE || in gprinter_req_match()
949 (ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_CLASS) in gprinter_req_match()
955 if (USB_DIR_IN & ctrl->bRequestType) in gprinter_req_match()
960 (USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
965 !(USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
991 ctrl->bRequestType, ctrl->bRequest, wValue, wIndex, wLength); in printer_func_setup()
993 switch (ctrl->bRequestType&USB_TYPE_MASK) { in printer_func_setup()
1041 ctrl->bRequestType, ctrl->bRequest, in printer_func_setup()
Df_ecm.c470 switch ((ctrl->bRequestType << 8) | ctrl->bRequest) { in ecm_setup()
499 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
506 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
513 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
/Linux-v6.6/drivers/usb/gadget/udc/
Dmv_udc_core.c1531 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()
1630 } else 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()
[all …]
Datmel_usba_udc.c1313 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
1315 } else if (crq->bRequestType in handle_ep0_setup()
1318 } else if (crq->bRequestType in handle_ep0_setup()
1342 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup()
1349 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup()
1372 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup()
1383 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup()
1403 if (crq->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in handle_ep0_setup()
1423 ep->ep.name, crq->bRequestType, crq->bRequest, in handle_ep0_setup()
1583 if (crq.crq.bRequestType & USB_DIR_IN) { in usba_control_irq()
[all …]
/Linux-v6.6/drivers/hid/
Dhid-thrustmaster.c130 .bRequestType = 0xc1,
138 .bRequestType = 0x41,
/Linux-v6.6/include/uapi/linux/usb/
Dtmc.h45 __u8 bRequestType; member

123456