Lines Matching refs:event
411 union xhci_trb *event; in event_ready() local
416 event = ctrl->event_ring->dequeue; in event_ready()
419 if ((le32_to_cpu(event->event_cmd.flags) & TRB_CYCLE) != in event_ready()
441 union xhci_trb *event = ctrl->event_ring->dequeue; in xhci_wait_for_event() local
446 type = TRB_FIELD_TO_TYPE(le32_to_cpu(event->event_cmd.flags)); in xhci_wait_for_event()
448 return event; in xhci_wait_for_event()
457 le32_to_cpu(event->generic.field[2])) != in xhci_wait_for_event()
462 le32_to_cpu(event->generic.field[0]), in xhci_wait_for_event()
463 le32_to_cpu(event->generic.field[1]), in xhci_wait_for_event()
464 le32_to_cpu(event->generic.field[2]), in xhci_wait_for_event()
465 le32_to_cpu(event->generic.field[3])); in xhci_wait_for_event()
485 union xhci_trb *event; in reset_ep() local
490 event = xhci_wait_for_event(ctrl, TRB_COMPLETION); in reset_ep()
491 if (!event) in reset_ep()
494 field = le32_to_cpu(event->trans_event.flags); in reset_ep()
500 event = xhci_wait_for_event(ctrl, TRB_COMPLETION); in reset_ep()
501 if (!event) in reset_ep()
504 BUG_ON(TRB_TO_SLOT_ID(le32_to_cpu(event->event_cmd.flags)) in reset_ep()
506 event->event_cmd.status)) != COMP_SUCCESS); in reset_ep()
522 union xhci_trb *event; in abort_td() local
527 event = xhci_wait_for_event(ctrl, TRB_TRANSFER); in abort_td()
528 if (!event) in abort_td()
531 field = le32_to_cpu(event->trans_event.flags); in abort_td()
534 BUG_ON(GET_COMP_CODE(le32_to_cpu(event->trans_event.transfer_len in abort_td()
538 event = xhci_wait_for_event(ctrl, TRB_COMPLETION); in abort_td()
539 if (!event) in abort_td()
542 BUG_ON(TRB_TO_SLOT_ID(le32_to_cpu(event->event_cmd.flags)) in abort_td()
544 event->event_cmd.status)) != COMP_SUCCESS); in abort_td()
549 event = xhci_wait_for_event(ctrl, TRB_COMPLETION); in abort_td()
550 if (!event) in abort_td()
553 BUG_ON(TRB_TO_SLOT_ID(le32_to_cpu(event->event_cmd.flags)) in abort_td()
555 event->event_cmd.status)) != COMP_SUCCESS); in abort_td()
560 union xhci_trb *event, int length) in record_transfer_result() argument
563 (int)EVENT_TRB_LEN(le32_to_cpu(event->trans_event.transfer_len))); in record_transfer_result()
565 switch (GET_COMP_CODE(le32_to_cpu(event->trans_event.transfer_len))) { in record_transfer_result()
612 union xhci_trb *event; in xhci_bulk_tx() local
757 event = xhci_wait_for_event(ctrl, TRB_TRANSFER); in xhci_bulk_tx()
758 if (!event) { in xhci_bulk_tx()
765 field = le32_to_cpu(event->trans_event.flags); in xhci_bulk_tx()
769 BUG_ON(*(void **)(uintptr_t)le64_to_cpu(event->trans_event.buffer) - in xhci_bulk_tx()
772 record_transfer_result(udev, event, length); in xhci_bulk_tx()
806 union xhci_trb *event; in xhci_ctrl_tx() local
954 event = xhci_wait_for_event(ctrl, TRB_TRANSFER); in xhci_ctrl_tx()
955 if (!event) in xhci_ctrl_tx()
957 field = le32_to_cpu(event->trans_event.flags); in xhci_ctrl_tx()
962 record_transfer_result(udev, event, length); in xhci_ctrl_tx()
973 if (GET_COMP_CODE(le32_to_cpu(event->trans_event.transfer_len)) in xhci_ctrl_tx()
976 event = xhci_wait_for_event(ctrl, TRB_TRANSFER); in xhci_ctrl_tx()
977 if (!event) in xhci_ctrl_tx()