Lines Matching defs:prod
381 * \param prod The producer index for the ring to test.
387 xs_check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod)
390 return ((prod - cons) <= XENSTORE_RING_SIZE);
398 * \param prod The producer index for the ring.
405 xs_get_output_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod,
409 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod);
410 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len)
411 *len = XENSTORE_RING_SIZE - (prod - cons);
412 return (buf + MASK_XENSTORE_IDX(prod));
420 * \param prod The producer index for the ring.
427 xs_get_input_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod,
432 if ((prod - cons) < *len)
433 *len = prod - cons;
454 XENSTORE_RING_IDX cons, prod;
466 prod = xen_store->req_prod;
467 if ((prod - cons) == XENSTORE_RING_SIZE) {
491 if (!xs_check_indexes(cons, prod)) {
496 dst = xs_get_output_chunk(cons, prod, xen_store->req, &avail);
543 XENSTORE_RING_IDX cons, prod;
554 prod = xen_store->rsp_prod;
555 if (cons == prod) {
577 if (!xs_check_indexes(cons, prod)) {
582 src = xs_get_input_chunk(cons, prod, xen_store->rsp, &avail);