Lines Matching refs:ctrl
957 const struct usb_ctrlrequest *ctrl, in gprinter_req_match() argument
961 u16 w_index = le16_to_cpu(ctrl->wIndex); in gprinter_req_match()
962 u16 w_value = le16_to_cpu(ctrl->wValue); in gprinter_req_match()
963 u16 w_length = le16_to_cpu(ctrl->wLength); in gprinter_req_match()
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()
972 switch (ctrl->bRequest) { 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()
999 const struct usb_ctrlrequest *ctrl) in printer_func_setup() argument
1006 u16 wIndex = le16_to_cpu(ctrl->wIndex); in printer_func_setup()
1007 u16 wValue = le16_to_cpu(ctrl->wValue); in printer_func_setup()
1008 u16 wLength = le16_to_cpu(ctrl->wLength); in printer_func_setup()
1011 ctrl->bRequestType, ctrl->bRequest, wValue, wIndex, wLength); in printer_func_setup()
1013 switch (ctrl->bRequestType&USB_TYPE_MASK) { in printer_func_setup()
1015 switch (ctrl->bRequest) { in printer_func_setup()
1061 ctrl->bRequestType, ctrl->bRequest, in printer_func_setup()