Home
last modified time | relevance | path

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

/drivers/net/ethernet/cisco/enic/
Dvnic_rq.c115 unsigned int fetch_index, unsigned int posted_index, in vnic_rq_init_start() argument
130 iowrite32(fetch_index, &rq->ctrl->fetch_index); in vnic_rq_init_start()
134 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] in vnic_rq_init_start()
135 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES(count)]; in vnic_rq_init_start()
188 u32 fetch_index; in vnic_rq_clean() local
201 fetch_index = ioread32(&rq->ctrl->fetch_index); in vnic_rq_clean()
203 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ in vnic_rq_clean()
205 fetch_index = 0; in vnic_rq_clean()
208 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] in vnic_rq_clean()
209 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES(count)]; in vnic_rq_clean()
[all …]
Dvnic_wq.c135 unsigned int fetch_index, unsigned int posted_index, in enic_wq_init_start() argument
145 iowrite32(fetch_index, &wq->ctrl->fetch_index); in enic_wq_init_start()
153 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] in enic_wq_init_start()
154 [fetch_index % VNIC_WQ_BUF_BLK_ENTRIES(count)]; in enic_wq_init_start()
212 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_clean()
Dvnic_dev.c305 u32 fetch_index, new_posted; in _vnic_dev_cmd2() local
308 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); in _vnic_dev_cmd2()
310 if (fetch_index == 0xFFFFFFFF) in _vnic_dev_cmd2()
315 if (new_posted == fetch_index) { in _vnic_dev_cmd2()
317 _CMD_N(cmd), fetch_index, posted); in _vnic_dev_cmd2()
386 unsigned int fetch_index; in vnic_dev_init_devcmd2() local
402 fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); in vnic_dev_init_devcmd2()
403 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ in vnic_dev_init_devcmd2()
409 enic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, fetch_index, 0, in vnic_dev_init_devcmd2()
411 vdev->devcmd2->posted = fetch_index; in vnic_dev_init_devcmd2()
Dvnic_wq.h41 u32 fetch_index; /* 0x30 */ member
192 unsigned int fetch_index, unsigned int posted_index,
Dvnic_rq.h42 u32 fetch_index; /* 0x30 */ member
/drivers/scsi/fnic/
Dvnic_rq.c116 u32 fetch_index; in vnic_rq_init() local
128 fetch_index = ioread32(&rq->ctrl->fetch_index); in vnic_rq_init()
130 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] in vnic_rq_init()
131 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES]; in vnic_rq_init()
132 iowrite32(fetch_index, &rq->ctrl->posted_index); in vnic_rq_init()
169 u32 fetch_index; in vnic_rq_clean() local
184 fetch_index = ioread32(&rq->ctrl->fetch_index); in vnic_rq_clean()
186 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] in vnic_rq_clean()
187 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES]; in vnic_rq_clean()
188 iowrite32(fetch_index, &rq->ctrl->posted_index); in vnic_rq_clean()
Dvnic_wq.c154 unsigned int fetch_index, unsigned int posted_index, in vnic_wq_init_start() argument
164 iowrite32(fetch_index, &wq->ctrl->fetch_index); in vnic_wq_init_start()
172 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES] in vnic_wq_init_start()
173 [fetch_index % VNIC_WQ_BUF_BLK_ENTRIES]; in vnic_wq_init_start()
186 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_init()
241 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_clean()
Dvnic_dev.c328 u32 fetch_index; in vnic_dev_cmd2() local
333 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); in vnic_dev_cmd2()
335 if (posted == 0xFFFFFFFF || fetch_index == 0xFFFFFFFF) { in vnic_dev_cmd2()
340 pci_name(vdev->pdev), fetch_index, posted); in vnic_dev_cmd2()
348 if (new_posted == fetch_index) { in vnic_dev_cmd2()
352 pci_name(vdev->pdev), fetch_index, posted); in vnic_dev_cmd2()
428 unsigned int fetch_index; in vnic_dev_init_devcmd2() local
444 fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); in vnic_dev_init_devcmd2()
445 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ in vnic_dev_init_devcmd2()
456 vnic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, in vnic_dev_init_devcmd2()
[all …]
Dvnic_wq_copy.c45 wq->index, ioread32(&wq->ctrl->fetch_index), in vnic_wq_copy_disable()
62 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_copy_clean()
105 iowrite32(0, &wq->ctrl->fetch_index); in vnic_wq_copy_init()
Dvnic_wq.h57 u32 fetch_index; /* 0x30 */ member
171 unsigned int fetch_index, unsigned int posted_index,
Dvnic_rq.h60 u32 fetch_index; /* 0x30 */ member
/drivers/scsi/snic/
Dvnic_wq.c155 unsigned int fetch_index, unsigned int posted_index, in vnic_wq_init_start() argument
165 iowrite32(fetch_index, &wq->ctrl->fetch_index); in vnic_wq_init_start()
173 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] in vnic_wq_init_start()
174 [fetch_index % VNIC_WQ_BUF_BLK_ENTRIES(count)]; in vnic_wq_init_start()
232 iowrite32(0, &wq->ctrl->fetch_index); in svnic_wq_clean()
Dvnic_wq.h38 u32 fetch_index; /* 0x30 */ member
158 unsigned int fetch_index, unsigned int post_index,
Dvnic_dev.c274 fetch_idx = ioread32(&dc2c->wq_ctrl->fetch_index); in _svnic_dev_cmd2()
385 fetch_idx = ioread32(&dc2c->wq.ctrl->fetch_index); in svnic_dev_init_devcmd2()