Lines Matching refs:svkp
787 sfxge_vpd_kstat_t *svkp = &(sp->s_vpd_kstat); in _sfxge_vpd_kstat_init() local
791 evvp = svkp->svk_vv + type; in _sfxge_vpd_kstat_init()
800 knp = &(svkp->svk_stat[type]); in _sfxge_vpd_kstat_init()
804 svkp->svk_ksp->ks_data_size += sizeof (*evvp); in _sfxge_vpd_kstat_init()
811 sfxge_vpd_kstat_t *svkp = &(sp->s_vpd_kstat); in sfxge_vpd_kstat_init() local
819 SFXGE_OBJ_CHECK(svkp, sfxge_vpd_kstat_t); in sfxge_vpd_kstat_init()
831 if ((svkp->svk_vv = kmem_zalloc(sizeof (efx_vpd_value_t) * in sfxge_vpd_kstat_init()
846 svkp->svk_ksp = ksp; in sfxge_vpd_kstat_init()
847 ksp->ks_data = &(svkp->svk_stat); in sfxge_vpd_kstat_init()
866 kmem_free(svkp->svk_vv, sizeof (efx_vpd_value_t) * SFXGE_VPD_MAX); in sfxge_vpd_kstat_init()
874 SFXGE_OBJ_CHECK(svkp, sfxge_vpd_kstat_t); in sfxge_vpd_kstat_init()
882 sfxge_vpd_kstat_t *svkp = &(sp->s_vpd_kstat); in sfxge_vpd_kstat_fini() local
885 if (svkp->svk_ksp != NULL) { in sfxge_vpd_kstat_fini()
887 kstat_delete(svkp->svk_ksp); in sfxge_vpd_kstat_fini()
889 kmem_free(svkp->svk_vv, in sfxge_vpd_kstat_fini()
892 bzero(svkp->svk_stat, in sfxge_vpd_kstat_fini()
895 svkp->svk_ksp = NULL; in sfxge_vpd_kstat_fini()
898 SFXGE_OBJ_CHECK(svkp, sfxge_vpd_kstat_t); in sfxge_vpd_kstat_fini()