Home
last modified time | relevance | path

Searched refs:cycle_state (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/usb/cdns3/
H A Dcdnsp-mem.c30 unsigned int cycle_state, in cdnsp_segment_alloc() argument
55 if (cycle_state == 0) { in cdnsp_segment_alloc()
312 ring->cycle_state = 1; in cdnsp_initialize_ring_info()
326 unsigned int cycle_state, in cdnsp_alloc_segments_for_ring() argument
334 prev = cdnsp_segment_alloc(pdev, cycle_state, max_packet, flags); in cdnsp_alloc_segments_for_ring()
345 next = cdnsp_segment_alloc(pdev, cycle_state, in cdnsp_alloc_segments_for_ring()
439 ring->cycle_state, ring->type, in cdnsp_ring_expansion()
611 cur_ring->cycle_state; in cdnsp_alloc_stream_info()
721 ep0_ctx->deq = cpu_to_le64(dma | ep_ring->cycle_state); in cdnsp_copy_ep0_dequeue_into_input_ctx()
769 pdev->eps[0].ring->cycle_state); in cdnsp_setup_addressable_priv_dev()
[all...]
H A Dcdnsp-ring.c156 ring->cycle_state ^= 1; in cdnsp_inc_deq()
222 ring->cycle_state ^= 1; in cdnsp_inc_enq()
1035 cdnsp_giveback_first_trb(pdev, pep, 0, ep_ring->cycle_state, in cdnsp_process_ctrl_td()
1460 if (cycle_bit != pdev->event_ring->cycle_state) in cdnsp_handle_event()
1672 ep_ring->cycle_state ^= 1; in cdnsp_prepare_ring()
1938 start_cycle = ring->cycle_state; in cdnsp_queue_bulk_tx()
1958 field |= ring->cycle_state; in cdnsp_queue_bulk_tx()
2029 if (!ring->cycle_state) in cdnsp_queue_bulk_tx()
2094 field | ep_ring->cycle_state | in cdnsp_queue_ctrl_tx()
2107 field | ep_ring->cycle_state | in cdnsp_queue_ctrl_tx()
[all...]
H A Dcdnsp-gadget.c522 u32 cycle_state; in cdnsp_invalidate_ep_events()
527 cycle_state = pdev->event_ring->cycle_state; in cdnsp_invalidate_ep_events()
533 if ((data & TRB_CYCLE) != cycle_state) in cdnsp_invalidate_ep_events()
543 cycle_state ^= 1;
558 u32 cycle_state; in cdnsp_wait_for_cmd_compl()
581 cycle_state = pdev->event_ring->cycle_state; in cdnsp_wait_for_cmd_compl()
591 if ((flags & TRB_CYCLE) != cycle_state) { in cdnsp_wait_for_cmd_compl()
624 cycle_state in cdnsp_wait_for_cmd_compl()
514 u32 cycle_state; cdnsp_invalidate_ep_events() local
550 u32 cycle_state; cdnsp_wait_for_cmd_compl() local
[all...]
H A Dcdnsp-gadget.h1247 * @cycle_state: Current cycle bit. Write the cycle state into the TRB cycle
1271 u32 cycle_state; member
/linux/drivers/usb/early/
H A Dxhci-dbc.c208 ring->cycle_state = 1; in xdbc_reset_ring()
326 ep_out->deq = cpu_to_le64(xdbc.out_seg.dma | xdbc.out_ring.cycle_state); in xdbc_mem_init()
333 ep_in->deq = cpu_to_le64(xdbc.in_seg.dma | xdbc.in_ring.cycle_state); in xdbc_mem_init()
403 if (ring->cycle_state) in xdbc_queue_trb()
409 ring->cycle_state ^= 1; in xdbc_queue_trb()
488 cycle = ring->cycle_state; in xdbc_bulk_transfer()
809 while ((le32_to_cpu(evt_trb->field[3]) & TRB_CYCLE) == xdbc.evt_ring.cycle_state) { in xdbc_handle_events()
830 xdbc.evt_ring.cycle_state ^= 1; in xdbc_handle_events()
H A Dxhci-dbc.h120 u32 cycle_state; member
/linux/drivers/usb/host/
H A Dxhci-trace.h484 __field(unsigned int, cycle_state)
492 __entry->cycle_state = ring->cycle_state;
504 __entry->cycle_state
H A Dxhci-ring.c138 ring->cycle_state); in unhandled_event_trb()
197 ring->cycle_state ^= 1; in inc_deq()
258 ring->cycle_state ^= 1; in inc_enq_past_link()
3146 ring->cycle_state = le32_to_cpu(current_trb->event_cmd.flags) & TRB_CYCLE;
3644 start_cycle = ring->cycle_state; in xhci_queue_bulk_tx()
3665 field |= ring->cycle_state; in xhci_queue_bulk_tx()
3737 field = TRB_TYPE(TRB_NORMAL) | ring->cycle_state | TRB_IOC; in xhci_queue_bulk_tx()
3780 field = TRB_TYPE(TRB_TR_NOOP) | ep_ring->cycle_state; in xhci_queue_ctrl_tx()
3810 start_cycle = ep_ring->cycle_state; in xhci_queue_ctrl_tx()
3870 field | ep_ring->cycle_state); in xhci_queue_ctrl_tx()
[all...]
H A Dxhci-dbgcap.c74 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_out->cycle_state); in xhci_dbc_init_ep_contexts()
81 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_in->cycle_state); in xhci_dbc_init_ep_contexts()
282 ring->cycle_state ^= 1; in xhci_dbc_queue_trb()
303 cycle = ring->cycle_state; in xhci_dbc_queue_bulk_tx()
881 ring->cycle_state ^= 1; in xhci_dbc_do_handle_events()
989 dbc->ring_evt->cycle_state) { in xhci_dbc_do_handle_events()
H A Dxhci-debugfs.c191 seq_printf(s, "%d\n", ring->cycle_state); in xhci_ring_cycle_show()
H A Dxhci.c502 crcr |= xhci->cmd_ring->cycle_state; in xhci_set_cmd_ring_deq()