Lines Matching refs:iospc_p

154 	iospc_t *iospc_p;  in iospc_attach()  local
191 iospc_p = (iospc_t *)ddi_get_soft_state(iospc_state_p, in iospc_attach()
194 iospc_p->iospc_dip = dip; in iospc_attach()
198 if (iospc_kstat_attach(iospc_p) != DDI_SUCCESS) in iospc_attach()
229 iospc_t *iospc_p = (iospc_t *)ddi_get_soft_state( in iospc_detach() local
235 iospc_kstat_detach(iospc_p); in iospc_detach()
289 iospc_kstat_attach(iospc_t *iospc_p) in iospc_kstat_attach() argument
298 ddi_get_instance(iospc_p->iospc_dip)); in iospc_kstat_attach()
316 ksinfo_p->iospc_p = iospc_p; in iospc_kstat_attach()
320 iospc_p->iospc_ksinfo_p[i] = ksinfo_p; in iospc_kstat_attach()
324 ddi_get_instance(iospc_p->iospc_dip), in iospc_kstat_attach()
330 if (grp_p->access_init(iospc_p, ksinfo_p) != SUCCESS) in iospc_kstat_attach()
337 iospc_kstat_detach(iospc_p); in iospc_kstat_attach()
469 iospc_perfcnt_program(iospc_t *iospc_p, iospc_grp_t *grp_p, in iospc_perfcnt_program() argument
481 if ((rval = grp_p->access(iospc_p, ksinfo_p->arg, IOSPC_REG_READ, in iospc_perfcnt_program()
510 if ((rval = grp_p->access(iospc_p, ksinfo_p->arg, in iospc_perfcnt_program()
521 if ((rval = grp_p->access(iospc_p, ksinfo_p->arg, in iospc_perfcnt_program()
547 iospc_t *iospc_p = ksinfop->iospc_p; in iospc_kstat_update() local
565 if (iospc_perfcnt_program(iospc_p, grp_p, ksinfop, in iospc_kstat_update()
577 if (grp_p->access(iospc_p, ksinfop->arg, IOSPC_REG_READ, in iospc_kstat_update()
589 if (grp_p->access(iospc_p, ksinfop->arg, IOSPC_REG_READ, in iospc_kstat_update()
637 iospc_kstat_detach(iospc_t *iospc_p) in iospc_kstat_detach() argument
651 if (iospc_p->iospc_ksinfo_p[i] != NULL) { in iospc_kstat_detach()
653 grp_p->access_fini(iospc_p, iospc_p->iospc_ksinfo_p[i]); in iospc_kstat_detach()
655 if (iospc_p->iospc_ksinfo_p[i]->cntr_ksp != NULL) in iospc_kstat_detach()
657 iospc_p->iospc_ksinfo_p[i]->cntr_ksp); in iospc_kstat_detach()
658 kmem_free(iospc_p->iospc_ksinfo_p[i], in iospc_kstat_detach()