Lines Matching refs:enp
47 __in efx_nic_t *enp) in efx_ev_init() argument
52 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_ev_init()
53 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_INTR); in efx_ev_init()
55 if (enp->en_mod_flags & EFX_MOD_EV) { in efx_ev_init()
60 EFSYS_ASSERT3U(enp->en_ev_qcount, ==, 0); in efx_ev_init()
66 EFX_BAR_READO(enp, FR_AZ_DP_CTRL_REG, &oword); in efx_ev_init()
68 EFX_BAR_WRITEO(enp, FR_AZ_DP_CTRL_REG, &oword); in efx_ev_init()
70 enp->en_mod_flags |= EFX_MOD_EV; in efx_ev_init()
176 efx_nic_t *enp = eep->ee_enp; in efx_ev_rx() local
206 is_v6 = (enp->en_family != EFX_FAMILY_FALCON && in efx_ev_rx()
300 if (enp->en_family != EFX_FAMILY_FALCON && !ok) { in efx_ev_rx()
379 efx_nic_t *enp = eep->ee_enp; in efx_ev_global() local
380 efx_port_t *epp = &(enp->en_port); in efx_ev_global()
561 efx_nic_t *enp = eep->ee_enp; in efx_ev_mcdi() local
565 EFSYS_ASSERT3U(enp->en_family, ==, EFX_FAMILY_SIENA); in efx_ev_mcdi()
567 if (enp->en_family != EFX_FAMILY_SIENA) in efx_ev_mcdi()
581 efx_mcdi_ev_death(enp, EINTR); in efx_ev_mcdi()
585 efx_mcdi_ev_cpl(enp, in efx_ev_mcdi()
594 siena_phy_link_ev(enp, eqp, &link_mode); in efx_ev_mcdi()
604 if ((rc = siena_mon_ev(enp, eqp, &id, &value)) == 0) in efx_ev_mcdi()
622 efx_mcdi_ev_death(enp, EIO); in efx_ev_mcdi()
664 efx_nic_t *enp = eep->ee_enp; in efx_ev_qprime() local
671 if (!(enp->en_mod_flags & EFX_MOD_INTR)) { in efx_ev_qprime()
680 EFX_BAR_TBL_WRITED(enp, FR_AZ_EVQ_RPTR_REG, eep->ee_index, in efx_ev_qprime()
831 efx_nic_t *enp = eep->ee_enp; in efx_ev_qpost() local
844 EFX_BAR_WRITEO(enp, FR_AZ_DRV_EV_REG, &oword); in efx_ev_qpost()
852 efx_nic_t *enp = eep->ee_enp; in efx_ev_qmoderate() local
853 efx_nic_cfg_t *encp = &(enp->en_nic_cfg); in efx_ev_qmoderate()
867 if (enp->en_family == EFX_FAMILY_FALCON) in efx_ev_qmoderate()
885 if (enp->en_family == EFX_FAMILY_FALCON) in efx_ev_qmoderate()
897 EFX_BAR_TBL_WRITED(enp, FR_BZ_TIMER_COMMAND_REGP0, in efx_ev_qmoderate()
910 __in efx_nic_t *enp, in efx_ev_qcreate() argument
917 efx_nic_cfg_t *encp = &(enp->en_nic_cfg); in efx_ev_qcreate()
923 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_ev_qcreate()
924 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_EV); in efx_ev_qcreate()
926 EFSYS_ASSERT3U(enp->en_ev_qcount + 1, <, encp->enc_evq_limit); in efx_ev_qcreate()
937 if (enp->en_intr.ei_type == EFX_INTR_LINE && in efx_ev_qcreate()
953 EFSYS_KMEM_ALLOC(enp->en_esip, sizeof (efx_evq_t), eep); in efx_ev_qcreate()
960 eep->ee_enp = enp; in efx_ev_qcreate()
976 if (enp->en_family != EFX_FAMILY_FALCON) { in efx_ev_qcreate()
978 EFX_BAR_TBL_WRITEO(enp, FR_AZ_TIMER_TBL, index, &oword); in efx_ev_qcreate()
984 EFX_BAR_TBL_WRITEO(enp, FR_AZ_EVQ_PTR_TBL, index, &oword); in efx_ev_qcreate()
986 enp->en_ev_qcount++; in efx_ev_qcreate()
1055 __in efx_nic_t *enp, in efx_ev_qstat_name() argument
1058 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_ev_qstat_name()
1089 efx_nic_t *enp = eep->ee_enp; in efx_ev_qdestroy() local
1094 EFSYS_ASSERT(enp->en_ev_qcount != 0); in efx_ev_qdestroy()
1095 --enp->en_ev_qcount; in efx_ev_qdestroy()
1100 EFX_BAR_TBL_WRITEO(enp, FR_AZ_EVQ_PTR_TBL, in efx_ev_qdestroy()
1103 if (enp->en_family != EFX_FAMILY_FALCON) { in efx_ev_qdestroy()
1105 EFX_BAR_TBL_WRITEO(enp, FR_AZ_TIMER_TBL, in efx_ev_qdestroy()
1110 EFSYS_KMEM_FREE(enp->en_esip, sizeof (efx_evq_t), eep); in efx_ev_qdestroy()
1115 __in efx_nic_t *enp) in efx_ev_fini() argument
1117 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_ev_fini()
1118 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_INTR); in efx_ev_fini()
1119 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_EV); in efx_ev_fini()
1120 EFSYS_ASSERT(!(enp->en_mod_flags & EFX_MOD_RX)); in efx_ev_fini()
1121 EFSYS_ASSERT(!(enp->en_mod_flags & EFX_MOD_TX)); in efx_ev_fini()
1122 EFSYS_ASSERT3U(enp->en_ev_qcount, ==, 0); in efx_ev_fini()
1124 enp->en_mod_flags &= ~EFX_MOD_EV; in efx_ev_fini()