Lines Matching refs:setup_pkt

394 		if (bdc->setup_pkt.bRequestType & USB_DIR_IN)  in setup_first_bd_ep0()
398 wValue = le16_to_cpu(bdc->setup_pkt.wValue); in setup_first_bd_ep0()
410 if (!le16_to_cpu(bdc->setup_pkt.wLength) || in setup_first_bd_ep0()
411 !(bdc->setup_pkt.bRequestType & USB_DIR_IN)) in setup_first_bd_ep0()
1066 struct usb_ctrlrequest *setup_pkt; in bdc_xsf_ep0_setup_recv() local
1073 setup_pkt = &bdc->setup_pkt; in bdc_xsf_ep0_setup_recv()
1074 memcpy(setup_pkt, &sreport->offset[0], sizeof(*setup_pkt)); in bdc_xsf_ep0_setup_recv()
1075 len = le16_to_cpu(setup_pkt->wLength); in bdc_xsf_ep0_setup_recv()
1230 struct usb_ctrlrequest *setup_pkt, bool set) in ep0_handle_feature() argument
1238 wValue = le16_to_cpu(setup_pkt->wValue); in ep0_handle_feature()
1239 wIndex = le16_to_cpu(setup_pkt->wIndex); in ep0_handle_feature()
1246 switch (setup_pkt->bRequestType & USB_RECIP_MASK) { in ep0_handle_feature()
1305 struct usb_ctrlrequest *setup_pkt) in ep0_handle_status() argument
1316 wIndex = le16_to_cpu(setup_pkt->wIndex); in ep0_handle_status()
1319 switch (setup_pkt->bRequestType & USB_RECIP_MASK) { in ep0_handle_status()
1386 struct usb_ctrlrequest *setup_pkt) in ep0_set_sel() argument
1392 wLength = le16_to_cpu(setup_pkt->wLength); in ep0_set_sel()
1434 struct usb_ctrlrequest *setup_pkt; in handle_control_request() local
1439 setup_pkt = &bdc->setup_pkt; in handle_control_request()
1441 if ((setup_pkt->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in handle_control_request()
1442 switch (setup_pkt->bRequest) { in handle_control_request()
1445 ret = ep0_set_address(bdc, setup_pkt); in handle_control_request()
1459 config = le16_to_cpu(setup_pkt->wValue); in handle_control_request()
1470 ret = ep0_handle_feature(bdc, setup_pkt, 1); in handle_control_request()
1475 ret = ep0_handle_feature(bdc, setup_pkt, 0); in handle_control_request()
1480 ret = ep0_handle_status(bdc, setup_pkt); in handle_control_request()
1485 ret = ep0_set_sel(bdc, setup_pkt); in handle_control_request()
1502 ret = bdc->gadget_driver->setup(&bdc->gadget, setup_pkt); in handle_control_request()
1550 struct usb_ctrlrequest *setup_pkt; in bdc_xsf_ep0_status_start() local
1583 setup_pkt = &bdc->setup_pkt; in bdc_xsf_ep0_status_start()
1589 if (!le16_to_cpu(setup_pkt->wLength)) { in bdc_xsf_ep0_status_start()