Searched refs:fetch_index (Results 1 - 13 of 13) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/cisco/enic/
H A Dvnic_rq.c115 unsigned int fetch_index, unsigned int posted_index, vnic_rq_init_start()
130 iowrite32(fetch_index, &rq->ctrl->fetch_index); vnic_rq_init_start()
134 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] vnic_rq_init_start()
135 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES(count)]; vnic_rq_init_start()
142 u32 fetch_index = 0; vnic_rq_init() local
144 /* Use current fetch_index as the ring starting point */ vnic_rq_init()
145 fetch_index = ioread32(&rq->ctrl->fetch_index); vnic_rq_init()
147 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ vnic_rq_init()
148 /* Hardware surprise removal: reset fetch_index */ vnic_rq_init()
149 fetch_index = 0; vnic_rq_init()
153 fetch_index, fetch_index, vnic_rq_init()
191 u32 fetch_index; vnic_rq_clean() local
203 /* Use current fetch_index as the ring starting point */ vnic_rq_clean()
204 fetch_index = ioread32(&rq->ctrl->fetch_index); vnic_rq_clean()
206 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ vnic_rq_clean()
207 /* Hardware surprise removal: reset fetch_index */ vnic_rq_clean()
208 fetch_index = 0; vnic_rq_clean()
211 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] vnic_rq_clean()
212 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES(count)]; vnic_rq_clean()
213 iowrite32(fetch_index, &rq->ctrl->posted_index); vnic_rq_clean()
114 vnic_rq_init_start(struct vnic_rq *rq, unsigned int cq_index, unsigned int fetch_index, unsigned int posted_index, unsigned int error_interrupt_enable, unsigned int error_interrupt_offset) vnic_rq_init_start() argument
H A Dvnic_wq.c135 unsigned int fetch_index, unsigned int posted_index, enic_wq_init_start()
145 iowrite32(fetch_index, &wq->ctrl->fetch_index); enic_wq_init_start()
153 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] enic_wq_init_start()
154 [fetch_index % VNIC_WQ_BUF_BLK_ENTRIES(count)]; enic_wq_init_start()
212 iowrite32(0, &wq->ctrl->fetch_index); vnic_wq_clean()
134 enic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index, unsigned int fetch_index, unsigned int posted_index, unsigned int error_interrupt_enable, unsigned int error_interrupt_offset) enic_wq_init_start() argument
H A Dvnic_dev.c305 u32 fetch_index, new_posted; _vnic_dev_cmd2() local
308 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); _vnic_dev_cmd2()
310 if (fetch_index == 0xFFFFFFFF) _vnic_dev_cmd2()
315 if (new_posted == fetch_index) { _vnic_dev_cmd2()
317 _CMD_N(cmd), fetch_index, posted); _vnic_dev_cmd2()
386 unsigned int fetch_index; vnic_dev_init_devcmd2() local
402 fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); vnic_dev_init_devcmd2()
403 if (fetch_index == 0xFFFFFFFF) { /* check for hardware gone */ vnic_dev_init_devcmd2()
409 enic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, fetch_index, 0, vnic_dev_init_devcmd2()
411 vdev->devcmd2->posted = fetch_index; vnic_dev_init_devcmd2()
H A Dvnic_wq.h41 u32 fetch_index; /* 0x30 */ member in struct:vnic_wq_ctrl
192 unsigned int fetch_index, unsigned int posted_index,
H A Dvnic_rq.h42 u32 fetch_index; /* 0x30 */ member in struct:vnic_rq_ctrl
/linux-4.4.14/drivers/scsi/fnic/
H A Dvnic_rq.c119 u32 fetch_index; vnic_rq_init() local
130 /* Use current fetch_index as the ring starting point */ vnic_rq_init()
131 fetch_index = ioread32(&rq->ctrl->fetch_index); vnic_rq_init()
133 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] vnic_rq_init()
134 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES]; vnic_rq_init()
135 iowrite32(fetch_index, &rq->ctrl->posted_index); vnic_rq_init()
172 u32 fetch_index; vnic_rq_clean() local
186 /* Use current fetch_index as the ring starting point */ vnic_rq_clean()
187 fetch_index = ioread32(&rq->ctrl->fetch_index); vnic_rq_clean()
189 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] vnic_rq_clean()
190 [fetch_index % VNIC_RQ_BUF_BLK_ENTRIES]; vnic_rq_clean()
191 iowrite32(fetch_index, &rq->ctrl->posted_index); vnic_rq_clean()
H A Dvnic_wq_copy.c45 wq->index, ioread32(&wq->ctrl->fetch_index), vnic_wq_copy_disable()
62 iowrite32(0, &wq->ctrl->fetch_index); vnic_wq_copy_clean()
111 iowrite32(0, &wq->ctrl->fetch_index); vnic_wq_copy_init()
H A Dvnic_wq.c123 iowrite32(0, &wq->ctrl->fetch_index); vnic_wq_init()
178 iowrite32(0, &wq->ctrl->fetch_index); vnic_wq_clean()
H A Dvnic_wq.h55 u32 fetch_index; /* 0x30 */ member in struct:vnic_wq_ctrl
H A Dvnic_rq.h60 u32 fetch_index; /* 0x30 */ member in struct:vnic_rq_ctrl
/linux-4.4.14/drivers/scsi/snic/
H A Dvnic_wq.c155 unsigned int fetch_index, unsigned int posted_index, vnic_wq_init_start()
165 iowrite32(fetch_index, &wq->ctrl->fetch_index); vnic_wq_init_start()
173 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] vnic_wq_init_start()
174 [fetch_index % VNIC_WQ_BUF_BLK_ENTRIES(count)]; vnic_wq_init_start()
232 iowrite32(0, &wq->ctrl->fetch_index); svnic_wq_clean()
154 vnic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index, unsigned int fetch_index, unsigned int posted_index, unsigned int error_interrupt_enable, unsigned int error_interrupt_offset) vnic_wq_init_start() argument
H A Dvnic_wq.h38 u32 fetch_index; /* 0x30 */ member in struct:vnic_wq_ctrl
158 unsigned int fetch_index, unsigned int post_index,
H A Dvnic_dev.c370 fetch_idx = ioread32(&dc2c->wq.ctrl->fetch_index); svnic_dev_init_devcmd2()
372 /* Hardware surprise removal: reset fetch_index */ svnic_dev_init_devcmd2()
377 * Don't change fetch_index ever and svnic_dev_init_devcmd2()
378 * set posted_index same as fetch_index svnic_dev_init_devcmd2()

Completed in 288 milliseconds