Lines Matching refs:n2piupc_p
46 static int n2piupc_write(n2piupc_t *n2piupc_p, int regid, uint64_t data);
88 n2piupc_kstat_attach(n2piupc_t *n2piupc_p)
97 ddi_get_instance(n2piupc_p->n2piupc_dip));
100 if (n2piupc_biterr_attach(&n2piupc_p->n2piupc_biterr_p) != DDI_SUCCESS)
116 ksinfo_p->n2piupc_p = n2piupc_p;
120 n2piupc_p->n2piupc_ksinfo_p[i] = ksinfo_p;
124 ddi_get_instance(n2piupc_p->n2piupc_dip),
134 if (n2piupc_write(n2piupc_p, leaf_grps[BIT_ERR_GRP]->regsel_p->regoff,
142 n2piupc_kstat_detach(n2piupc_p);
245 NAMEINST(ksinfop->n2piupc_p->n2piupc_dip), name);
273 n2piupc_write(n2piupc_t *n2piupc_p, int regid, uint64_t data)
280 rval = n2piupc_biterr_write(n2piupc_p, regid, data);
284 if (n2piupc_set_perfreg(n2piupc_p->n2piupc_handle,
297 n2piupc_read(n2piupc_t *n2piupc_p, int regid, uint64_t *data)
308 rval = n2piupc_biterr_read(n2piupc_p, regid, data);
312 if (n2piupc_get_perfreg(n2piupc_p->n2piupc_handle,
333 n2piupc_perfcnt_program(n2piupc_t *n2piupc_p, n2piu_grp_t *grp_p,
345 if ((rval = n2piupc_read(n2piupc_p, grp_p->regsel_p->regoff,
377 if ((rval = n2piupc_write(n2piupc_p,
386 if ((rval = n2piupc_write(n2piupc_p, grp_p->regsel_p->regoff,
411 n2piupc_t *n2piupc_p = ksinfop->n2piupc_p;
429 if (n2piupc_perfcnt_program(n2piupc_p, grp_p,
440 if (n2piupc_read(n2piupc_p, grp_p->regsel_p->regoff,
450 if (n2piupc_read(n2piupc_p,
498 n2piupc_kstat_detach(n2piupc_t *n2piupc_p)
506 if (n2piupc_p->n2piupc_ksinfo_p[i] != NULL) {
507 if (n2piupc_p->n2piupc_ksinfo_p[i]->cntr_ksp != NULL)
509 n2piupc_p->n2piupc_ksinfo_p[i]->cntr_ksp);
510 kmem_free(n2piupc_p->n2piupc_ksinfo_p[i],
516 n2piupc_biterr_detach(n2piupc_p->n2piupc_biterr_p);