Home
last modified time | relevance | path

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

/xen-4.10.0-shim-comet/tools/firmware/hvmloader/
A Dxenbus.c91 memset(rings->req, 0xff, XENSTORE_RING_SIZE); in xenbus_shutdown()
92 memset(rings->rsp, 0xff, XENSTORE_RING_SIZE); in xenbus_shutdown()
114 while ( (part = (XENSTORE_RING_SIZE - 1) - 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()
150 if ( rings->rsp_prod - rings->rsp_cons == XENSTORE_RING_SIZE ) in ring_read()
152 part = XENSTORE_RING_SIZE; 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()
/xen-4.10.0-shim-comet/xen/include/public/io/
A Dxs_wire.h117 #define XENSTORE_RING_SIZE 1024 macro
119 #define MASK_XENSTORE_IDX(idx) ((idx) & (XENSTORE_RING_SIZE-1))
121 char req[XENSTORE_RING_SIZE]; /* Requests to xenstore daemon. */
122 char rsp[XENSTORE_RING_SIZE]; /* Replies and async watch events. */
/xen-4.10.0-shim-comet/tools/ocaml/libs/xb/
A Dxs_ring_stubs.c65 if ((prod - cons) > XENSTORE_RING_SIZE) in ml_interface_read()
80 data = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in ml_interface_read()
124 if ((prod - cons) > XENSTORE_RING_SIZE) in ml_interface_write()
128 total_space = XENSTORE_RING_SIZE - (prod - cons); in ml_interface_write()
139 space = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in ml_interface_write()
183 for (i = 0; i < XENSTORE_RING_SIZE; i++) { in ml_interface_close()
/xen-4.10.0-shim-comet/tools/xenstore/
A Dxenstored_domain.c90 return ((prod - cons) <= XENSTORE_RING_SIZE); in check_indexes()
97 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in get_output_chunk()
98 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in get_output_chunk()
99 *len = XENSTORE_RING_SIZE - (prod - cons); in get_output_chunk()
107 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in get_input_chunk()
290 return ((intf->rsp_prod - intf->rsp_cons) != XENSTORE_RING_SIZE); in domain_can_write()

Completed in 7 milliseconds