Lines Matching refs:enp

47 	__in		efx_nic_t *enp)  in efx_tx_init()  argument
52 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_tx_init()
53 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC); in efx_tx_init()
55 if (!(enp->en_mod_flags & EFX_MOD_EV)) { in efx_tx_init()
60 if (enp->en_mod_flags & EFX_MOD_TX) { in efx_tx_init()
65 EFSYS_ASSERT3U(enp->en_tx_qcount, ==, 0); in efx_tx_init()
72 EFX_BAR_READO(enp, FR_AZ_TX_RESERVED_REG, &oword); in efx_tx_init()
86 EFX_BAR_WRITEO(enp, FR_AZ_TX_RESERVED_REG, &oword); in efx_tx_init()
92 EFX_BAR_READO(enp, FR_AZ_TX_CFG_REG, &oword); in efx_tx_init()
94 EFX_BAR_WRITEO(enp, FR_AZ_TX_CFG_REG, &oword); in efx_tx_init()
96 enp->en_mod_flags |= EFX_MOD_TX; in efx_tx_init()
205 efx_nic_t *enp = etp->et_enp; in efx_tx_qpush() local
223 EFX_BAR_TBL_WRITED3(enp, FR_BZ_TX_DESC_UPD_REGP0, in efx_tx_qpush()
235 efx_nic_t *enp = etp->et_enp; in efx_tx_qpace() local
236 efx_nic_cfg_t *encp = &(enp->en_nic_cfg); in efx_tx_qpace()
264 EFX_BAR_TBL_WRITEO(enp, FR_AZ_TX_PACE_TBL, etp->et_index, &oword); in efx_tx_qpace()
278 efx_nic_t *enp = etp->et_enp; in efx_tx_qflush() local
291 EFX_BAR_WRITEO(enp, FR_AZ_TX_FLUSH_DESCQ_REG, &oword); in efx_tx_qflush()
298 efx_nic_t *enp = etp->et_enp; in efx_tx_qenable() local
303 EFX_BAR_TBL_READO(enp, FR_AZ_TX_DESC_PTR_TBL, in efx_tx_qenable()
316 EFX_BAR_TBL_WRITEO(enp, FR_AZ_TX_DESC_PTR_TBL, in efx_tx_qenable()
322 __in efx_nic_t *enp, in efx_tx_qcreate() argument
332 efx_nic_cfg_t *encp = &(enp->en_nic_cfg); in efx_tx_qcreate()
338 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_tx_qcreate()
339 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_TX); in efx_tx_qcreate()
344 EFSYS_ASSERT3U(enp->en_tx_qcount + 1, <, encp->enc_txq_limit); in efx_tx_qcreate()
364 EFSYS_KMEM_ALLOC(enp->en_esip, sizeof (efx_txq_t), etp); in efx_tx_qcreate()
372 etp->et_enp = enp; in efx_tx_qcreate()
392 EFX_BAR_TBL_WRITEO(enp, FR_AZ_TX_DESC_PTR_TBL, in efx_tx_qcreate()
395 enp->en_tx_qcount++; in efx_tx_qcreate()
422 __in efx_nic_t *enp, in efx_tx_qstat_name() argument
425 _NOTE(ARGUNUSED(enp)) in efx_tx_qstat_name()
426 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_tx_qstat_name()
457 efx_nic_t *enp = etp->et_enp; in efx_tx_qdestroy() local
462 EFSYS_ASSERT(enp->en_tx_qcount != 0); in efx_tx_qdestroy()
463 --enp->en_tx_qcount; in efx_tx_qdestroy()
468 EFX_BAR_TBL_WRITEO(enp, FR_AZ_TX_DESC_PTR_TBL, in efx_tx_qdestroy()
472 EFSYS_KMEM_FREE(enp->en_esip, sizeof (efx_txq_t), etp); in efx_tx_qdestroy()
477 __in efx_nic_t *enp) in efx_tx_fini() argument
479 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); in efx_tx_fini()
480 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC); in efx_tx_fini()
481 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_TX); in efx_tx_fini()
482 EFSYS_ASSERT3U(enp->en_tx_qcount, ==, 0); in efx_tx_fini()
484 enp->en_mod_flags &= ~EFX_MOD_TX; in efx_tx_fini()