Home
last modified time | relevance | path

Searched refs:fetch_index (Results 1 – 16 of 16) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/cisco/enic/
Dvnic_rq.c102 unsigned int fetch_index, unsigned int posted_index, in vnic_rq_init_start() argument
117 iowrite32(fetch_index, &rq->ctrl->fetch_index); in vnic_rq_init_start()
121 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] in vnic_rq_init_start()
122 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES(count)]; in vnic_rq_init_start()
175 u32 fetch_index; in vnic_rq_clean() local
188 fetch_index = ioread32(&rq->ctrl->fetch_index); in vnic_rq_clean()
190 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ in vnic_rq_clean()
192 fetch_index = 0; in vnic_rq_clean()
195 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] in vnic_rq_clean()
196 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES(count)]; in vnic_rq_clean()
[all …]
Dvnic_wq.c122 unsigned int fetch_index, unsigned int posted_index, in enic_wq_init_start() argument
132 iowrite32(fetch_index, &wq->ctrl->fetch_index); in enic_wq_init_start()
140 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] in enic_wq_init_start()
141 [fetch_index % VNIC_WQ_BUF_BLK_ENTRIES(count)]; in enic_wq_init_start()
199 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_clean()
Dvnic_dev.c292 u32 fetch_index, new_posted; in _vnic_dev_cmd2() local
295 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); in _vnic_dev_cmd2()
297 if (fetch_index == 0xFFFFFFFF) in _vnic_dev_cmd2()
302 if (new_posted == fetch_index) { in _vnic_dev_cmd2()
304 _CMD_N(cmd), fetch_index, posted); in _vnic_dev_cmd2()
373 unsigned int fetch_index; in vnic_dev_init_devcmd2() local
389 fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); in vnic_dev_init_devcmd2()
390 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ in vnic_dev_init_devcmd2()
396 enic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, fetch_index, 0, in vnic_dev_init_devcmd2()
398 vdev->devcmd2->posted = fetch_index; in vnic_dev_init_devcmd2()
Dvnic_wq.h28 u32 fetch_index; /* 0x30 */ member
179 unsigned int fetch_index, unsigned int posted_index,
Dvnic_rq.h29 u32 fetch_index; /* 0x30 */ member
/Linux-v6.1/drivers/scsi/fnic/
Dvnic_rq.c104 u32 fetch_index; in vnic_rq_init() local
116 fetch_index = ioread32(&rq->ctrl->fetch_index); in vnic_rq_init()
118 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] in vnic_rq_init()
119 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES]; in vnic_rq_init()
120 iowrite32(fetch_index, &rq->ctrl->posted_index); in vnic_rq_init()
157 u32 fetch_index; in vnic_rq_clean() local
172 fetch_index = ioread32(&rq->ctrl->fetch_index); in vnic_rq_clean()
174 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] in vnic_rq_clean()
175 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES]; in vnic_rq_clean()
176 iowrite32(fetch_index, &rq->ctrl->posted_index); in vnic_rq_clean()
Dvnic_wq.c142 unsigned int fetch_index, unsigned int posted_index, in vnic_wq_init_start() argument
152 iowrite32(fetch_index, &wq->ctrl->fetch_index); in vnic_wq_init_start()
160 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES] in vnic_wq_init_start()
161 [fetch_index % VNIC_WQ_BUF_BLK_ENTRIES]; in vnic_wq_init_start()
174 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_init()
229 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_clean()
Dvnic_dev.c316 u32 fetch_index; in vnic_dev_cmd2() local
321 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); in vnic_dev_cmd2()
323 if (posted == 0xFFFFFFFF || fetch_index == 0xFFFFFFFF) { in vnic_dev_cmd2()
328 pci_name(vdev->pdev), fetch_index, posted); in vnic_dev_cmd2()
336 if (new_posted == fetch_index) { in vnic_dev_cmd2()
340 pci_name(vdev->pdev), fetch_index, posted); in vnic_dev_cmd2()
416 unsigned int fetch_index; in vnic_dev_init_devcmd2() local
432 fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); in vnic_dev_init_devcmd2()
433 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ in vnic_dev_init_devcmd2()
444 vnic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, in vnic_dev_init_devcmd2()
[all …]
Dvnic_wq_copy.c33 wq->index, ioread32(&wq->ctrl->fetch_index), in vnic_wq_copy_disable()
50 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_copy_clean()
93 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_copy_init()
Dvnic_wq.h45 u32 fetch_index; /* 0x30 */ member
159 unsigned int fetch_index, unsigned int posted_index,
Dvnic_rq.h48 u32 fetch_index; /* 0x30 */ member
/Linux-v6.1/drivers/scsi/snic/
Dvnic_wq.c141 unsigned int fetch_index, unsigned int posted_index, in vnic_wq_init_start() argument
151 iowrite32(fetch_index, &wq->ctrl->fetch_index); in vnic_wq_init_start()
159 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] in vnic_wq_init_start()
160 [fetch_index % VNIC_WQ_BUF_BLK_ENTRIES(count)]; in vnic_wq_init_start()
218 iowrite32(0, &wq->ctrl->fetch_index); in svnic_wq_clean()
Dvnic_wq.h24 u32 fetch_index; /* 0x30 */ member
144 unsigned int fetch_index, unsigned int post_index,
Dvnic_dev.c260 fetch_idx = ioread32(&dc2c->wq_ctrl->fetch_index); in _svnic_dev_cmd2()
371 fetch_idx = ioread32(&dc2c->wq.ctrl->fetch_index); in svnic_dev_init_devcmd2()
/Linux-v6.1/tools/testing/selftests/kvm/
Ddirty_log_test.c294 uint32_t num_pages, uint32_t *fetch_index) in dirty_ring_collect_one() argument
300 cur = &dirty_gfns[*fetch_index % test_dirty_ring_count]; in dirty_ring_collect_one()
311 (*fetch_index)++; in dirty_ring_collect_one()
335 static uint32_t fetch_index = 0; in dirty_ring_collect_dirty_pages() local
352 slot, bitmap, num_pages, &fetch_index); in dirty_ring_collect_dirty_pages()
/Linux-v6.1/tools/testing/selftests/kvm/include/
Dkvm_util_base.h57 uint32_t fetch_index; member