/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_sli4.c | 211 bzero((char *)&hba->sli.sli4.param, sizeof (sli_params_t)); in emlxs_sli4_set_default_params() 213 hba->sli.sli4.param.ProtocolType = 0x3; /* FC/FCoE */ in emlxs_sli4_set_default_params() 215 hba->sli.sli4.param.SliHint2 = 0; in emlxs_sli4_set_default_params() 216 hba->sli.sli4.param.SliHint1 = 0; in emlxs_sli4_set_default_params() 217 hba->sli.sli4.param.IfType = 0; in emlxs_sli4_set_default_params() 218 hba->sli.sli4.param.SliFamily = 0; in emlxs_sli4_set_default_params() 219 hba->sli.sli4.param.Revision = 0x4; /* SLI4 */ in emlxs_sli4_set_default_params() 220 hba->sli.sli4.param.FT = 0; in emlxs_sli4_set_default_params() 222 hba->sli.sli4.param.EqeCntMethod = 0x1; /* Bit pattern */ in emlxs_sli4_set_default_params() 223 hba->sli.sli4.param.EqPageSize = 0x1; /* 4096 */ in emlxs_sli4_set_default_params() [all …]
|
H A D | emlxs_sli3.c | 237 hba->sli.sli3.hc_copy = 0; in emlxs_sli3_online() 299 (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_sli3_online() 301 (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.csr_acc_handle) in emlxs_sli3_online() 1054 hba->sli.sli3.ring_count = MAX_RINGS; in emlxs_sli3_online() 1064 cp->iopath = (void *)&hba->sli.sli3.ring[i]; in emlxs_sli3_online() 1073 for (i = 0; i < (uint32_t)hba->sli.sli3.ring_count; i++) { in emlxs_sli3_online() 1077 rp = &hba->sli.sli3.ring[i]; in emlxs_sli3_online() 1522 rp = &hba->sli.sli3.ring[FC_FCT_RING]; in emlxs_sli3_online() 1532 rp = &hba->sli.sli3.ring[FC_IP_RING]; in emlxs_sli3_online() 1541 rp = &hba->sli.sli3.ring[FC_ELS_RING]; in emlxs_sli3_online() [all …]
|
H A D | emlxs_mbox.c | 249 hba->sli.sli4.flag &= ~(EMLXS_SLI4_PHON | EMLXS_SLI4_PHWQ); in emlxs_mb_request_features() 384 hba->sli.sli4.eq[num].addr.size / SLI_PAGE_SIZE; in emlxs_mb_eq_create() 402 addr = hba->sli.sli4.eq[num].addr.phys; in emlxs_mb_eq_create() 438 switch (hba->sli.sli4.param.CQV) { in emlxs_mb_cq_create() 457 (uint8_t)hba->sli.sli4.cq[num].eqid; in emlxs_mb_cq_create() 463 addr = hba->sli.sli4.cq[num].addr.phys; in emlxs_mb_cq_create() 488 qp2->params.request.CQContext.EQId = hba->sli.sli4.cq[num].eqid; in emlxs_mb_cq_create() 501 addr = hba->sli.sli4.cq[num].addr.phys; in emlxs_mb_cq_create() 773 switch (hba->sli.sli4.param.WQV) { in emlxs_mb_wq_create() 786 addr = hba->sli.sli4.wq[num].addr.phys; in emlxs_mb_wq_create() [all …]
|
H A D | emlxs_fcf.c | 1923 FCFTable_t *fcftab = &hba->sli.sli4.fcftab; in emlxs_fcf_fini() 1927 if (!(hba->sli.sli4.flag & EMLXS_SLI4_FCF_INIT)) { in emlxs_fcf_fini() 1941 hba->sli.sli4.flag &= ~EMLXS_SLI4_FCF_INIT; in emlxs_fcf_fini() 1953 kmem_free(hba->sli.sli4.VFI_table, in emlxs_fcf_fini() 1954 (sizeof (VFIobj_t) * hba->sli.sli4.VFICount)); in emlxs_fcf_fini() 1956 hba->sli.sli4.VFI_table = NULL; in emlxs_fcf_fini() 1957 hba->sli.sli4.VFICount = 0; in emlxs_fcf_fini() 1974 rpip = hba->sli.sli4.RPIp; in emlxs_fcf_fini() 1975 for (i = 0; i < hba->sli.sli4.RPICount; i++, rpip++) { in emlxs_fcf_fini() 1983 kmem_free(hba->sli.sli4.RPIp, in emlxs_fcf_fini() [all …]
|
H A D | emlxs_mem.c | 115 seg->fc_memsize = hba->sli.sli3.mem_bpl_size; in emlxs_mem_alloc_buffer() 242 hba->sli.sli3.bpl_table = NULL; in emlxs_mem_alloc_buffer() 264 hba->sli.sli3.bpl_table = buf_info->virt; in emlxs_mem_alloc_buffer() 266 bpl_table = (MATCHMAP**)hba->sli.sli3.bpl_table; in emlxs_mem_alloc_buffer() 315 rp = &hba->sli.sli3.ring[j]; in emlxs_mem_free_buffer() 384 if (hba->sli.sli3.bpl_table) { in emlxs_mem_free_buffer() 386 bpl_table = (MATCHMAP**)hba->sli.sli3.bpl_table; in emlxs_mem_free_buffer() 395 buf_info->virt = hba->sli.sli3.bpl_table; in emlxs_mem_free_buffer() 397 hba->sli.sli3.bpl_table = NULL; in emlxs_mem_free_buffer() 1562 hbq = &hba->sli.sli3.hbq_table[hbq_id]; in emlxs_hbq_alloc()
|
H A D | emlxs_solaris.c | 5243 hba->sli.sli4.flag |= EMLXS_SLI4_HW_ERROR; in emlxs_fca_port_manage() 5338 addr = hba->sli.sli4.bar1_addr + offset; in emlxs_fca_port_manage() 5346 hba->sli.sli4.bar1_acc_handle); in emlxs_fca_port_manage() 5361 hba->sli.sli4.bar2_addr + offset); in emlxs_fca_port_manage() 5368 hba->sli.sli4.bar2_acc_handle); in emlxs_fca_port_manage() 5375 WRITE_BAR1_REG(hba, hba->sli.sli4.bar1_addr + in emlxs_fca_port_manage() 5380 hba->sli.sli4.bar1_acc_handle); in emlxs_fca_port_manage() 5387 WRITE_BAR2_REG(hba, hba->sli.sli4.bar2_addr + in emlxs_fca_port_manage() 5392 hba->sli.sli4.bar2_acc_handle); in emlxs_fca_port_manage() 5403 bcopy((caddr_t)hba->sli.sli4.bootstrapmb.virt, in emlxs_fca_port_manage() [all …]
|
H A D | emlxs_download.c | 2254 (volatile uint32_t *)((volatile char *)hba->sli.sli3.slim_addr + in emlxs_cfl_download() 2258 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_cfl_download() 2419 bzero(hba->sli.sli4.dump_region.virt, in emlxs_format_dump() 2420 hba->sli.sli4.dump_region.size); in emlxs_format_dump() 2430 hba->sli.sli4.dump_region.size); in emlxs_format_dump() 2432 PADDR_HI(hba->sli.sli4.dump_region.phys); in emlxs_format_dump() 2434 PADDR_LO(hba->sli.sli4.dump_region.phys); in emlxs_format_dump() 2553 ((volatile char *)hba->sli.sli3.slim_addr + in emlxs_start_abs_download() 2575 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_start_abs_download() 3232 ((volatile char *)hba->sli.sli3.slim_addr + in emlxs_start_rel_download() [all …]
|
H A D | emlxs_ip.c | 316 rp = &hba->sli.sli3.ring[cp->channelno]; 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()
|
H A D | emlxs_dfc.c | 3436 vres->vpi_max = min(hba->sli.sli4.VPICount, MAX_VPORTS) - 1; in emlxs_dfc_npiv_resource() 3446 vres->rpi_max = hba->sli.sli4.RPICount; in emlxs_dfc_npiv_resource() 6610 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.sbus_flash_acc_handle) in emlxs_dfc_write_flash() 6687 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.sbus_flash_acc_handle) in emlxs_dfc_read_flash() 7293 slim = (uint8_t *)hba->sli.sli3.slim2.virt + offset; in emlxs_dfc_read_mem() 7296 slim = (uint8_t *)hba->sli.sli3.slim_addr + offset; in emlxs_dfc_read_mem() 7303 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_dfc_read_mem() 7375 slim = (uint8_t *)hba->sli.sli3.slim2.virt + offset; in emlxs_dfc_write_mem() 7378 slim = (uint8_t *)hba->sli.sli3.slim_addr + offset; in emlxs_dfc_write_mem() 7385 if (emlxs_fm_check_acc_handle(hba, hba->sli.sli3.slim_acc_handle) in emlxs_dfc_write_mem() [all …]
|
H A D | emlxs_hba.c | 1292 bcopy((uint8_t *)fcoelist, (uint8_t *)&hba->sli.sli4.cfgFCOE, in emlxs_parse_fcoe() 1308 bcopy((uint8_t *)fcflist, (uint8_t *)&hba->sli.sli4.cfgFCF, in emlxs_parse_fcoe() 1312 entry_count = (hba->sli.sli4.cfgFCF.length * in emlxs_parse_fcoe() 1319 flags = *(uint32_t *)&hba->sli.sli4.cfgFCF.entry[i]; in emlxs_parse_fcoe() 1321 hba->sli.sli4.cfgFCF.entry[i].FabricName); in emlxs_parse_fcoe() 1323 hba->sli.sli4.cfgFCF.entry[i].SwitchName); in emlxs_parse_fcoe()
|
H A D | emlxs_dump.c | 754 (ByteCountRem < hba->sli.sli4.dump_region.size) ? in emlxs_read_cfg_region() 755 ByteCountRem : hba->sli.sli4.dump_region.size; in emlxs_read_cfg_region() 758 bzero(hba->sli.sli4.dump_region.virt, in emlxs_read_cfg_region() 759 hba->sli.sli4.dump_region.size); in emlxs_read_cfg_region() 770 PADDR_HI(hba->sli.sli4.dump_region.phys); in emlxs_read_cfg_region() 772 PADDR_LO(hba->sli.sli4.dump_region.phys); in emlxs_read_cfg_region() 805 bcopy((uint8_t *)hba->sli.sli4.dump_region.virt, in emlxs_read_cfg_region()
|
H A D | emlxs_fcp.c | 2004 EMLXS_CHK_ACC_HANDLE(hba, hba->sli.sli3.sbus_csr_handle); in emlxs_offline() 2421 rp = &hba->sli.sli3. in emlxs_tx_channel_flush() 2672 rp = &hba->sli.sli3.ring[ch]; in emlxs_tx_node_flush() 2976 rp = &hba->sli.sli3.ring[ch]; in emlxs_tx_lun_flush() 3627 rp = &hba->sli.sli3.ring[ch]; in emlxs_tx_move()
|
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd.c | 886 sbd_swap_lu_info_1_0(sbd_lu_info_1_0_t *sli) in sbd_swap_lu_info_1_0() argument 888 sbd_swap_section_hdr(&sli->sli_sms_header); in sbd_swap_lu_info_1_0() 889 if (sli->sli_data_order == SMS_DATA_ORDER) in sbd_swap_lu_info_1_0() 891 sli->sli_sms_header.sms_chksum += SMS_DATA_ORDER - sli->sli_data_order; in sbd_swap_lu_info_1_0() 892 sli->sli_data_order = SMS_DATA_ORDER; in sbd_swap_lu_info_1_0() 893 sli->sli_total_store_size = BSWAP_64(sli->sli_total_store_size); in sbd_swap_lu_info_1_0() 894 sli->sli_total_meta_size = BSWAP_64(sli->sli_total_meta_size); in sbd_swap_lu_info_1_0() 895 sli->sli_lu_data_offset = BSWAP_64(sli->sli_lu_data_offset); in sbd_swap_lu_info_1_0() 896 sli->sli_lu_data_size = BSWAP_64(sli->sli_lu_data_size); in sbd_swap_lu_info_1_0() 897 sli->sli_flags = BSWAP_32(sli->sli_flags); in sbd_swap_lu_info_1_0() [all …]
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_fc.h | 1160 ((_hba)->sli.sli3.ha_reg_addr)) 1164 ((_hba)->sli.sli3.ca_reg_addr)) 1168 ((_hba)->sli.sli3.hs_reg_addr)) 1172 ((_hba)->sli.sli3.hc_reg_addr)) 1176 ((_hba)->sli.sli3.bc_reg_addr)) 1181 ((_hba)->sli.sli3.shc_reg_addr)) 1185 ((_hba)->sli.sli3.shs_reg_addr)) 1189 ((_hba)->sli.sli3.shu_reg_addr)) 1193 ((_hba)->sli.sli4.MPUEPSemaphore_reg_addr)) 1197 ((_hba)->sli.sli4.MBDB_reg_addr)) [all …]
|