Home
last modified time | relevance | path

Searched refs:MASK_XENSTORE_IDX (Results 1 – 4 of 4) sorted by relevance

/xen/tools/firmware/hvmloader/
A Dxenbus.c115 MASK_XENSTORE_IDX(rings->req_prod - rings->req_cons)) == 0 ) in ring_write()
118 if ( part > (XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(rings->req_prod)) ) in ring_write()
119 part = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(rings->req_prod); in ring_write()
124 memcpy(rings->req + MASK_XENSTORE_IDX(rings->req_prod), in ring_write()
142 while ( (part = MASK_XENSTORE_IDX(rings->rsp_prod - in ring_read()
158 if ( part > (XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(rings->rsp_cons)) ) in ring_read()
159 part = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(rings->rsp_cons); in ring_read()
165 rings->rsp + MASK_XENSTORE_IDX(rings->rsp_cons), part); in ring_read()
/xen/tools/ocaml/libs/xb/
A Dxs_ring_stubs.c88 data = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in ml_interface_read()
91 memcpy(buffer, intf->req + MASK_XENSTORE_IDX(cons), len); in ml_interface_read()
94 memcpy(buffer, intf->req + MASK_XENSTORE_IDX(cons), data); in ml_interface_read()
147 space = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in ml_interface_write()
150 memcpy(intf->rsp + MASK_XENSTORE_IDX(prod), buffer, len); in ml_interface_write()
153 memcpy(intf->rsp + MASK_XENSTORE_IDX(prod), buffer, space); in ml_interface_write()
/xen/xen/include/public/io/
A Dxs_wire.h119 #define MASK_XENSTORE_IDX(idx) ((idx) & (XENSTORE_RING_SIZE-1)) macro
/xen/tools/xenstore/
A Dxenstored_domain.c102 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in get_output_chunk()
105 return buf + MASK_XENSTORE_IDX(prod); in get_output_chunk()
112 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in get_input_chunk()
115 return buf + MASK_XENSTORE_IDX(cons); in get_input_chunk()

Completed in 7 milliseconds