Home
last modified time | relevance | path

Searched refs:cmd_ring (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/drivers/scsi/snic/
Dvnic_dev.c24 struct vnic_devcmd2 *cmd_ring; member
281 dc2c->cmd_ring[posted].cmd = cmd; in _svnic_dev_cmd2()
282 dc2c->cmd_ring[posted].flags = 0; in _svnic_dev_cmd2()
285 dc2c->cmd_ring[posted].flags |= DEVCMD2_FNORESULT; in _svnic_dev_cmd2()
289 dc2c->cmd_ring[posted].args[i] = vdev->args[i]; in _svnic_dev_cmd2()
299 if (dc2c->cmd_ring[posted].flags & DEVCMD2_FNORESULT) in _svnic_dev_cmd2()
392 dc2c->cmd_ring = (struct vnic_devcmd2 *) dc2c->wq.ring.descs; in svnic_dev_init_devcmd2()
/linux-6.1.9/drivers/usb/cdns3/
Dcdnsp-mem.c1078 if (pdev->cmd_ring) in cdnsp_mem_cleanup()
1079 cdnsp_ring_free(pdev, pdev->cmd_ring); in cdnsp_mem_cleanup()
1081 pdev->cmd_ring = NULL; in cdnsp_mem_cleanup()
1261 pdev->cmd_ring = cdnsp_ring_alloc(pdev, 1, TYPE_COMMAND, 0, GFP_KERNEL); in cdnsp_mem_init()
1262 if (!pdev->cmd_ring) in cdnsp_mem_init()
1266 val_64 = cdnsp_read_64(&pdev->op_regs->cmd_ring); in cdnsp_mem_init()
1268 (pdev->cmd_ring->first_seg->dma & (u64)~CMD_RING_RSVD_BITS) | in cdnsp_mem_init()
1269 pdev->cmd_ring->cycle_state; in cdnsp_mem_init()
1270 cdnsp_write_64(val_64, &pdev->op_regs->cmd_ring); in cdnsp_mem_init()
1325 cdnsp_ring_free(pdev, pdev->cmd_ring); in cdnsp_mem_init()
Dcdnsp-gadget.c536 trace_cdnsp_cmd_wait_for_compl(pdev->cmd_ring, &cmd_trb->generic); in cdnsp_wait_for_cmd_compl()
538 ret = readl_poll_timeout_atomic(&pdev->op_regs->cmd_ring, val, in cdnsp_wait_for_cmd_compl()
543 trace_cdnsp_cmd_timeout(pdev->cmd_ring, &cmd_trb->generic); in cdnsp_wait_for_cmd_compl()
552 cmd_deq_dma = cdnsp_trb_virt_to_dma(pdev->cmd_ring->deq_seg, cmd_trb); in cdnsp_wait_for_cmd_compl()
585 trace_cdnsp_handle_command(pdev->cmd_ring, &cmd_trb->generic); in cdnsp_wait_for_cmd_compl()
1366 cdnsp_initialize_ring_info(pdev->cmd_ring); in cdnsp_clear_cmd_ring()
1368 seg = pdev->cmd_ring->first_seg; in cdnsp_clear_cmd_ring()
1369 for (i = 0; i < pdev->cmd_ring->num_segs; i++) { in cdnsp_clear_cmd_ring()
1376 val_64 = cdnsp_read_64(&pdev->op_regs->cmd_ring); in cdnsp_clear_cmd_ring()
1378 (pdev->cmd_ring->first_seg->dma & (u64)~CMD_RING_RSVD_BITS) | in cdnsp_clear_cmd_ring()
[all …]
Dcdnsp-ring.c1462 cdnsp_inc_deq(pdev, pdev->cmd_ring); in cdnsp_handle_event()
2362 cdnsp_prepare_ring(pdev, pdev->cmd_ring, EP_STATE_RUNNING, 1, in cdnsp_queue_command()
2365 pdev->cmd.command_trb = pdev->cmd_ring->enqueue; in cdnsp_queue_command()
2367 cdnsp_queue_trb(pdev, pdev->cmd_ring, false, field1, field2, in cdnsp_queue_command()
2368 field3, field4 | pdev->cmd_ring->cycle_state); in cdnsp_queue_command()
Dcdnsp-gadget.h122 __le64 cmd_ring; member
1429 struct cdnsp_ring *cmd_ring; member
/linux-6.1.9/drivers/scsi/fnic/
Dvnic_dev.c24 struct vnic_devcmd2 *cmd_ring; member
344 dc2c->cmd_ring[posted].cmd = cmd; in vnic_dev_cmd2()
345 dc2c->cmd_ring[posted].flags = 0; in vnic_dev_cmd2()
348 dc2c->cmd_ring[posted].flags |= DEVCMD2_FNORESULT; in vnic_dev_cmd2()
351 dc2c->cmd_ring[posted].args[i] = vdev->args[i]; in vnic_dev_cmd2()
363 if (dc2c->cmd_ring[posted].flags & DEVCMD2_FNORESULT) in vnic_dev_cmd2()
456 vdev->devcmd2->cmd_ring = in vnic_dev_init_devcmd2()
/linux-6.1.9/drivers/usb/host/
Dxhci-mem.c1849 if (xhci->cmd_ring) in xhci_mem_cleanup()
1850 xhci_ring_free(xhci, xhci->cmd_ring); in xhci_mem_cleanup()
1851 xhci->cmd_ring = NULL; in xhci_mem_cleanup()
2004 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2010 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2011 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2016 .start_trb = xhci->cmd_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2017 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2018 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2053 .input_dma = xhci->cmd_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
[all …]
Dxhci-ring.c358 if ((xhci->cmd_ring->dequeue != xhci->cmd_ring->enqueue) && in xhci_handle_stopped_cmd_ring()
369 struct xhci_segment *new_seg = xhci->cmd_ring->deq_seg; in xhci_abort_cmd_ring()
370 union xhci_trb *new_deq = xhci->cmd_ring->dequeue; in xhci_abort_cmd_ring()
391 xhci_write_64(xhci, crcr | CMD_RING_ABORT, &xhci->op_regs->cmd_ring); in xhci_abort_cmd_ring()
399 ret = xhci_handshake(&xhci->op_regs->cmd_ring, in xhci_abort_cmd_ring()
1610 hw_ring_state = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_handle_command_timeout()
1659 cmd_trb = xhci->cmd_ring->dequeue; in handle_cmd_completion()
1661 trace_xhci_handle_command(xhci->cmd_ring, &cmd_trb->generic); in handle_cmd_completion()
1663 cmd_dequeue_dma = xhci_trb_virt_to_dma(xhci->cmd_ring->deq_seg, in handle_cmd_completion()
1687 if (cmd->command_trb != xhci->cmd_ring->dequeue) { in handle_cmd_completion()
[all …]
Dxhci.c268 val = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_zero_64b_regs()
270 xhci_write_64(xhci, 0, &xhci->op_regs->cmd_ring); in xhci_zero_64b_regs()
864 val_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_set_cmd_ring_deq()
866 (xhci_trb_virt_to_dma(xhci->cmd_ring->deq_seg, in xhci_set_cmd_ring_deq()
867 xhci->cmd_ring->dequeue) & in xhci_set_cmd_ring_deq()
869 xhci->cmd_ring->cycle_state; in xhci_set_cmd_ring_deq()
873 xhci_write_64(xhci, val_64, &xhci->op_regs->cmd_ring); in xhci_set_cmd_ring_deq()
890 ring = xhci->cmd_ring; in xhci_clear_command_ring()
Dxhci-debugfs.c691 xhci_debugfs_create_ring_dir(xhci, &xhci->cmd_ring, in xhci_debugfs_init()
Dxhci.h186 __le64 cmd_ring; member
1797 struct xhci_ring *cmd_ring; member
/linux-6.1.9/drivers/net/ethernet/rocker/
Drocker_main.c579 const struct rocker_dma_ring_info *cmd_ring = &rocker->cmd_ring; in rocker_dma_cmd_ring_waits_alloc() local
583 for (i = 0; i < cmd_ring->size; i++) { in rocker_dma_cmd_ring_waits_alloc()
584 err = rocker_dma_cmd_ring_wait_alloc(&cmd_ring->desc_info[i]); in rocker_dma_cmd_ring_waits_alloc()
592 rocker_dma_cmd_ring_wait_free(&cmd_ring->desc_info[i]); in rocker_dma_cmd_ring_waits_alloc()
598 const struct rocker_dma_ring_info *cmd_ring = &rocker->cmd_ring; in rocker_dma_cmd_ring_waits_free() local
601 for (i = 0; i < cmd_ring->size; i++) in rocker_dma_cmd_ring_waits_free()
602 rocker_dma_cmd_ring_wait_free(&cmd_ring->desc_info[i]); in rocker_dma_cmd_ring_waits_free()
612 &rocker->cmd_ring); in rocker_dma_rings_init()
620 err = rocker_dma_ring_bufs_alloc(rocker, &rocker->cmd_ring, in rocker_dma_rings_init()
655 rocker_dma_ring_bufs_free(rocker, &rocker->cmd_ring, in rocker_dma_rings_init()
[all …]
Drocker.h67 struct rocker_dma_ring_info cmd_ring; member
/linux-6.1.9/drivers/net/ethernet/cisco/enic/
Dvnic_dev.c307 dc2c->cmd_ring[posted].cmd = cmd; in _vnic_dev_cmd2()
308 dc2c->cmd_ring[posted].flags = 0; in _vnic_dev_cmd2()
311 dc2c->cmd_ring[posted].flags |= DEVCMD2_FNORESULT; in _vnic_dev_cmd2()
314 dc2c->cmd_ring[posted].args[i] = vdev->args[i]; in _vnic_dev_cmd2()
324 if (dc2c->cmd_ring[posted].flags & DEVCMD2_FNORESULT) in _vnic_dev_cmd2()
407 vdev->devcmd2->cmd_ring = vdev->devcmd2->wq.ring.descs; in vnic_dev_init_devcmd2()
Dvnic_wq.h80 struct vnic_devcmd2 *cmd_ring; member
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Ddp_tx.c734 struct hal_srng *cmd_ring; in ath11k_dp_tx_send_reo_cmd() local
740 cmd_ring = &ab->hal.srng_list[dp->reo_cmd_ring.ring_id]; in ath11k_dp_tx_send_reo_cmd()
741 cmd_num = ath11k_hal_reo_cmd_send(ab, cmd_ring, type, cmd); in ath11k_dp_tx_send_reo_cmd()
/linux-6.1.9/drivers/gpu/drm/qxl/
Dqxl_dev.h352 struct qxl_command cmd_ring[QXL_COMMAND_RING_SIZE]; member
/linux-6.1.9/drivers/bus/mhi/host/
Dmain.c770 struct mhi_cmd *cmd_ring = &mhi_cntrl->mhi_cmd[PRIMARY_CMD_RING]; in mhi_process_cmd_completion() local
771 struct mhi_ring *mhi_ring = &cmd_ring->ring; in mhi_process_cmd_completion()