Lines Matching refs:field
97 chain = le32_to_cpu(ring->enqueue->generic.field[3]) & TRB_CHAIN; in inc_enq()
194 trb->field[i] = cpu_to_le32(trb_fields[i]); in queue_trb()
377 start_trb->field[3] |= cpu_to_le32(start_cycle); in giveback_first_trb()
379 start_trb->field[3] &= cpu_to_le32(~TRB_CYCLE); in giveback_first_trb()
464 le32_to_cpu(event->generic.field[2])) != in xhci_wait_for_event()
469 le32_to_cpu(event->generic.field[0]), in xhci_wait_for_event()
470 le32_to_cpu(event->generic.field[1]), in xhci_wait_for_event()
471 le32_to_cpu(event->generic.field[2]), in xhci_wait_for_event()
472 le32_to_cpu(event->generic.field[3])); in xhci_wait_for_event()
497 u32 field; in abort_td() local
502 field = le32_to_cpu(event->trans_event.flags); in abort_td()
503 BUG_ON(TRB_TO_SLOT_ID(field) != udev->slot_id); in abort_td()
504 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in abort_td()
569 u32 field = 0; in xhci_bulk_tx() local
667 field = 0; in xhci_bulk_tx()
672 field |= TRB_CYCLE; in xhci_bulk_tx()
674 field |= ring->cycle_state; in xhci_bulk_tx()
682 field |= TRB_CHAIN; in xhci_bulk_tx()
684 field |= TRB_IOC; in xhci_bulk_tx()
690 field |= TRB_ISP; in xhci_bulk_tx()
704 trb_fields[3] = field | TRB_TYPE(TRB_NORMAL); in xhci_bulk_tx()
737 field = le32_to_cpu(event->trans_event.flags); in xhci_bulk_tx()
738 BUG_ON(TRB_TO_SLOT_ID(field) != slot_id); in xhci_bulk_tx()
739 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_bulk_tx()
765 u32 field; in xhci_ctrl_tx() local
837 field = 0; in xhci_ctrl_tx()
838 field |= TRB_IDT | TRB_TYPE(TRB_SETUP); in xhci_ctrl_tx()
840 field |= 0x1; in xhci_ctrl_tx()
846 field |= TRB_TX_TYPE(TRB_DATA_IN); in xhci_ctrl_tx()
848 field |= TRB_TX_TYPE(TRB_DATA_OUT); in xhci_ctrl_tx()
866 trb_fields[3] = field; in xhci_ctrl_tx()
870 field = 0; in xhci_ctrl_tx()
874 field = TRB_ISP | TRB_TYPE(TRB_DATA); in xhci_ctrl_tx()
876 field = TRB_TYPE(TRB_DATA); in xhci_ctrl_tx()
889 field |= TRB_DIR_IN; in xhci_ctrl_tx()
895 trb_fields[3] = field | ep_ring->cycle_state; in xhci_ctrl_tx()
907 field = 0; in xhci_ctrl_tx()
909 field = 0; in xhci_ctrl_tx()
911 field = TRB_DIR_IN; in xhci_ctrl_tx()
917 trb_fields[3] = field | TRB_IOC | in xhci_ctrl_tx()
927 field = le32_to_cpu(event->trans_event.flags); in xhci_ctrl_tx()
929 BUG_ON(TRB_TO_SLOT_ID(field) != slot_id); in xhci_ctrl_tx()
930 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_ctrl_tx()
945 BUG_ON(TRB_TO_SLOT_ID(field) != slot_id); in xhci_ctrl_tx()
946 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_ctrl_tx()