Searched refs:cycle_state (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/usb/cdns3/ |
H A 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 …]
|
H A D | cdnsp-ring.c | 156 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 …]
|
H A D | cdnsp-gadget.c | 493 u32 cycle_state; in cdnsp_invalidate_ep_events() 498 cycle_state = pdev->event_ring->cycle_state; in cdnsp_invalidate_ep_events() 504 if ((data & TRB_CYCLE) != cycle_state) in cdnsp_invalidate_ep_events() 514 cycle_state ^= 1; in cdnsp_invalidate_ep_events() 529 u32 cycle_state; in cdnsp_wait_for_cmd_compl() 551 cycle_state = pdev->event_ring->cycle_state; in cdnsp_wait_for_cmd_compl() 561 if ((flags & TRB_CYCLE) != cycle_state) in cdnsp_wait_for_cmd_compl() 579 cycle_state in cdnsp_wait_for_cmd_compl() 492 u32 cycle_state; cdnsp_invalidate_ep_events() local 528 u32 cycle_state; cdnsp_wait_for_cmd_compl() local [all...] |
H A D | cdnsp-gadget.h | 1258 u32 cycle_state; member
|
/linux/drivers/usb/early/ |
H A 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() 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()
|
H A D | xhci-dbc.h | 120 u32 cycle_state; member
|
/linux/drivers/usb/host/ |
H A D | xhci-ring.c | 121 ring->cycle_state); in unhandled_event_trb() 175 ring->cycle_state ^= 1; in inc_deq() 265 ring->cycle_state ^= 1; in inc_enq() 3283 ep_ring->cycle_state ^= 1; in prepare_ring() 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 D | xhci-mem.c | 145 if (dst->cycle_state == 0) { in xhci_link_rings() 319 ring->cycle_state = 1; in xhci_initialize_ring_info() 647 cur_ring->cycle_state; in xhci_alloc_stream_info() 726 ep_ctx->deq = cpu_to_le64(addr | ep->ring->cycle_state); in xhci_setup_no_streams_ep_input_ctx() 1029 | ep_ring->cycle_state); in xhci_copy_ep0_dequeue_into_input_ctx() 1167 dev->eps[0].ring->cycle_state); in xhci_setup_addressable_virt_dev() 1474 ep_ring->cycle_state); in xhci_endpoint_init() 2483 xhci->cmd_ring->cycle_state; in xhci_mem_init()
|
H A D | xhci.h | 1368 u32 cycle_state; member
|
H A D | xhci.c | 761 xhci->cmd_ring->cycle_state; in xhci_set_cmd_ring_deq()
|