Lines Matching defs:ring
31 struct vnic_dev_ring ring;
38 return wq->ring.desc_avail;
43 return wq->ring.desc_count - 1 - wq->ring.desc_avail;
48 struct fcpio_host_req *desc = wq->ring.descs;
55 ((wq->to_use_index + 1) == wq->ring.desc_count) ?
57 wq->ring.desc_avail--;
76 cnt = wq->ring.desc_count - wq->to_clean_index + index + 1;
78 wq->to_clean_index = ((index + 1) % wq->ring.desc_count);
79 wq->ring.desc_avail += cnt;
88 struct fcpio_host_req *wq_desc = wq->ring.descs;
96 wq->ring.desc_avail++;
103 ((wq->to_clean_index + 1) == wq->ring.desc_count) ?