Lines Matching refs:un

145 	mb->un.varDmp.type = DMP_NV_PARAMS;  in lpfc_dump_static_vport()
146 mb->un.varDmp.entry_index = offset; in lpfc_dump_static_vport()
147 mb->un.varDmp.region_id = DMP_REGION_VPORT; in lpfc_dump_static_vport()
152 mb->un.varDmp.cv = 1; in lpfc_dump_static_vport()
153 mb->un.varDmp.word_cnt = DMP_RSP_SIZE/sizeof(uint32_t); in lpfc_dump_static_vport()
166 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_dump_static_vport()
167 mb->un.varWords[4] = putPaddrHigh(mp->phys); in lpfc_dump_static_vport()
168 mb->un.varDmp.sli4_length = sizeof(struct static_vport_info); in lpfc_dump_static_vport()
213 mb->un.varDmp.cv = 1; in lpfc_dump_mem()
214 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_mem()
215 mb->un.varDmp.entry_index = offset; in lpfc_dump_mem()
216 mb->un.varDmp.region_id = region_id; in lpfc_dump_mem()
217 mb->un.varDmp.word_cnt = (DMP_RSP_SIZE / sizeof (uint32_t)); in lpfc_dump_mem()
218 mb->un.varDmp.co = 0; in lpfc_dump_mem()
219 mb->un.varDmp.resp_offset = 0; in lpfc_dump_mem()
243 mb->un.varDmp.cv = 1; in lpfc_dump_wakeup_param()
244 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_wakeup_param()
246 mb->un.varDmp.entry_index = 0; in lpfc_dump_wakeup_param()
247 mb->un.varDmp.region_id = WAKE_UP_PARMS_REGION_ID; in lpfc_dump_wakeup_param()
248 mb->un.varDmp.word_cnt = WAKE_UP_PARMS_WORD_SIZE; in lpfc_dump_wakeup_param()
249 mb->un.varDmp.co = 0; in lpfc_dump_wakeup_param()
250 mb->un.varDmp.resp_offset = 0; in lpfc_dump_wakeup_param()
299 mb->un.varCfgAsyncEvent.ring = ring; in lpfc_config_async()
361 mb->un.varReadTop.lilpBde64.tus.f.bdeSize = LPFC_ALPA_MAP_SIZE; in lpfc_read_topology()
362 mb->un.varReadTop.lilpBde64.addrHigh = putPaddrHigh(mp->phys); in lpfc_read_topology()
363 mb->un.varReadTop.lilpBde64.addrLow = putPaddrLow(mp->phys); in lpfc_read_topology()
396 mb->un.varClearLA.eventTag = phba->fc_eventTag; in lpfc_clear_la()
427 mb->un.varCfgLnk.cr = 1; in lpfc_config_link()
428 mb->un.varCfgLnk.ci = 1; in lpfc_config_link()
429 mb->un.varCfgLnk.cr_delay = phba->cfg_cr_delay; in lpfc_config_link()
430 mb->un.varCfgLnk.cr_count = phba->cfg_cr_count; in lpfc_config_link()
433 mb->un.varCfgLnk.myId = vport->fc_myDID; in lpfc_config_link()
434 mb->un.varCfgLnk.edtov = phba->fc_edtov; in lpfc_config_link()
435 mb->un.varCfgLnk.arbtov = phba->fc_arbtov; in lpfc_config_link()
436 mb->un.varCfgLnk.ratov = phba->fc_ratov; in lpfc_config_link()
437 mb->un.varCfgLnk.rttov = phba->fc_rttov; in lpfc_config_link()
438 mb->un.varCfgLnk.altov = phba->fc_altov; in lpfc_config_link()
439 mb->un.varCfgLnk.crtov = phba->fc_crtov; in lpfc_config_link()
440 mb->un.varCfgLnk.cscn = 0; in lpfc_config_link()
442 mb->un.varCfgLnk.cscn = 1; in lpfc_config_link()
443 mb->un.varCfgLnk.bbscn = bf_get(lpfc_bbscn_def, in lpfc_config_link()
448 mb->un.varCfgLnk.ack0_enable = 1; in lpfc_config_link()
501 mb->un.varCfgMSI.attentionConditions[0] = attentionConditions[0]; in lpfc_config_msi()
502 mb->un.varCfgMSI.attentionConditions[1] = attentionConditions[1]; in lpfc_config_msi()
509 mb->un.varCfgMSI.messageNumberByHA[HA_R0_POS] = 1; in lpfc_config_msi()
511 mb->un.varCfgMSI.messageNumberByHA[HA_R1_POS] = 1; in lpfc_config_msi()
514 mb->un.varCfgMSI.messageNumberByHA[HA_R0_POS^3] = 1; in lpfc_config_msi()
516 mb->un.varCfgMSI.messageNumberByHA[HA_R1_POS^3] = 1; in lpfc_config_msi()
519 mb->un.varCfgMSI.autoClearHA[0] = attentionConditions[0]; in lpfc_config_msi()
520 mb->un.varCfgMSI.autoClearHA[1] = attentionConditions[1]; in lpfc_config_msi()
523 mb->un.varCfgMSI.autoClearHA[0] = 0; in lpfc_config_msi()
524 mb->un.varCfgMSI.autoClearHA[1] = 0; in lpfc_config_msi()
559 mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_LOOP; in lpfc_init_link()
560 mb->un.varInitLnk.link_flags |= FLAGS_TOPOLOGY_FAILOVER; in lpfc_init_link()
563 mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_PT_PT; in lpfc_init_link()
566 mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_LOOP; in lpfc_init_link()
569 mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_PT_PT; in lpfc_init_link()
570 mb->un.varInitLnk.link_flags |= FLAGS_TOPOLOGY_FAILOVER; in lpfc_init_link()
573 mb->un.varInitLnk.link_flags = FLAGS_LOCAL_LB; in lpfc_init_link()
581 mb->un.varInitLnk.link_flags & FLAGS_TOPOLOGY_MODE_LOOP) { in lpfc_init_link()
582 mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_PT_PT; in lpfc_init_link()
588 mb->un.varInitLnk.link_flags |= FLAGS_IMED_ABORT; in lpfc_init_link()
597 mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; in lpfc_init_link()
598 mb->un.varInitLnk.link_speed = LINK_SPEED_1G; in lpfc_init_link()
601 mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; in lpfc_init_link()
602 mb->un.varInitLnk.link_speed = LINK_SPEED_2G; in lpfc_init_link()
605 mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; in lpfc_init_link()
606 mb->un.varInitLnk.link_speed = LINK_SPEED_4G; in lpfc_init_link()
609 mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; in lpfc_init_link()
610 mb->un.varInitLnk.link_speed = LINK_SPEED_8G; in lpfc_init_link()
613 mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; in lpfc_init_link()
614 mb->un.varInitLnk.link_speed = LINK_SPEED_10G; in lpfc_init_link()
617 mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; in lpfc_init_link()
618 mb->un.varInitLnk.link_speed = LINK_SPEED_16G; in lpfc_init_link()
621 mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; in lpfc_init_link()
622 mb->un.varInitLnk.link_speed = LINK_SPEED_32G; in lpfc_init_link()
625 mb->un.varInitLnk.link_flags |= FLAGS_LINK_SPEED; in lpfc_init_link()
626 mb->un.varInitLnk.link_speed = LINK_SPEED_64G; in lpfc_init_link()
630 mb->un.varInitLnk.link_speed = LINK_SPEED_AUTO; in lpfc_init_link()
636 mb->un.varInitLnk.link_speed = LINK_SPEED_AUTO; in lpfc_init_link()
640 mb->un.varInitLnk.fabric_AL_PA = phba->fc_pref_ALPA; in lpfc_init_link()
686 mb->un.varRdSparm.un.sp64.tus.f.bdeSize = sizeof (struct serv_parm); in lpfc_read_sparam()
687 mb->un.varRdSparm.un.sp64.addrHigh = putPaddrHigh(mp->phys); in lpfc_read_sparam()
688 mb->un.varRdSparm.un.sp64.addrLow = putPaddrLow(mp->phys); in lpfc_read_sparam()
690 mb->un.varRdSparm.vpi = phba->vpi_ids[vpi]; in lpfc_read_sparam()
719 mb->un.varUnregDID.did = did; in lpfc_unreg_did()
720 mb->un.varUnregDID.vpi = vpi; in lpfc_unreg_did()
723 mb->un.varUnregDID.vpi = phba->vpi_ids[vpi]; in lpfc_unreg_did()
816 mb->un.varRegLogin.rpi = 0; in lpfc_reg_rpi()
818 mb->un.varRegLogin.rpi = phba->sli4_hba.rpi_ids[rpi]; in lpfc_reg_rpi()
820 mb->un.varRegLogin.vpi = phba->vpi_ids[vpi]; in lpfc_reg_rpi()
821 mb->un.varRegLogin.did = did; in lpfc_reg_rpi()
842 mb->un.varRegLogin.un.sp64.tus.f.bdeSize = sizeof (struct serv_parm); in lpfc_reg_rpi()
843 mb->un.varRegLogin.un.sp64.addrHigh = putPaddrHigh(mp->phys); in lpfc_reg_rpi()
844 mb->un.varRegLogin.un.sp64.addrLow = putPaddrLow(mp->phys); in lpfc_reg_rpi()
875 mb->un.varUnregLogin.rpi = rpi; in lpfc_unreg_login()
876 mb->un.varUnregLogin.rsvd1 = 0; in lpfc_unreg_login()
878 mb->un.varUnregLogin.vpi = phba->vpi_ids[vpi]; in lpfc_unreg_login()
911 mbox->u.mb.un.varUnregLogin.rsvd1 = 0x4000; in lpfc_sli4_unreg_all_rpis()
946 mb->un.varRegVpi.upd = 1; in lpfc_reg_vpi()
948 mb->un.varRegVpi.vpi = phba->vpi_ids[vport->vpi]; in lpfc_reg_vpi()
949 mb->un.varRegVpi.sid = vport->fc_myDID; in lpfc_reg_vpi()
951 mb->un.varRegVpi.vfi = phba->sli4_hba.vfi_ids[vport->vfi]; in lpfc_reg_vpi()
953 mb->un.varRegVpi.vfi = vport->vfi + vport->phba->vfi_base; in lpfc_reg_vpi()
954 memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname, in lpfc_reg_vpi()
956 mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]); in lpfc_reg_vpi()
957 mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]); in lpfc_reg_vpi()
988 mb->un.varUnregVpi.vpi = phba->vpi_ids[vpi]; in lpfc_unreg_vpi()
990 mb->un.varUnregVpi.sli4_vpi = phba->vpi_ids[vpi]; in lpfc_unreg_vpi()
1084 mb->un.varRdRev.cv = 1; in lpfc_read_rev()
1085 mb->un.varRdRev.v3req = 1; /* Request SLI3 info */ in lpfc_read_rev()
1100 lpfc_sli_pcimem_bcopy(mqe->un.read_rev.fw_name, in lpfc_sli4_swap_str()
1101 mqe->un.read_rev.fw_name, 16); in lpfc_sli4_swap_str()
1102 lpfc_sli_pcimem_bcopy(mqe->un.read_rev.ulp_fw_name, in lpfc_sli4_swap_str()
1103 mqe->un.read_rev.ulp_fw_name, 16); in lpfc_sli4_swap_str()
1196 struct config_hbq_var *hbqmb = &mb->un.varCfgHbq; in lpfc_config_hbq()
1276 mb->un.varCfgRing.ring = ring; in lpfc_config_ring()
1277 mb->un.varCfgRing.maxOrigXchg = 0; in lpfc_config_ring()
1278 mb->un.varCfgRing.maxRespXchg = 0; in lpfc_config_ring()
1279 mb->un.varCfgRing.recvNotify = 1; in lpfc_config_ring()
1283 mb->un.varCfgRing.numMask = pring->num_mask; in lpfc_config_ring()
1289 mb->un.varCfgRing.profile = pring->prt[0].profile; in lpfc_config_ring()
1295 mb->un.varCfgRing.rrRegs[i].rval = pring->prt[i].rctl; in lpfc_config_ring()
1296 if (mb->un.varCfgRing.rrRegs[i].rval != FC_RCTL_ELS_REQ) in lpfc_config_ring()
1297 mb->un.varCfgRing.rrRegs[i].rmask = 0xff; in lpfc_config_ring()
1299 mb->un.varCfgRing.rrRegs[i].rmask = 0xfe; in lpfc_config_ring()
1300 mb->un.varCfgRing.rrRegs[i].tval = pring->prt[i].type; in lpfc_config_ring()
1301 mb->un.varCfgRing.rrRegs[i].tmask = 0xff; in lpfc_config_ring()
1337 mb->un.varCfgPort.pcbLen = sizeof(PCB_t); in lpfc_config_port()
1341 mb->un.varCfgPort.pcbLow = putPaddrLow(pdma_addr); in lpfc_config_port()
1342 mb->un.varCfgPort.pcbHigh = putPaddrHigh(pdma_addr); in lpfc_config_port()
1345 mb->un.varCfgPort.hps = 1; in lpfc_config_port()
1351 mb->un.varCfgPort.cbg = 1; /* configure BlockGuard */ in lpfc_config_port()
1352 mb->un.varCfgPort.cerbm = 1; /* Request HBQs */ in lpfc_config_port()
1353 mb->un.varCfgPort.ccrp = 1; /* Command Ring Polling */ in lpfc_config_port()
1354 mb->un.varCfgPort.max_hbq = lpfc_sli_hbq_count(); in lpfc_config_port()
1357 mb->un.varCfgPort.max_vpi = LPFC_MAX_VPI; in lpfc_config_port()
1358 mb->un.varCfgPort.cmv = 1; in lpfc_config_port()
1360 mb->un.varCfgPort.max_vpi = phba->max_vpi = 0; in lpfc_config_port()
1363 mb->un.varCfgPort.sli_mode = phba->sli_rev; in lpfc_config_port()
1367 mb->un.varCfgPort.casabt = 1; in lpfc_config_port()
1441 mb->un.varCfgPort.hps = 1; in lpfc_config_port()
1487 memcpy(&mb->un.varCfgPort.hbainit, hbainit, 20); in lpfc_config_port()
1743 &mbox->u.mqe.un.nembed_cmd; in lpfc_sli4_mbx_sge_set()
1765 &mbox->u.mqe.un.nembed_cmd; in lpfc_sli4_mbx_sge_get()
1788 sli4_cfg = &mbox->u.mqe.un.sli4_config; in lpfc_sli4_mbox_cmd_free()
1850 sli4_config = &mbox->u.mqe.un.sli4_config; in lpfc_sli4_config()
1964 &mbox->u.mqe.un.alloc_rsrc_extents.u.req, in lpfc_sli4_mbox_rsrc_extent()
1981 &mbox->u.mqe.un.alloc_rsrc_extents.u.req, in lpfc_sli4_mbox_rsrc_extent()
2020 sli4_cfg = &mbox->u.mqe.un.sli4_config; in lpfc_sli_config_mbox_subsys_get()
2024 cfg_shdr = &mbox->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli_config_mbox_subsys_get()
2053 sli4_cfg = &mbox->u.mqe.un.sli4_config; in lpfc_sli_config_mbox_opcode_get()
2057 cfg_shdr = &mbox->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli_config_mbox_opcode_get()
2142 bf_set(lpfc_mbx_rq_ftr_rq_fcpi, &mboxq->u.mqe.un.req_ftrs, 1); in lpfc_request_features()
2143 bf_set(lpfc_mbx_rq_ftr_rq_perfh, &mboxq->u.mqe.un.req_ftrs, 1); in lpfc_request_features()
2147 bf_set(lpfc_mbx_rq_ftr_rq_dif, &mboxq->u.mqe.un.req_ftrs, 1); in lpfc_request_features()
2151 bf_set(lpfc_mbx_rq_ftr_rq_npiv, &mboxq->u.mqe.un.req_ftrs, 1); in lpfc_request_features()
2154 bf_set(lpfc_mbx_rq_ftr_rq_mrqp, &mboxq->u.mqe.un.req_ftrs, 1); in lpfc_request_features()
2156 bf_set(lpfc_mbx_rq_ftr_rq_iaab, &mboxq->u.mqe.un.req_ftrs, 0); in lpfc_request_features()
2157 bf_set(lpfc_mbx_rq_ftr_rq_iaar, &mboxq->u.mqe.un.req_ftrs, 0); in lpfc_request_features()
2162 bf_set(lpfc_mbx_rq_ftr_rq_ashdr, &mboxq->u.mqe.un.req_ftrs, 1); in lpfc_request_features()
2186 init_vfi = &mbox->u.mqe.un.init_vfi; in lpfc_init_vfi()
2218 reg_vfi = &mbox->u.mqe.un.reg_vfi; in lpfc_reg_vfi()
2295 bf_set(lpfc_init_vpi_vpi, &mbox->u.mqe.un.init_vpi, in lpfc_init_vpi()
2297 bf_set(lpfc_init_vpi_vfi, &mbox->u.mqe.un.init_vpi, in lpfc_init_vpi()
2317 bf_set(lpfc_unreg_vfi_vfi, &mbox->u.mqe.un.unreg_vfi, in lpfc_unreg_vfi()
2348 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_sli4_dump_cfg_rg23()
2349 mb->un.varDmp.region_id = DMP_REGION_23; in lpfc_sli4_dump_cfg_rg23()
2350 mb->un.varDmp.sli4_length = DMP_RGN23_SIZE; in lpfc_sli4_dump_cfg_rg23()
2352 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_sli4_dump_cfg_rg23()
2353 mb->un.varWords[4] = putPaddrHigh(mp->phys); in lpfc_sli4_dump_cfg_rg23()
2368 memcpy(&rdp_context->link_stat, &mb->un.varRdLnk, sizeof(READ_LNK_VAR)); in lpfc_mbx_cmpl_rdp_link_stat()
2430 &mbox->u.mqe.un.mem_dump_type3, DMP_LMSD); in lpfc_mbx_cmpl_rdp_page_a0()
2432 &mbox->u.mqe.un.mem_dump_type3, phba->sli4_hba.physical_port); in lpfc_mbx_cmpl_rdp_page_a0()
2434 &mbox->u.mqe.un.mem_dump_type3, DMP_PAGE_A2); in lpfc_mbx_cmpl_rdp_page_a0()
2436 &mbox->u.mqe.un.mem_dump_type3, DMP_SFF_PAGE_A2_SIZE); in lpfc_mbx_cmpl_rdp_page_a0()
2437 mbox->u.mqe.un.mem_dump_type3.addr_lo = putPaddrLow(mp->phys); in lpfc_mbx_cmpl_rdp_page_a0()
2438 mbox->u.mqe.un.mem_dump_type3.addr_hi = putPaddrHigh(mp->phys); in lpfc_mbx_cmpl_rdp_page_a0()
2479 &mbox->u.mqe.un.mem_dump_type3, DMP_LMSD); in lpfc_sli4_dump_page_a0()
2481 &mbox->u.mqe.un.mem_dump_type3, phba->sli4_hba.physical_port); in lpfc_sli4_dump_page_a0()
2483 &mbox->u.mqe.un.mem_dump_type3, DMP_PAGE_A0); in lpfc_sli4_dump_page_a0()
2485 &mbox->u.mqe.un.mem_dump_type3, DMP_SFF_PAGE_A0_SIZE); in lpfc_sli4_dump_page_a0()
2488 mbox->u.mqe.un.mem_dump_type3.addr_lo = putPaddrLow(mp->phys); in lpfc_sli4_dump_page_a0()
2489 mbox->u.mqe.un.mem_dump_type3.addr_hi = putPaddrHigh(mp->phys); in lpfc_sli4_dump_page_a0()
2513 reg_fcfi = &mbox->u.mqe.un.reg_fcfi; in lpfc_reg_fcfi()
2585 reg_fcfi = &mbox->u.mqe.un.reg_fcfi_mrq; in lpfc_reg_fcfi_mrq()
2638 bf_set(lpfc_unreg_fcfi, &mbox->u.mqe.un.unreg_fcfi, fcfi); in lpfc_unreg_fcfi()
2656 resume_rpi = &mbox->u.mqe.un.resume_rpi; in lpfc_resume_rpi()