Searched refs:XENSTORE_RING_SIZE (Results 1 – 4 of 4) sorted by relevance
91 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()
117 #define XENSTORE_RING_SIZE 1024 macro119 #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. */
73 if ((prod - cons) > XENSTORE_RING_SIZE) in ml_interface_read()88 data = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in ml_interface_read()132 if ((prod - cons) > XENSTORE_RING_SIZE) in ml_interface_write()136 total_space = XENSTORE_RING_SIZE - (prod - cons); in ml_interface_write()147 space = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in ml_interface_write()191 for (i = 0; i < XENSTORE_RING_SIZE; i++) { in ml_interface_close()
95 return ((prod - cons) <= XENSTORE_RING_SIZE); in check_indexes()102 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in get_output_chunk()103 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in get_output_chunk()104 *len = XENSTORE_RING_SIZE - (prod - cons); in get_output_chunk()112 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in get_input_chunk()314 return ((intf->rsp_prod - intf->rsp_cons) != XENSTORE_RING_SIZE); in domain_can_write()
Completed in 8 milliseconds