Home
last modified time | relevance | path

Searched refs:hba (Results 1 – 25 of 88) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_sli3.c1066 cp->hba = hba; in emlxs_sli3_online()
1082 rp->hba = hba; in emlxs_sli3_online()
1295 hba->wwpn.IEEE[0], hba->wwpn.IEEE[1], hba->wwpn.IEEE[2], in emlxs_sli3_online()
1296 hba->wwpn.IEEE[3], hba->wwpn.IEEE[4], hba->wwpn.IEEE[5]); in emlxs_sli3_online()
1994 vport->hba = hba; in emlxs_sli3_hba_init()
2117 WRITE_CSR_REG(hba, FC_HC_REG(hba), hba->sli.sli3.hc_copy); in emlxs_sli3_hba_reset()
2189 hba->sli.sli3.hc_copy = READ_CSR_REG(hba, FC_HC_REG(hba)); in emlxs_sli3_hba_reset()
4331 WRITE_CSR_REG(hba, FC_HC_REG(hba), hba->sli.sli3.hc_copy); in emlxs_sli3_msi_intr()
5492 WRITE_CSR_REG(hba, FC_HC_REG(hba), hba->sli.sli3.hc_copy); in emlxs_sli3_hba_kill()
5692 WRITE_CSR_REG(hba, FC_HC_REG(hba), hba->sli.sli3.hc_copy); in emlxs_sli3_hba_kill4quiesce()
[all …]
H A Demlxs_clock.c295 if (hba->pkt_timer > hba->timer_tics) { in emlxs_timer_check_pkts()
299 hba->pkt_timer = hba->timer_tics + EMLXS_PKT_PERIOD; in emlxs_timer_check_pkts()
764 if (!hba->loopback_tics || (hba->timer_tics < hba->loopback_tics)) { in emlxs_timer_check_loopback()
807 if (hba->linkup_timer && (hba->timer_tics >= hba->linkup_timer)) { in emlxs_timer_check_linkup()
838 if (hba->timer_tics < hba->heartbeat_timer) { in emlxs_timer_check_heartbeat()
842 hba->heartbeat_timer = hba->timer_tics + 5; in emlxs_timer_check_heartbeat()
892 if (hba->timer_tics < hba->fw_timer) { in emlxs_timer_check_fw_update()
916 hba->fw_timer = hba->timer_tics + (60 * 60 * 24); in emlxs_timer_check_fw_update()
943 (hba->timer_tics >= hba->discovery_timer) && in emlxs_timer_check_discovery()
1185 hba->timer_tics + (4 * hba->fc_ratov) + 10; in emlxs_pkt_chip_timeout()
[all …]
H A Demlxs_sli4.c345 hba->channel_ip = hba->chan_count - 1; in emlxs_sli4_online()
346 hba->channel_els = hba->chan_count - 1; in emlxs_sli4_online()
347 hba->channel_ct = hba->chan_count - 1; in emlxs_sli4_online()
1113 hba->fc_oor_iotag = hba->max_iotag; in emlxs_sli4_online()
1350 hba->wwpn.nameType, hba->wwpn.IEEEextMsn, hba->wwpn.IEEEextLsb, in emlxs_sli4_online()
1351 hba->wwpn.IEEE[0], hba->wwpn.IEEE[1], hba->wwpn.IEEE[2], in emlxs_sli4_online()
1352 hba->wwpn.IEEE[3], hba->wwpn.IEEE[4], hba->wwpn.IEEE[5]); in emlxs_sli4_online()
2336 vport->hba = hba; in emlxs_sli4_hba_init()
2486 cp->hba = hba; in emlxs_sli4_hba_reset()
4803 cp = &hba->chan[hba->channel_ct]; in emlxs_sli4_prep_ct_iocb()
[all …]
H A Demlxs_hba.c423 hba->chan_count = hba->intr_count * cfg[CFG_NUM_WQ].current; in emlxs_msi_init()
442 emlxs_thread_create(hba, &hba->chan[i].intr_thread); in emlxs_msi_init()
475 bzero(hba->intr_map, sizeof (hba->intr_map)); in emlxs_msi_init()
476 bzero(hba->intr_lock, sizeof (hba->intr_lock)); in emlxs_msi_init()
545 bzero(hba->intr_map, sizeof (hba->intr_map)); in emlxs_msi_uninit()
795 hba->model_info.model, hba->model_info.flags); in emlxs_intx_init()
837 emlxs_thread_create(hba, &hba->chan[i].intr_thread); in emlxs_intx_init()
2189 hba->sli_intf, hba->model_info.sli_mask); in emlxs_init_adapter_info()
2201 hba->sli_intf, hba->model_info.sli_mask); in emlxs_init_adapter_info()
2212 hba->sli_intf, hba->model_info.sli_mask); in emlxs_init_adapter_info()
[all …]
H A Demlxs_solaris.c1227 hba = emlxs_device.hba[emlxinst]; in emlxs_attach()
1257 hba = emlxs_device.hba[emlxinst]; in emlxs_detach()
1761 hba->wwpn.IEEEextMsn, hba->wwpn.IEEEextLsb, hba->wwpn.IEEE[0], in emlxs_fca_bind_port()
1762 hba->wwpn.IEEE[1], hba->wwpn.IEEE[2], hba->wwpn.IEEE[3], in emlxs_fca_bind_port()
2688 &hba->chan[hba->channel_fcp], in emlxs_poll()
2723 &hba->chan[hba->channel_fcp], in emlxs_poll()
5613 hba->wwpn.IEEE[1], hba->wwpn.IEEE[2], hba->wwpn.IEEE[3], in emlxs_fca_port_manage()
7053 emlxs_device.hba[emlxinst] = hba; in emlxs_hba_attach()
7070 port->hba = hba; in emlxs_hba_attach()
8957 cp = &hba->chan[hba->channel_ip]; in emlxs_send_ip()
[all …]
H A Demlxs_fcp.c1472 emlxs_hba_t *hba = vport->hba; in emlxs_port_online() local
2150 hba = cp->hba; in emlxs_register_pkt()
2164 if (!hba->fc_iotag || hba->fc_iotag >= hba->max_iotag) { in emlxs_register_pkt()
2203 hba = cp->hba; in emlxs_unregister_pkt()
3198 hba = cp->hba; in emlxs_tx_get()
3375 hba = from_chan->hba; in emlxs_tx_move()
4031 hba->fc_oor_iotag = hba->max_iotag; in emlxs_create_abort_xri_cn()
4095 hba->fc_oor_iotag = hba->max_iotag; in emlxs_create_abort_xri_cx()
4263 cp = &hba->chan[hba->channel_els]; in emlxs_close_els_exchange()
4308 cp = &hba->chan[hba->channel_els]; in emlxs_abort_els_exchange()
[all …]
H A Demlxs_mbox.c1538 WRITE_CSR_REG(hba, FC_HC_REG(hba), in emlxs_read_la_mbcmpl()
1724 emlxs_linkup(hba); in emlxs_read_la_mbcmpl()
1738 WRITE_CSR_REG(hba, FC_HC_REG(hba), hba->sli.sli3.hc_copy); in emlxs_read_la_mbcmpl()
1741 EMLXS_CHK_ACC_HANDLE(hba, hba->sli.sli3.csr_acc_handle); in emlxs_read_la_mbcmpl()
1826 WRITE_CSR_REG(hba, FC_HC_REG(hba), in emlxs_clear_la_mbcmpl()
1838 WRITE_CSR_REG(hba, FC_HC_REG(hba), in emlxs_clear_la_mbcmpl()
1856 WRITE_CSR_REG(hba, FC_HC_REG(hba), hba->sli.sli3.hc_copy); in emlxs_clear_la_mbcmpl()
1859 EMLXS_CHK_ACC_HANDLE(hba, hba->sli.sli3.csr_acc_handle); in emlxs_clear_la_mbcmpl()
1885 EMLXS_SLI_ISSUE_IOCB_CMD(hba, &hba->chan[hba->channel_fcp], 0); in emlxs_clear_la_mbcmpl()
2275 hba->fc_edtov, hba->sparam.cmn.e_d_tov, in emlxs_read_sparam_mbcmpl()
[all …]
H A Demlxs_mem.c56 bzero(hba->memseg, sizeof (hba->memseg)); in emlxs_mem_alloc_buffer()
75 seg = &hba->memseg[i]; in emlxs_mem_alloc_buffer()
306 cp = &hba->chan[j]; in emlxs_mem_free_buffer()
334 emlxs_mem_put(hba, in emlxs_mem_free_buffer()
337 emlxs_mem_put(hba, in emlxs_mem_free_buffer()
340 emlxs_mem_put(hba, in emlxs_mem_free_buffer()
345 emlxs_mem_put(hba, in emlxs_mem_free_buffer()
374 emlxs_mb_flush(hba); in emlxs_mem_free_buffer()
376 if (hba->fc_table) { in emlxs_mem_free_buffer()
381 hba->fc_table = NULL; in emlxs_mem_free_buffer()
[all …]
H A Demlxs_dump.c40 emlxs_hba_t *hba, in emlxs_menlo_set_mode() argument
104 emlxs_hba_t *hba, in emlxs_menlo_reset() argument
167 emlxs_hba_t *hba, in emlxs_menlo_get_cfg() argument
226 emlxs_hba_t *hba, in emlxs_menlo_get_logcfg() argument
282 emlxs_hba_t *hba, in emlxs_menlo_get_log() argument
339 emlxs_hba_t *hba, in emlxs_menlo_get_paniclog() argument
496 emlxs_hba_t *hba, in emlxs_fopen() argument
601 emlxs_hba_t *hba, in emlxs_get_dump() argument
721 emlxs_hba_t *hba, in emlxs_read_cfg_region() argument
1375 emlxs_hba_t *hba, in emlxs_dump_parm_table() argument
[all …]
H A Demlxs_download.c2258 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_cfl_download()
2575 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_start_abs_download()
3256 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_start_rel_download()
3570 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.sbus_flash_acc_handle) in emlxs_write_fcode_flash()
5324 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_proc_abs_2mb()
5761 if (emlxs_read_wakeup_parms(hba, &hba->wakeup_parms, 0)) { in emlxs_boot_code_disable()
5792 (void) emlxs_read_wakeup_parms(hba, &hba->wakeup_parms, 1); in emlxs_boot_code_disable()
5856 if (emlxs_read_wakeup_parms(hba, &hba->wakeup_parms, 0)) { in emlxs_boot_code_enable()
5896 hba, &hba->wakeup_parms, in emlxs_boot_code_enable()
5909 (void) emlxs_read_wakeup_parms(hba, &hba->wakeup_parms, 1); in emlxs_boot_code_enable()
[all …]
H A Demlxs_thread.c67 func(taskq->hba, arg); in emlxs_taskq_thread()
162 taskq->hba = hba; in emlxs_taskq_create()
259 emlxs_hba_t *hba; in emlxs_thread() local
265 hba = ethread->hba; in emlxs_thread()
273 func(hba, arg1, arg2); in emlxs_thread()
362 ethread->hba = hba; in emlxs_thread_create()
535 ethread->hba = hba; in emlxs_thread_spawn()
545 if (hba->spawn_open == 0) { in emlxs_thread_spawn()
575 if (hba->spawn_open) { in emlxs_thread_spawn_create()
583 hba->spawn_open = 1; in emlxs_thread_spawn_create()
[all …]
H A Demlxs_dfc.c3548 if (hba->num_of_ports <= hba->vpi_max) { in emlxs_dfc_npiv_test()
3604 vport->hba = hba; in emlxs_dfc_npiv_test()
4094 if (emlxs_fm_check_acc_handle(hba, hba->pci_acc_handle) in emlxs_dfc_get_hbainfo()
5369 if (emlxs_fm_check_acc_handle(hba, hba->pci_acc_handle) in emlxs_dfc_read_pci()
5473 if (emlxs_fm_check_acc_handle(hba, hba->pci_acc_handle) in emlxs_dfc_write_pci()
5933 hba->model_info.device_id, hba->model_info.ssdid); in emlxs_dfc_send_menlo()
7759 hba->hba_event.new, hba->hba_event.last_id); in emlxs_dfc_get_eventinfo()
7916 wptr[0] = READ_CSR_REG(hba, FC_HA_REG(hba)); in emlxs_get_dump_region()
7917 wptr[1] = READ_CSR_REG(hba, FC_CA_REG(hba)); in emlxs_get_dump_region()
7918 wptr[2] = READ_CSR_REG(hba, FC_HS_REG(hba)); in emlxs_get_dump_region()
[all …]
H A Demlxs_event.c46 emlxs_hba_t *hba = HBA; in emlxs_event_check() local
108 if (hba->event_mask) { in emlxs_event_queue_destroy()
109 hba->event_mask = 0; in emlxs_event_queue_destroy()
110 hba->event_timer = 0; in emlxs_event_queue_destroy()
215 emlxs_hba_t *hba = HBA; in emlxs_event() local
282 hba->hba_event.new++; in emlxs_event()
319 if ((hba->event_timer > hba->timer_tics)) { in emlxs_timer_check_events()
344 hba->event_timer = hba->timer_tics + EMLXS_EVENT_PERIOD; in emlxs_timer_check_events()
438 emlxs_hba_t *hba = HBA; in emlxs_flush_ct_event() local
826 if (hba->hba_event.new > hba->hba_event.missed) { in emlxs_get_dfc_eventinfo()
[all …]
H A Demlxs_diag.c136 emlxs_hba_t *hba = HBA; in emlxs_diag_echo_run() local
156 if ((hba->state < FC_LINK_UP) || (port->did == 0)) { in emlxs_diag_echo_run()
308 if (hba->state < FC_LINK_DOWN) { in emlxs_diag_biu_run()
397 if (emlxs_fm_check_dma_handle(hba, mp->dma_handle) in emlxs_diag_biu_run()
406 emlxs_mem_put(hba, MEM_BUF, (void *)mp); in emlxs_diag_biu_run()
419 emlxs_mem_put(hba, MEM_BUF, (void *)mp1); in emlxs_diag_biu_run()
422 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq); in emlxs_diag_biu_run()
431 emlxs_diag_post_run(emlxs_hba_t *hba) in emlxs_diag_post_run() argument
444 if ((rval = emlxs_offline(hba, 0))) { in emlxs_diag_post_run()
452 rval = EMLXS_SLI_HBA_RESET(hba, 1, 1, 0); in emlxs_diag_post_run()
[all …]
H A Demlxs_node.c42 emlxs_hba_t *hba = HBA; in emlxs_node_close() local
134 cp = &hba->chan[channelno]; in emlxs_node_close()
179 emlxs_hba_t *hba = HBA; in emlxs_node_timeout() local
227 emlxs_hba_t *hba = HBA; in emlxs_node_open() local
264 cp = &hba->chan[channelno]; in emlxs_node_open()
298 if ((hba->state == FC_LINK_UP) && (channelno == hba->channel_fcp)) { in emlxs_node_open()
477 emlxs_hba_t *hba = HBA; in emlxs_node_find_did() local
711 emlxs_hba_t *hba = HBA; in emlxs_node_destroy_all() local
780 emlxs_hba_t *hba = HBA; in emlxs_node_create() local
970 emlxs_hba_t *hba = HBA; in emlxs_node_rm() local
[all …]
H A Demlxs_fcf.c1853 emlxs_hba_t *hba = HBA; in emlxs_fcf_linkdown() local
1871 hba->linkup_timer = 0; in emlxs_fcf_linkdown()
1885 emlxs_hba_t *hba = HBA; in emlxs_fcf_linkup() local
1900 emlxs_mode_set(hba); in emlxs_fcf_linkup()
1905 hba->discovery_timer = hba->timer_tics + in emlxs_fcf_linkup()
2176 emlxs_hba_t *hba = HBA; in emlxs_fcf_shutdown_notify() local
2234 emlxs_hba_t *hba = HBA; in emlxs_fcf_linkup_notify() local
2268 emlxs_hba_t *hba = HBA; in emlxs_fcf_linkdown_notify() local
2302 emlxs_hba_t *hba = HBA; in emlxs_fcf_cvl_notify() local
3685 hba->fc_edtov, hba->sparam.cmn.e_d_tov, in emlxs_fc_fcftab_sparm_mbcmpl()
[all …]
H A Demlxs_els.c379 emlxs_hba_t *hba = HBA; in emlxs_els_handle_unsol_req() local
523 emlxs_hba_t *hba = HBA; in emlxs_els_delay_discovery() local
547 hba->timer_tics + hba->fc_ratov; in emlxs_els_delay_discovery()
560 emlxs_hba_t *hba = HBA; in emlxs_handle_sol_flogi() local
756 emlxs_hba_t *hba = HBA; in emlxs_handle_sol_fdisc() local
826 emlxs_hba_t *hba = HBA; in emlxs_handle_sol_plogi() local
864 hba->fc_edtov = in emlxs_handle_sol_plogi()
909 emlxs_hba_t *hba = HBA; in emlxs_handle_sol_adisc() local
952 emlxs_hba_t *hba = HBA; in emlxs_handle_sol_prli() local
1201 hba->fc_edtov = in emlxs_process_unsol_flogi()
[all …]
H A Demlxs_fct.c1964 fct_port, port->fct_flags, hba->state, hba->flag, hba->topology);
2066 cmd_sbp->channel = &hba->chan[hba->channel_els];
2397 cmd_sbp->ticks = hba->timer_tics + (2 * hba->fc_ratov);
2678 ((2 * hba->fc_ratov) < 30) ? 30 : (2 * hba->fc_ratov);
2790 CHANNEL *cp = &hba->chan[hba->CHANNEL_FCT];
2811 ((2 * hba->fc_ratov) < 30) ? 30 : (2 * hba->fc_ratov);
3812 hba = HBA;
4057 cmd_sbp->channel = &hba->chan[hba->channel_els];
4065 ((2 * hba->fc_ratov) < 30) ? 30 : (2 * hba->fc_ratov);
4239 cmd_sbp->channel = &hba->chan[hba->channel_ct];
[all …]
H A Demlxs_ip.c58 if (cp->channelno != hba->channel_ip) { in emlxs_ip_handle_event()
145 !(ndlp->nlp_flag[hba->channel_ip] & in emlxs_ip_handle_event()
181 emlxs_hba_t *hba = HBA; in emlxs_ip_handle_unsol_req() local
316 rp = &hba->sli.sli3.ring[cp->channelno]; in emlxs_ip_handle_rcv_seq_list()
333 if (hba->flag & FC_HBQ_ENABLED) { in emlxs_ip_handle_rcv_seq_list()
336 hbq = &hba->sli.sli3.hbq_table[hbq_id]; in emlxs_ip_handle_rcv_seq_list()
343 mp = hba->sli.sli3.hbq_table in emlxs_ip_handle_rcv_seq_list()
358 if (hba->flag & FC_HBQ_ENABLED) { in emlxs_ip_handle_rcv_seq_list()
359 emlxs_update_HBQ_index(hba, hbq_id); in emlxs_ip_handle_rcv_seq_list()
364 (void) emlxs_post_buffer(hba, rp, 1); in emlxs_ip_handle_rcv_seq_list()
[all …]
H A Demlxs_msg.c42 emlxs_msg_log_create(emlxs_hba_t *hba) in emlxs_msg_log_create() argument
51 DRIVER_NAME, hba->ddiinst, (void *)log); in emlxs_msg_log_create()
63 log->instance = hba->ddiinst; in emlxs_msg_log_create()
66 if (!(hba->intr_flags & EMLXS_MSI_ENABLED)) { in emlxs_msg_log_create()
87 emlxs_msg_lock_reinit(emlxs_hba_t *hba) in emlxs_msg_lock_reinit() argument
95 DRIVER_NAME, hba->ddiinst, (void *)log); in emlxs_msg_lock_reinit()
111 emlxs_msg_log_destroy(emlxs_hba_t *hba) in emlxs_msg_log_destroy() argument
144 emlxs_hba_t *hba = HBA; in emlxs_msg_log() local
312 emlxs_hba_t *hba = HBA; in emlxs_msg_print_check() local
378 emlxs_hba_t *hba = HBA; in emlxs_msg_printf() local
[all …]
H A Demlxs_dhchap.c408 emlxs_hba_t *hba = HBA; in emlxs_dhc_state() local
438 hba->rdn_flag = 0; in emlxs_dhc_state()
1001 emlxs_hba_t *hba = HBA; in emlxs_dhchap_state_machine() local
2106 emlxs_hba_t *hba = HBA; in emlxs_issue_dhchap_challenge() local
7298 hba->rdn_flag = 1; in emlxs_dhc_attach()
8005 hba->ddiinst); in emlxs_auth_cfg_read()
8061 emlxs_hba_t *hba, in emlxs_auth_cfg_parse() argument
8659 hba->ddiinst); in emlxs_auth_key_read()
8714 emlxs_hba_t *hba, in emlxs_auth_key_parse() argument
9184 emlxs_hba_t *hba, in emlxs_dhc_add_auth_cfg() argument
[all …]
H A Demlxs_pkt.c45 emlxs_pkt_thread(emlxs_hba_t *hba, void *arg1, void *arg2) in emlxs_pkt_thread() argument
82 emlxs_hba_t *hba = HBA; in emlxs_pkt_send() local
89 emlxs_thread_spawn(hba, emlxs_pkt_thread, (char *)pkt, NULL); in emlxs_pkt_send()
151 emlxs_hba_t *hba = HBA; in emlxs_pkt_alloc() local
200 if (ddi_dma_alloc_handle(hba->dip, &hba->dma_attr_1sg, cb, in emlxs_pkt_alloc()
267 if (ddi_dma_alloc_handle(hba->dip, &hba->dma_attr_1sg, cb, in emlxs_pkt_alloc()
331 if (ddi_dma_alloc_handle(hba->dip, &hba->dma_attr_1sg, cb, in emlxs_pkt_alloc()
389 mutex_init(&sbp->mtx, NULL, MUTEX_DRIVER, DDI_INTR_PRI(hba->intr_arg)); in emlxs_pkt_alloc()
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_extern.h150 extern void emlxs_mem_free(emlxs_hba_t *hba,
154 extern int emlxs_map_bus(emlxs_hba_t *hba);
224 extern void emlxs_mode_set(emlxs_hba_t *hba);
234 extern void emlxs_fm_init(emlxs_hba_t *hba);
235 extern void emlxs_fm_fini(emlxs_hba_t *hba);
460 extern void emlxs_mb_put(emlxs_hba_t *hba,
481 extern void emlxs_mb_fini(emlxs_hba_t *hba,
493 extern void emlxs_mb_noop(emlxs_hba_t *hba,
554 extern void emlxs_mem_put(emlxs_hba_t *hba,
592 extern void emlxs_fw_load(emlxs_hba_t *hba,
[all …]
H A Demlxs_fc.h522 #define MEM_ELSBUF_COUNT hba->max_nodes
993 struct emlxs_hba *hba; member
2101 #define EMLXS_DUMP_LOCK hba->dump_lock
2165 #define HBA port->hba
2166 #define PPORT hba->port[0]
2167 #define VPORT(x) hba->port[x]
2169 #define VPD hba->vpd
2170 #define CFG hba->config[0]
2171 #define LOG hba->log
2172 #define EVENTQ hba->event_queue
[all …]
/illumos-gate/usr/src/lib/sun_fc/common/
H A DHandle.cc100 hba = myhba; in Handle()
153 hba = myhba;
332 HBAPort* port = hba->getPortByIndex(index); in getHandlePortByIndex()
350 HBAPort* port = hba->getPort(wwn); in getHandlePort()
351 portHandles[wwn] = new HandlePort(this, hba, port); in getHandlePort()
371 HBA_ADAPTERATTRIBUTES attributes = hba->getHBAAttributes(); in getHBAAttributes()
389 int rval = hba->doForceLip(); in doForceLip()
429 if (hba->containsWWN(wwn)) { in getPortAttributes()
430 attributes = hba->getPort(wwn)->getPortAttributes(tmp); in getPortAttributes()
436 for (int i = 0; i < hba->getNumberOfPorts(); i++) { in getPortAttributes()
[all …]

1234