Lines Matching refs:prod
88 static bool check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) in check_indexes() argument
90 return ((prod - cons) <= XENSTORE_RING_SIZE); in check_indexes()
94 XENSTORE_RING_IDX prod, in get_output_chunk() argument
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()
100 return buf + MASK_XENSTORE_IDX(prod); in get_output_chunk()
104 XENSTORE_RING_IDX prod, in get_input_chunk() argument
108 if ((prod - cons) < *len) in get_input_chunk()
109 *len = prod - cons; in get_input_chunk()
119 XENSTORE_RING_IDX cons, prod; in writechn() local
123 prod = intf->rsp_prod; in writechn()
126 if (!check_indexes(cons, prod)) { in writechn()
131 dest = get_output_chunk(cons, prod, intf->rsp, &avail); in writechn()
149 XENSTORE_RING_IDX cons, prod; in readchn() local
153 prod = intf->req_prod; in readchn()
156 if (!check_indexes(cons, prod)) { in readchn()
161 src = get_input_chunk(cons, prod, intf->req, &avail); in readchn()