/linux-6.1.9/drivers/usb/cdns3/ |
D | cdnsp-mem.c | 30 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 …]
|
D | cdnsp-ring.c | 156 ring->cycle_state ^= 1; in cdnsp_inc_deq() 222 ring->cycle_state ^= 1; in cdnsp_inc_enq() 1027 cdnsp_giveback_first_trb(pdev, pep, 0, ep_ring->cycle_state, in cdnsp_process_ctrl_td() 1445 if (cycle_bit != pdev->event_ring->cycle_state) in cdnsp_handle_event() 1654 ep_ring->cycle_state ^= 1; in cdnsp_prepare_ring() 1908 start_cycle = ring->cycle_state; in cdnsp_queue_bulk_tx() 1928 field |= ring->cycle_state; in cdnsp_queue_bulk_tx() 2053 field | ep_ring->cycle_state | in cdnsp_queue_ctrl_tx() 2066 field | ep_ring->cycle_state | in cdnsp_queue_ctrl_tx() 2079 field = ep_ring->cycle_state; in cdnsp_queue_ctrl_tx() [all …]
|
D | cdnsp-gadget.c | 492 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() 1379 pdev->cmd_ring->cycle_state; in cdnsp_clear_cmd_ring() 1399 if (cycle_bit != pdev->event_ring->cycle_state) in cdnsp_consume_all_events()
|
D | cdnsp-trace.h | 712 __field(unsigned int, cycle_state) 723 __entry->cycle_state = ring->cycle_state; 740 __entry->cycle_state
|
D | cdnsp-gadget.h | 1257 u32 cycle_state; member
|
/linux-6.1.9/drivers/usb/early/ |
D | xhci-dbc.c | 208 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() 806 while ((le32_to_cpu(evt_trb->field[3]) & TRB_CYCLE) == xdbc.evt_ring.cycle_state) { in xdbc_handle_events() 827 xdbc.evt_ring.cycle_state ^= 1; in xdbc_handle_events()
|
D | xhci-dbc.h | 120 u32 cycle_state; member
|
/linux-6.1.9/drivers/usb/host/ |
D | xhci-mem.c | 29 unsigned int cycle_state, in xhci_segment_alloc() argument 58 if (cycle_state == 0) { in xhci_segment_alloc() 297 unsigned int cycle_state) in xhci_initialize_ring_info() argument 311 ring->cycle_state = cycle_state; in xhci_initialize_ring_info() 323 unsigned int num_segs, unsigned int cycle_state, in xhci_alloc_segments_for_ring() argument 334 prev = xhci_segment_alloc(xhci, cycle_state, max_packet, flags); in xhci_alloc_segments_for_ring() 343 next = xhci_segment_alloc(xhci, cycle_state, max_packet, flags); in xhci_alloc_segments_for_ring() 372 unsigned int num_segs, unsigned int cycle_state, in xhci_ring_alloc() argument 391 &ring->last_seg, num_segs, cycle_state, type, in xhci_ring_alloc() 402 xhci_initialize_ring_info(ring, cycle_state); in xhci_ring_alloc() [all …]
|
D | xhci-dbgcap.c | 115 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_out->cycle_state); in xhci_dbc_init_contexts() 122 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_in->cycle_state); in xhci_dbc_init_contexts() 241 ring->cycle_state ^= 1; in xhci_dbc_queue_trb() 262 cycle = ring->cycle_state; in xhci_dbc_queue_bulk_tx() 743 ring->cycle_state ^= 1; in inc_evt_deq() 850 dbc->ring_evt->cycle_state) { in xhci_dbc_do_handle_events()
|
D | xhci-trace.h | 468 __field(unsigned int, cycle_state) 479 __entry->cycle_state = ring->cycle_state; 493 __entry->cycle_state
|
D | xhci-ring.c | 169 ring->cycle_state ^= 1; in inc_deq() 264 ring->cycle_state ^= 1; in inc_enq() 605 new_cycle = ep_ring->cycle_state; in xhci_move_dequeue_past_td() 2927 xhci->event_ring->cycle_state) in xhci_handle_event() 3214 ep_ring->cycle_state ^= 1; in prepare_ring() 3576 start_cycle = ring->cycle_state; in xhci_queue_bulk_tx() 3597 field |= ring->cycle_state; in xhci_queue_bulk_tx() 3670 field = TRB_TYPE(TRB_NORMAL) | ring->cycle_state | TRB_IOC; in xhci_queue_bulk_tx() 3731 start_cycle = ep_ring->cycle_state; in xhci_queue_ctrl_tx() 3791 field | ep_ring->cycle_state); in xhci_queue_ctrl_tx() [all …]
|
D | xhci.h | 1630 u32 cycle_state; member 2067 unsigned int num_segs, unsigned int cycle_state, 2077 unsigned int cycle_state);
|
D | xhci-debugfs.c | 190 seq_printf(s, "%d\n", ring->cycle_state); in xhci_ring_cycle_show()
|
D | xhci.c | 869 xhci->cmd_ring->cycle_state; in xhci_set_cmd_ring_deq() 911 ring->cycle_state = 1; in xhci_clear_command_ring()
|