/titanic_50/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_mbox.c | 211 emlxs_mb_resetport(emlxs_hba_t *hba, MAILBOXQ *mbq) in emlxs_mb_resetport() argument 213 MAILBOX4 *mb4 = (MAILBOX4 *)mbq; in emlxs_mb_resetport() 216 mbq->nonembed = NULL; in emlxs_mb_resetport() 217 mbq->mbox_cmpl = NULL; /* no cmpl needed */ in emlxs_mb_resetport() 218 mbq->port = (void *)&PPORT; in emlxs_mb_resetport() 242 emlxs_mb_request_features(emlxs_hba_t *hba, MAILBOXQ *mbq, uint32_t mask) in emlxs_mb_request_features() argument 244 MAILBOX4 *mb4 = (MAILBOX4 *)mbq; in emlxs_mb_request_features() 250 mbq->nonembed = NULL; in emlxs_mb_request_features() 251 mbq->mbox_cmpl = NULL; /* no cmpl needed */ in emlxs_mb_request_features() 252 mbq->port = (void *)&PPORT; in emlxs_mb_request_features() [all …]
|
H A D | emlxs_sli3.c | 76 MAILBOXQ *mbq, int32_t flg, 120 MAILBOXQ *mbq, uint32_t sli_mode, 194 MAILBOXQ *mbq = NULL; in emlxs_sli3_online() local 245 mbq = (MAILBOXQ *) kmem_zalloc((sizeof (MAILBOXQ)), KM_SLEEP); in emlxs_sli3_online() 247 mb = (MAILBOX *)mbq; in emlxs_sli3_online() 373 emlxs_mb_read_rev(hba, mbq, 0); in emlxs_sli3_online() 374 if (emlxs_sli3_issue_mbox_cmd(hba, mbq, MBX_WAIT, 0) != MBX_SUCCESS) { in emlxs_sli3_online() 424 bzero(mbq, sizeof (MAILBOXQ)); in emlxs_sli3_online() 426 emlxs_mb_read_rev(hba, mbq, 1); in emlxs_sli3_online() 428 if (emlxs_sli3_issue_mbox_cmd(hba, mbq, MBX_WAIT, 0) != in emlxs_sli3_online() [all …]
|
H A D | emlxs_fcf.c | 2968 emlxs_fc_fcftab_topo_mbcmpl(emlxs_hba_t *hba, MAILBOXQ *mbq) in emlxs_fc_fcftab_topo_mbcmpl() argument 2970 emlxs_port_t *port = (emlxs_port_t *)mbq->port; in emlxs_fc_fcftab_topo_mbcmpl() 2972 MAILBOX4 *mb4 = (MAILBOX4 *)mbq; in emlxs_fc_fcftab_topo_mbcmpl() 2979 TID = (uint16_t)((unsigned long)mbq->context); in emlxs_fc_fcftab_topo_mbcmpl() 3081 mp = (MATCHMAP *)mbq->bp; in emlxs_fc_fcftab_topo_mbcmpl() 3134 MAILBOXQ *mbq; in emlxs_fc_fcftab_topo_action() local 3202 if (!(mbq = (MAILBOXQ *)emlxs_mem_get(hba, MEM_MBOX))) { in emlxs_fc_fcftab_topo_action() 3207 mb4 = (MAILBOX4*)mbq; in emlxs_fc_fcftab_topo_action() 3211 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq); in emlxs_fc_fcftab_topo_action() 3219 mbq->nonembed = NULL; in emlxs_fc_fcftab_topo_action() [all …]
|
H A D | emlxs_dump.c | 722 MAILBOXQ *mbq; in emlxs_read_cfg_region() local 733 mbq = in emlxs_read_cfg_region() 745 MAILBOX4 *mb = (MAILBOX4 *)mbq; in emlxs_read_cfg_region() 770 mbq->mbox_cmpl = NULL; in emlxs_read_cfg_region() 772 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_read_cfg_region() 779 kmem_free(mbq, sizeof (MAILBOXQ)); in emlxs_read_cfg_region() 803 MAILBOX *mb = (MAILBOX *)mbq; in emlxs_read_cfg_region() 818 mbq->mbox_cmpl = NULL; in emlxs_read_cfg_region() 820 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_read_cfg_region() 827 kmem_free(mbq, sizeof (MAILBOXQ)); in emlxs_read_cfg_region() [all …]
|
H A D | emlxs_sli4.c | 34 MAILBOXQ *mbq); 54 MAILBOXQ *mbq); 56 MAILBOXQ *mbq); 58 MAILBOXQ *mbq); 83 MAILBOXQ *mbq, int32_t flg, uint32_t tmo); 85 MAILBOXQ *mbq, int32_t flg, uint32_t tmo); 281 MAILBOXQ *mbq = NULL; in emlxs_sli4_online() local 363 mbq = (MAILBOXQ *) kmem_zalloc((sizeof (MAILBOXQ)), KM_SLEEP); in emlxs_sli4_online() 365 mb = (MAILBOX4 *)mbq; in emlxs_sli4_online() 435 emlxs_mb_get_sli4_params(hba, mbq); in emlxs_sli4_online() [all …]
|
H A D | emlxs_download.c | 43 static void emlxs_format_dump(emlxs_hba_t *hba, MAILBOXQ *mbq, 55 static void emlxs_format_load_area_cmd(MAILBOXQ *mbq, uint32_t Base, 65 static void emlxs_format_prog_flash(MAILBOXQ *mbq, uint32_t Base, 69 static void emlxs_format_update_parms(MAILBOXQ *mbq, 71 static void emlxs_format_update_pci_cfg(emlxs_hba_t *hba, MAILBOXQ *mbq, 129 MAILBOXQ *mbq, MATCHMAP *mp); 132 MAILBOXQ *mbq, MATCHMAP *mp); 134 emlxs_be_fw_file_t *file, MAILBOXQ *mbq, MATCHMAP *mp); 140 uint32_t size, MAILBOXQ *mbq, MATCHMAP *mp, 384 emlxs_be_fw_file_t *file, MAILBOXQ *mbq, MATCHMAP *mp) in emlxs_be_flash_image() argument [all …]
|
H A D | emlxs_diag.c | 298 MAILBOXQ *mbq = NULL; in emlxs_diag_biu_run() local 318 if ((mbq = (MAILBOXQ *) emlxs_mem_get(hba, MEM_MBOX)) == 0) { in emlxs_diag_biu_run() 358 (void) emlxs_mb_run_biu_diag(hba, mbq, mp->phys, mp1->phys); in emlxs_diag_biu_run() 360 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 60); in emlxs_diag_biu_run() 421 if (mbq) { in emlxs_diag_biu_run() 422 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq); in emlxs_diag_biu_run()
|
H A D | emlxs_dfc.c | 3358 MAILBOXQ *mbq = NULL; in emlxs_dfc_npiv_resource() local 3401 mbq = (MAILBOXQ *)kmem_zalloc(sizeof (MAILBOXQ), KM_SLEEP); in emlxs_dfc_npiv_resource() 3402 mb = (MAILBOX *) mbq; in emlxs_dfc_npiv_resource() 3404 emlxs_mb_read_config(hba, mbq); in emlxs_dfc_npiv_resource() 3406 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0); in emlxs_dfc_npiv_resource() 3441 if (mbq) { in emlxs_dfc_npiv_resource() 3442 kmem_free(mbq, sizeof (MAILBOXQ)); in emlxs_dfc_npiv_resource() 4061 MAILBOXQ *mbq = NULL; in emlxs_dfc_get_hbastats() local 4079 mbq = in emlxs_dfc_get_hbastats() 4082 mb = (MAILBOX *)mbq; in emlxs_dfc_get_hbastats() [all …]
|
H A D | emlxs_clock.c | 830 MAILBOXQ *mbq; in emlxs_timer_check_heartbeat() local 862 if ((mbq = (MAILBOXQ *)emlxs_mem_get(hba, MEM_MBOX)) == 0) { in emlxs_timer_check_heartbeat() 868 emlxs_mb_heartbeat(hba, mbq); in emlxs_timer_check_heartbeat() 871 rc = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_timer_check_heartbeat() 873 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq); in emlxs_timer_check_heartbeat()
|
H A D | emlxs_hba.c | 2763 MAILBOXQ *mbq; in emlxs_pcix_mxr_update() local 2798 if ((mbq = (MAILBOXQ *) kmem_zalloc((sizeof (MAILBOXQ)), in emlxs_pcix_mxr_update() 2804 mb = (MAILBOX *)mbq; in emlxs_pcix_mxr_update() 2806 emlxs_mb_set_var(hba, mbq, 0x00100506, value); in emlxs_pcix_mxr_update() 2808 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != MBX_SUCCESS) { in emlxs_pcix_mxr_update() 2826 (void) kmem_free((uint8_t *)mbq, sizeof (MAILBOXQ)); in emlxs_pcix_mxr_update() 2835 emlxs_get_key(emlxs_hba_t *hba, MAILBOXQ *mbq) in emlxs_get_key() argument 2838 MAILBOX *mb = (MAILBOX *)mbq; in emlxs_get_key() 2855 emlxs_mb_read_nv(hba, mbq); in emlxs_get_key() 2856 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != MBX_SUCCESS) { in emlxs_get_key()
|
H A D | emlxs_mem.c | 1110 MAILBOXQ *mbq; in emlxs_mem_get() local 1131 mbq = (MAILBOXQ *)bp; in emlxs_mem_get() 1132 mbq->flag |= MBQ_POOL_ALLOCATED; in emlxs_mem_get() 1156 MAILBOXQ *mbq; in emlxs_mem_put() local 1175 mbq = (MAILBOXQ *)bp; in emlxs_mem_put() 1177 if (!(mbq->flag & MBQ_POOL_ALLOCATED)) { in emlxs_mem_put()
|
H A D | emlxs_fcp.c | 1735 MAILBOXQ *mbq = NULL; in emlxs_reset_link() local 1744 if ((mbq = (MAILBOXQ *)emlxs_mem_get(hba, MEM_MBOX)) in emlxs_reset_link() 1760 mb = (MAILBOX *)mbq; in emlxs_reset_link() 1763 emlxs_mb_down_link(hba, mbq); in emlxs_reset_link() 1772 rc = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, wait, 0); in emlxs_reset_link() 1800 if ((mbq = (MAILBOXQ *)emlxs_mem_get(hba, MEM_MBOX)) in emlxs_reset_link() 1808 mb = (MAILBOX *)mbq; in emlxs_reset_link() 1811 mb = (MAILBOX *)mbq; in emlxs_reset_link() 1815 emlxs_mb_init_link(hba, mbq, in emlxs_reset_link() 1826 rc = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, wait, 0); in emlxs_reset_link() [all …]
|
H A D | emlxs_els.c | 2283 MAILBOXQ *mbq = NULL; in emlxs_rls_rsp_thread() local 2292 if (!(mbq = (MAILBOXQ *)emlxs_mem_get(hba, MEM_MBOX))) { in emlxs_rls_rsp_thread() 2295 mb = (MAILBOX *)mbq; in emlxs_rls_rsp_thread() 2298 emlxs_mb_read_lnk_stat(hba, mbq); in emlxs_rls_rsp_thread() 2299 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0); in emlxs_rls_rsp_thread() 2323 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq); in emlxs_rls_rsp_thread() 2324 mbq = NULL; in emlxs_rls_rsp_thread() 2338 if (mbq) { in emlxs_rls_rsp_thread() 2339 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq); in emlxs_rls_rsp_thread()
|
H A D | emlxs_solaris.c | 4344 MAILBOXQ *mbq; in emlxs_fca_port_manage() local 4359 if ((mbq = (MAILBOXQ *)emlxs_mem_get(hba, in emlxs_fca_port_manage() 4364 mb = (MAILBOX *)mbq; in emlxs_fca_port_manage() 4366 emlxs_mb_read_lnk_stat(hba, mbq); in emlxs_fca_port_manage() 4367 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) in emlxs_fca_port_manage() 4382 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq); in emlxs_fca_port_manage() 4851 MAILBOXQ *mbq; in emlxs_fca_port_manage() local 4874 if ((mbq = (MAILBOXQ *)emlxs_mem_get(hba, in emlxs_fca_port_manage() 4882 mb = (MAILBOX4*)mbq; in emlxs_fca_port_manage() 4887 mbq->mbox_cmpl = NULL; in emlxs_fca_port_manage() [all …]
|
H A D | emlxs_fct.c | 1300 MAILBOXQ *mbq; local 1315 if ((mbq = (MAILBOXQ *)emlxs_mem_get(hba, MEM_MBOX)) == 0) { 1322 mb = (MAILBOX *)mbq; 1324 emlxs_mb_read_lnk_stat(hba, mbq); 1325 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) 1347 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq);
|
/titanic_50/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_extern.h | 197 extern uint32_t emlxs_get_key(emlxs_hba_t *hba, MAILBOXQ *mbq); 402 MAILBOXQ *mbq); 404 MAILBOXQ *mbq, uint16_t type); 406 MAILBOXQ *mbq, uint16_t type); 408 MAILBOXQ *mbq, uint16_t type); 410 MAILBOXQ *mbq, uint16_t type, 413 MAILBOXQ *mbq); 417 MAILBOXQ *mbq, uint32_t *intr_map, 420 MAILBOXQ *mbq, uint32_t *intr_map, 423 MAILBOXQ *mbq); [all …]
|