Lines Matching refs:cons
650 tbuf.meta[i]->cons = tbuf.meta[i]->prod; in xdt_attach_trace_buffers()
1746 uint32_t prod, cons, offset; in xdt_get_first_rec() local
1752 cons = tbuf.meta[cpuid]->cons; in xdt_get_first_rec()
1755 if (prod == cons) in xdt_get_first_rec()
1758 offset = cons % tbuf_data_size; in xdt_get_first_rec()
1779 *consp = cons; in xdt_get_first_rec()
1793 uint32_t bytes_done, cons; in xdt_tbuf_scan() local
1799 nrecs < xdt_max_recs && xdt_get_first_rec(&cpuid, &rec, &cons) > 0; in xdt_tbuf_scan()
1808 cons += bytes_done; in xdt_tbuf_scan()
1813 if (cons >= 2 * tbuf_data_size) in xdt_tbuf_scan()
1814 cons -= 2 * tbuf_data_size; in xdt_tbuf_scan()
1816 tbuf.meta[cpuid]->cons = cons; in xdt_tbuf_scan()