/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_main.c | 473 hxgep->mmac.available = hxgep->mmac.total; in hxge_attach() 690 hxge_stop_timer(hxgep, hxgep->hxge_timerid); in hxge_unattach() 2632 hxgep = rhp->hxgep; in hxge_tx_ring_start() 2660 hxgep = rhp->hxgep; in hxge_tx_ring_stop() 2680 hxgep = rhp->hxgep; in hxge_rx_ring_start() 2725 hxgep = rhp->hxgep; in hxge_rx_ring_stop() 2855 p_hxge_t hxgep = group->hxgep; in hxge_rx_group_add_mac() local 2886 p_hxge_t hxgep = group->hxgep; in hxge_rx_group_rem_mac() local 2919 group->hxgep = hxgep; in hxge_group_get() 2995 rhp->hxgep = hxgep; in hxge_fill_ring() [all …]
|
H A D | hxge_hw.c | 44 if (hxgep->suspended) in hxge_global_reset() 127 hxgep = ldvp->hxgep; in hxge_intr() 138 ldgvp = hxgep->ldgvp; in hxge_intr() 354 hxgep = ldvp->hxgep; in hxge_syserr_intr() 477 if (hxgep == NULL) { in hxge_hw_ioctl() 524 if (hxgep != NULL) { in hxge_loopback_ioctl() 538 if ((hxgep != NULL) && hxge_set_lb(hxgep, wq, mp->b_cont)) { in hxge_loopback_ioctl() 547 if (hxgep != NULL) { in hxge_loopback_ioctl() 561 if (hxgep != NULL) { in hxge_loopback_ioctl() 677 ldgvp = hxgep->ldgvp; in hxge_check_hw_state() [all …]
|
H A D | hxge_vmac.c | 43 hxge_link_init(p_hxge_t hxgep) in hxge_link_init() argument 49 statsp = hxgep->statsp; in hxge_link_init() 66 hxge_vmac_init(p_hxge_t hxgep) in hxge_vmac_init() argument 100 HXGE_DEBUG_MSG((hxgep, MAC_CTL, in hxge_vmac_init() 122 hxgep->vmac.tx_config = config; in hxge_tx_vmac_init() 172 rv = hxge_tx_vmac_init(hxgep); in hxge_tx_vmac_enable() 177 hxgep->msg_min = ETHERMIN; in hxge_tx_vmac_enable() 324 hxge_save_cntrs(hxgep); in hxge_vmac_intr() 351 RW_EXIT(&hxgep->filter_lock); in hxge_set_promisc() 362 RW_EXIT(&hxgep->filter_lock); in hxge_set_promisc() [all …]
|
H A D | hxge_pfc.c | 41 hxge_classify_init(p_hxge_t hxgep) in hxge_classify_init() argument 76 handle = hxgep->hpi_reg_handle; in hxge_tcam_dump_entry() 318 RW_EXIT(&hxgep->filter_lock); in hxge_pfc_set_default_mac_addr() 372 RW_EXIT(&hxgep->filter_lock); in hxge_add_mcast_addr() 378 RW_EXIT(&hxgep->filter_lock); in hxge_add_mcast_addr() 423 hxgep->hash_filter = NULL; in hxge_del_mcast_addr() 436 RW_EXIT(&hxgep->filter_lock); in hxge_del_mcast_addr() 441 RW_EXIT(&hxgep->filter_lock); in hxge_del_mcast_addr() 1047 hxgep->classifier.state = 0; in hxge_classify_exit_sw() 1082 hxgep = ldvp->hxgep; in hxge_pfc_intr() [all …]
|
H A D | hxge_txdma.c | 112 hxge_unmap_txdma(hxgep); in hxge_init_txdma_channels() 127 hxge_txdma_hw_stop(hxgep); in hxge_uninit_txdma_channels() 128 hxge_unmap_txdma(hxgep); in hxge_uninit_txdma_channels() 826 hxgep = ldvp->hxgep; in hxge_tx_intr() 849 hxgep, ldvp, channel)); in hxge_tx_intr() 927 tx_rings = hxgep->tx_rings; in hxge_txdma_hw_mode() 1060 tx_rings = hxgep->tx_rings; in hxge_fixup_txdma_rings() 1161 tx_rings = hxgep->tx_rings; in hxge_txdma_hw_kick() 1592 "tx_rings $%p rings $%p", hxgep->tx_rings, hxgep->tx_rings->rings)); in hxge_map_txdma() 1896 tx_ring_p->hxgep = hxgep; in hxge_map_txdma_channel_buf_ring() [all …]
|
H A D | hxge_fzc.c | 34 hxge_fzc_intr_init(p_hxge_t hxgep) in hxge_fzc_intr_init() argument 74 if (hxgep->ldgvp == NULL) { in hxge_fzc_intr_ldg_num_set() 78 ldgp = hxgep->ldgvp->ldgp; in hxge_fzc_intr_ldg_num_set() 79 ldvp = hxgep->ldgvp->ldvp; in hxge_fzc_intr_ldg_num_set() 118 if (hxgep->ldgvp == NULL) { in hxge_fzc_intr_tmres_set() 141 if (hxgep->ldgvp == NULL) { in hxge_fzc_intr_sid_set() 142 HXGE_DEBUG_MSG((hxgep, INT_CTL, in hxge_fzc_intr_sid_set() 148 ldgp = hxgep->ldgvp->ldgp; in hxge_fzc_intr_sid_set() 149 HXGE_DEBUG_MSG((hxgep, INT_CTL, in hxge_fzc_intr_sid_set() 198 HXGE_DEBUG_MSG((hxgep, DMA_CTL, in hxge_init_fzc_rxdma_channel_pages() [all …]
|
H A D | hxge_impl.h | 98 #define HXGE_DEV_HPI_HANDLE(hxgep) (hxgep->hpi_handle) argument 100 #define HPI_PCI_ACC_HANDLE_SET(hxgep, ah) (hxgep->hpi_pci_handle.regh = ah) argument 103 #define HPI_ACC_HANDLE_SET(hxgep, ah) (hxgep->hpi_handle.regh = ah) argument 106 hxgep->hpi_handle.function.instance = hxgep->instance; \ 108 hxgep->hpi_handle.hxgep = (void *) hxgep; \ 114 hxgep->hpi_handle.function.instance = hxgep->instance; \ 116 hxgep->hpi_reg_handle.hxgep = (void *) hxgep; \ 122 hxgep->hpi_msi_handle.function.instance = hxgep->instance; \ 124 hxgep->hpi_msi_handle.hxgep = (void *) hxgep; \ 261 p_hxge_t hxgep; member [all …]
|
H A D | hxge_virtual.c | 240 dip = hxgep->dip; in hxge_use_cfg_dma_config() 506 ldgvp = hxgep->ldgvp; in hxge_ldgv_init() 534 ptr->hxgep = hxgep; in hxge_ldgv_init() 578 ldvp->hxgep = hxgep; in hxge_ldgv_init() 597 ldvp->hxgep = hxgep; in hxge_ldgv_init() 611 ldvp->hxgep = hxgep; in hxge_ldgv_init() 628 ldvp->hxgep = hxgep; in hxge_ldgv_init() 644 ldvp->hxgep = hxgep; in hxge_ldgv_init() 679 ldgvp = hxgep->ldgvp; in hxge_ldgv_uninit() 694 hxgep->ldgvp = NULL; in hxge_ldgv_uninit() [all …]
|
H A D | hxge_rxdma.c | 1098 hxgep = ldvp->hxgep; in hxge_rx_intr() 1210 p_hxge_t hxgep; in hxge_enable_poll() local 1219 hxgep = ring_handle->hxgep; in hxge_enable_poll() 1255 p_hxge_t hxgep; in hxge_disable_poll() local 1262 hxgep = ring_handle->hxgep; in hxge_disable_poll() 1330 p_hxge_t hxgep; in hxge_rx_poll() local 1336 hxgep = rhp->hxgep; in hxge_rx_poll() 2615 rx_msg_p->hxgep = hxgep; in hxge_map_rxdma_channel_cfg_ring() 2715 rcrp->hxgep = hxgep; in hxge_map_rxdma_channel_cfg_ring() 3306 hxgep->hpi_handle.regp, hxgep->hpi_handle.regh)); in hxge_rxdma_start_channel() [all …]
|
H A D | hxge_kstats.c | 667 hxgep->statsp->rdc_ksp[i] = hxge_setup_local_kstat(hxgep, in hxge_setup_kstats() 676 hxgep->statsp->rdc_sys_ksp = hxge_setup_local_kstat(hxgep, in hxge_setup_kstats() 686 hxgep->statsp->tdc_ksp[i] = hxge_setup_local_kstat(hxgep, in hxge_setup_kstats() 695 hxgep->statsp->tdc_sys_ksp = hxge_setup_local_kstat(hxgep, in hxge_setup_kstats() 702 hxgep->statsp->pfc_ksp = hxge_setup_local_kstat(hxgep, in hxge_setup_kstats() 709 hxgep->statsp->vmac_ksp = hxge_setup_local_kstat(hxgep, in hxge_setup_kstats() 716 hxgep->statsp->mmac_ksp = hxge_setup_local_kstat(hxgep, in hxge_setup_kstats() 723 hxgep->statsp->peu_sys_ksp = hxge_setup_local_kstat(hxgep, in hxge_setup_kstats() 824 KMEM_FREE(hxgep->statsp, hxgep->statsp->stats_size); in hxge_destroy_kstats() 891 p_hxge_t hxgep = rhp->hxgep; in hxge_rx_ring_stat() local [all …]
|
H A D | hxge_ndd.c | 238 param_arr = hxgep->param_arr; in hxge_get_param_soft_properties() 346 param_arr = hxgep->param_arr; in hxge_setup_param() 384 hxge_init_param(p_hxge_t hxgep) in hxge_init_param() argument 397 param_arr = hxgep->param_arr; in hxge_init_param() 417 hxgep->param_arr = param_arr; in hxge_init_param() 420 hxgep->param_count)); in hxge_init_param() 439 (i != hxgep->instance)) in hxge_destroy_param() 444 if (hxgep->param_list) in hxge_destroy_param() 923 param_arr = hxgep->param_arr; in hxge_class_name_2value() 1182 (void *)hxgep, (void *)hxgep->dev_regs); in hxge_param_dump_ptrs() [all …]
|
H A D | hxge_fm.c | 182 hxgep->fm_capabilities = ddi_prop_get_int(DDI_DEV_T_ANY, hxgep->dip, in hxge_fm_init() 186 HXGE_DEBUG_MSG((hxgep, DDI_CTL, in hxge_fm_init() 194 if (hxgep->fm_capabilities) in hxge_fm_init() 195 ddi_fm_init(hxgep->dip, &hxgep->fm_capabilities, &iblk); in hxge_fm_init() 202 pci_ereport_setup(hxgep->dip); in hxge_fm_init() 207 ddi_fm_handler_register(hxgep->dip, in hxge_fm_init() 242 hxge_fm_fini(p_hxge_t hxgep) in hxge_fm_fini() argument 245 if (hxgep->fm_capabilities) { in hxge_fm_fini() 251 pci_ereport_teardown(hxgep->dip); in hxge_fm_fini() 260 ddi_fm_fini(hxgep->dip); in hxge_fm_fini() [all …]
|
H A D | hxge_send.c | 67 p_hxge_t hxgep; in hxge_tx_ring_send() local 74 hxgep = rhp->hxgep; in hxge_tx_ring_send() 76 ASSERT(hxgep == tx_ring_p->hxgep); in hxge_tx_ring_send() 149 HXGE_DEBUG_MSG((hxgep, TX_CTL, in hxge_start() 151 HXGE_DEBUG_MSG((hxgep, TX_CTL, in hxge_start() 155 statsp = hxgep->statsp; in hxge_start() 198 HXGE_DEBUG_MSG((hxgep, TX_CTL, in hxge_start() 243 hpi_desc_handle.hxgep = hxgep; in hxge_start() 555 hpi_desc_handle.hxgep = hxgep; in hxge_start() 674 HXGE_DEBUG_MSG((hxgep, in hxge_start() [all …]
|
H A D | hxge_txdma.h | 126 struct _hxge_t *hxgep; member 181 struct _hxge_t *hxgep; member 205 void hxge_uninit_txdma_channels(p_hxge_t hxgep); 217 boolean_t hxge_txdma_reclaim(p_hxge_t hxgep, 224 void hxge_txdma_stop(p_hxge_t hxgep); 225 void hxge_fixup_txdma_rings(p_hxge_t hxgep); 226 void hxge_txdma_hw_kick(p_hxge_t hxgep); 233 void hxge_check_tx_hang(p_hxge_t hxgep); 240 void hxge_reclaim_rings(p_hxge_t hxgep); 241 int hxge_txdma_channel_hung(p_hxge_t hxgep, [all …]
|
H A D | hxge_fzc.h | 35 hxge_status_t hxge_fzc_intr_init(p_hxge_t hxgep); 36 hxge_status_t hxge_fzc_intr_ldg_num_set(p_hxge_t hxgep); 37 hxge_status_t hxge_fzc_intr_tmres_set(p_hxge_t hxgep); 38 hxge_status_t hxge_fzc_intr_sid_set(p_hxge_t hxgep); 40 hxge_status_t hxge_init_fzc_txdma_channel(p_hxge_t hxgep, uint16_t channel, 43 hxge_status_t hxge_init_fzc_rxdma_channel(p_hxge_t hxgep, uint16_t channel, 46 hxge_status_t hxge_init_fzc_rx_common(p_hxge_t hxgep); 48 hxge_status_t hxge_init_fzc_rxdma_channel_pages(p_hxge_t hxgep, 51 hxge_status_t hxge_init_fzc_txdma_channel_pages(p_hxge_t hxgep, 54 hxge_status_t hxge_fzc_sys_err_mask_set(p_hxge_t hxgep, boolean_t mask);
|
H A D | hxge_common_impl.h | 163 MUTEX_EXIT(&((hxge_t *)hpi_handle.hxgep)->pio_lock); \ 170 MUTEX_EXIT(&((hxge_t *)hpi_handle.hxgep)->pio_lock); \ 176 MUTEX_EXIT(&((hxge_t *)hpi_handle.hxgep)->pio_lock); \ 185 MUTEX_ENTER(&((hxge_t *)handle.hxgep)->pio_lock); \ 187 MUTEX_EXIT(&((hxge_t *)handle.hxgep)->pio_lock); \ 190 MUTEX_ENTER(&((hxge_t *)handle.hxgep)->pio_lock); \ 192 MUTEX_EXIT(&((hxge_t *)handle.hxgep)->pio_lock); \ 226 #define FM_SERVICE_RESTORED(hxgep) \ argument 227 if (DDI_FM_EREPORT_CAP(hxgep->fm_capabilities)) \ 230 if (DDI_FM_EREPORT_CAP(hxgep->fm_capabilities)) \ [all …]
|
H A D | hxge_rxdma.h | 293 struct _hxge_t *hxgep; member 315 struct _hxge_t *hxgep; member 395 struct _hxge_t *hxgep; member 452 struct _hxge_t *hxgep; member 477 hxge_status_t hxge_init_rxdma_channels(p_hxge_t hxgep); 478 void hxge_uninit_rxdma_channels(p_hxge_t hxgep); 479 hxge_status_t hxge_init_rxdma_channel_cntl_stat(p_hxge_t hxgep, 481 hxge_status_t hxge_enable_rxdma_channel(p_hxge_t hxgep, 484 hxge_status_t hxge_rxdma_hw_mode(p_hxge_t hxgep, boolean_t enable); 485 int hxge_rxdma_get_ring_index(p_hxge_t hxgep, uint16_t channel); [all …]
|
H A D | hxge.h | 267 struct _hxge_t *hxgep; member 276 struct _hxge_t *hxgep; member 637 timeout_id_t hxge_start_timer(p_hxge_t hxgep, fptrv_t func, int msec); 638 void hxge_stop_timer(p_hxge_t hxgep, timeout_id_t timerid);
|
H A D | hxge_virtual.h | 47 hxge_status_t hxge_intr_mask_mgmt(p_hxge_t hxgep);
|
H A D | hpi.h | 156 void *hxgep; member
|