Lines Matching refs:spp
78 sfxge_phy_t *spp = &(smp->sm_phy); in sfxge_phy_kstat_update() local
95 (void) ddi_dma_sync(spp->sp_mem.esm_dma_handle, in sfxge_phy_kstat_update()
98 if ((rc = efx_phy_stats_update(enp, &spp->sp_mem, spp->sp_statbuf)) in sfxge_phy_kstat_update()
102 knp = spp->sp_stat; in sfxge_phy_kstat_update()
104 knp->value.ui64 = spp->sp_statbuf[sn]; in sfxge_phy_kstat_update()
126 sfxge_phy_t *spp = &(sp->s_mac.sm_phy); in sfxge_phy_kstat_init() local
135 if ((spp->sp_statbuf = kmem_zalloc(sizeof (uint32_t) * EFX_PHY_NSTATS, in sfxge_phy_kstat_init()
154 spp->sp_ksp = ksp; in sfxge_phy_kstat_init()
161 spp->sp_stat = knp = ksp->ks_data; in sfxge_phy_kstat_init()
175 kmem_free(spp->sp_statbuf, sizeof (uint32_t) * EFX_PHY_NSTATS); in sfxge_phy_kstat_init()
186 sfxge_phy_t *spp = &(sp->s_mac.sm_phy); in sfxge_phy_kstat_fini() local
189 kstat_delete(spp->sp_ksp); in sfxge_phy_kstat_fini()
190 spp->sp_ksp = NULL; in sfxge_phy_kstat_fini()
191 spp->sp_stat = NULL; in sfxge_phy_kstat_fini()
193 kmem_free(spp->sp_statbuf, sizeof (uint32_t) * EFX_PHY_NSTATS); in sfxge_phy_kstat_fini()
200 sfxge_phy_t *spp = &(sp->s_mac.sm_phy); in sfxge_phy_init() local
201 efsys_mem_t *esmp = &(spp->sp_mem); in sfxge_phy_init()
222 SFXGE_OBJ_CHECK(spp, sfxge_phy_t); in sfxge_phy_init()
374 sfxge_phy_t *spp = &(sp->s_mac.sm_phy); in sfxge_phy_fini() local
375 efsys_mem_t *esmp = &(spp->sp_mem); in sfxge_phy_fini()