Lines Matching refs:enp

36 	__in		efx_nic_t *enp)  in efx_port_init()  argument
38 efx_port_t *epp = &(enp->en_port); in efx_port_init()
42 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_port_init()
43 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE); in efx_port_init()
44 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC); in efx_port_init()
46 if (enp->en_mod_flags & EFX_MOD_PORT) { in efx_port_init()
51 enp->en_mod_flags |= EFX_MOD_PORT; in efx_port_init()
59 if ((rc = efx_mac_select(enp)) != 0) in efx_port_init()
62 epp->ep_emop->emo_reconfigure(enp); in efx_port_init()
69 if ((rc = epop->epo_power(enp, B_TRUE)) != 0) in efx_port_init()
72 if ((rc = epop->epo_reset(enp)) != 0) in efx_port_init()
76 EFSYS_ASSERT(enp->en_reset_flags & EFX_RESET_PHY); in efx_port_init()
77 enp->en_reset_flags &= ~EFX_RESET_PHY; in efx_port_init()
79 if ((rc = epop->epo_reconfigure(enp)) != 0) in efx_port_init()
91 enp->en_mod_flags &= ~EFX_MOD_PORT; in efx_port_init()
98 __in efx_nic_t *enp, in efx_port_poll() argument
101 efx_port_t *epp = &(enp->en_port); in efx_port_poll()
106 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_port_poll()
107 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT); in efx_port_poll()
115 if ((rc = emop->emo_poll(enp, link_modep)) != 0) in efx_port_poll()
130 __in efx_nic_t *enp, in efx_port_loopback_set() argument
134 efx_port_t *epp = &(enp->en_port); in efx_port_loopback_set()
135 efx_nic_cfg_t *encp = &(enp->en_nic_cfg); in efx_port_loopback_set()
139 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_port_loopback_set()
140 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT); in efx_port_loopback_set()
153 if ((rc = emop->emo_loopback_set(enp, link_mode, loopback_type)) != 0) in efx_port_loopback_set()
191 __in efx_nic_t *enp, in efx_loopback_type_name() argument
194 _NOTE(ARGUNUSED(enp)) in efx_loopback_type_name()
195 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_loopback_type_name()
207 __in efx_nic_t *enp) in efx_port_fini() argument
209 efx_port_t *epp = &(enp->en_port); in efx_port_fini()
212 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_port_fini()
213 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE); in efx_port_fini()
214 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC); in efx_port_fini()
215 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT); in efx_port_fini()
226 (void) epop->epo_power(enp, B_FALSE); in efx_port_fini()
228 enp->en_mod_flags &= ~EFX_MOD_PORT; in efx_port_fini()