Home
last modified time | relevance | path

Searched refs:adapter (Results 1 – 25 of 89) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/io/ntxn/
H A Dniu.c61 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 Dunm_gem.c262 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 Dunm_ndd.c195 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 Dunm_nic_main.c220 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 Dunm_nic_hw.c318 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 Dunm_nic_isr.c57 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 Dunm_nic_init.c177 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 Dunm_nic_ctx.c120 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 Dunm_nic.h106 #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 Dch_subr.c1082 adapter->port[i].mac->ops->interrupt_clear(adapter-> in t1_interrupts_clear()
1243 if (adapter->mc5 && t1_mc5_init(adapter->mc5, in t1_init_hw_modules()
1247 if (adapter->ulp && t1_ulp_init(adapter->ulp, in t1_init_hw_modules()
1260 if (adapter->cspi && t1_cspi_init(adapter->cspi)) in t1_init_hw_modules()
1382 adapter->sge = t1_sge_create(adapter, &adapter->params.sge); in t1_init_sw_modules()
1397 adapter->mc3 = t1_mc3_create(adapter); in t1_init_sw_modules()
1404 adapter->mc4 = t1_mc4_create(adapter); in t1_init_sw_modules()
1413 adapter->mc5 = t1_mc5_create(adapter, in t1_init_sw_modules()
1421 adapter->ulp = t1_ulp_create(adapter); in t1_init_sw_modules()
1452 adapter->tp = t1_tp_create(adapter, &adapter->params.tp); in t1_init_sw_modules()
[all …]
H A Despi.c33 adapter_t *adapter; member
242 if (is_T2(adapter)) { in espi_setup_for_ixf1010()
266 adapter_t *adapter = espi->adapter; in t1_espi_init() local
271 if (is_T2(adapter)) { in t1_espi_init()
281 espi_setup_for_pm3393(adapter); in t1_espi_init()
293 if (is_T2(adapter)) { in t1_espi_init()
294 (void) tricn_init(adapter); in t1_espi_init()
313 if (is_T2(espi->adapter)) { in t1_espi_destroy()
324 espi->adapter = adapter; in t1_espi_create()
332 if (!is_T2(adapter)) in t1_espi_set_misc_ctrl()
[all …]
H A Dmc3.c37 adapter_t *adapter; member
111 adapter_t *adapter = mc3->adapter; in t1_mc3_intr_handler() local
116 if (!t1_is_asic(adapter)) in t1_mc3_intr_handler()
125 adapter_name(adapter), in t1_mc3_intr_handler()
138 adapter_name(adapter), in t1_mc3_intr_handler()
159 t1_fatal_err(adapter); in t1_mc3_intr_handler()
161 if (t1_is_T1B(adapter)) { in t1_mc3_intr_handler()
175 #define is_MC3A(adapter) (!t1_is_T1B(adapter)) argument
199 adapter_t *adapter = mc3->adapter; in t1_mc3_init() local
235 if (is_MC3A(adapter)) { in t1_mc3_init()
[all …]
H A Dmc4.c35 adapter_t *adapter; member
46 #define is_MC4A(adapter) (!t1_is_T1B(adapter)) argument
88 adapter_t *adapter = mc4->adapter; in t1_mc4_init() local
95 if (is_MC4A(adapter)) { in t1_mc4_init()
198 mc4->adapter = adapter; in t1_mc4_create()
216 if (t1_is_asic(mc4->adapter)) { in t1_mc4_intr_enable()
229 if (t1_is_asic(mc4->adapter)) { in t1_mc4_intr_disable()
248 adapter_t *adapter = mc4->adapter; in t1_mc4_intr_handler() local
255 adapter_name(adapter), in t1_mc4_intr_handler()
268 adapter_name(adapter), in t1_mc4_intr_handler()
[all …]
H A Dtp.c36 adapter_t *adapter; member
292 tp->adapter = adapter; in t1_tp_create()
304 if (adapter->params.nports == 1) in t1_tp_create()
322 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_enable()
343 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_disable()
360 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_clear()
377 if (!t1_is_asic(tp->adapter)) in t1_tp_intr_handler()
419 adapter_t *adapter = tp->adapter; in t1_tp_reset() local
421 tp_init(adapter, p, tp_clk); in t1_tp_reset()
424 tp_pm_configure(adapter, p); in t1_tp_reset()
[all …]
H A Dvsc7326.c60 MAC_LOCK(adapter->mac_lock); in vsc_read()
80 MAC_UNLOCK(adapter->mac_lock); in vsc_read()
85 MAC_LOCK(adapter->mac_lock); in vsc_write()
91 MAC_UNLOCK(adapter->mac_lock); in vsc_write()
357 (void) run_bist(adapter,13); in run_bist_all()
358 (void) run_bist(adapter,14); in run_bist_all()
359 (void) run_bist(adapter,20); in run_bist_all()
360 (void) run_bist(adapter,21); in run_bist_all()
362 (void) check_bist(adapter,13); in run_bist_all()
735 mac->adapter = adapter; in vsc7326_mac_create()
[all …]
H A Dpm3393.c167 pl_intr = t1_read_reg_4(cmac->adapter, A_PL_ENABLE); in pm3393_interrupt_enable()
169 t1_write_reg_4(cmac->adapter, A_PL_ENABLE, pl_intr); in pm3393_interrupt_enable()
249 pl_intr = t1_read_reg_4(cmac->adapter, A_PL_CAUSE); in pm3393_interrupt_clear()
251 t1_write_reg_4(cmac->adapter, A_PL_CAUSE, pl_intr); in pm3393_interrupt_clear()
395 link_changed(cmac->adapter, 0); in pm3393_enable_port()
741 cmac->adapter = adapter; in pm3393_mac_create()
828 static int pm3393_mac_reset(adapter_t * adapter) in pm3393_mac_reset() argument
870 (void) t1_tpi_read(adapter, A_ELMER0_GPO, &val); in pm3393_mac_reset()
872 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in pm3393_mac_reset()
885 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in pm3393_mac_reset()
[all …]
H A Dulp.c33 adapter_t *adapter; member
46 if (t1_is_asic(ulp->adapter)) { in t1_ulp_intr_enable()
50 t1_write_reg_4(ulp->adapter, A_PL_ENABLE, in t1_ulp_intr_enable()
57 if (t1_is_asic(ulp->adapter)) { in t1_ulp_intr_clear()
65 if (t1_is_asic(ulp->adapter)) { in t1_ulp_intr_disable()
68 t1_write_reg_4(ulp->adapter, A_PL_ENABLE, in t1_ulp_intr_disable()
112 t1_fatal_err(ulp->adapter); in t1_ulp_intr_handler()
122 adapter_t *adapter = ulp->adapter; in t1_ulp_init() local
136 t1_write_reg_4(adapter, A_ULP_HREG_DATA, 0); in t1_ulp_init()
142 if (!t1_is_T1B(adapter)) { in t1_ulp_init()
[all …]
H A Dcommon.h208 return adapter->params.is_asic; in t1_is_asic()
215 adapter->params.chip_revision == revision; in adapter_matches_type()
224 return !t1_is_T1B(adapter); in vlan_tso_capable()
227 #define for_each_port(adapter, iter) \ argument
230 #define board_info(adapter) ((adapter)->params.brd_info) argument
231 #define is_10G(adapter) (board_info(adapter)->caps & SUPPORTED_10000baseT_Full) argument
247 void t1_interrupts_clear(adapter_t *adapter);
249 int t1_slow_intr_handler(adapter_t *adapter);
258 int t1_init_hw_modules(adapter_t *adapter);
260 void t1_free_sw_modules(adapter_t *adapter);
[all …]
H A Dmy3126.c45 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 Dch_mac.c99 t1_write_reg_4(mac->adapter, in mac_intr_enable()
125 t1_write_reg_4(mac->adapter, in mac_intr_disable()
150 t1_write_reg_4(mac->adapter, in mac_intr_clear()
211 t1_write_reg_4(mac->adapter, in mac_set_rx_mode()
248 t1_write_reg_4(mac->adapter, in mac_set_speed_duplex_fc()
263 t1_write_reg_4(mac->adapter, in mac_enable()
278 t1_write_reg_4(mac->adapter, in mac_disable()
286 t1_write_reg_4(mac->adapter, in mac_set_ifs()
298 t1_write_reg_4(mac->adapter, in mac_enable_isl()
389 mac->adapter = adapter; in mac_create()
[all …]
H A Dixf1010.c269 adapter_t *adapter = mac->adapter; in mac_set_rx_mode() local
362 adapter_t *adapter = mac->adapter; in enable_port() local
389 if (is_T2(adapter)) { in enable_port()
402 (void) t1_tpi_write(adapter, in enable_port()
492 static int ixf1010_mac_reset(adapter_t *adapter) in ixf1010_mac_reset() argument
496 (void) t1_tpi_read(adapter, A_ELMER0_GPO, &val); in ixf1010_mac_reset()
499 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in ixf1010_mac_reset()
503 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in ixf1010_mac_reset()
506 (void) t1_tpi_write(adapter, REG_PORT_ENABLE, 0); in ixf1010_mac_reset()
525 mac->adapter = adapter; in ixf1010_mac_create()
[all …]
H A Dvsc7321.c91 static void vsc7321_full_reset(adapter_t* adapter) in vsc7321_full_reset() argument
95 (void) t1_tpi_read(adapter, A_ELMER0_GPO, &val); in vsc7321_full_reset()
97 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in vsc7321_full_reset()
100 if (is_10G(adapter)) { in vsc7321_full_reset()
106 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); in vsc7321_full_reset()
229 vsc_write( adapter, ib[i].addr, ib[i].data ); in run_table()
235 static int vsc7321_mac_reset(adapter_t *adapter) in vsc7321_mac_reset() argument
252 mac->adapter = adapter; in vsc7321_mac_create()
256 vsc7321_full_reset(adapter); in vsc7321_mac_create()
271 vsc_read(adapter, REG_CHIP_ID, &val); in vsc7321_mac_create()
[all …]
H A Dmc5.c107 adapter_t *adapter; member
220 adapter_t *adap = mc5->adapter; in init_mask_data_array()
253 adapter_t *adap = mc5->adapter; in init_lara7000()
318 adapter_t *adap = mc5->adapter; in init_idt52100()
409 adapter_t *adap = mc5->adapter; in t1_mc5_init()
468 adapter_t *adap = mc5->adapter; in t1_read_mc5_range()
509 if (!t1_is_asic(mc5->adapter)) { in t1_mc5_intr_enable()
533 if (!t1_is_asic(mc5->adapter)) in t1_mc5_intr_disable()
549 if (!t1_is_asic(mc5->adapter)) { in t1_mc5_intr_clear()
564 adapter_t *adap = mc5->adapter; in t1_mc5_intr_handler()
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dcommon.h583 void t4_intr_enable(struct adapter *adapter);
584 void t4_intr_disable(struct adapter *adapter);
623 int t4_get_pfres(struct adapter *adapter);
638 int t4_erase_sf(struct adapter *adapter);
663 int t4_prep_pf(struct adapter *adapter);
668 int t4_bar2_sge_qregs(struct adapter *adapter,
693 void t4_fatal_err(struct adapter *adapter);
694 void t4_db_full(struct adapter *adapter);
695 void t4_db_dropped(struct adapter *adapter);
745 void t4_idma_monitor(struct adapter *adapter,
[all …]
H A Dt4_hw.c3339 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 …]

1234