Lines Matching refs:fetch_index
115 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()
210 iowrite32(fetch_index, &rq->ctrl->posted_index); in vnic_rq_clean()