Lines Matching refs:field

198 	chain = le32_to_cpu(ring->enqueue->generic.field[3]) & TRB_CHAIN;  in inc_enq()
495 TRB_TYPE_LINK_LE32(new_deq->generic.field[3]) && in xhci_find_new_dequeue_state()
496 new_deq->generic.field[3] & cpu_to_le32(LINK_TOGGLE)) in xhci_find_new_dequeue_state()
540 if (TRB_TYPE_LINK_LE32(cur_trb->generic.field[3])) { in td_to_noop()
544 cur_trb->generic.field[3] &= cpu_to_le32(~TRB_CHAIN); in td_to_noop()
549 cur_trb->generic.field[3] ^= in td_to_noop()
561 cur_trb->generic.field[0] = 0; in td_to_noop()
562 cur_trb->generic.field[1] = 0; in td_to_noop()
563 cur_trb->generic.field[2] = 0; in td_to_noop()
565 cur_trb->generic.field[3] &= cpu_to_le32(TRB_CYCLE); in td_to_noop()
569 cur_trb->generic.field[3] ^= in td_to_noop()
571 cur_trb->generic.field[3] |= cpu_to_le32( in td_to_noop()
648 if (unlikely(TRB_TO_SUSPEND_PORT(le32_to_cpu(trb->generic.field[3])))) { in xhci_handle_cmd_stop_ep()
657 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_stop_ep()
964 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_set_deq()
965 stream_id = TRB_TO_STREAM_ID(le32_to_cpu(trb->generic.field[2])); in xhci_handle_cmd_set_deq()
1052 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_reset_ep()
1222 i_cmd->command_trb->generic.field[3]) & TRB_CYCLE; in xhci_handle_stopped_cmd_ring()
1224 i_cmd->command_trb->generic.field[0] = 0; in xhci_handle_stopped_cmd_ring()
1225 i_cmd->command_trb->generic.field[1] = 0; in xhci_handle_stopped_cmd_ring()
1226 i_cmd->command_trb->generic.field[2] = 0; in xhci_handle_stopped_cmd_ring()
1227 i_cmd->command_trb->generic.field[3] = cpu_to_le32( in xhci_handle_stopped_cmd_ring()
1346 cmd_type = TRB_FIELD_TO_TYPE(le32_to_cpu(cmd_trb->generic.field[3])); in handle_cmd_completion()
1365 le32_to_cpu(cmd_trb->generic.field[3]))); in handle_cmd_completion()
1370 le32_to_cpu(cmd_trb->generic.field[3]))); in handle_cmd_completion()
1380 le32_to_cpu(cmd_trb->generic.field[3]))); in handle_cmd_completion()
1388 le32_to_cpu(cmd_trb->generic.field[3])); in handle_cmd_completion()
1418 trb_type = TRB_FIELD_TO_TYPE(le32_to_cpu(event->generic.field[3])); in handle_vendor_event()
1468 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->generic.field[3])); in handle_device_notification()
1497 if (GET_COMP_CODE(le32_to_cpu(event->generic.field[2])) != COMP_SUCCESS) { in handle_port_status()
1501 port_id = GET_PORT_ID(le32_to_cpu(event->generic.field[0])); in handle_port_status()
2088 if (!TRB_TYPE_NOOP_LE32(cur_trb->generic.field[3]) && in process_isoc_td()
2089 !TRB_TYPE_LINK_LE32(cur_trb->generic.field[3])) in process_isoc_td()
2090 len += TRB_LEN(le32_to_cpu(cur_trb->generic.field[2])); in process_isoc_td()
2092 len += TRB_LEN(le32_to_cpu(cur_trb->generic.field[2])) - in process_isoc_td()
2234 if (!TRB_TYPE_NOOP_LE32(cur_trb->generic.field[3]) && in process_bulk_intr_td()
2235 !TRB_TYPE_LINK_LE32(cur_trb->generic.field[3])) in process_bulk_intr_td()
2237 TRB_LEN(le32_to_cpu(cur_trb->generic.field[2])); in process_bulk_intr_td()
2244 TRB_LEN(le32_to_cpu(cur_trb->generic.field[2])) - in process_bulk_intr_td()
2535 if (TRB_TYPE_NOOP_LE32(event_trb->generic.field[3])) { in handle_tx_event()
2793 trb->field[0] = cpu_to_le32(field1); in queue_trb()
2794 trb->field[1] = cpu_to_le32(field2); in queue_trb()
2795 trb->field[2] = cpu_to_le32(field3); in queue_trb()
2796 trb->field[3] = cpu_to_le32(field4); in queue_trb()
2999 start_trb->field[3] |= cpu_to_le32(start_cycle); in giveback_first_trb()
3001 start_trb->field[3] &= cpu_to_le32(~TRB_CYCLE); in giveback_first_trb()
3166 u32 field = 0; in queue_bulk_sg_tx() local
3174 field |= 0x1; in queue_bulk_sg_tx()
3176 field |= ep_ring->cycle_state; in queue_bulk_sg_tx()
3182 field |= TRB_CHAIN; in queue_bulk_sg_tx()
3185 field |= TRB_IOC; in queue_bulk_sg_tx()
3189 field |= TRB_IOC; in queue_bulk_sg_tx()
3194 field |= TRB_ISP; in queue_bulk_sg_tx()
3221 field | TRB_TYPE(TRB_NORMAL)); in queue_bulk_sg_tx()
3268 u32 field, length_field; in xhci_queue_bulk_tx() local
3344 field = 0; in xhci_queue_bulk_tx()
3350 field |= 0x1; in xhci_queue_bulk_tx()
3352 field |= ep_ring->cycle_state; in xhci_queue_bulk_tx()
3358 field |= TRB_CHAIN; in xhci_queue_bulk_tx()
3361 field |= TRB_IOC; in xhci_queue_bulk_tx()
3365 field |= TRB_IOC; in xhci_queue_bulk_tx()
3370 field |= TRB_ISP; in xhci_queue_bulk_tx()
3389 field | TRB_TYPE(TRB_NORMAL)); in xhci_queue_bulk_tx()
3416 u32 field, length_field, remainder; in xhci_queue_ctrl_tx() local
3460 field = 0; in xhci_queue_ctrl_tx()
3461 field |= TRB_IDT | TRB_TYPE(TRB_SETUP); in xhci_queue_ctrl_tx()
3463 field |= 0x1; in xhci_queue_ctrl_tx()
3469 field |= TRB_TX_TYPE(TRB_DATA_IN); in xhci_queue_ctrl_tx()
3471 field |= TRB_TX_TYPE(TRB_DATA_OUT); in xhci_queue_ctrl_tx()
3480 field); in xhci_queue_ctrl_tx()
3485 field = TRB_ISP | TRB_TYPE(TRB_DATA); in xhci_queue_ctrl_tx()
3487 field = TRB_TYPE(TRB_DATA); in xhci_queue_ctrl_tx()
3500 field |= TRB_DIR_IN; in xhci_queue_ctrl_tx()
3505 field | ep_ring->cycle_state); in xhci_queue_ctrl_tx()
3514 field = 0; in xhci_queue_ctrl_tx()
3516 field = TRB_DIR_IN; in xhci_queue_ctrl_tx()
3522 field | TRB_IOC | TRB_TYPE(TRB_STATUS) | ep_ring->cycle_state); in xhci_queue_ctrl_tx()
3705 u32 field, length_field; in xhci_queue_isoc_tx() local
3762 field = 0; in xhci_queue_isoc_tx()
3765 field = TRB_TBC(burst_count) | in xhci_queue_isoc_tx()
3768 field |= TRB_TYPE(TRB_ISOC); in xhci_queue_isoc_tx()
3777 field |= TRB_FRAME_ID(frame_id); in xhci_queue_isoc_tx()
3779 field |= TRB_SIA; in xhci_queue_isoc_tx()
3781 field |= TRB_SIA; in xhci_queue_isoc_tx()
3785 field |= 0x1; in xhci_queue_isoc_tx()
3787 field |= ep_ring->cycle_state; in xhci_queue_isoc_tx()
3791 field |= TRB_TYPE(TRB_NORMAL); in xhci_queue_isoc_tx()
3792 field |= ep_ring->cycle_state; in xhci_queue_isoc_tx()
3797 field |= TRB_ISP; in xhci_queue_isoc_tx()
3804 field |= TRB_CHAIN; in xhci_queue_isoc_tx()
3808 field |= TRB_IOC; in xhci_queue_isoc_tx()
3814 field |= TRB_BEI; in xhci_queue_isoc_tx()
3838 field); in xhci_queue_isoc_tx()