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