Lines Matching refs:masked_cons
77 RING_IDX cons, prod, masked_prod, masked_cons; in xen_9pfs_in_sg() local
83 masked_cons = xen_9pfs_mask(cons, XEN_FLEX_RING_SIZE(ring->ring_order)); in xen_9pfs_in_sg()
85 if (masked_prod < masked_cons) { in xen_9pfs_in_sg()
87 in_sg[0].iov_len = masked_cons - masked_prod; in xen_9pfs_in_sg()
93 in_sg[1].iov_len = masked_cons; in xen_9pfs_in_sg()
103 RING_IDX cons, prod, masked_prod, masked_cons; in xen_9pfs_out_sg() local
109 masked_cons = xen_9pfs_mask(cons, XEN_FLEX_RING_SIZE(ring->ring_order)); in xen_9pfs_out_sg()
111 if (masked_cons < masked_prod) { in xen_9pfs_out_sg()
112 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg()
117 (XEN_FLEX_RING_SIZE(ring->ring_order) - masked_cons)) { in xen_9pfs_out_sg()
118 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg()
120 masked_cons; in xen_9pfs_out_sg()
124 masked_cons); in xen_9pfs_out_sg()
127 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg()
269 RING_IDX cons, prod, masked_prod, masked_cons, queued; in xen_9pfs_receive() local
287 masked_cons = xen_9pfs_mask(cons, XEN_FLEX_RING_SIZE(ring->ring_order)); in xen_9pfs_receive()
290 masked_prod, &masked_cons, in xen_9pfs_receive()