/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | ef10_mac.c | 426 __in efsys_mem_t *esmp, in ef10_mac_stats_update() argument 437 EFSYS_DMA_SYNC_FOR_KERNEL(esmp, 0, EFX_MAC_STATS_SIZE); in ef10_mac_stats_update() 438 EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_GENERATION_END, in ef10_mac_stats_update() 443 EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_PKTS, &value); in ef10_mac_stats_update() 446 EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_CONTROL_PKTS, &value); in ef10_mac_stats_update() 449 EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_PAUSE_PKTS, &value); in ef10_mac_stats_update() 452 EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_UNICAST_PKTS, &value); in ef10_mac_stats_update() 455 EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_MULTICAST_PKTS, &value); in ef10_mac_stats_update() 458 EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_BROADCAST_PKTS, &value); in ef10_mac_stats_update() 461 EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_BYTES, &value); in ef10_mac_stats_update() [all …]
|
H A D | siena_mac.c | 241 __in efsys_mem_t *esmp, in siena_mac_stats_update() argument 252 EFSYS_DMA_SYNC_FOR_KERNEL(esmp, 0, EFX_MAC_STATS_SIZE); in siena_mac_stats_update() 253 SIENA_MAC_STAT_READ(esmp, MC_CMD_MAC_GENERATION_END, in siena_mac_stats_update() 258 SIENA_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_PKTS, &value); in siena_mac_stats_update() 260 SIENA_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_CONTROL_PKTS, &value); in siena_mac_stats_update() 263 SIENA_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_PAUSE_PKTS, &value); in siena_mac_stats_update() 266 SIENA_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_UNICAST_PKTS, &value); in siena_mac_stats_update() 269 SIENA_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_MULTICAST_PKTS, &value); in siena_mac_stats_update() 272 SIENA_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_BROADCAST_PKTS, &value); in siena_mac_stats_update() 275 SIENA_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_BYTES, &value); in siena_mac_stats_update() [all …]
|
H A D | ef10_mcdi.c | 50 efsys_mem_t *esmp = emtp->emt_dma_mem; in ef10_mcdi_init() local 66 if (esmp == NULL) { in ef10_mcdi_init() 76 if ((EFSYS_MEM_ADDR(esmp) & 0xFF) != 0) { in ef10_mcdi_init() 117 efsys_mem_t *esmp = emtp->emt_dma_mem; in ef10_mcdi_send_request() local 127 EFSYS_MEM_WRITED(esmp, pos, &dword); in ef10_mcdi_send_request() 133 EFSYS_MEM_WRITED(esmp, hdr_len + pos, &dword); in ef10_mcdi_send_request() 137 EFSYS_DMA_SYNC_FOR_DEVICE(esmp, 0, hdr_len + sdu_len); in ef10_mcdi_send_request() 142 EFSYS_MEM_ADDR(esmp) >> 32); in ef10_mcdi_send_request() 146 EFSYS_MEM_ADDR(esmp) & 0xffffffff); in ef10_mcdi_send_request() 155 efsys_mem_t *esmp = emtp->emt_dma_mem; in ef10_mcdi_poll_response() local [all …]
|
H A D | siena_phy.c | 463 __in_opt efsys_mem_t *esmp, in siena_phy_decode_stats() argument 471 SIENA_SIMPLE_STAT_SET2(vmask, esmp, smask, stat, OUI); in siena_phy_decode_stats() 472 SIENA_SIMPLE_STAT_SET2(vmask, esmp, smask, stat, PMA_PMD_LINK_UP); in siena_phy_decode_stats() 473 SIENA_SIMPLE_STAT_SET2(vmask, esmp, smask, stat, PMA_PMD_RX_FAULT); in siena_phy_decode_stats() 474 SIENA_SIMPLE_STAT_SET2(vmask, esmp, smask, stat, PMA_PMD_TX_FAULT); in siena_phy_decode_stats() 481 if (stat != NULL && esmp != NULL && !EFSYS_MEM_IS_NULL(esmp)) { in siena_phy_decode_stats() 484 EFSYS_MEM_READD(esmp, 4 * MC_CMD_PMA_PMD_SIGNAL, in siena_phy_decode_stats() 494 SIENA_SIMPLE_STAT_SET(vmask, esmp, smask, stat, MC_CMD_PMA_PMD_SNR_A, in siena_phy_decode_stats() 496 SIENA_SIMPLE_STAT_SET(vmask, esmp, smask, stat, MC_CMD_PMA_PMD_SNR_B, in siena_phy_decode_stats() 498 SIENA_SIMPLE_STAT_SET(vmask, esmp, smask, stat, MC_CMD_PMA_PMD_SNR_C, in siena_phy_decode_stats() [all …]
|
H A D | mcdi_mon.c | 168 __in_opt efsys_mem_t *esmp, in mcdi_mon_decode_stats() argument 233 if (stat != NULL && esmp != NULL && !EFSYS_MEM_IS_NULL(esmp)) { in mcdi_mon_decode_stats() 237 EFSYS_MEM_READD(esmp, 4 * (idx - 1), &dword); in mcdi_mon_decode_stats() 310 __in efsys_mem_t *esmp, in efx_mcdi_read_sensors() argument 324 addr_lo = (uint32_t)(EFSYS_MEM_ADDR(esmp) & 0xffffffff); in efx_mcdi_read_sensors() 325 addr_hi = (uint32_t)(EFSYS_MEM_ADDR(esmp) >> 32); in efx_mcdi_read_sensors() 442 __in efsys_mem_t *esmp, in mcdi_mon_stats_update() argument 449 if ((rc = efx_mcdi_read_sensors(enp, esmp, size)) != 0) in mcdi_mon_stats_update() 452 EFSYS_DMA_SYNC_FOR_KERNEL(esmp, 0, size); in mcdi_mon_stats_update() 457 esmp, NULL, values); in mcdi_mon_stats_update()
|
H A D | efx_intr.c | 41 __in efsys_mem_t *esmp); 120 __in efsys_mem_t *esmp) in efx_intr_init() argument 134 eip->ei_esmp = esmp; in efx_intr_init() 165 if ((rc = eiop->eio_init(enp, type, esmp)) != 0) in efx_intr_init() 306 __in efsys_mem_t *esmp) in siena_intr_init() argument 336 FRF_AZ_INT_ADR_KER_DW0, EFSYS_MEM_ADDR(esmp) & 0xffffffff, in siena_intr_init() 337 FRF_AZ_INT_ADR_KER_DW1, EFSYS_MEM_ADDR(esmp) >> 32); in siena_intr_init() 441 efsys_mem_t *esmp = eip->ei_esmp; in siena_intr_check_fatal() local 445 EFSYS_MEM_READO(esmp, 0, &oword); in siena_intr_check_fatal() 452 EFSYS_MEM_WRITEO(esmp, 0, &oword); in siena_intr_check_fatal()
|
H A D | efx_mac.c | 597 __in efsys_mem_t *esmp) in efx_mac_stats_upload() argument 612 if ((rc = emop->emo_stats_upload(enp, esmp)) != 0) in efx_mac_stats_upload() 628 __in efsys_mem_t *esmp, in efx_mac_stats_periodic() argument 646 if ((rc = emop->emo_stats_periodic(enp, esmp, period_ms, events)) != 0) in efx_mac_stats_periodic() 663 __in efsys_mem_t *esmp, in efx_mac_stats_update() argument 675 rc = emop->emo_stats_update(enp, esmp, essp, generationp); in efx_mac_stats_update()
|
H A D | efx_mon.c | 226 __in efsys_mem_t *esmp, in efx_mon_stats_update() argument 235 return (emop->emo_stats_update(enp, esmp, values)); in efx_mon_stats_update()
|
H A D | ef10_intr.c | 41 __in efsys_mem_t *esmp) in ef10_intr_init() argument 43 _NOTE(ARGUNUSED(enp, type, esmp)) in ef10_intr_init()
|
H A D | siena_impl.h | 338 __in_opt efsys_mem_t *esmp, 345 __in efsys_mem_t *esmp, 404 __in efsys_mem_t *esmp,
|
H A D | mcdi_mon.h | 63 __in efsys_mem_t *esmp,
|
H A D | efx.h | 262 __in efsys_mem_t *esmp); 519 __in efsys_mem_t *esmp); 524 __in efsys_mem_t *esmp, 531 __in efsys_mem_t *esmp, 673 __in efsys_mem_t *esmp, 930 __in efsys_mem_t *esmp, 1478 __in efsys_mem_t *esmp, 1561 __in efsys_mem_t *esmp, 1874 __in efsys_mem_t *esmp, 1966 __in efsys_mem_t *esmp,
|
H A D | ef10_impl.h | 82 __in efsys_mem_t *esmp, 130 __in efsys_mem_t *esmp); 269 __in efsys_mem_t *esmp, 591 __in efsys_mem_t *esmp, 612 __in efsys_mem_t *esmp, 897 __in efsys_mem_t *esmp,
|
H A D | efx_rx.c | 115 __in efsys_mem_t *esmp, 481 __in efsys_mem_t *esmp, in efx_rx_qcreate() argument 506 erp->er_esmp = esmp; in efx_rx_qcreate() 508 if ((rc = erxop->erxo_qcreate(enp, index, label, type, esmp, n, id, in efx_rx_qcreate() 1113 __in efsys_mem_t *esmp, in siena_rx_qcreate() argument 1125 _NOTE(ARGUNUSED(esmp)); in siena_rx_qcreate()
|
H A D | efx_tx.c | 59 __in efsys_mem_t *esmp, 292 __in efsys_mem_t *esmp, in efx_tx_qcreate() argument 322 etp->et_esmp = esmp; in efx_tx_qcreate() 327 if ((rc = etxop->etxo_qcreate(enp, index, label, esmp, in efx_tx_qcreate() 887 __in efsys_mem_t *esmp, in siena_tx_qcreate() argument 900 _NOTE(ARGUNUSED(esmp)); in siena_tx_qcreate()
|
H A D | ef10_rx.c | 45 __in efsys_mem_t *esmp, in efx_mcdi_init_rxq() argument 84 addr = EFSYS_MEM_ADDR(esmp); in efx_mcdi_init_rxq() 739 __in efsys_mem_t *esmp, in ef10_rx_qcreate() argument 776 esmp, disable_scatter)) != 0) in ef10_rx_qcreate()
|
H A D | ef10_tx.c | 55 __in efsys_mem_t *esmp) in efx_mcdi_init_txq() argument 102 addr = EFSYS_MEM_ADDR(esmp); in efx_mcdi_init_txq() 184 __in efsys_mem_t *esmp, in ef10_tx_qcreate() argument 198 esmp)) != 0) in ef10_tx_qcreate()
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_dma.c | 37 sfxge_dma_buffer_unbind_handle(efsys_mem_t *esmp) in sfxge_dma_buffer_unbind_handle() argument 41 esmp->esm_addr = 0; in sfxge_dma_buffer_unbind_handle() 42 rc = ddi_dma_unbind_handle(esmp->esm_dma_handle); in sfxge_dma_buffer_unbind_handle() 55 sfxge_dma_buffer_mem_free(efsys_mem_t *esmp) in sfxge_dma_buffer_mem_free() argument 57 esmp->esm_base = NULL; in sfxge_dma_buffer_mem_free() 58 ddi_dma_mem_free(&(esmp->esm_acc_handle)); in sfxge_dma_buffer_mem_free() 59 esmp->esm_acc_handle = NULL; in sfxge_dma_buffer_mem_free() 70 sfxge_dma_buffer_create(efsys_mem_t *esmp, const sfxge_dma_buffer_attr_t *sdbap) in sfxge_dma_buffer_create() argument 80 sdbap->sdba_callback, NULL, &(esmp->esm_dma_handle)); in sfxge_dma_buffer_create() 99 err = ddi_dma_mem_alloc(esmp->esm_dma_handle, sdbap->sdba_length, in sfxge_dma_buffer_create() [all …]
|
H A D | sfxge_mon.c | 69 efsys_mem_t *esmp = &(smp->sm_mem); in sfxge_mon_kstat_update() local 86 rc = efx_mon_stats_update(enp, esmp, smp->sm_statbuf); in sfxge_mon_kstat_update() 212 efsys_mem_t *esmp = &(smp->sm_mem); in sfxge_mon_init() local 235 if ((rc = sfxge_dma_buffer_create(esmp, &dma_attr)) != 0) in sfxge_mon_init() 254 sfxge_dma_buffer_destroy(esmp); in sfxge_mon_init() 314 efsys_mem_t *esmp = &(smp->sm_mem); in sfxge_mon_fini() local 328 sfxge_dma_buffer_destroy(esmp); in sfxge_mon_fini()
|
H A D | sfxge_mac.c | 78 efsys_mem_t *esmp = &(smp->sm_mem); in _sfxge_mac_stat_update() local 90 if (efx_mac_stats_update(sp->s_enp, esmp, smp->sm_stat, in _sfxge_mac_stat_update() 275 efsys_mem_t *esmp = &(smp->sm_mem); in sfxge_mac_poll() local 296 bzero(esmp->esm_base, EFX_MAC_STATS_SIZE); in sfxge_mac_poll() 300 efx_mac_stats_upload(sp->s_enp, esmp) == 0) in sfxge_mac_poll() 354 efsys_mem_t *esmp = &(smp->sm_mem); in sfxge_mac_init() local 397 if ((rc = sfxge_dma_buffer_create(esmp, &dma_attr)) != 0) in sfxge_mac_init() 450 sfxge_dma_buffer_destroy(esmp); in sfxge_mac_init() 517 efsys_mem_t *esmp = &(smp->sm_mem); in sfxge_mac_start() local 553 if ((rc = efx_mac_stats_periodic(enp, esmp, in sfxge_mac_start() [all …]
|
H A D | sfxge_mcdi.c | 275 efsys_mem_t *esmp = &(smp->sm_mem); in sfxge_mcdi_init() local 296 if ((rc = sfxge_dma_buffer_create(esmp, &dma_attr)) != 0) in sfxge_mcdi_init() 304 emtp->emt_dma_mem = esmp; in sfxge_mcdi_init() 325 sfxge_dma_buffer_destroy(esmp); in sfxge_mcdi_init() 343 efsys_mem_t *esmp = &(smp->sm_mem); in sfxge_mcdi_fini() local 358 sfxge_dma_buffer_destroy(esmp); in sfxge_mcdi_fini()
|
H A D | sfxge_phy.c | 201 efsys_mem_t *esmp = &(spp->sp_mem); in sfxge_phy_init() local 215 if ((rc = sfxge_dma_buffer_create(esmp, &dma_attr)) != 0) in sfxge_phy_init() 375 efsys_mem_t *esmp = &(spp->sp_mem); in sfxge_phy_fini() local 377 sfxge_dma_buffer_destroy(esmp); in sfxge_phy_fini()
|
H A D | sfxge_intr.c | 396 efsys_mem_t *esmp = &(sip->si_mem); in sfxge_intr_nic_enable() local 404 bzero(esmp->esm_base, EFX_INTR_SIZE); in sfxge_intr_nic_enable() 407 if ((rc = efx_intr_init(enp, sip->si_type, esmp)) != 0) in sfxge_intr_nic_enable() 500 efsys_mem_t *esmp = &(sip->si_mem); in sfxge_intr_init() local 653 if ((rc = sfxge_dma_buffer_create(esmp, &dma_attr)) != 0) in sfxge_intr_init() 772 efsys_mem_t *esmp = &(sip->si_mem); in sfxge_intr_fini() local 781 sfxge_dma_buffer_destroy(esmp); in sfxge_intr_fini()
|
H A D | sfxge_ev.c | 76 efsys_mem_t *esmp = &(sep->se_mem); in _sfxge_ev_qctor() local 103 if ((rc = sfxge_dma_buffer_create(esmp, &dma_attr)) != 0) in _sfxge_ev_qctor() 119 esmp->esm_addr = 0; in _sfxge_ev_qctor() 120 sfxge_dma_buffer_destroy(esmp); in _sfxge_ev_qctor() 150 efsys_mem_t *esmp = &(sep->se_mem); in _sfxge_ev_qdtor() local 160 sfxge_dma_buffer_destroy(esmp); in _sfxge_ev_qdtor() 785 efsys_mem_t *esmp; in sfxge_ev_qstart() local 791 esmp = &(sep->se_mem); in sfxge_ev_qstart() 796 (void) memset(esmp->esm_base, 0xff, EFX_EVQ_SIZE(evq_size)); in sfxge_ev_qstart() 799 if ((rc = sfxge_sram_buf_tbl_set(sp, sep->se_id, esmp, in sfxge_ev_qstart() [all …]
|
H A D | sfxge_sram.c | 101 sfxge_sram_buf_tbl_set(sfxge_t *sp, uint32_t id, efsys_mem_t *esmp, in sfxge_sram_buf_tbl_set() argument 111 if ((rc = efx_sram_buf_tbl_set(sp->s_enp, id, esmp, n)) != 0) in sfxge_sram_buf_tbl_set()
|