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()
1815 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); in finish_td()
1817 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in finish_td()
1820 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in finish_td()
1907 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); in process_ctrl_td()
1909 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in process_ctrl_td()
1912 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
1939 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
1947 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
1965 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
2001 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_ctrl_td()
2029 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_isoc_td()
2037 if (EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) == 0) { in process_isoc_td()
2082 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); 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()
2093 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_isoc_td()
2145 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2151 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) != 0) { in process_bulk_intr_td()
2180 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len))); in process_bulk_intr_td()
2184 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2189 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len))); in process_bulk_intr_td()
2195 if (EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) != 0) { in process_bulk_intr_td()
2198 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2203 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len))); 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()
2245 EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); in process_bulk_intr_td()
2280 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); in handle_tx_event()
2290 le32_to_cpu(event->transfer_len), in handle_tx_event()
2291 le32_to_cpu(event->flags)); in handle_tx_event()
2298 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in handle_tx_event()
2303 (le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK) == in handle_tx_event()
2313 le32_to_cpu(event->transfer_len), in handle_tx_event()
2314 le32_to_cpu(event->flags)); in handle_tx_event()
2327 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); in handle_tx_event()
2334 if (EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)) == 0) in handle_tx_event()
2390 TRB_TO_SLOT_ID(le32_to_cpu(event->flags)), in handle_tx_event()
2398 TRB_TO_SLOT_ID(le32_to_cpu(event->flags)), in handle_tx_event()
2442 TRB_TO_SLOT_ID(le32_to_cpu(event->flags)), in handle_tx_event()
2445 (le32_to_cpu(event->flags) & in handle_tx_event()
2625 if ((le32_to_cpu(event->event_cmd.flags) & TRB_CYCLE) != in xhci_handle_event()
2637 switch ((le32_to_cpu(event->event_cmd.flags) & TRB_TYPE_BITMASK)) { in xhci_handle_event()
2656 if ((le32_to_cpu(event->event_cmd.flags) & TRB_TYPE_BITMASK) >= in xhci_handle_event()
2912 le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK, in prepare_transfer()
3019 xhci_interval = EP_INTERVAL_TO_UFRAMES(le32_to_cpu(ep_ctx->ep_info)); in xhci_queue_intr_tx()
3924 ret = prepare_ring(xhci, ep_ring, le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK, in xhci_queue_isoc_tx_prepare()
3933 xhci_interval = EP_INTERVAL_TO_UFRAMES(le32_to_cpu(ep_ctx->ep_info)); in xhci_queue_isoc_tx_prepare()
3956 if ((le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK) == in xhci_queue_isoc_tx_prepare()