Home
last modified time | relevance | path

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

/linux-6.6.21/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.6.21/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()
1369 cdnsp_initialize_ring_info(pdev->cmd_ring); in cdnsp_clear_cmd_ring()
1371 seg = pdev->cmd_ring->first_seg; in cdnsp_clear_cmd_ring()
1372 for (i = 0; i < pdev->cmd_ring->num_segs; i++) { in cdnsp_clear_cmd_ring()
1379 val_64 = cdnsp_read_64(&pdev->op_regs->cmd_ring); in cdnsp_clear_cmd_ring()
1381 (pdev->cmd_ring->first_seg->dma & (u64)~CMD_RING_RSVD_BITS) | in cdnsp_clear_cmd_ring()
[all …]
Dcdnsp-ring.c1469 cdnsp_inc_deq(pdev, pdev->cmd_ring); in cdnsp_handle_event()
2375 cdnsp_prepare_ring(pdev, pdev->cmd_ring, EP_STATE_RUNNING, 1, in cdnsp_queue_command()
2378 pdev->cmd.command_trb = pdev->cmd_ring->enqueue; in cdnsp_queue_command()
2380 cdnsp_queue_trb(pdev, pdev->cmd_ring, false, field1, field2, in cdnsp_queue_command()
2381 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.6.21/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.6.21/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.6.21/drivers/usb/host/
Dxhci-ring.c412 if ((xhci->cmd_ring->dequeue != xhci->cmd_ring->enqueue) && in xhci_handle_stopped_cmd_ring()
423 struct xhci_segment *new_seg = xhci->cmd_ring->deq_seg; in xhci_abort_cmd_ring()
424 union xhci_trb *new_deq = xhci->cmd_ring->dequeue; in xhci_abort_cmd_ring()
445 xhci_write_64(xhci, crcr | CMD_RING_ABORT, &xhci->op_regs->cmd_ring); in xhci_abort_cmd_ring()
453 ret = xhci_handshake(&xhci->op_regs->cmd_ring, in xhci_abort_cmd_ring()
1631 hw_ring_state = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_handle_command_timeout()
1680 cmd_trb = xhci->cmd_ring->dequeue; in handle_cmd_completion()
1682 trace_xhci_handle_command(xhci->cmd_ring, &cmd_trb->generic); in handle_cmd_completion()
1684 cmd_dequeue_dma = xhci_trb_virt_to_dma(xhci->cmd_ring->deq_seg, in handle_cmd_completion()
1708 if (cmd->command_trb != xhci->cmd_ring->dequeue) { in handle_cmd_completion()
[all …]
Dxhci-mem.c1851 if (xhci->cmd_ring) in xhci_mem_cleanup()
1852 xhci_ring_free(xhci, xhci->cmd_ring); in xhci_mem_cleanup()
1853 xhci->cmd_ring = NULL; in xhci_mem_cleanup()
2392 xhci->cmd_ring = xhci_ring_alloc(xhci, 1, 1, TYPE_COMMAND, 0, flags); in xhci_mem_init()
2393 if (!xhci->cmd_ring) in xhci_mem_init()
2396 "Allocated command ring at %p", xhci->cmd_ring); in xhci_mem_init()
2398 &xhci->cmd_ring->first_seg->dma); in xhci_mem_init()
2401 val_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_mem_init()
2403 (xhci->cmd_ring->first_seg->dma & (u64) ~CMD_RING_RSVD_BITS) | in xhci_mem_init()
2404 xhci->cmd_ring->cycle_state; in xhci_mem_init()
[all …]
Dxhci.c272 val = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_zero_64b_regs()
274 xhci_write_64(xhci, 0, &xhci->op_regs->cmd_ring); in xhci_zero_64b_regs()
708 val_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_set_cmd_ring_deq()
710 (xhci_trb_virt_to_dma(xhci->cmd_ring->deq_seg, in xhci_set_cmd_ring_deq()
711 xhci->cmd_ring->dequeue) & in xhci_set_cmd_ring_deq()
713 xhci->cmd_ring->cycle_state; in xhci_set_cmd_ring_deq()
717 xhci_write_64(xhci, val_64, &xhci->op_regs->cmd_ring); in xhci_set_cmd_ring_deq()
734 ring = xhci->cmd_ring; in xhci_clear_command_ring()
Dxhci-debugfs.c692 xhci_debugfs_create_ring_dir(xhci, &xhci->cmd_ring, in xhci_debugfs_init()
Dxhci.h186 __le64 cmd_ring; member
1804 struct xhci_ring *cmd_ring; member
/linux-6.6.21/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.6.21/drivers/net/wireless/ath/ath11k/
Ddp_tx.c765 struct hal_srng *cmd_ring; in ath11k_dp_tx_send_reo_cmd() local
771 cmd_ring = &ab->hal.srng_list[dp->reo_cmd_ring.ring_id]; in ath11k_dp_tx_send_reo_cmd()
772 cmd_num = ath11k_hal_reo_cmd_send(ab, cmd_ring, type, cmd); in ath11k_dp_tx_send_reo_cmd()
/linux-6.6.21/drivers/gpu/drm/qxl/
Dqxl_dev.h352 struct qxl_command cmd_ring[QXL_COMMAND_RING_SIZE]; member
/linux-6.6.21/drivers/bus/mhi/host/
Dmain.c775 struct mhi_cmd *cmd_ring = &mhi_cntrl->mhi_cmd[PRIMARY_CMD_RING]; in mhi_process_cmd_completion() local
776 struct mhi_ring *mhi_ring = &cmd_ring->ring; in mhi_process_cmd_completion()
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Ddp_rx.c613 struct hal_srng *cmd_ring; in ath12k_dp_reo_cmd_send() local
616 cmd_ring = &ab->hal.srng_list[dp->reo_cmd_ring.ring_id]; in ath12k_dp_reo_cmd_send()
617 cmd_num = ath12k_hal_reo_cmd_send(ab, cmd_ring, type, cmd); in ath12k_dp_reo_cmd_send()