Lines Matching refs:ctrl
27 iowrite32(1, &wq->ctrl->enable); in vnic_wq_copy_enable()
34 iowrite32(0, &wq->ctrl->enable); in vnic_wq_copy_disable()
38 if (!(ioread32(&wq->ctrl->running))) in vnic_wq_copy_disable()
45 wq->index, ioread32(&wq->ctrl->fetch_index), in vnic_wq_copy_disable()
46 ioread32(&wq->ctrl->posted_index)); in vnic_wq_copy_disable()
55 BUG_ON(ioread32(&wq->ctrl->enable)); in vnic_wq_copy_clean()
62 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_copy_clean()
63 iowrite32(0, &wq->ctrl->posted_index); in vnic_wq_copy_clean()
64 iowrite32(0, &wq->ctrl->error_status); in vnic_wq_copy_clean()
75 wq->ctrl = NULL; in vnic_wq_copy_free()
87 wq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_WQ, index); in vnic_wq_copy_alloc()
88 if (!wq->ctrl) { in vnic_wq_copy_alloc()
109 writeq(paddr, &wq->ctrl->ring_base); in vnic_wq_copy_init()
110 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_copy_init()
111 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_copy_init()
112 iowrite32(0, &wq->ctrl->posted_index); in vnic_wq_copy_init()
113 iowrite32(cq_index, &wq->ctrl->cq_index); in vnic_wq_copy_init()
114 iowrite32(error_interrupt_enable, &wq->ctrl->error_interrupt_enable); in vnic_wq_copy_init()
115 iowrite32(error_interrupt_offset, &wq->ctrl->error_interrupt_offset); in vnic_wq_copy_init()