Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/usb/gspca/
Ddtcs033.c26 u8 bRequestType; member
35 u8 bRequestType, u8 bRequest, in reg_rw() argument
47 bRequestType, in reg_rw()
69 reg_rw(gspca_dev, preq->bRequestType, preq->bRequest, in reg_reqs()
76 } else if (preq->bRequestType & USB_DIR_IN) { in reg_reqs()
172 const u8 bRequestType = in dtcs033_setexposure() local
177 bRequestType, bRequest, wValue, wIndex, 0); in dtcs033_setexposure()
182 bRequestType, bRequest, (xtimeVal<<4), 0x6300, 0); in dtcs033_setexposure()
/linux-4.4.14/drivers/usb/dwc3/
Dtrace.h86 __field(__u8, bRequestType)
93 __entry->bRequestType = ctrl->bRequestType;
100 __entry->bRequestType, __entry->bRequest,
Dep0.c351 recip = ctrl->bRequestType & USB_RECIP_MASK; in dwc3_ep0_handle_status()
413 recip = ctrl->bRequestType & USB_RECIP_MASK; in dwc3_ep0_handle_feature()
767 dwc->ep0_expect_in = !!(ctrl->bRequestType & USB_DIR_IN); in dwc3_ep0_inspect_setup()
771 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in dwc3_ep0_inspect_setup()
/linux-4.4.14/drivers/usb/musb/
Dmusb_gadget_ep0.c82 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_tx_status_request()
176 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_in_request()
232 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_zero_data_request()
235 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_zero_data_request()
611 req->bRequestType, in musb_read_setup()
633 if (req->bRequestType & USB_DIR_IN) in musb_read_setup()
636 } else if (req->bRequestType & USB_DIR_IN) { in musb_read_setup()
Dmusb_host.c1087 } else if (request->bRequestType & USB_DIR_IN) { in musb_h_ep0_continue()
/linux-4.4.14/drivers/usb/usbip/
Dstub_rx.c35 (req->bRequestType == USB_RECIP_ENDPOINT) && in is_clear_halt_cmd()
46 (req->bRequestType == USB_RECIP_INTERFACE); in is_set_interface_cmd()
56 (req->bRequestType == USB_RECIP_DEVICE); in is_set_configuration_cmd()
70 (req->bRequestType == USB_RT_PORT) && in is_reset_device_cmd()
420 is_out = !(setup->bRequestType & USB_DIR_IN) || in masking_bogus_flags()
Dusbip_common.c182 cmd->bRequestType, cmd->bRequest, in usbip_dump_usb_ctrlrequest()
186 if ((cmd->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in usbip_dump_usb_ctrlrequest()
226 usbip_dump_request_type(cmd->bRequestType); in usbip_dump_usb_ctrlrequest()
227 } else if ((cmd->bRequestType & USB_TYPE_MASK) == USB_TYPE_CLASS) { in usbip_dump_usb_ctrlrequest()
229 } else if ((cmd->bRequestType & USB_TYPE_MASK) == USB_TYPE_VENDOR) { in usbip_dump_usb_ctrlrequest()
231 } else if ((cmd->bRequestType & USB_TYPE_MASK) == USB_TYPE_RESERVED) { in usbip_dump_usb_ctrlrequest()
/linux-4.4.14/include/linux/usb/
Dwusb-wa.h177 u8 bRequestType; /* 0x80 WA_REQUEST_TYPE_CTL */ member
227 u8 bRequestType; member
/linux-4.4.14/include/linux/
Dusbdevice_fs.h37 u8 bRequestType; member
/linux-4.4.14/drivers/usb/gadget/udc/
Ds3c2410_udc.c541 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
554 switch (crq->bRequestType & USB_RECIP_MASK) { in s3c2410_udc_get_status()
622 crq->bRequest, crq->bRequestType, crq->wLength); in s3c2410_udc_handle_ep0_idle()
625 dev->req_std = (crq->bRequestType & USB_TYPE_MASK) in s3c2410_udc_handle_ep0_idle()
634 if (crq->bRequestType == USB_RECIP_DEVICE) { in s3c2410_udc_handle_ep0_idle()
643 if (crq->bRequestType == USB_RECIP_INTERFACE) { in s3c2410_udc_handle_ep0_idle()
652 if (crq->bRequestType == USB_RECIP_DEVICE) { in s3c2410_udc_handle_ep0_idle()
675 if (crq->bRequestType != USB_RECIP_ENDPOINT) in s3c2410_udc_handle_ep0_idle()
688 if (crq->bRequestType != USB_RECIP_ENDPOINT) in s3c2410_udc_handle_ep0_idle()
703 if (crq->bRequestType & USB_DIR_IN) in s3c2410_udc_handle_ep0_idle()
Dmv_udc_core.c1540 if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK)) in ch9getstatus()
1544 if ((setup->bRequestType & USB_RECIP_MASK) == USB_RECIP_DEVICE) { in ch9getstatus()
1547 } else if ((setup->bRequestType & USB_RECIP_MASK) in ch9getstatus()
1551 } else if ((setup->bRequestType & USB_RECIP_MASK) in ch9getstatus()
1575 if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9clearfeature()
1584 } else if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9clearfeature()
1618 if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9setfeature()
1639 } else if ((setup->bRequestType & (USB_TYPE_MASK | USB_RECIP_MASK)) in ch9setfeature()
1675 setup->bRequestType, setup->bRequest, in handle_setup_packet()
1678 if ((setup->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in handle_setup_packet()
[all …]
Datmel_usba_udc.c1228 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
1230 } else if (crq->bRequestType in handle_ep0_setup()
1233 } else if (crq->bRequestType in handle_ep0_setup()
1257 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup()
1264 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup()
1287 if (crq->bRequestType == USB_RECIP_DEVICE) { in handle_ep0_setup()
1298 } else if (crq->bRequestType == USB_RECIP_ENDPOINT) { in handle_ep0_setup()
1318 if (crq->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in handle_ep0_setup()
1338 ep->ep.name, crq->bRequestType, crq->bRequest, in handle_ep0_setup()
1498 if (crq.crq.bRequestType & USB_DIR_IN) { in usba_control_irq()
[all …]
Ds3c-hsudc.c568 if (ctrl->bRequestType == USB_RECIP_ENDPOINT) { in s3c_hsudc_handle_reqfeat()
597 switch (ctrl->bRequestType & USB_RECIP_MASK) { in s3c_hsudc_process_req_status()
637 if (ctrl.bRequestType & USB_DIR_IN) { in s3c_hsudc_process_setup()
647 if (ctrl.bRequestType != (USB_TYPE_STANDARD | USB_RECIP_DEVICE)) in s3c_hsudc_process_setup()
653 if ((ctrl.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) in s3c_hsudc_process_setup()
660 if ((ctrl.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) in s3c_hsudc_process_setup()
Dudc-xilinx.c1025 if (udc->setup.bRequestType & USB_DIR_IN) { in __xudc_ep0_queue()
1614 switch (udc->setup.bRequestType & USB_RECIP_MASK) { in xudc_getstatus()
1669 switch (udc->setup.bRequestType) { in xudc_set_clear_feature()
1762 if (udc->setup.bRequestType & USB_DIR_IN) { in xudc_handle_setup()
1775 if ((udc->setup.bRequestType & in xudc_handle_setup()
1783 if (udc->setup.bRequestType != (USB_DIR_OUT | in xudc_handle_setup()
1791 if ((udc->setup.bRequestType & USB_TYPE_MASK) in xudc_handle_setup()
1883 if (udc->setup.bRequestType == in xudc_ep0_in()
Ddummy_hcd.c1572 if (setup->bRequestType != Dev_Request) in handle_control_request()
1581 if (setup->bRequestType == Dev_Request) { in handle_control_request()
1623 } else if (setup->bRequestType == Ep_Request) { in handle_control_request()
1636 if (setup->bRequestType == Dev_Request) { in handle_control_request()
1671 } else if (setup->bRequestType == Ep_Request) { in handle_control_request()
1685 if (setup->bRequestType == Dev_InRequest in handle_control_request()
1686 || setup->bRequestType == Intf_InRequest in handle_control_request()
1687 || setup->bRequestType == Ep_InRequest) { in handle_control_request()
1696 if (setup->bRequestType == Ep_InRequest) { in handle_control_request()
1703 } else if (setup->bRequestType == in handle_control_request()
Dpxa25x_udc.c1477 u.r.bRequestType, u.r.bRequest, in handle_ep0()
1483 dev->req_std = (u.r.bRequestType & USB_TYPE_MASK) in handle_ep0()
1490 if (u.r.bRequestType == USB_RECIP_DEVICE) { in handle_ep0()
1505 if (u.r.bRequestType == USB_RECIP_INTERFACE) { in handle_ep0()
1519 if (u.r.bRequestType == USB_RECIP_DEVICE) { in handle_ep0()
1526 if (u.r.bRequestType & USB_DIR_IN) in handle_ep0()
1583 if ((u.r.bRequestType & USB_RECIP_MASK) in handle_ep0()
Dfotg210-udc.c650 switch (ctrl->bRequestType & USB_RECIP_MASK) { in fotg210_set_feature()
679 switch (ctrl->bRequestType & USB_RECIP_MASK) { in fotg210_clear_feature()
721 switch (ctrl->bRequestType & USB_RECIP_MASK) { in fotg210_get_status()
759 fotg210->ep[0]->dir_in = ctrl->bRequestType & USB_DIR_IN; in fotg210_setup_packet()
768 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in fotg210_setup_packet()
Dgoku_udc.c1437 ctrl.bRequestType = readl(&regs->bRequestType); in ep0_setup()
1449 if (likely(ctrl.bRequestType & USB_DIR_IN)) { in ep0_setup()
1464 switch (ctrl.bRequestType) { in ep0_setup()
1509 ctrl.bRequestType, ctrl.bRequest, in ep0_setup()
1516 && ctrl.bRequestType == USB_RECIP_DEVICE); in ep0_setup()
1530 ctrl.bRequestType, ctrl.bRequest, tmp); in ep0_setup()
Dnet2280.c2707 (r.bRequestType & USB_DIR_IN))) in defect7374_workaround()
2803 switch (r.bRequestType) { in handle_stat0_irqs_superspeed()
2834 switch (r.bRequestType) { in handle_stat0_irqs_superspeed()
2900 switch (r.bRequestType) { in handle_stat0_irqs_superspeed()
2966 r.bRequestType, r.bRequest, in handle_stat0_irqs_superspeed()
2978 r.bRequestType, r.bRequest, tmp); in handle_stat0_irqs_superspeed()
3111 ep->is_in = (u.r.bRequestType & USB_DIR_IN) != 0; in handle_stat0_irqs()
3139 if (u.r.bRequestType != (USB_DIR_IN|USB_RECIP_ENDPOINT)) in handle_stat0_irqs()
3163 if (u.r.bRequestType != USB_RECIP_ENDPOINT) in handle_stat0_irqs()
3188 if (u.r.bRequestType != USB_RECIP_ENDPOINT) in handle_stat0_irqs()
[all …]
Dnet2272.c1815 ep->is_in = (u.r.bRequestType & USB_DIR_IN) != 0; in net2272_handle_stat0_irqs()
1827 if ((u.r.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) in net2272_handle_stat0_irqs()
1834 switch (u.r.bRequestType & USB_RECIP_MASK) { in net2272_handle_stat0_irqs()
1883 if (u.r.bRequestType != USB_RECIP_ENDPOINT) in net2272_handle_stat0_irqs()
1904 if (u.r.bRequestType == USB_RECIP_DEVICE) { in net2272_handle_stat0_irqs()
1910 } else if (u.r.bRequestType != USB_RECIP_ENDPOINT) in net2272_handle_stat0_irqs()
1932 u.r.bRequestType, u.r.bRequest, in net2272_handle_stat0_irqs()
1944 u.r.bRequestType, u.r.bRequest, tmp); in net2272_handle_stat0_irqs()
Dgoku_udc.h123 u32 bRequestType; /* 0x300 */ member
Dfusb300_udc.c694 switch (ctrl->bRequestType & USB_RECIP_MASK) { in get_status()
730 switch (ctrl->bRequestType & USB_RECIP_MASK) { in set_feature()
765 switch (ctrl->bRequestType & USB_RECIP_MASK) { in clear_feature()
830 fusb300->ep0_dir = ctrl->bRequestType & USB_DIR_IN; in setup_packet()
834 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in setup_packet()
Dfsl_udc_core.c1407 if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK)) in setup_received_irq()
1410 ch9getstatus(udc, setup->bRequestType, wValue, wIndex, wLength); in setup_received_irq()
1415 if (setup->bRequestType != (USB_DIR_OUT | USB_TYPE_STANDARD in setup_received_irq()
1428 if ((setup->bRequestType & (USB_RECIP_MASK | USB_TYPE_MASK)) in setup_received_irq()
1443 } else if ((setup->bRequestType & (USB_RECIP_MASK in setup_received_irq()
1488 udc->ep0_dir = (setup->bRequestType & USB_DIR_IN) in setup_received_irq()
1495 udc->ep0_state = (setup->bRequestType & USB_DIR_IN) in setup_received_irq()
Domap_udc.c1536 udc->ep0_in = (u.r.bRequestType & USB_DIR_IN) != 0; in ep0_irq()
1544 if (u.r.bRequestType != USB_RECIP_DEVICE) in ep0_irq()
1564 if (u.r.bRequestType != USB_RECIP_ENDPOINT) in ep0_irq()
1593 if (u.r.bRequestType != USB_RECIP_ENDPOINT) in ep0_irq()
1626 if (u.r.bRequestType != (USB_DIR_IN|USB_RECIP_ENDPOINT)) in ep0_irq()
1652 if (u.r.bRequestType in ep0_irq()
1679 u.r.bRequestType, u.r.bRequest, in ep0_irq()
1707 u.r.bRequestType, u.r.bRequest, status); in ep0_irq()
Dfsl_qe_udc.c2020 if (setup->bRequestType & USB_DIR_IN) in setup_received_handle()
2028 if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK)) in setup_received_handle()
2031 ch9getstatus(udc, setup->bRequestType, wValue, wIndex, in setup_received_handle()
2037 if (setup->bRequestType != (USB_DIR_OUT | USB_TYPE_STANDARD | in setup_received_handle()
2046 if ((setup->bRequestType & USB_TYPE_MASK) in setup_received_handle()
2050 if ((setup->bRequestType & USB_RECIP_MASK) in setup_received_handle()
2077 if (setup->bRequestType & USB_DIR_IN) { in setup_received_handle()
Dm66592-udc.c974 switch (ctrl->bRequestType & USB_RECIP_MASK) { in get_status()
1005 switch (ctrl->bRequestType & USB_RECIP_MASK) { in clear_feature()
1045 switch (ctrl->bRequestType & USB_RECIP_MASK) { in set_feature()
1100 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in setup_packet()
Dat91_udc.c1076 if (pkt.r.bRequestType & USB_DIR_IN) { in handle_setup()
1102 pkt.r.bRequestType, pkt.r.bRequest, in handle_setup()
1113 switch ((pkt.r.bRequestType << 8) | pkt.r.bRequest) { in handle_setup()
1272 pkt.r.bRequestType, pkt.r.bRequest, status); in handle_setup()
Dpch_udc.c2413 if ((dev->setup_data.bRequestType & USB_DIR_IN)) in pch_udc_svc_control_out()
2419 if ((dev->setup_data.bRequestType == 0x21) && in pch_udc_svc_control_out()
2427 if (dev->setup_data.bRequestType & USB_DIR_IN) { in pch_udc_svc_control_out()
2439 if (!(dev->setup_data.bRequestType & USB_DIR_IN)) { in pch_udc_svc_control_out()
2661 dev->setup_data.bRequestType = USB_RECIP_INTERFACE; in pch_udc_svc_intf_interrupt()
Dmv_u3d_core.c1517 if ((setup->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in mv_u3d_is_set_configuration()
1534 setup->bRequestType, setup->bRequest, in mv_u3d_handle_setup_packet()
1538 if ((setup->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in mv_u3d_handle_setup_packet()
1567 u3d->ep0_dir = (setup->bRequestType & USB_DIR_IN) in mv_u3d_handle_setup_packet()
Dpxa27x_udc.c1904 u.r.bRequestType, u.r.bRequest, in handle_ep0_ctrl_req()
1910 if (u.r.bRequestType & USB_DIR_IN) in handle_ep0_ctrl_req()
2139 req.bRequestType = 0; in pxa27x_change_configuration()
2168 req.bRequestType = USB_RECIP_INTERFACE; in pxa27x_change_interface()
Dr8a66597-udc.c1171 switch (ctrl->bRequestType & USB_RECIP_MASK) { in get_status()
1203 switch (ctrl->bRequestType & USB_RECIP_MASK) { in clear_feature()
1247 switch (ctrl->bRequestType & USB_RECIP_MASK) { in set_feature()
1301 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in setup_packet()
Dbcm63xx_udc.c1350 ctrl.bRequestType = USB_DIR_OUT | USB_RECIP_DEVICE; in bcm63xx_ep0_spoof_set_cfg()
1374 ctrl.bRequestType = USB_DIR_OUT | USB_RECIP_INTERFACE; in bcm63xx_ep0_spoof_set_iface()
1528 else if (ctrl->bRequestType & USB_DIR_IN) in bcm63xx_ep0_do_setup()
Damd5536udc.c2558 if ((setup_data.request.bRequestType & USB_DIR_IN) != 0) { in udc_control_out_isr()
2883 setup_data.request.bRequestType = USB_RECIP_INTERFACE; in udc_dev_isr()
Dgr_udc.c1111 type = u.ctrl.bRequestType; in gr_ep0_setup()
Dlpc32xx_udc.c2264 reqtype = le16_to_cpu(ctrlpkt.bRequestType); in udc_handle_ep0_setup()
/linux-4.4.14/drivers/usb/isp1760/
Disp1760-udc.c462 switch (req->bRequestType) { in isp1760_udc_get_status()
533 switch (req->bRequestType) { in isp1760_ep0_setup_standard()
577 switch (req->bRequestType) { in isp1760_ep0_setup_standard()
612 if (req->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in isp1760_ep0_setup_standard()
618 if (req->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE)) in isp1760_ep0_setup_standard()
681 else if (req.r.bRequestType & USB_DIR_IN) in isp1760_ep0_setup()
686 udc->ep0_dir = req.r.bRequestType & USB_DIR_IN; in isp1760_ep0_setup()
693 __func__, req.r.bRequestType, req.r.bRequest, in isp1760_ep0_setup()
697 if ((req.r.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in isp1760_ep0_setup()
/linux-4.4.14/drivers/usb/gadget/function/
Df_printer.c907 if ((ctrl->bRequestType & USB_RECIP_MASK) != USB_RECIP_INTERFACE || in gprinter_req_match()
908 (ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_CLASS) in gprinter_req_match()
915 (USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
920 (USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
925 !(USB_DIR_IN & ctrl->bRequestType)) in gprinter_req_match()
950 ctrl->bRequestType, ctrl->bRequest, wValue, wIndex, wLength); in printer_func_setup()
952 switch (ctrl->bRequestType&USB_TYPE_MASK) { in printer_func_setup()
994 ctrl->bRequestType, ctrl->bRequest, in printer_func_setup()
Df_ecm.c482 switch ((ctrl->bRequestType << 8) | ctrl->bRequest) { in ecm_setup()
511 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
518 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
525 ctrl->bRequestType, ctrl->bRequest, in ecm_setup()
Df_acm.c357 switch ((ctrl->bRequestType << 8) | ctrl->bRequest) { in acm_setup()
401 ctrl->bRequestType, ctrl->bRequest, in acm_setup()
409 acm->port_num, ctrl->bRequestType, ctrl->bRequest, in acm_setup()
Df_rndis.c477 switch ((ctrl->bRequestType << 8) | ctrl->bRequest) { in rndis_setup()
517 ctrl->bRequestType, ctrl->bRequest, in rndis_setup()
524 ctrl->bRequestType, ctrl->bRequest, in rndis_setup()
Df_sourcesink.c805 if (ctrl->bRequestType != (USB_DIR_OUT|USB_TYPE_VENDOR)) in sourcesink_setup()
815 if (ctrl->bRequestType != (USB_DIR_IN|USB_TYPE_VENDOR)) in sourcesink_setup()
829 ctrl->bRequestType, ctrl->bRequest, in sourcesink_setup()
836 ctrl->bRequestType, ctrl->bRequest, in sourcesink_setup()
Df_uac1.c533 switch (ctrl->bRequestType) { in f_audio_setup()
552 ctrl->bRequestType, ctrl->bRequest, in f_audio_setup()
559 ctrl->bRequestType, ctrl->bRequest, in f_audio_setup()
Df_ncm.c627 switch ((ctrl->bRequestType << 8) | ctrl->bRequest) { in ncm_setup()
773 ctrl->bRequestType, ctrl->bRequest, in ncm_setup()
780 ctrl->bRequestType, ctrl->bRequest, in ncm_setup()
787 ctrl->bRequestType, ctrl->bRequest, in ncm_setup()
Df_uvc.c241 if ((ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_CLASS) { in uvc_function_setup()
253 uvc->event_setup_out = !(ctrl->bRequestType & USB_DIR_IN); in uvc_function_setup()
Df_hid.c404 __func__, ctrl->bRequestType, ctrl->bRequest, value); in hidg_setup()
406 switch ((ctrl->bRequestType << 8) | ctrl->bRequest) { in hidg_setup()
Df_uac2.c1395 if (cr->bRequestType & USB_DIR_IN) in setup_rq_inf()
1414 if ((cr->bRequestType & USB_TYPE_MASK) != USB_TYPE_CLASS) in afunc_setup()
1417 if ((cr->bRequestType & USB_RECIP_MASK) == USB_RECIP_INTERFACE) in afunc_setup()
Df_eem.c179 ctrl->bRequestType, ctrl->bRequest, in eem_setup()
Df_fs.c343 if (!(ffs->ev.setup.bRequestType & USB_DIR_IN)) { in ffs_ep0_write()
487 if (ffs->ev.setup.bRequestType & USB_DIR_IN) { in ffs_ep0_read()
2976 pr_vdebug("creq->bRequestType = %02x\n", creq->bRequestType); in ffs_func_setup()
2994 switch (creq->bRequestType & USB_RECIP_MASK) { in ffs_func_setup()
Df_mass_storage.c522 if (ctrl->bRequestType != in fsg_setup()
538 if (ctrl->bRequestType != in fsg_setup()
554 ctrl->bRequestType, ctrl->bRequest, in fsg_setup()
/linux-4.4.14/drivers/usb/gadget/
Dcomposite.c1484 if ((ctrl->bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) in composite_setup()
1491 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
1575 if (ctrl->bRequestType != 0) in composite_setup()
1590 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
1603 if (ctrl->bRequestType != USB_RECIP_INTERFACE) in composite_setup()
1623 if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE)) in composite_setup()
1648 if (ctrl->bRequestType != (USB_DIR_IN | USB_RECIP_INTERFACE)) in composite_setup()
1671 if (ctrl->bRequestType != (USB_DIR_OUT | USB_RECIP_INTERFACE)) in composite_setup()
1698 (ctrl->bRequestType & USB_TYPE_VENDOR) && in composite_setup()
1713 switch (ctrl->bRequestType & USB_RECIP_MASK) { in composite_setup()
[all …]
/linux-4.4.14/include/uapi/linux/
Dusbdevice_fs.h40 __u8 bRequestType; member
/linux-4.4.14/drivers/net/irda/
Dks959-sir.c732 kingsun->rx_setuprequest->bRequestType = in ks959_probe()
752 kingsun->tx_setuprequest->bRequestType = in ks959_probe()
764 kingsun->speed_setuprequest->bRequestType = in ks959_probe()
Dksdazzle-sir.c675 kingsun->speed_setuprequest->bRequestType = in ksdazzle_probe()
/linux-4.4.14/drivers/usb/core/
Ddevio.c980 ret = check_ctrlrecip(ps, ctrl.bRequestType, ctrl.bRequest, in proc_control()
1000 ctrl.bRequestType, ctrl.bRequest, ctrl.wValue, in proc_control()
1002 if (ctrl.bRequestType & 0x80) { in proc_control()
1013 ctrl.bRequestType, ctrl.wValue, ctrl.wIndex, in proc_control()
1037 ctrl.bRequestType, ctrl.wValue, ctrl.wIndex, in proc_control()
1045 current->comm, ctrl.bRequestType, ctrl.bRequest, in proc_control()
1342 ret = check_ctrlrecip(ps, dr->bRequestType, dr->bRequest, in proc_do_submiturb()
1348 if ((dr->bRequestType & USB_DIR_IN) && uurb->buffer_length) { in proc_do_submiturb()
1358 dr->bRequestType, dr->bRequest, in proc_do_submiturb()
Durb.c368 is_out = !(setup->bRequestType & USB_DIR_IN) || in usb_submit_urb()
Dmessage.c142 dr->bRequestType = requesttype; in usb_control_msg()
Dhcd.c488 typeReq = (cmd->bRequestType << 8) | cmd->bRequest; in rh_call_control()
/linux-4.4.14/drivers/staging/emxx_udc/
Demxx_udc.c155 if ((p_ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in _nbu2ss_ep0_complete()
160 recipient = (u8)(p_ctrl->bRequestType & USB_RECIP_MASK); in _nbu2ss_ep0_complete()
1489 u8 recipient = (u8)(udc->ctrl.bRequestType & USB_RECIP_MASK); in _nbu2ss_req_feature()
1490 u8 direction = (u8)(udc->ctrl.bRequestType & USB_DIR_IN); in _nbu2ss_req_feature()
1584 u8 recipient = (u8)(udc->ctrl.bRequestType & USB_RECIP_MASK); in std_req_get_status()
1585 u8 direction = (u8)(udc->ctrl.bRequestType & USB_DIR_IN); in std_req_get_status()
1654 if ((udc->ctrl.bRequestType != 0x00) || in std_req_set_address()
1678 (udc->ctrl.bRequestType != 0x00)) { in std_req_set_configuration()
1722 if (p_ctrl->bRequestType & USB_DIR_IN) in _nbu2ss_decode_request()
1728 if ((p_ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in _nbu2ss_decode_request()
/linux-4.4.14/drivers/usb/misc/
Dusbtest.c1106 reqp->bRequestType, reqp->bRequest, in ctrl_complete()
1146 reqp->bRequestType, reqp->bRequest, status); in ctrl_complete()
1205 req.bRequestType = USB_DIR_IN|USB_RECIP_DEVICE; in test_ctrl_queue()
1218 req.bRequestType = USB_DIR_IN|USB_RECIP_INTERFACE; in test_ctrl_queue()
1225 req.bRequestType = USB_DIR_IN|USB_RECIP_INTERFACE; in test_ctrl_queue()
1231 req.bRequestType = USB_DIR_IN|USB_RECIP_DEVICE; in test_ctrl_queue()
1255 req.bRequestType = USB_RECIP_ENDPOINT; in test_ctrl_queue()
1264 req.bRequestType = USB_DIR_IN|USB_RECIP_ENDPOINT; in test_ctrl_queue()
Dyurex.c256 dev->cntl_req->bRequestType = USB_DIR_OUT | USB_TYPE_CLASS | in yurex_probe()
Duss720.c173 rq->dr->bRequestType = requesttype; in submit_async_request()
/linux-4.4.14/drivers/media/rc/
Digorplugusb.c180 ir->request.bRequestType = USB_TYPE_VENDOR | USB_DIR_IN; in igorplugusb_probe()
Dredrat3.c1015 rr3->flash_control.bRequestType = 0xc0; in redrat3_dev_probe()
Dimon.c596 control_req->bRequestType = 0x21; in send_packet()
/linux-4.4.14/drivers/input/joystick/iforce/
Diforce-usb.c163 iforce->cr.bRequestType = USB_TYPE_VENDOR | USB_DIR_IN | USB_RECIP_INTERFACE; in iforce_usb_probe()
/linux-4.4.14/drivers/usb/renesas_usbhs/
Dcommon.c169 req->bRequestType = (val >> 0) & 0xFF; in usbhs_usbreq_get_val()
178 usbhs_write(priv, USBREQ, (req->bRequest << 8) | req->bRequestType); in usbhs_usbreq_set_val()
Dmod_gadget.c418 int recip = ctrl->bRequestType & USB_RECIP_MASK; in usbhsg_recip_run_handle()
524 switch (ctrl.bRequestType & USB_TYPE_MASK) { in usbhsg_irq_ctrl_stage()
Dmod_host.c757 if ((DeviceOutRequest == req->bRequestType << 8) && in usbhsh_is_request_address()
/linux-4.4.14/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c184 if (event.u.setup.bRequestType & USB_DIR_IN) in handle_ep0()
/linux-4.4.14/drivers/staging/octeon-usb/
Docteon-hcd.c1430 if (header->bRequestType & USB_DIR_IN) in cvmx_usb_start_channel_control()
1437 ((header->bRequestType & USB_DIR_IN) ? in cvmx_usb_start_channel_control()
1443 if (!(header->bRequestType & USB_DIR_IN)) in cvmx_usb_start_channel_control()
1447 ((header->bRequestType & USB_DIR_IN) ? in cvmx_usb_start_channel_control()
1458 ((header->bRequestType & USB_DIR_IN) ? in cvmx_usb_start_channel_control()
1467 ((header->bRequestType & USB_DIR_IN) ? in cvmx_usb_start_channel_control()
2281 if ((header->bRequestType & USB_DIR_IN) == 0) in cvmx_usb_submit_control()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dusb.c287 devinfo->ctl_read.bRequestType = USB_DIR_IN in brcmf_usb_recv_ctl()
653 devinfo->ctl_write.bRequestType = in brcmf_usb_up()
660 devinfo->ctl_read.bRequestType = in brcmf_usb_up()
724 devinfo->ctl_read.bRequestType = USB_DIR_IN | USB_TYPE_VENDOR | in brcmf_usb_dl_cmd()
/linux-4.4.14/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c400 if (bdc->setup_pkt.bRequestType & USB_DIR_IN) in setup_first_bd_ep0()
417 !(bdc->setup_pkt.bRequestType & USB_DIR_IN)) in setup_first_bd_ep0()
1252 switch (setup_pkt->bRequestType & USB_RECIP_MASK) { in ep0_handle_feature()
1325 switch (setup_pkt->bRequestType & USB_RECIP_MASK) { in ep0_handle_status()
1449 if ((setup_pkt->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in handle_control_request()
/linux-4.4.14/drivers/usb/gadget/legacy/
Dinode.c1345 if (ctrl->bRequestType != USB_DIR_IN) in gadgetfs_setup()
1380 if (ctrl->bRequestType != 0) in gadgetfs_setup()
1428 if (ctrl->bRequestType != 0x80) in gadgetfs_setup()
1439 ctrl->bRequestType, ctrl->bRequest, in gadgetfs_setup()
1446 dev->setup_in = (ctrl->bRequestType & USB_DIR_IN) in gadgetfs_setup()
Dtcm_usb_gadget.c436 if (ctrl->bRequestType != (USB_DIR_IN | USB_TYPE_CLASS | in usbg_bot_setup()
/linux-4.4.14/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c189 if (event.u.setup.bRequestType & USB_DIR_IN) in handle_ep0()
/linux-4.4.14/drivers/input/misc/
Dcm109.c483 dev->ctl_req->bRequestType, in cm109_toggle_buzzer_sync()
737 dev->ctl_req->bRequestType = USB_TYPE_CLASS | USB_RECIP_INTERFACE | in cm109_usb_probe()
Dpowermate.c180 pm->configcr->bRequestType = 0x41; /* vendor request */ in powermate_sync_state()
Dyealink.c934 yld->ctl_req->bRequestType = USB_TYPE_CLASS | USB_RECIP_INTERFACE | in usb_probe()
/linux-4.4.14/drivers/usb/serial/
Dopticon.c224 dr->bRequestType = USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_DIR_OUT; in opticon_write()
Dsierra.c619 if ((req_pkt->bRequestType == 0xA1) && in sierra_instat_callback()
639 __func__, req_pkt->bRequestType, in sierra_instat_callback()
Dmos7840.c498 dr->bRequestType = MCS_RD_RTYPE; in mos7840_get_reg()
540 dr->bRequestType = MCS_WR_RTYPE; in mos7840_set_led_async()
Doption.c2100 if ((req_pkt->bRequestType == 0xA1) && in option_instat_callback()
2119 req_pkt->bRequestType, req_pkt->bRequest); in option_instat_callback()
Dmos7720.c381 urbtrack->setup->bRequestType = (__u8)0x40; in write_parport_reg_nonblock()
Dkeyspan.c1965 dr->bRequestType = USB_TYPE_VENDOR | USB_DIR_OUT; in keyspan_usa49_send_setup()
/linux-4.4.14/drivers/bluetooth/
Dbpa10x.c308 dr->bRequestType = USB_TYPE_VENDOR; in bpa10x_send_frame()
Dbtusb.c1150 dr->bRequestType = data->cmdreq_type; in alloc_ctrl_urb()
/linux-4.4.14/drivers/hid/usbhid/
Dusbkbd.c354 kbd->cr->bRequestType = USB_TYPE_CLASS | USB_RECIP_INTERFACE; in usb_kbd_probe()
Dhid-core.c401 usbhid->cr->bRequestType = USB_TYPE_CLASS | USB_RECIP_INTERFACE | dir; in hid_submit_ctrl()
/linux-4.4.14/drivers/usb/storage/
Dtransport.c204 us->cr->bRequestType = requesttype; in usb_stor_control_msg()
338 us->cr->bRequestType = requesttype; in usb_stor_ctrl_transfer()
/linux-4.4.14/include/uapi/linux/usb/
Dch9.h186 __u8 bRequestType; member
/linux-4.4.14/drivers/usb/dwc2/
Dgadget.c986 switch (ctrl->bRequestType & USB_RECIP_MASK) { in dwc2_hsotg_process_req_status()
1061 recip = ctrl->bRequestType & USB_RECIP_MASK; in dwc2_hsotg_process_req_feature()
1207 ctrl->bRequestType, ctrl->bRequest, ctrl->wValue, in dwc2_hsotg_process_control()
1213 } else if (ctrl->bRequestType & USB_DIR_IN) { in dwc2_hsotg_process_control()
1221 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in dwc2_hsotg_process_control()
/linux-4.4.14/drivers/usb/class/
Dcdc-wdm.c403 req->bRequestType = (USB_DIR_OUT | USB_TYPE_CLASS | in wdm_write()
823 desc->irq->bRequestType = (USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE); in wdm_create()
/linux-4.4.14/drivers/usb/chipidea/
Dudc.c877 if ((setup->bRequestType & USB_RECIP_MASK) == USB_RECIP_DEVICE) { in isr_get_status_response()
880 } else if ((setup->bRequestType & USB_RECIP_MASK) \ in isr_get_status_response()
1023 type = req.bRequestType; in isr_setup_packet_handler()
/linux-4.4.14/tools/usb/
Dffs-test.c532 printf("bRequestType = %d\n", setup->bRequestType); in handle_setup()
/linux-4.4.14/drivers/isdn/hisax/
Dst5481_usb.c74 ctrl_msg->dr.bRequestType = requesttype; in usb_ctrl_msg()
Dhfc_usb.c1178 hfc->ctrl_read.bRequestType = 0xc0; in hfc_usb_init()
1181 hfc->ctrl_write.bRequestType = 0x40; in hfc_usb_init()
/linux-4.4.14/drivers/net/usb/
Dhso.c1797 ctrl_req->bRequestType = USB_DIR_IN | in mux_device_request()
1804 ctrl_req->bRequestType = USB_DIR_OUT | in mux_device_request()
1813 ctrl_req->bRequestType, ctrl_req->wLength, port); in mux_device_request()
2003 if (req->bRequestType == in ctrl_callback()
Drtl8150.c196 req->dr.bRequestType = RTL8150_REQT_WRITE; in async_set_registers()
Dkaweth.c279 dr->bRequestType = requesttype; in kaweth_control()
Dcatc.c490 dr->bRequestType = 0x40 | q->dir; in catc_ctrl_run()
Dpegasus.c181 req->bRequestType = PEGASUS_REQT_WRITE; in update_eth_regs_async()
Dusbnet.c2214 req->bRequestType = reqtype; in usbnet_write_cmd_async()
/linux-4.4.14/drivers/isdn/gigaset/
Dbas-gigaset.c576 ucs->dr_cmd_in.bRequestType = IN_VENDOR_REQ; in atread_submit()
1611 ucs->dr_ctrl.bRequestType = OUT_VENDOR_REQ; in req_submit()
1876 ucs->dr_cmd_out.bRequestType = OUT_VENDOR_REQ; in atwrite_submit()
/linux-4.4.14/drivers/net/ieee802154/
Datusb.c630 atusb->tx_dr.bRequestType = ATUSB_REQ_TO_DEV; in atusb_probe()
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00usb.c200 rd->cr.bRequestType = USB_VENDOR_REQUEST_IN; in rt2x00usb_register_read_async()
/linux-4.4.14/drivers/usb/host/
Dxhci-ring.c3468 if (setup->bRequestType & USB_DIR_IN) in xhci_queue_ctrl_tx()
3476 setup->bRequestType | setup->bRequest << 8 | le16_to_cpu(setup->wValue) << 16, in xhci_queue_ctrl_tx()
3499 if (setup->bRequestType & USB_DIR_IN) in xhci_queue_ctrl_tx()
3513 if (urb->transfer_buffer_length > 0 && setup->bRequestType & USB_DIR_IN) in xhci_queue_ctrl_tx()
Dehci-hub.c818 dr->bRequestType = USB_DIR_IN; in ehset_single_step_set_feature()
/linux-4.4.14/drivers/usb/early/
Dehci-dbgp.c342 req.bRequestType = requesttype; in dbgp_control_msg()
/linux-4.4.14/drivers/isdn/hardware/mISDN/
Dhfcsusb.c1726 hw->ctrl_read.bRequestType = 0xc0; in setup_hfcsusb()
1729 hw->ctrl_write.bRequestType = 0x40; in setup_hfcsusb()
/linux-4.4.14/drivers/usb/wusbcore/
Dwa-xfer.c519 b->cmd.bRequestType = WA_XFER_ABORT; in __wa_xfer_abort()
702 xfer_hdr0->bRequestType = xfer_type; in __wa_xfer_setup_hdr0()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Dusb.c95 dr->bRequestType = reqtype; in _usbctrl_vendorreq_async_write()
/linux-4.4.14/sound/usb/
Dmixer_quirks.c285 mixer->rc_setup_packet->bRequestType = in snd_usb_soundblaster_remote_init()
/linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8187/
Ddev.c147 dr->bRequestType = RTL8187_REQT_WRITE; in rtl8187_iowrite_async()
/linux-4.4.14/drivers/media/usb/usbvision/
Dusbvision-core.c1442 usbvision->ctrl_urb_setup.bRequestType = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_ENDPOINT; in usbvision_write_reg_irq()