Lines Matching defs:ring
19 struct vnic_dev_ring ring;
26 return wq->ring.desc_avail;
31 return wq->ring.desc_count - 1 - wq->ring.desc_avail;
36 struct fcpio_host_req *desc = wq->ring.descs;
43 ((wq->to_use_index + 1) == wq->ring.desc_count) ?
45 wq->ring.desc_avail--;
64 cnt = wq->ring.desc_count - wq->to_clean_index + index + 1;
66 wq->to_clean_index = ((index + 1) % wq->ring.desc_count);
67 wq->ring.desc_avail += cnt;
76 struct fcpio_host_req *wq_desc = wq->ring.descs;
84 wq->ring.desc_avail++;
91 ((wq->to_clean_index + 1) == wq->ring.desc_count) ?