Home
last modified time | relevance | path

Searched refs:masked_cons (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/include/xen/interface/io/
H A Dring.h373 RING_IDX *masked_cons, \
376 if (*masked_cons < masked_prod || \
377 size <= ring_size - *masked_cons) { \
378 memcpy(opaque, buf + *masked_cons, size); \
380 memcpy(opaque, buf + *masked_cons, ring_size - *masked_cons); \
381 memcpy((unsigned char *)opaque + ring_size - *masked_cons, buf, \
382 size - (ring_size - *masked_cons)); \
384 *masked_cons = name##_mask(*masked_cons + size, ring_size); \
391 RING_IDX masked_cons, \
394 if (*masked_prod < masked_cons || \
/openbmc/qemu/include/hw/xen/interface/io/
H A Dring.h412 RING_IDX *masked_cons, \
415 if (*masked_cons < masked_prod || \
416 size <= ring_size - *masked_cons) { \
417 memcpy(opaque, buf + *masked_cons, size); \
419 memcpy(opaque, buf + *masked_cons, ring_size - *masked_cons); \
420 memcpy((unsigned char *)opaque + ring_size - *masked_cons, buf, \
421 size - (ring_size - *masked_cons)); \
423 *masked_cons = name##_mask(*masked_cons + size, ring_size); \
430 RING_IDX masked_cons, \
433 if (*masked_prod < masked_cons || \
/openbmc/qemu/hw/9pfs/
H A Dxen-9p-backend.c77 RING_IDX cons, prod, masked_prod, masked_cons; in xen_9pfs_in_sg() local
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
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()
120 masked_cons; in xen_9pfs_out_sg()
124 masked_cons); in xen_9pfs_out_sg()
269 RING_IDX cons, prod, masked_prod, masked_cons, queued; in xen_9pfs_receive() local
[all …]
/openbmc/linux/net/9p/
H A Dtrans_xen.c119 RING_IDX cons, prod, masked_cons, masked_prod; in p9_xen_request() local
154 masked_cons = xen_9pfs_mask(cons, XEN_9PFS_RING_SIZE(ring)); in p9_xen_request()
157 &masked_prod, masked_cons, in p9_xen_request()
175 RING_IDX cons, prod, masked_cons, masked_prod; in p9_xen_response() local
195 masked_cons = xen_9pfs_mask(cons, XEN_9PFS_RING_SIZE(ring)); in p9_xen_response()
199 masked_prod, &masked_cons, in p9_xen_response()
224 masked_cons = xen_9pfs_mask(cons, XEN_9PFS_RING_SIZE(ring)); in p9_xen_response()
227 masked_prod, &masked_cons, in p9_xen_response()
/openbmc/linux/drivers/xen/
H A Dpvcalls-front.c495 RING_IDX cons, prod, size, masked_prod, masked_cons; in __write_ring() local
516 masked_cons = pvcalls_mask(cons, array_size); in __write_ring()
518 if (masked_prod < masked_cons) { in __write_ring()
590 RING_IDX cons, prod, size, masked_prod, masked_cons; in __read_ring() local
602 masked_cons = pvcalls_mask(cons, array_size); in __read_ring()
610 if (masked_prod > masked_cons) { in __read_ring()
611 len = copy_to_iter(data->in + masked_cons, len, msg_iter); in __read_ring()
613 if (len > (array_size - masked_cons)) { in __read_ring()
614 int ret = copy_to_iter(data->in + masked_cons, in __read_ring()
615 array_size - masked_cons, msg_iter); in __read_ring()
[all …]
H A Dpvcalls-back.c97 RING_IDX cons, prod, size, wanted, array_size, masked_prod, masked_cons; in pvcalls_conn_back_read() local
127 masked_cons = pvcalls_mask(cons, array_size); in pvcalls_conn_back_read()
130 if (masked_prod < masked_cons) { in pvcalls_conn_back_read()