Lines Matching refs:le32_to_cpu
100 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
198 chain = le32_to_cpu(ring->enqueue->generic.field[3]) & TRB_CHAIN; in inc_enq()
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()
990 ep_state = le32_to_cpu(ep_ctx->ep_info); in xhci_handle_cmd_set_deq()
992 slot_state = le32_to_cpu(slot_ctx->dev_state); 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()
1128 add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_handle_cmd_config_ep()
1129 drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_handle_cmd_config_ep()
1175 NEC_FW_MAJOR(le32_to_cpu(event->status)), in xhci_handle_cmd_nec_get_fw()
1176 NEC_FW_MINOR(le32_to_cpu(event->status))); in xhci_handle_cmd_nec_get_fw()
1221 cycle_state = le32_to_cpu( in xhci_handle_stopped_cmd_ring()
1292 int slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); in handle_cmd_completion()
1327 cmd_comp_code = GET_COMP_CODE(le32_to_cpu(event->status)); in handle_cmd_completion()
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()
1814 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); in finish_td()
1816 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in finish_td()
1819 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in finish_td()
1904 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); in process_ctrl_td()
1906 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in process_ctrl_td()
1909 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
1948 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
1984 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
2012 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_isoc_td()
2020 if (EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) == 0) { in process_isoc_td()
2067 len += TRB_LEN(le32_to_cpu(cur_trb->generic.field[2])); in process_isoc_td()
2069 len += TRB_LEN(le32_to_cpu(cur_trb->generic.field[2])) - in process_isoc_td()
2070 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_isoc_td()
2122 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2128 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) != 0) { in process_bulk_intr_td()
2156 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len))); in process_bulk_intr_td()
2159 if (EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) != 0) { in process_bulk_intr_td()
2162 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2167 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len))); in process_bulk_intr_td()
2201 TRB_LEN(le32_to_cpu(cur_trb->generic.field[2])); in process_bulk_intr_td()
2208 TRB_LEN(le32_to_cpu(cur_trb->generic.field[2])) - in process_bulk_intr_td()
2209 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2244 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); in handle_tx_event()
2254 le32_to_cpu(event->transfer_len), in handle_tx_event()
2255 le32_to_cpu(event->flags)); in handle_tx_event()
2262 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in handle_tx_event()
2267 (le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK) == in handle_tx_event()
2277 le32_to_cpu(event->transfer_len), in handle_tx_event()
2278 le32_to_cpu(event->flags)); in handle_tx_event()
2291 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in handle_tx_event()
2298 if (EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) == 0) in handle_tx_event()
2351 TRB_TO_SLOT_ID(le32_to_cpu(event->flags)), in handle_tx_event()
2359 TRB_TO_SLOT_ID(le32_to_cpu(event->flags)), in handle_tx_event()
2403 TRB_TO_SLOT_ID(le32_to_cpu(event->flags)), in handle_tx_event()
2406 (le32_to_cpu(event->flags) & in handle_tx_event()
2586 if ((le32_to_cpu(event->event_cmd.flags) & TRB_CYCLE) != in xhci_handle_event()
2598 switch ((le32_to_cpu(event->event_cmd.flags) & TRB_TYPE_BITMASK)) { in xhci_handle_event()
2617 if ((le32_to_cpu(event->event_cmd.flags) & TRB_TYPE_BITMASK) >= in xhci_handle_event()
2873 le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK, in prepare_transfer()
2980 xhci_interval = EP_INTERVAL_TO_UFRAMES(le32_to_cpu(ep_ctx->ep_info)); in xhci_queue_intr_tx()
3772 ret = prepare_ring(xhci, ep_ring, le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK, in xhci_queue_isoc_tx_prepare()
3785 xhci_interval = EP_INTERVAL_TO_UFRAMES(le32_to_cpu(ep_ctx->ep_info)); in xhci_queue_isoc_tx_prepare()