Searched refs:mod_add (Results 1 – 1 of 1) sorted by relevance
336 #define mod_add(b, v) ((ringszdw + (int)(b) + (int)(v)) % ringszdw) in dump_cmdstream() macro345 unsigned rptr = mod_add(ringbuffers[id].rptr, -lookback); in dump_cmdstream()350 rptr = mod_add(rptr, 1); in dump_cmdstream()353 unsigned cmdszdw = mod_add(ringbuffers[id].wptr, -rptr); in dump_cmdstream()359 int p = mod_add(rptr, idx); in dump_cmdstream()