/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | niu.c | 61 adapter->unm_nic_pci_read_immediate(adapter, in phy_lock() 81 adapter->unm_nic_pci_read_immediate(adapter, in phy_unlock() 128 adapter->unm_nic_hw_write_wx(adapter, in unm_niu_gbe_phy_read() 150 adapter->unm_nic_hw_read_wx(adapter, in unm_niu_gbe_phy_read() 157 adapter->unm_nic_hw_read_wx(adapter, in unm_niu_gbe_phy_read() 164 adapter->unm_nic_hw_write_wx(adapter, in unm_niu_gbe_phy_read() 363 adapter->unm_nic_hw_write_wx(adapter, in unm_niu_disable_gbe_port() 366 adapter->unm_nic_hw_write_wx(adapter, in unm_niu_disable_gbe_port() 564 adapter->unm_nic_hw_write_wx(adapter, in unm_niu_xg_set_promiscuous_mode() 590 adapter->unm_nic_hw_read_wx(adapter, in unm_niu_xg_set_promiscuous_mode() [all …]
|
H A D | unm_gem.c | 262 adapter->name, adapter->instance); in unm_initialize_dummy_dma() 326 adapter->name, adapter->instance); in unm_pci_cfg_init() 441 adapter->name, adapter->instance); in unm_alloc_tx_dmahdl() 478 adapter->name, adapter->instance); in unm_alloc_dma_mem() 489 adapter->name, adapter->instance); in unm_alloc_dma_mem() 578 adapter->name, adapter->instance); in unm_alloc_tx_buffers() 667 rx_buffer->adapter = adapter; in unm_create_rx_ring() 700 adapter->name, adapter->instance); in unm_create_rx_ring() 783 if (adapter->mtu > adapter->maxmtu) { in unm_check_options() 785 adapter->mtu = adapter->maxmtu; in unm_check_options() [all …]
|
H A D | unm_ndd.c | 195 dip = adapter->dip; in unm_param_register() 196 nddpp = &adapter->nd_data_p; in unm_param_register() 284 dip = adapter->dip; in unm_nd_init() 297 adapter->param_adv_10fdx = 0; in unm_nd_init() 352 adapter->param_adv_10fdx = 1; in unm_nd_init() 353 adapter->param_adv_10hdx = 1; in unm_nd_init() 418 adapter->param_adv_pause, adapter->param_adv_asym_pause, in unm_nd_init() 420 adapter->param_adv_1000fdx, adapter->param_adv_1000hdx, in unm_nd_init() 421 adapter->param_adv_100fdx, adapter->param_adv_100hdx, in unm_nd_init() 422 adapter->param_adv_10fdx, adapter->param_adv_10hdx)); in unm_nd_init() [all …]
|
H A D | unm_nic_main.c | 220 adapter->unm_nic_hw_write_wx(adapter, adapter->interrupt_crb, in unm_nic_disable_int() 301 adapter->unm_nic_hw_write_wx(adapter, adapter->interrupt_crb, in unm_nic_enable_int() 622 adapter->unm_nic_hw_write_wx(adapter, in unm_nic_update_cmd_producer() 635 adapter->unm_nic_hw_write_wx(adapter, in unm_nic_update_cmd_consumer() 1370 adapter->unm_nic_hw_write_wx(adapter, in unm_process_rcv_ring() 1601 adapter->unm_nic_hw_write_wx(adapter, in unm_post_rx_buffers_nodb() 2215 adapter->name, adapter->instance); in ntxn_m_start() 2224 adapter->name, adapter->instance); in ntxn_m_start() 2247 adapter->name, adapter->instance); in ntxn_m_start() 2254 adapter->name, adapter->instance); in ntxn_m_start() [all …]
|
H A D | unm_nic_hw.c | 318 adapter->unm_nic_hw_read_wx(adapter, in crb_win_lock() 324 adapter->name, adapter->instance); in crb_win_lock() 1004 adapter->unm_nic_hw_write_wx(adapter, adapter->ahw.mn_win_crb | in unm_nic_pci_set_window_2M() 1006 adapter->unm_nic_hw_read_wx(adapter, adapter->ahw.mn_win_crb | in unm_nic_pci_set_window_2M() 1026 adapter->unm_nic_hw_write_wx(adapter, adapter->ahw.mn_win_crb | in unm_nic_pci_set_window_2M() 1028 adapter->unm_nic_hw_read_wx(adapter, adapter->ahw.mn_win_crb | in unm_nic_pci_set_window_2M() 1044 adapter->unm_nic_hw_write_wx(adapter, adapter->ahw.ms_win_crb | in unm_nic_pci_set_window_2M() 1046 adapter->unm_nic_hw_read_wx(adapter, adapter->ahw.ms_win_crb | in unm_nic_pci_set_window_2M() 1488 adapter->unm_nic_hw_write_wx(adapter, in unm_nic_pci_mem_write_2M() 1491 adapter->unm_nic_hw_write_wx(adapter, in unm_nic_pci_mem_write_2M() [all …]
|
H A D | unm_nic_isr.c | 57 u32 portno = adapter->portnum; in unm_nic_isr_other() 61 adapter->unm_nic_hw_read_wx(adapter, CRB_XG_STATE, &val, 4); in unm_nic_isr_other() 65 adapter->ahw.linkup = linkup; in unm_nic_isr_other() 84 unm_nic_isr_other(adapter); in unm_nic_handle_phy_intr() 93 adapter->unm_nic_hw_read_wx(adapter, CRB_XG_STATE_P3, in unm_nic_handle_phy_intr() 98 adapter->unm_nic_hw_read_wx(adapter, CRB_XG_STATE, in unm_nic_handle_phy_intr() 100 val >>= (adapter->portnum * 8); in unm_nic_handle_phy_intr() 109 adapter->name, adapter->portnum); in unm_nic_handle_phy_intr() 111 adapter->ahw.linkup = 0; in unm_nic_handle_phy_intr() 115 adapter->name, adapter->portnum); in unm_nic_handle_phy_intr() [all …]
|
H A D | unm_nic_init.c | 177 adapter->name, adapter->instance, done, timeout); in rom_lock() 253 rom_unlock(adapter); in rom_fast_read() 397 adapter->unm_nic_hw_write_wx(adapter, off, &buf[i].data, 4); in pinit_from_rom() 413 adapter); in pinit_from_rom() 450 val = adapter->unm_nic_pci_read_normalize(adapter, in phantom_init() 462 val = adapter->unm_nic_pci_read_normalize(adapter, in phantom_init() 484 adapter->unm_nic_hw_write_wx(adapter, UNM_ROMUSB_GLB_CAS_RST, in load_from_flash() 495 adapter->unm_nic_pci_mem_write(adapter, memaddr, &data, 4); in load_from_flash() 505 adapter->unm_nic_hw_write_wx(adapter, UNM_ROMUSB_GLB_SW_RESET, in load_from_flash() 509 adapter->unm_nic_hw_write_wx(adapter, in load_from_flash() [all …]
|
H A D | unm_nic_ctx.c | 120 unm_nic_read_w0(adapter, in netxen_api_lock() 146 unm_nic_read_w0(adapter, in netxen_api_unlock() 163 adapter->unm_nic_hw_read_wx(adapter, NX_CDRP_CRB_OFFSET, in netxen_poll_rsp() 209 adapter->unm_nic_hw_read_wx(adapter, NX_ARG1_CRB_OFFSET, in netxen_issue_cmd() 465 adapter->tx_state = in nx_fw_cmd_create_tx_ctx() 587 adapter->ctxDesc->CmdRingSize = adapter->MaxTxDescCount; in netxen_init_old_ctx() 611 adapter->ctxDesc->StsRingSize = adapter->MaxRxDescCount; in netxen_init_old_ctx() 617 adapter->interrupt_crb = sw_int_mask[adapter->portnum]; in netxen_init_old_ctx() 620 adapter->unm_nic_hw_write_wx(adapter, CRB_CTX_ADDR_REG_LO(func_id), in netxen_init_old_ctx() 623 adapter->unm_nic_hw_write_wx(adapter, CRB_CTX_ADDR_REG_HI(func_id), in netxen_init_old_ctx() [all …]
|
H A D | unm_nic.h | 106 #define CRB_NORMALIZE(adapter, reg) \ argument 109 #define DB_NORMALIZE(adapter, off) \ argument 207 unm_adapter *adapter; member 235 struct unm_adapter_s *adapter; member 591 ((adapter)->ahw.pci_base0 + off) 597 #define pci_base_offset(adapter, off) \ argument 603 ((adapter)->ahw.pci_base1 + \ 670 struct unm_adapter_s *adapter); 672 struct unm_adapter_s *adapter); 674 struct unm_adapter_s *adapter); [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | ch_subr.c | 1080 adapter->port[i].mac->ops->interrupt_clear(adapter-> in t1_interrupts_clear() 1241 if (adapter->mc5 && t1_mc5_init(adapter->mc5, in t1_init_hw_modules() 1245 if (adapter->ulp && t1_ulp_init(adapter->ulp, in t1_init_hw_modules() 1258 if (adapter->cspi && t1_cspi_init(adapter->cspi)) in t1_init_hw_modules() 1380 adapter->sge = t1_sge_create(adapter, &adapter->params.sge); in t1_init_sw_modules() 1395 adapter->mc3 = t1_mc3_create(adapter); in t1_init_sw_modules() 1402 adapter->mc4 = t1_mc4_create(adapter); in t1_init_sw_modules() 1411 adapter->mc5 = t1_mc5_create(adapter, in t1_init_sw_modules() 1419 adapter->ulp = t1_ulp_create(adapter); in t1_init_sw_modules() 1450 adapter->tp = t1_tp_create(adapter, &adapter->params.tp); in t1_init_sw_modules() [all …]
|
H A D | espi.c | 31 adapter_t *adapter; member 240 if (is_T2(adapter)) { in espi_setup_for_ixf1010() 264 adapter_t *adapter = espi->adapter; in t1_espi_init() local 269 if (is_T2(adapter)) { in t1_espi_init() 279 espi_setup_for_pm3393(adapter); in t1_espi_init() 291 if (is_T2(adapter)) { in t1_espi_init() 292 (void) tricn_init(adapter); in t1_espi_init() 311 if (is_T2(espi->adapter)) { in t1_espi_destroy() 322 espi->adapter = adapter; in t1_espi_create() 330 if (!is_T2(adapter)) in t1_espi_set_misc_ctrl() [all …]
|
H A D | mc3.c | 35 adapter_t *adapter; member 109 adapter_t *adapter = mc3->adapter; in t1_mc3_intr_handler() local 114 if (!t1_is_asic(adapter)) in t1_mc3_intr_handler() 123 adapter_name(adapter), in t1_mc3_intr_handler() 136 adapter_name(adapter), in t1_mc3_intr_handler() 157 t1_fatal_err(adapter); in t1_mc3_intr_handler() 159 if (t1_is_T1B(adapter)) { in t1_mc3_intr_handler() 173 #define is_MC3A(adapter) (!t1_is_T1B(adapter)) argument 197 adapter_t *adapter = mc3->adapter; in t1_mc3_init() local 233 if (is_MC3A(adapter)) { in t1_mc3_init() [all …]
|
H A D | mc4.c | 33 adapter_t *adapter; member 44 #define is_MC4A(adapter) (!t1_is_T1B(adapter)) argument 86 adapter_t *adapter = mc4->adapter; in t1_mc4_init() local 93 if (is_MC4A(adapter)) { in t1_mc4_init() 196 mc4->adapter = adapter; in t1_mc4_create() 214 if (t1_is_asic(mc4->adapter)) { in t1_mc4_intr_enable() 227 if (t1_is_asic(mc4->adapter)) { in t1_mc4_intr_disable() 246 adapter_t *adapter = mc4->adapter; in t1_mc4_intr_handler() local 253 adapter_name(adapter), in t1_mc4_intr_handler() 266 adapter_name(adapter), in t1_mc4_intr_handler() [all …]
|
H A D | tp.c | 34 adapter_t *adapter; member 290 tp->adapter = adapter; in t1_tp_create() 302 if (adapter->params.nports == 1) in t1_tp_create() 320 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_enable() 341 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_disable() 358 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_clear() 375 if (!t1_is_asic(tp->adapter)) in t1_tp_intr_handler() 417 adapter_t *adapter = tp->adapter; in t1_tp_reset() local 419 tp_init(adapter, p, tp_clk); in t1_tp_reset() 422 tp_pm_configure(adapter, p); in t1_tp_reset() [all …]
|
H A D | vsc7326.c | 58 MAC_LOCK(adapter->mac_lock); in vsc_read() 78 MAC_UNLOCK(adapter->mac_lock); in vsc_read() 83 MAC_LOCK(adapter->mac_lock); in vsc_write() 89 MAC_UNLOCK(adapter->mac_lock); in vsc_write() 355 (void) run_bist(adapter,13); in run_bist_all() 356 (void) run_bist(adapter,14); in run_bist_all() 357 (void) run_bist(adapter,20); in run_bist_all() 358 (void) run_bist(adapter,21); in run_bist_all() 360 (void) check_bist(adapter,13); in run_bist_all() 733 mac->adapter = adapter; in vsc7326_mac_create() [all …]
|
H A D | pm3393.c | 165 pl_intr = t1_read_reg_4(cmac->adapter, A_PL_ENABLE); in pm3393_interrupt_enable() 167 t1_write_reg_4(cmac->adapter, A_PL_ENABLE, pl_intr); in pm3393_interrupt_enable() 247 pl_intr = t1_read_reg_4(cmac->adapter, A_PL_CAUSE); in pm3393_interrupt_clear() 249 t1_write_reg_4(cmac->adapter, A_PL_CAUSE, pl_intr); in pm3393_interrupt_clear() 393 link_changed(cmac->adapter, 0); in pm3393_enable_port() 739 cmac->adapter = adapter; in pm3393_mac_create() 826 static int pm3393_mac_reset(adapter_t * adapter) in pm3393_mac_reset() argument 868 (void) t1_tpi_read(adapter, A_ELMER0_GPO, &val); in pm3393_mac_reset() 870 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in pm3393_mac_reset() 883 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in pm3393_mac_reset() [all …]
|
H A D | ulp.c | 31 adapter_t *adapter; member 44 if (t1_is_asic(ulp->adapter)) { in t1_ulp_intr_enable() 48 t1_write_reg_4(ulp->adapter, A_PL_ENABLE, in t1_ulp_intr_enable() 55 if (t1_is_asic(ulp->adapter)) { in t1_ulp_intr_clear() 63 if (t1_is_asic(ulp->adapter)) { in t1_ulp_intr_disable() 66 t1_write_reg_4(ulp->adapter, A_PL_ENABLE, in t1_ulp_intr_disable() 110 t1_fatal_err(ulp->adapter); in t1_ulp_intr_handler() 120 adapter_t *adapter = ulp->adapter; in t1_ulp_init() local 134 t1_write_reg_4(adapter, A_ULP_HREG_DATA, 0); in t1_ulp_init() 140 if (!t1_is_T1B(adapter)) { in t1_ulp_init() [all …]
|
H A D | common.h | 206 return adapter->params.is_asic; in t1_is_asic() 213 adapter->params.chip_revision == revision; in adapter_matches_type() 222 return !t1_is_T1B(adapter); in vlan_tso_capable() 225 #define for_each_port(adapter, iter) \ argument 228 #define board_info(adapter) ((adapter)->params.brd_info) argument 229 #define is_10G(adapter) (board_info(adapter)->caps & SUPPORTED_10000baseT_Full) argument 245 void t1_interrupts_clear(adapter_t *adapter); 247 int t1_slow_intr_handler(adapter_t *adapter); 256 int t1_init_hw_modules(adapter_t *adapter); 258 void t1_free_sw_modules(adapter_t *adapter); [all …]
|
H A D | my3126.c | 45 if (!is_T2(cphy->adapter)) in my3126_interrupt_enable() 56 if (is_T2(cphy->adapter)) in my3126_interrupt_disable() 76 adapter_t *adapter; in my3126_interrupt_handler() local 79 if (!is_T2(cphy->adapter)) in my3126_interrupt_handler() 82 adapter = cphy->adapter; in my3126_interrupt_handler() 89 link_changed(adapter, 0); in my3126_interrupt_handler() 101 (void) t1_tpi_read(adapter, in my3126_interrupt_handler() 136 adapter_t *adapter; in my3126_get_link_status() local 139 if (!is_T2(cphy->adapter)) in my3126_get_link_status() 142 adapter = cphy->adapter; in my3126_get_link_status() [all …]
|
H A D | ch_mac.c | 97 t1_write_reg_4(mac->adapter, in mac_intr_enable() 123 t1_write_reg_4(mac->adapter, in mac_intr_disable() 148 t1_write_reg_4(mac->adapter, in mac_intr_clear() 209 t1_write_reg_4(mac->adapter, in mac_set_rx_mode() 246 t1_write_reg_4(mac->adapter, in mac_set_speed_duplex_fc() 261 t1_write_reg_4(mac->adapter, in mac_enable() 276 t1_write_reg_4(mac->adapter, in mac_disable() 284 t1_write_reg_4(mac->adapter, in mac_set_ifs() 296 t1_write_reg_4(mac->adapter, in mac_enable_isl() 387 mac->adapter = adapter; in mac_create() [all …]
|
H A D | ixf1010.c | 267 adapter_t *adapter = mac->adapter; in mac_set_rx_mode() local 360 adapter_t *adapter = mac->adapter; in enable_port() local 387 if (is_T2(adapter)) { in enable_port() 400 (void) t1_tpi_write(adapter, in enable_port() 490 static int ixf1010_mac_reset(adapter_t *adapter) in ixf1010_mac_reset() argument 494 (void) t1_tpi_read(adapter, A_ELMER0_GPO, &val); in ixf1010_mac_reset() 497 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in ixf1010_mac_reset() 501 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in ixf1010_mac_reset() 504 (void) t1_tpi_write(adapter, REG_PORT_ENABLE, 0); in ixf1010_mac_reset() 523 mac->adapter = adapter; in ixf1010_mac_create() [all …]
|
H A D | vsc7321.c | 89 static void vsc7321_full_reset(adapter_t* adapter) in vsc7321_full_reset() argument 93 (void) t1_tpi_read(adapter, A_ELMER0_GPO, &val); in vsc7321_full_reset() 95 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in vsc7321_full_reset() 98 if (is_10G(adapter)) { in vsc7321_full_reset() 104 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in vsc7321_full_reset() 227 vsc_write( adapter, ib[i].addr, ib[i].data ); in run_table() 233 static int vsc7321_mac_reset(adapter_t *adapter) in vsc7321_mac_reset() argument 250 mac->adapter = adapter; in vsc7321_mac_create() 254 vsc7321_full_reset(adapter); in vsc7321_mac_create() 269 vsc_read(adapter, REG_CHIP_ID, &val); in vsc7321_mac_create() [all …]
|
H A D | mc5.c | 105 adapter_t *adapter; member 218 adapter_t *adap = mc5->adapter; in init_mask_data_array() 251 adapter_t *adap = mc5->adapter; in init_lara7000() 316 adapter_t *adap = mc5->adapter; in init_idt52100() 407 adapter_t *adap = mc5->adapter; in t1_mc5_init() 466 adapter_t *adap = mc5->adapter; in t1_read_mc5_range() 507 if (!t1_is_asic(mc5->adapter)) { in t1_mc5_intr_enable() 531 if (!t1_is_asic(mc5->adapter)) in t1_mc5_intr_disable() 547 if (!t1_is_asic(mc5->adapter)) { in t1_mc5_intr_clear() 562 adapter_t *adap = mc5->adapter; in t1_mc5_intr_handler() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/common/ |
H A D | common.h | 576 void t4_intr_enable(struct adapter *adapter); 577 void t4_intr_disable(struct adapter *adapter); 617 int t4_get_pfres(struct adapter *adapter); 632 int t4_erase_sf(struct adapter *adapter); 657 int t4_prep_pf(struct adapter *adapter); 662 int t4_bar2_sge_qregs(struct adapter *adapter, 687 void t4_fatal_err(struct adapter *adapter); 688 void t4_db_full(struct adapter *adapter); 689 void t4_db_dropped(struct adapter *adapter); 739 void t4_idma_monitor(struct adapter *adapter, [all …]
|
H A D | t4_hw.c | 3339 ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0, in t4_get_vpd_params() 3356 int t4_get_pfres(struct adapter *adapter) in t4_get_pfres() argument 3715 ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0, in t4_get_scfg_version() 3750 ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0, in t4_get_vpd_version() 5384 void t4_intr_enable(struct adapter *adapter) in t4_intr_enable() argument 6579 ret = t4_query_params_ns(adapter, adapter->mbox, adapter->pf, in t4_get_mps_bg_map() 6623 ret = t4_query_params_ns(adapter, adapter->mbox, adapter->pf, in t4_get_tp_e2c_map() 9431 struct adapter *adapter = pi->adapter; in t4_handle_get_port_info() local 9950 int t4_prep_pf(struct adapter *adapter) in t4_prep_pf() argument 10592 struct adapter *adapter = pi->adapter; in t4_init_portmirror() local [all …]
|