Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/usb/cdns3/
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()
612 cur_ring->cycle_state; in cdnsp_alloc_stream_info()
722 ep0_ctx->deq = cpu_to_le64(dma | ep_ring->cycle_state); in cdnsp_copy_ep0_dequeue_into_input_ctx()
770 pdev->eps[0].ring->cycle_state); in cdnsp_setup_addressable_priv_dev()
[all …]
Dcdnsp-ring.c156 ring->cycle_state ^= 1; in cdnsp_inc_deq()
222 ring->cycle_state ^= 1; in cdnsp_inc_enq()
1029 cdnsp_giveback_first_trb(pdev, pep, 0, ep_ring->cycle_state, in cdnsp_process_ctrl_td()
1454 if (cycle_bit != pdev->event_ring->cycle_state) in cdnsp_handle_event()
1666 ep_ring->cycle_state ^= 1; in cdnsp_prepare_ring()
1932 start_cycle = ring->cycle_state; in cdnsp_queue_bulk_tx()
1952 field |= ring->cycle_state; in cdnsp_queue_bulk_tx()
2023 if (!ring->cycle_state) in cdnsp_queue_bulk_tx()
2088 field | ep_ring->cycle_state | in cdnsp_queue_ctrl_tx()
2101 field | ep_ring->cycle_state | in cdnsp_queue_ctrl_tx()
[all …]
Dcdnsp-gadget.c492 u32 cycle_state; in cdnsp_invalidate_ep_events() local
497 cycle_state = pdev->event_ring->cycle_state; in cdnsp_invalidate_ep_events()
503 if ((data & TRB_CYCLE) != cycle_state) in cdnsp_invalidate_ep_events()
513 cycle_state ^= 1; in cdnsp_invalidate_ep_events()
528 u32 cycle_state; in cdnsp_wait_for_cmd_compl() local
550 cycle_state = pdev->event_ring->cycle_state; in cdnsp_wait_for_cmd_compl()
560 if ((flags & TRB_CYCLE) != cycle_state) in cdnsp_wait_for_cmd_compl()
578 cycle_state ^= 1; in cdnsp_wait_for_cmd_compl()
1380 pdev->cmd_ring->cycle_state; in cdnsp_clear_cmd_ring()
1400 if (cycle_bit != pdev->event_ring->cycle_state) in cdnsp_consume_all_events()
Dcdnsp-trace.h709 __field(unsigned int, cycle_state)
720 __entry->cycle_state = ring->cycle_state;
737 __entry->cycle_state
Dcdnsp-gadget.h1258 u32 cycle_state; member
/linux-6.12.1/drivers/usb/early/
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()
805 while ((le32_to_cpu(evt_trb->field[3]) & TRB_CYCLE) == xdbc.evt_ring.cycle_state) { in xdbc_handle_events()
826 xdbc.evt_ring.cycle_state ^= 1; in xdbc_handle_events()
Dxhci-dbc.h120 u32 cycle_state; member
/linux-6.12.1/drivers/usb/host/
Dxhci-mem.c30 unsigned int cycle_state, in xhci_segment_alloc() argument
60 if (cycle_state == 0) { in xhci_segment_alloc()
301 unsigned int cycle_state) in xhci_initialize_ring_info() argument
315 ring->cycle_state = cycle_state; in xhci_initialize_ring_info()
330 unsigned int cycle_state, in xhci_alloc_segments_for_ring() argument
341 prev = xhci_segment_alloc(xhci, cycle_state, max_packet, num, flags); in xhci_alloc_segments_for_ring()
350 next = xhci_segment_alloc(xhci, cycle_state, max_packet, num, in xhci_alloc_segments_for_ring()
377 unsigned int num_segs, unsigned int cycle_state, in xhci_ring_alloc() argument
396 cycle_state, type, max_packet, flags); in xhci_ring_alloc()
406 xhci_initialize_ring_info(ring, cycle_state); in xhci_ring_alloc()
[all …]
Dxhci-trace.h461 __field(unsigned int, cycle_state)
471 __entry->cycle_state = ring->cycle_state;
483 __entry->cycle_state
Dxhci-ring.c119 ring->cycle_state); in unhandled_event_trb()
175 ring->cycle_state ^= 1; in inc_deq()
263 ring->cycle_state ^= 1; in inc_enq()
3241 ep_ring->cycle_state ^= 1; in prepare_ring()
3602 start_cycle = ring->cycle_state; in xhci_queue_bulk_tx()
3623 field |= ring->cycle_state; in xhci_queue_bulk_tx()
3695 field = TRB_TYPE(TRB_NORMAL) | ring->cycle_state | TRB_IOC; in xhci_queue_bulk_tx()
3754 start_cycle = ep_ring->cycle_state; in xhci_queue_ctrl_tx()
3814 field | ep_ring->cycle_state); in xhci_queue_ctrl_tx()
3832 field | TRB_IOC | TRB_TYPE(TRB_STATUS) | ep_ring->cycle_state); in xhci_queue_ctrl_tx()
[all …]
Dxhci-dbgcap.c130 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_out->cycle_state); in xhci_dbc_init_contexts()
137 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_in->cycle_state); in xhci_dbc_init_contexts()
258 ring->cycle_state ^= 1; in xhci_dbc_queue_trb()
279 cycle = ring->cycle_state; in xhci_dbc_queue_bulk_tx()
814 ring->cycle_state ^= 1; in inc_evt_deq()
894 dbc->ring_evt->cycle_state) { in xhci_dbc_do_handle_events()
Dxhci.h1356 u32 cycle_state; member
1792 unsigned int num_segs, unsigned int cycle_state,
1798 unsigned int cycle_state);
Dxhci-debugfs.c191 seq_printf(s, "%d\n", ring->cycle_state); in xhci_ring_cycle_show()
Dxhci.c766 xhci->cmd_ring->cycle_state; in xhci_set_cmd_ring_deq()