Lines Matching refs:ndx
135 int ndx, int l, int r, int depth) in cyclic_dump_node() argument
142 heap_left = CYC_HEAP_LEFT(ndx); in cyclic_dump_node()
143 heap_right = CYC_HEAP_RIGHT(ndx); in cyclic_dump_node()
144 me = heap[ndx]; in cyclic_dump_node()
146 if (ndx >= cpu->cyp_nelems) in cyclic_dump_node()
155 CYC_HEAP_LEFT(CYC_HEAP_PARENT(ndx)) == ndx ? " " : "", me, in cyclic_dump_node()
156 CYC_HEAP_LEFT(CYC_HEAP_PARENT(ndx)) == ndx ? "" : " "); in cyclic_dump_node()
502 int i, ndx, new_ndx, lev, rval; in cyctrace_walk_step() local
506 if ((ndx = buf[i].cyt_ndx) == -1) in cyctrace_walk_step()
512 buf[i].cyt_buf[ndx].cyt_tstamp <<= 1; in cyctrace_walk_step()
513 buf[i].cyt_buf[ndx].cyt_tstamp >>= 1; in cyctrace_walk_step()
515 if (buf[i].cyt_buf[ndx].cyt_tstamp > latest) { in cyctrace_walk_step()
516 latest = buf[i].cyt_buf[ndx].cyt_tstamp; in cyctrace_walk_step()
528 ndx = buf->cyt_ndx; in cyctrace_walk_step()
530 (uintptr_t)&(buf->cyt_buf[ndx]) - (uintptr_t)cpu; in cyctrace_walk_step()
532 rval = wsp->walk_callback(addr, &buf->cyt_buf[ndx], wsp->walk_cbdata); in cyctrace_walk_step()
534 new_ndx = ndx == 0 ? CY_NTRACEREC - 1 : ndx - 1; in cyctrace_walk_step()
537 buf->cyt_buf[new_ndx].cyt_tstamp > buf->cyt_buf[ndx].cyt_tstamp) in cyctrace_walk_step()
691 cycid_cpu(cyc_cpu_t *addr, int ndx) in cycid_cpu() argument
708 caddr = (uintptr_t)cpu.cyp_cyclics + ndx * sizeof (cyclic_t); in cycid_cpu()
715 mdb_printf("%4d %3d %?p %a\n", c.cpu_id, ndx, caddr, cyc.cy_handler); in cycid_cpu()