Searched refs:MASK_XENCONS_IDX (Results 1 – 2 of 2) sorted by relevance
34 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1)) macro
45 in_idx = MASK_XENCONS_IDX(cons, hvc_data->intf->in); in read_from_ring()71 out_idx = MASK_XENCONS_IDX(prod, hvc_data->intf->out); in write_to_ring()