Lines Matching refs:enp

39 	__in		efx_nic_t *enp)  in efx_port_init()  argument
41 efx_port_t *epp = &(enp->en_port); in efx_port_init()
45 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_port_init()
46 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE); in efx_port_init()
47 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC); in efx_port_init()
49 if (enp->en_mod_flags & EFX_MOD_PORT) { in efx_port_init()
54 enp->en_mod_flags |= EFX_MOD_PORT; in efx_port_init()
61 if ((rc = efx_mac_select(enp)) != 0) in efx_port_init()
64 epp->ep_emop->emo_reconfigure(enp); in efx_port_init()
67 (void) efx_port_poll(enp, NULL); in efx_port_init()
74 if ((rc = epop->epo_power(enp, B_TRUE)) != 0) in efx_port_init()
77 if ((rc = epop->epo_reset(enp)) != 0) in efx_port_init()
81 EFSYS_ASSERT(enp->en_reset_flags & EFX_RESET_PHY); in efx_port_init()
82 enp->en_reset_flags &= ~EFX_RESET_PHY; in efx_port_init()
84 if ((rc = epop->epo_reconfigure(enp)) != 0) in efx_port_init()
96 enp->en_mod_flags &= ~EFX_MOD_PORT; in efx_port_init()
103 __in efx_nic_t *enp, in efx_port_poll() argument
106 efx_port_t *epp = &(enp->en_port); in efx_port_poll()
111 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_port_poll()
112 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT); in efx_port_poll()
119 if ((rc = emop->emo_poll(enp, link_modep)) != 0) in efx_port_poll()
134 __in efx_nic_t *enp, in efx_port_loopback_set() argument
138 efx_port_t *epp = &(enp->en_port); in efx_port_loopback_set()
139 efx_nic_cfg_t *encp = &(enp->en_nic_cfg); in efx_port_loopback_set()
143 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_port_loopback_set()
144 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT); in efx_port_loopback_set()
159 if ((rc = emop->emo_loopback_set(enp, link_mode, loopback_type)) != 0) in efx_port_loopback_set()
214 __in efx_nic_t *enp, in efx_loopback_type_name() argument
220 _NOTE(ARGUNUSED(enp)) in efx_loopback_type_name()
221 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_loopback_type_name()
233 __in efx_nic_t *enp) in efx_port_fini() argument
235 efx_port_t *epp = &(enp->en_port); in efx_port_fini()
238 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_port_fini()
239 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE); in efx_port_fini()
240 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC); in efx_port_fini()
241 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT); in efx_port_fini()
251 (void) epop->epo_power(enp, B_FALSE); in efx_port_fini()
253 enp->en_mod_flags &= ~EFX_MOD_PORT; in efx_port_fini()