Lines Matching refs:ndx

2190 	uint32_t i, ndx, size, fsize;
2305 ndx = hashval % agb->dtagb_hashsize;
2307 for (key = agb->dtagb_hash[ndx]; key != NULL; key = key->dtak_next) {
2425 key->dtak_next = agb->dtagb_hash[ndx];
2426 agb->dtagb_hash[ndx] = key;
2950 uint64_t ndx)
2957 ndx = v - DIF_VAR_ARG0;
2964 if (ndx >= sizeof (mstate->dtms_arg) /
2979 mstate->dtms_probe->dtpr_arg, ndx, aframes);
2982 else if (mstate->dtms_probe->dtpr_id == dtrace_probeid_error && ndx == 5) {
2987 val = dtrace_getarg(ndx, aframes);
3004 return (mstate->dtms_arg[ndx]);
3019 return (dtrace_getreg(lwp->lwp_regs, ndx));
3034 return (dtrace_getreg(find_user_regs(thread), ndx));
7103 int ndx;
7143 for (err = ecb->dte_action, ndx = 0;
7144 err != act; err = err->dta_next, ndx++)
7147 dtrace_probe_error(state, ecb->dte_epid, ndx,
7277 int size = hash->dth_size, i, ndx;
7291 ndx = DTRACE_HASHSTR(hash, probe) & new_mask;
7294 bucket->dthb_next = new_tab[ndx];
7295 new_tab[ndx] = bucket;
7309 int ndx = hashval & hash->dth_mask;
7310 dtrace_hashbucket_t *bucket = hash->dth_tab[ndx];
7325 bucket->dthb_next = hash->dth_tab[ndx];
7326 hash->dth_tab[ndx] = bucket;
7348 int ndx = hashval & hash->dth_mask;
7349 dtrace_hashbucket_t *bucket = hash->dth_tab[ndx];
7363 int ndx = hashval & hash->dth_mask;
7364 dtrace_hashbucket_t *bucket = hash->dth_tab[ndx];
7377 int ndx = DTRACE_HASHSTR(hash, probe) & hash->dth_mask;
7378 dtrace_hashbucket_t *bucket = hash->dth_tab[ndx];
7399 dtrace_hashbucket_t *b = hash->dth_tab[ndx];
7405 hash->dth_tab[ndx] = bucket->dthb_next;
9358 uint_t id, ndx;
9361 int ndx;
9392 ndx = id - DIF_VAR_OTHER_UBASE;
9396 if (ndx < vstate->dtvs_nglobals) {
9399 if ((svar = vstate->dtvs_globals[ndx]) != NULL)
9406 if (ndx < vstate->dtvs_ntlocals)
9407 existing = &vstate->dtvs_tlocals[ndx];
9411 if (ndx < vstate->dtvs_nlocals) {
9414 if ((svar = vstate->dtvs_locals[ndx]) != NULL)
10136 uint16_t ndx, len = strlen(str) + 1;
10141 for (ndx = 0; ndx < state->dts_nformats; ndx++) {
10142 if (state->dts_formats[ndx] == NULL) {
10143 state->dts_formats[ndx] = fmt;
10144 return (ndx + 1);
10161 ndx = state->dts_nformats++;
10162 new = kmem_alloc((ndx + 1) * sizeof (char *), KM_SLEEP);
10165 ASSERT(ndx != 0);
10166 bcopy(state->dts_formats, new, ndx * sizeof (char *));
10167 kmem_free(state->dts_formats, ndx * sizeof (char *));
10171 state->dts_formats[ndx] = fmt;
10173 return (ndx + 1);