Lines Matching refs:packet
49 static int xhci_control_in(const int id, struct usb_request_packet_t *packet, void *target, const i…
51 static int xhci_control_out(const int id, struct usb_request_packet_t *packet, void *target, const …
53 static int xhci_setup_stage(struct xhci_ep_info_t *ep, const struct usb_request_packet_t *packet,
1063 static int xhci_setup_stage(struct xhci_ep_info_t *ep, const struct usb_request_packet_t *packet, in xhci_setup_stage() argument
1068 trb.bmRequestType = packet->request_type; in xhci_setup_stage()
1069 trb.bRequest = packet->request; in xhci_setup_stage()
1070 trb.wValue = packet->value; in xhci_setup_stage()
1071 trb.wIndex = packet->index; in xhci_setup_stage()
1072 trb.wLength = packet->length; in xhci_setup_stage()
1237 static int xhci_control_in(const int id, struct usb_request_packet_t *packet, void *target, const i… in xhci_control_in() argument
1247 xhci_setup_stage(&xhci_hc[id].ports[port_id].ep_info[XHCI_EP_CONTROL], packet, XHCI_DIR_IN); in xhci_control_in()
1248 if (packet->length) in xhci_control_in()
1250 data_buf_vaddr = (uint64_t)kzalloc(packet->length, 0); in xhci_control_in()
1252 packet->length, XHCI_DIR_IN_BIT, max_packet, status_buf_vaddr); in xhci_control_in()
1285 if (packet->length) in xhci_control_in()
1286 memcpy(target, (void *)data_buf_vaddr, packet->length); in xhci_control_in()
1287 retval = packet->length; in xhci_control_in()
1296 if (packet->length) in xhci_control_in()
1311 static int xhci_control_out(const int id, struct usb_request_packet_t *packet, void *target, const … in xhci_control_out() argument
1319 xhci_setup_stage(&xhci_hc[id].ports[port_id].ep_info[XHCI_EP_CONTROL], packet, XHCI_DIR_OUT); in xhci_control_out()
1321 if (packet->length) in xhci_control_out()
1323 data_buf_vaddr = (uint64_t)kzalloc(packet->length, 0); in xhci_control_out()
1325 packet->length, XHCI_DIR_OUT_BIT, max_packet, status_buf_vaddr); in xhci_control_out()
1349 if (packet->length) in xhci_control_out()
1350 memcpy(target, (void *)data_buf_vaddr, packet->length); in xhci_control_out()
1351 retval = packet->length; in xhci_control_out()
1359 if (packet->length) in xhci_control_out()