Lines Matching refs:iocmd
28 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_enable() local
35 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_enable()
41 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_enable()
51 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_disable() local
57 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_disable()
73 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_disable()
82 struct bfa_bsg_ioc_info_s *iocmd = (struct bfa_bsg_ioc_info_s *)cmd; in bfad_iocmd_ioc_get_info() local
89 iocmd->nwwn = pattr.nwwn; in bfad_iocmd_ioc_get_info()
90 iocmd->pwwn = pattr.pwwn; in bfad_iocmd_ioc_get_info()
91 iocmd->ioc_type = bfa_get_type(&bfad->bfa); in bfad_iocmd_ioc_get_info()
92 iocmd->mac = bfa_get_mac(&bfad->bfa); in bfad_iocmd_ioc_get_info()
93 iocmd->factory_mac = bfa_get_mfg_mac(&bfad->bfa); in bfad_iocmd_ioc_get_info()
94 bfa_get_adapter_serial_num(&bfad->bfa, iocmd->serialnum); in bfad_iocmd_ioc_get_info()
95 iocmd->factorynwwn = pattr.factorynwwn; in bfad_iocmd_ioc_get_info()
96 iocmd->factorypwwn = pattr.factorypwwn; in bfad_iocmd_ioc_get_info()
97 iocmd->bfad_num = bfad->inst_no; in bfad_iocmd_ioc_get_info()
99 iocmd->host = im_port->shost->host_no; in bfad_iocmd_ioc_get_info()
102 strcpy(iocmd->name, bfad->adapter_name); in bfad_iocmd_ioc_get_info()
103 strcpy(iocmd->port_name, bfad->port_name); in bfad_iocmd_ioc_get_info()
104 strcpy(iocmd->hwpath, bfad->pci_name); in bfad_iocmd_ioc_get_info()
107 strcpy(iocmd->adapter_hwpath, bfad->pci_name); in bfad_iocmd_ioc_get_info()
108 for (i = 0; iocmd->adapter_hwpath[i] != ':' && i < BFA_STRING_32; i++) in bfad_iocmd_ioc_get_info()
110 for (; iocmd->adapter_hwpath[++i] != ':' && i < BFA_STRING_32; ) in bfad_iocmd_ioc_get_info()
112 iocmd->adapter_hwpath[i] = '\0'; in bfad_iocmd_ioc_get_info()
113 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_info()
120 struct bfa_bsg_ioc_attr_s *iocmd = (struct bfa_bsg_ioc_attr_s *)cmd; in bfad_iocmd_ioc_get_attr() local
124 bfa_ioc_get_attr(&bfad->bfa.ioc, &iocmd->ioc_attr); in bfad_iocmd_ioc_get_attr()
128 strcpy(iocmd->ioc_attr.driver_attr.driver, BFAD_DRIVER_NAME); in bfad_iocmd_ioc_get_attr()
129 strncpy(iocmd->ioc_attr.driver_attr.driver_ver, in bfad_iocmd_ioc_get_attr()
131 strcpy(iocmd->ioc_attr.driver_attr.fw_ver, in bfad_iocmd_ioc_get_attr()
132 iocmd->ioc_attr.adapter_attr.fw_ver); in bfad_iocmd_ioc_get_attr()
133 strcpy(iocmd->ioc_attr.driver_attr.bios_ver, in bfad_iocmd_ioc_get_attr()
134 iocmd->ioc_attr.adapter_attr.optrom_ver); in bfad_iocmd_ioc_get_attr()
137 memcpy(bfad->pci_attr.chip_rev, iocmd->ioc_attr.pci_attr.chip_rev, in bfad_iocmd_ioc_get_attr()
139 memcpy(&iocmd->ioc_attr.pci_attr, &bfad->pci_attr, in bfad_iocmd_ioc_get_attr()
142 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_attr()
149 struct bfa_bsg_ioc_stats_s *iocmd = (struct bfa_bsg_ioc_stats_s *)cmd; in bfad_iocmd_ioc_get_stats() local
151 bfa_ioc_get_stats(&bfad->bfa, &iocmd->ioc_stats); in bfad_iocmd_ioc_get_stats()
152 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_stats()
160 struct bfa_bsg_ioc_fwstats_s *iocmd = in bfad_iocmd_ioc_get_fwstats() local
168 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_ioc_get_fwstats()
172 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_ioc_fwstats_s); in bfad_iocmd_ioc_get_fwstats()
174 iocmd->status = bfa_ioc_fw_stats_get(&bfad->bfa.ioc, iocmd_bufptr); in bfad_iocmd_ioc_get_fwstats()
177 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_ioc_get_fwstats()
178 bfa_trc(bfad, iocmd->status); in bfad_iocmd_ioc_get_fwstats()
189 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_reset_stats() local
194 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_reset_stats()
197 iocmd->status = bfa_ioc_fw_stats_clear(&bfad->bfa.ioc); in bfad_iocmd_ioc_reset_stats()
207 struct bfa_bsg_ioc_name_s *iocmd = (struct bfa_bsg_ioc_name_s *) cmd; in bfad_iocmd_ioc_set_name() local
210 strcpy(bfad->adapter_name, iocmd->name); in bfad_iocmd_ioc_set_name()
212 strcpy(bfad->port_name, iocmd->name); in bfad_iocmd_ioc_set_name()
214 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_set_name()
221 struct bfa_bsg_iocfc_attr_s *iocmd = (struct bfa_bsg_iocfc_attr_s *)cmd; in bfad_iocmd_iocfc_get_attr() local
223 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_iocfc_get_attr()
224 bfa_iocfc_get_attr(&bfad->bfa, &iocmd->iocfc_attr); in bfad_iocmd_iocfc_get_attr()
232 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_fw_sig_inv() local
236 iocmd->status = bfa_ioc_fwsig_invalidate(&bfad->bfa.ioc); in bfad_iocmd_ioc_fw_sig_inv()
244 struct bfa_bsg_iocfc_intr_s *iocmd = (struct bfa_bsg_iocfc_intr_s *)cmd; in bfad_iocmd_iocfc_set_intr() local
248 iocmd->status = bfa_iocfc_israttr_set(&bfad->bfa, &iocmd->attr); in bfad_iocmd_iocfc_set_intr()
257 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_enable() local
263 iocmd->status = bfa_port_enable(&bfad->bfa.modules.port, in bfad_iocmd_port_enable()
266 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_enable()
267 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_enable()
271 iocmd->status = fcomp.status; in bfad_iocmd_port_enable()
278 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_disable() local
284 iocmd->status = bfa_port_disable(&bfad->bfa.modules.port, in bfad_iocmd_port_disable()
288 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_disable()
289 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_disable()
293 iocmd->status = fcomp.status; in bfad_iocmd_port_disable()
300 struct bfa_bsg_port_attr_s *iocmd = (struct bfa_bsg_port_attr_s *)cmd; in bfad_iocmd_port_get_attr() local
305 bfa_fcport_get_attr(&bfad->bfa, &iocmd->attr); in bfad_iocmd_port_get_attr()
309 if (iocmd->attr.topology != BFA_PORT_TOPOLOGY_NONE) in bfad_iocmd_port_get_attr()
310 iocmd->attr.pid = port_attr.pid; in bfad_iocmd_port_get_attr()
312 iocmd->attr.pid = 0; in bfad_iocmd_port_get_attr()
314 iocmd->attr.port_type = port_attr.port_type; in bfad_iocmd_port_get_attr()
315 iocmd->attr.loopback = port_attr.loopback; in bfad_iocmd_port_get_attr()
316 iocmd->attr.authfail = port_attr.authfail; in bfad_iocmd_port_get_attr()
317 strncpy(iocmd->attr.port_symname.symname, in bfad_iocmd_port_get_attr()
321 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_port_get_attr()
329 struct bfa_bsg_port_stats_s *iocmd = (struct bfa_bsg_port_stats_s *)cmd; in bfad_iocmd_port_get_stats() local
337 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_port_get_stats()
341 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_port_stats_s); in bfad_iocmd_port_get_stats()
345 iocmd->status = bfa_port_get_stats(&bfad->bfa.modules.port, in bfad_iocmd_port_get_stats()
348 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_get_stats()
349 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_get_stats()
354 iocmd->status = fcomp.status; in bfad_iocmd_port_get_stats()
362 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_reset_stats() local
368 iocmd->status = bfa_port_clear_stats(&bfad->bfa.modules.port, in bfad_iocmd_port_reset_stats()
371 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_reset_stats()
372 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_reset_stats()
376 iocmd->status = fcomp.status; in bfad_iocmd_port_reset_stats()
381 bfad_iocmd_set_port_cfg(struct bfad_s *bfad, void *iocmd, unsigned int v_cmd) in bfad_iocmd_set_port_cfg() argument
383 struct bfa_bsg_port_cfg_s *cmd = (struct bfa_bsg_port_cfg_s *)iocmd; in bfad_iocmd_set_port_cfg()
403 struct bfa_bsg_port_cfg_maxfrsize_s *iocmd = in bfad_iocmd_port_cfg_maxfrsize() local
408 iocmd->status = bfa_fcport_cfg_maxfrsize(&bfad->bfa, iocmd->maxfrsize); in bfad_iocmd_port_cfg_maxfrsize()
417 struct bfa_bsg_bbcr_enable_s *iocmd = in bfad_iocmd_port_cfg_bbcr() local
424 rc = bfa_fcport_cfg_bbcr(&bfad->bfa, BFA_TRUE, iocmd->bb_scn); in bfad_iocmd_port_cfg_bbcr()
433 iocmd->status = rc; in bfad_iocmd_port_cfg_bbcr()
440 struct bfa_bsg_bbcr_attr_s *iocmd = (struct bfa_bsg_bbcr_attr_s *) pcmd; in bfad_iocmd_port_get_bbcr_attr() local
444 iocmd->status = in bfad_iocmd_port_get_bbcr_attr()
445 bfa_fcport_get_bbcr_attr(&bfad->bfa, &iocmd->attr); in bfad_iocmd_port_get_bbcr_attr()
456 struct bfa_bsg_lport_attr_s *iocmd = (struct bfa_bsg_lport_attr_s *)cmd; in bfad_iocmd_lport_get_attr() local
461 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_attr()
464 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_attr()
468 bfa_fcs_lport_get_attr(fcs_port, &iocmd->port_attr); in bfad_iocmd_lport_get_attr()
470 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_attr()
479 struct bfa_bsg_lport_stats_s *iocmd = in bfad_iocmd_lport_get_stats() local
485 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_stats()
488 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_stats()
492 bfa_fcs_lport_get_stats(fcs_port, &iocmd->port_stats); in bfad_iocmd_lport_get_stats()
494 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_stats()
503 struct bfa_bsg_reset_stats_s *iocmd = in bfad_iocmd_lport_reset_stats() local
512 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_lport_reset_stats()
515 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_reset_stats()
528 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_reset_stats()
537 struct bfa_bsg_lport_iostats_s *iocmd = in bfad_iocmd_lport_get_iostats() local
543 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_iostats()
546 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_iostats()
550 bfa_fcpim_port_iostats(&bfad->bfa, &iocmd->iostats, in bfad_iocmd_lport_get_iostats()
553 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_iostats()
562 struct bfa_bsg_lport_get_rports_s *iocmd = in bfad_iocmd_lport_get_rports() local
568 if (iocmd->nrports == 0) in bfad_iocmd_lport_get_rports()
573 sizeof(struct bfa_rport_qualifier_s) * iocmd->nrports) in bfad_iocmd_lport_get_rports()
575 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_lport_get_rports()
579 iocmd_bufptr = (char *)iocmd + in bfad_iocmd_lport_get_rports()
583 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_rports()
587 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_rports()
593 &iocmd->nrports); in bfad_iocmd_lport_get_rports()
595 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_rports()
603 struct bfa_bsg_rport_attr_s *iocmd = (struct bfa_bsg_rport_attr_s *)cmd; in bfad_iocmd_rport_get_attr() local
610 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_attr()
614 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_attr()
618 if (iocmd->pid) in bfad_iocmd_rport_get_attr()
620 iocmd->rpwwn, iocmd->pid); in bfad_iocmd_rport_get_attr()
622 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_attr()
626 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_attr()
630 bfa_fcs_rport_get_attr(fcs_rport, &iocmd->attr); in bfad_iocmd_rport_get_attr()
632 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_attr()
640 struct bfa_bsg_rport_scsi_addr_s *iocmd = in bfad_iocmd_rport_get_addr() local
649 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_addr()
653 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_addr()
657 fcs_itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_addr()
661 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_addr()
668 iocmd->host = drv_itnim->im_port->shost->host_no; in bfad_iocmd_rport_get_addr()
672 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_addr()
676 iocmd->target = drv_itnim->scsi_tgt_id; in bfad_iocmd_rport_get_addr()
679 iocmd->bus = 0; in bfad_iocmd_rport_get_addr()
680 iocmd->lun = 0; in bfad_iocmd_rport_get_addr()
681 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_addr()
689 struct bfa_bsg_rport_stats_s *iocmd = in bfad_iocmd_rport_get_stats() local
697 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_stats()
701 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_stats()
705 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_stats()
709 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_stats()
713 memcpy((void *)&iocmd->stats, (void *)&fcs_rport->stats, in bfad_iocmd_rport_get_stats()
716 memcpy((void *)&iocmd->stats.hal_stats, in bfad_iocmd_rport_get_stats()
722 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_stats()
730 struct bfa_bsg_rport_reset_stats_s *iocmd = in bfad_iocmd_rport_clr_stats() local
739 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_clr_stats()
742 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_clr_stats()
746 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_clr_stats()
749 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_clr_stats()
758 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_clr_stats()
766 struct bfa_bsg_rport_set_speed_s *iocmd = in bfad_iocmd_rport_set_speed() local
774 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_set_speed()
777 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_set_speed()
781 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_set_speed()
784 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_set_speed()
788 fcs_rport->rpf.assigned_speed = iocmd->speed; in bfad_iocmd_rport_set_speed()
792 bfa_rport_speed(fcs_rport->bfa_rport, iocmd->speed); in bfad_iocmd_rport_set_speed()
794 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_set_speed()
803 struct bfa_bsg_vport_attr_s *iocmd = (struct bfa_bsg_vport_attr_s *)cmd; in bfad_iocmd_vport_get_attr() local
808 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_get_attr()
811 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_get_attr()
815 bfa_fcs_vport_get_attr(fcs_vport, &iocmd->vport_attr); in bfad_iocmd_vport_get_attr()
817 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_get_attr()
826 struct bfa_bsg_vport_stats_s *iocmd = in bfad_iocmd_vport_get_stats() local
832 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_get_stats()
835 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_get_stats()
839 memcpy((void *)&iocmd->vport_stats, (void *)&fcs_vport->vport_stats, in bfad_iocmd_vport_get_stats()
841 memcpy((void *)&iocmd->vport_stats.port_stats, in bfad_iocmd_vport_get_stats()
845 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_get_stats()
854 struct bfa_bsg_reset_stats_s *iocmd = in bfad_iocmd_vport_clr_stats() local
860 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_clr_stats()
863 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_clr_stats()
870 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_clr_stats()
879 struct bfa_bsg_fabric_get_lports_s *iocmd = in bfad_iocmd_fabric_get_lports() local
882 uint32_t nports = iocmd->nports; in bfad_iocmd_fabric_get_lports()
887 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_fabric_get_lports()
893 sizeof(wwn_t[iocmd->nports])) != BFA_STATUS_OK) { in bfad_iocmd_fabric_get_lports()
894 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_fabric_get_lports()
898 iocmd_bufptr = (char *)iocmd + in bfad_iocmd_fabric_get_lports()
902 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_fabric_get_lports()
905 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_fabric_get_lports()
911 iocmd->nports = nports; in bfad_iocmd_fabric_get_lports()
912 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fabric_get_lports()
920 struct bfa_bsg_qos_bw_s *iocmd = (struct bfa_bsg_qos_bw_s *)pcmd; in bfad_iocmd_qos_set_bw() local
924 iocmd->status = bfa_fcport_set_qos_bw(&bfad->bfa, &iocmd->qos_bw); in bfad_iocmd_qos_set_bw()
933 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ratelim() local
941 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_ratelim()
951 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ratelim()
962 struct bfa_bsg_trl_speed_s *iocmd = (struct bfa_bsg_trl_speed_s *)pcmd; in bfad_iocmd_ratelim_speed() local
969 if ((iocmd->speed == BFA_PORT_SPEED_AUTO) || in bfad_iocmd_ratelim_speed()
970 (iocmd->speed > fcport->speed_sup)) { in bfad_iocmd_ratelim_speed()
971 iocmd->status = BFA_STATUS_UNSUPP_SPEED; in bfad_iocmd_ratelim_speed()
978 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_ratelim_speed()
980 fcport->cfg.trl_def_speed = iocmd->speed; in bfad_iocmd_ratelim_speed()
981 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ratelim_speed()
991 struct bfa_bsg_fcpim_s *iocmd = (struct bfa_bsg_fcpim_s *)cmd; in bfad_iocmd_cfg_fcpim() local
995 bfa_fcpim_path_tov_set(&bfad->bfa, iocmd->param); in bfad_iocmd_cfg_fcpim()
997 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_cfg_fcpim()
1004 struct bfa_bsg_fcpim_modstats_s *iocmd = in bfad_iocmd_fcpim_get_modstats() local
1013 memset((void *)&iocmd->modstats, 0, sizeof(struct bfa_itnim_iostats_s)); in bfad_iocmd_fcpim_get_modstats()
1016 bfa_fcpim_add_stats(&iocmd->modstats, &(itnim->stats)); in bfad_iocmd_fcpim_get_modstats()
1019 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_get_modstats()
1026 struct bfa_bsg_fcpim_modstatsclr_s *iocmd = in bfad_iocmd_fcpim_clr_modstats() local
1041 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_clr_modstats()
1048 struct bfa_bsg_fcpim_del_itn_stats_s *iocmd = in bfad_iocmd_fcpim_get_del_itn_stats() local
1054 memcpy((void *)&iocmd->modstats, (void *)&fcpim->del_itn_stats, in bfad_iocmd_fcpim_get_del_itn_stats()
1058 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_get_del_itn_stats()
1065 struct bfa_bsg_itnim_attr_s *iocmd = (struct bfa_bsg_itnim_attr_s *)cmd; in bfad_iocmd_itnim_get_attr() local
1071 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_attr()
1073 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_attr()
1075 iocmd->status = bfa_fcs_itnim_attr_get(fcs_port, in bfad_iocmd_itnim_get_attr()
1076 iocmd->rpwwn, &iocmd->attr); in bfad_iocmd_itnim_get_attr()
1084 struct bfa_bsg_itnim_iostats_s *iocmd = in bfad_iocmd_itnim_get_iostats() local
1092 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_iostats()
1094 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_iostats()
1097 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_iostats()
1099 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_iostats()
1101 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_get_iostats()
1103 memcpy((void *)&iocmd->iostats, (void *) in bfad_iocmd_itnim_get_iostats()
1115 struct bfa_bsg_rport_reset_stats_s *iocmd = in bfad_iocmd_itnim_reset_stats() local
1123 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_itnim_reset_stats()
1125 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_reset_stats()
1127 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_reset_stats()
1129 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_reset_stats()
1131 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_reset_stats()
1132 bfa_fcs_itnim_stats_clear(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_reset_stats()
1144 struct bfa_bsg_itnim_itnstats_s *iocmd = in bfad_iocmd_itnim_get_itnstats() local
1152 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_itnstats()
1154 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_itnstats()
1157 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_itnstats()
1159 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_itnstats()
1161 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_get_itnstats()
1162 bfa_fcs_itnim_stats_get(fcs_port, iocmd->rpwwn, in bfad_iocmd_itnim_get_itnstats()
1163 &iocmd->itnstats); in bfad_iocmd_itnim_get_itnstats()
1173 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_enable() local
1177 iocmd->status = bfa_fcport_enable(&bfad->bfa); in bfad_iocmd_fcport_enable()
1186 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_disable() local
1190 iocmd->status = bfa_fcport_disable(&bfad->bfa); in bfad_iocmd_fcport_disable()
1199 struct bfa_bsg_pcifn_cfg_s *iocmd = (struct bfa_bsg_pcifn_cfg_s *)cmd; in bfad_iocmd_ioc_get_pcifn_cfg() local
1205 iocmd->status = bfa_ablk_query(&bfad->bfa.modules.ablk, in bfad_iocmd_ioc_get_pcifn_cfg()
1206 &iocmd->pcifn_cfg, in bfad_iocmd_ioc_get_pcifn_cfg()
1209 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ioc_get_pcifn_cfg()
1213 iocmd->status = fcomp.status; in bfad_iocmd_ioc_get_pcifn_cfg()
1221 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_create() local
1227 iocmd->status = bfa_ablk_pf_create(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_create()
1228 &iocmd->pcifn_id, iocmd->port, in bfad_iocmd_pcifn_create()
1229 iocmd->pcifn_class, iocmd->bw_min, in bfad_iocmd_pcifn_create()
1230 iocmd->bw_max, bfad_hcb_comp, &fcomp); in bfad_iocmd_pcifn_create()
1232 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_create()
1236 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_create()
1244 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_delete() local
1250 iocmd->status = bfa_ablk_pf_delete(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_delete()
1251 iocmd->pcifn_id, in bfad_iocmd_pcifn_delete()
1254 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_delete()
1258 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_delete()
1266 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_bw() local
1272 iocmd->status = bfa_ablk_pf_update(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_bw()
1273 iocmd->pcifn_id, iocmd->bw_min, in bfad_iocmd_pcifn_bw()
1274 iocmd->bw_max, bfad_hcb_comp, &fcomp); in bfad_iocmd_pcifn_bw()
1276 bfa_trc(bfad, iocmd->status); in bfad_iocmd_pcifn_bw()
1277 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_bw()
1281 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_bw()
1282 bfa_trc(bfad, iocmd->status); in bfad_iocmd_pcifn_bw()
1290 struct bfa_bsg_adapter_cfg_mode_s *iocmd = in bfad_iocmd_adapter_cfg_mode() local
1297 iocmd->status = bfa_ablk_adapter_config(&bfad->bfa.modules.ablk, in bfad_iocmd_adapter_cfg_mode()
1298 iocmd->cfg.mode, iocmd->cfg.max_pf, in bfad_iocmd_adapter_cfg_mode()
1299 iocmd->cfg.max_vf, bfad_hcb_comp, &fcomp); in bfad_iocmd_adapter_cfg_mode()
1301 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_adapter_cfg_mode()
1305 iocmd->status = fcomp.status; in bfad_iocmd_adapter_cfg_mode()
1313 struct bfa_bsg_port_cfg_mode_s *iocmd = in bfad_iocmd_port_cfg_mode() local
1320 iocmd->status = bfa_ablk_port_config(&bfad->bfa.modules.ablk, in bfad_iocmd_port_cfg_mode()
1321 iocmd->instance, iocmd->cfg.mode, in bfad_iocmd_port_cfg_mode()
1322 iocmd->cfg.max_pf, iocmd->cfg.max_vf, in bfad_iocmd_port_cfg_mode()
1325 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_port_cfg_mode()
1329 iocmd->status = fcomp.status; in bfad_iocmd_port_cfg_mode()
1337 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ablk_optrom() local
1344 iocmd->status = bfa_ablk_optrom_en(&bfad->bfa.modules.ablk, in bfad_iocmd_ablk_optrom()
1347 iocmd->status = bfa_ablk_optrom_dis(&bfad->bfa.modules.ablk, in bfad_iocmd_ablk_optrom()
1351 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ablk_optrom()
1355 iocmd->status = fcomp.status; in bfad_iocmd_ablk_optrom()
1363 struct bfa_bsg_faa_attr_s *iocmd = (struct bfa_bsg_faa_attr_s *)cmd; in bfad_iocmd_faa_query() local
1368 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_faa_query()
1370 iocmd->status = bfa_faa_query(&bfad->bfa, &iocmd->faa_attr, in bfad_iocmd_faa_query()
1374 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_faa_query()
1378 iocmd->status = fcomp.status; in bfad_iocmd_faa_query()
1386 struct bfa_bsg_cee_attr_s *iocmd = in bfad_iocmd_cee_attr() local
1395 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_cee_attr()
1399 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_cee_attr_s); in bfad_iocmd_cee_attr()
1405 iocmd->status = bfa_cee_get_attr(&bfad->bfa.modules.cee, iocmd_bufptr, in bfad_iocmd_cee_attr()
1408 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_cee_attr()
1423 struct bfa_bsg_cee_stats_s *iocmd = in bfad_iocmd_cee_get_stats() local
1432 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_cee_get_stats()
1436 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_cee_stats_s); in bfad_iocmd_cee_get_stats()
1442 iocmd->status = bfa_cee_get_stats(&bfad->bfa.modules.cee, iocmd_bufptr, in bfad_iocmd_cee_get_stats()
1445 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_cee_get_stats()
1459 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_cee_reset_stats() local
1463 iocmd->status = bfa_cee_reset_stats(&bfad->bfa.modules.cee, NULL, NULL); in bfad_iocmd_cee_reset_stats()
1465 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_cee_reset_stats()
1473 struct bfa_bsg_sfp_media_s *iocmd = (struct bfa_bsg_sfp_media_s *)cmd; in bfad_iocmd_sfp_media() local
1479 iocmd->status = bfa_sfp_media(BFA_SFP_MOD(&bfad->bfa), &iocmd->media, in bfad_iocmd_sfp_media()
1482 bfa_trc(bfad, iocmd->status); in bfad_iocmd_sfp_media()
1483 if (iocmd->status != BFA_STATUS_SFP_NOT_READY) in bfad_iocmd_sfp_media()
1487 iocmd->status = fcomp.status; in bfad_iocmd_sfp_media()
1495 struct bfa_bsg_sfp_speed_s *iocmd = (struct bfa_bsg_sfp_speed_s *)cmd; in bfad_iocmd_sfp_speed() local
1501 iocmd->status = bfa_sfp_speed(BFA_SFP_MOD(&bfad->bfa), iocmd->speed, in bfad_iocmd_sfp_speed()
1504 bfa_trc(bfad, iocmd->status); in bfad_iocmd_sfp_speed()
1505 if (iocmd->status != BFA_STATUS_SFP_NOT_READY) in bfad_iocmd_sfp_speed()
1508 iocmd->status = fcomp.status; in bfad_iocmd_sfp_speed()
1516 struct bfa_bsg_flash_attr_s *iocmd = in bfad_iocmd_flash_get_attr() local
1523 iocmd->status = bfa_flash_get_attr(BFA_FLASH(&bfad->bfa), &iocmd->attr, in bfad_iocmd_flash_get_attr()
1526 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_get_attr()
1529 iocmd->status = fcomp.status; in bfad_iocmd_flash_get_attr()
1537 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_erase_part() local
1543 iocmd->status = bfa_flash_erase_part(BFA_FLASH(&bfad->bfa), iocmd->type, in bfad_iocmd_flash_erase_part()
1544 iocmd->instance, bfad_hcb_comp, &fcomp); in bfad_iocmd_flash_erase_part()
1546 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_erase_part()
1549 iocmd->status = fcomp.status; in bfad_iocmd_flash_erase_part()
1558 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_update_part() local
1565 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_update_part()
1566 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_flash_update_part()
1570 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_flash_s); in bfad_iocmd_flash_update_part()
1574 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_flash_update_part()
1575 iocmd->type, iocmd->instance, iocmd_bufptr, in bfad_iocmd_flash_update_part()
1576 iocmd->bufsz, 0, bfad_hcb_comp, &fcomp); in bfad_iocmd_flash_update_part()
1578 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_update_part()
1581 iocmd->status = fcomp.status; in bfad_iocmd_flash_update_part()
1590 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_read_part() local
1597 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_read_part()
1598 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_flash_read_part()
1602 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_flash_s); in bfad_iocmd_flash_read_part()
1606 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), iocmd->type, in bfad_iocmd_flash_read_part()
1607 iocmd->instance, iocmd_bufptr, iocmd->bufsz, 0, in bfad_iocmd_flash_read_part()
1610 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_read_part()
1613 iocmd->status = fcomp.status; in bfad_iocmd_flash_read_part()
1621 struct bfa_bsg_diag_get_temp_s *iocmd = in bfad_iocmd_diag_temp() local
1628 iocmd->status = bfa_diag_tsensor_query(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_temp()
1629 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_temp()
1631 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_temp()
1632 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_temp()
1635 iocmd->status = fcomp.status; in bfad_iocmd_diag_temp()
1643 struct bfa_bsg_diag_memtest_s *iocmd = in bfad_iocmd_diag_memtest() local
1650 iocmd->status = bfa_diag_memtest(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_memtest()
1651 &iocmd->memtest, iocmd->pat, in bfad_iocmd_diag_memtest()
1652 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_memtest()
1654 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_memtest()
1655 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_memtest()
1658 iocmd->status = fcomp.status; in bfad_iocmd_diag_memtest()
1666 struct bfa_bsg_diag_loopback_s *iocmd = in bfad_iocmd_diag_loopback() local
1673 iocmd->status = bfa_fcdiag_loopback(&bfad->bfa, iocmd->opmode, in bfad_iocmd_diag_loopback()
1674 iocmd->speed, iocmd->lpcnt, iocmd->pat, in bfad_iocmd_diag_loopback()
1675 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_loopback()
1677 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_loopback()
1678 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_loopback()
1681 iocmd->status = fcomp.status; in bfad_iocmd_diag_loopback()
1689 struct bfa_bsg_diag_fwping_s *iocmd = in bfad_iocmd_diag_fwping() local
1696 iocmd->status = bfa_diag_fwping(BFA_DIAG_MOD(&bfad->bfa), iocmd->cnt, in bfad_iocmd_diag_fwping()
1697 iocmd->pattern, &iocmd->result, in bfad_iocmd_diag_fwping()
1700 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_fwping()
1701 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_fwping()
1705 iocmd->status = fcomp.status; in bfad_iocmd_diag_fwping()
1713 struct bfa_bsg_diag_qtest_s *iocmd = (struct bfa_bsg_diag_qtest_s *)cmd; in bfad_iocmd_diag_queuetest() local
1719 iocmd->status = bfa_fcdiag_queuetest(&bfad->bfa, iocmd->force, in bfad_iocmd_diag_queuetest()
1720 iocmd->queue, &iocmd->result, in bfad_iocmd_diag_queuetest()
1723 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_queuetest()
1726 iocmd->status = fcomp.status; in bfad_iocmd_diag_queuetest()
1734 struct bfa_bsg_sfp_show_s *iocmd = in bfad_iocmd_diag_sfp() local
1741 iocmd->status = bfa_sfp_show(BFA_SFP_MOD(&bfad->bfa), &iocmd->sfp, in bfad_iocmd_diag_sfp()
1744 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_sfp()
1745 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_sfp()
1748 iocmd->status = fcomp.status; in bfad_iocmd_diag_sfp()
1749 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_sfp()
1757 struct bfa_bsg_diag_led_s *iocmd = (struct bfa_bsg_diag_led_s *)cmd; in bfad_iocmd_diag_led() local
1761 iocmd->status = bfa_diag_ledtest(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_led()
1762 &iocmd->ledtest); in bfad_iocmd_diag_led()
1770 struct bfa_bsg_diag_beacon_s *iocmd = in bfad_iocmd_diag_beacon_lport() local
1775 iocmd->status = bfa_diag_beacon_port(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_beacon_lport()
1776 iocmd->beacon, iocmd->link_e2e_beacon, in bfad_iocmd_diag_beacon_lport()
1777 iocmd->second); in bfad_iocmd_diag_beacon_lport()
1785 struct bfa_bsg_diag_lb_stat_s *iocmd = in bfad_iocmd_diag_lb_stat() local
1790 iocmd->status = bfa_fcdiag_lb_is_running(&bfad->bfa); in bfad_iocmd_diag_lb_stat()
1792 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_lb_stat()
1800 struct bfa_bsg_dport_enable_s *iocmd = in bfad_iocmd_diag_dport_enable() local
1807 iocmd->status = bfa_dport_enable(&bfad->bfa, iocmd->lpcnt, in bfad_iocmd_diag_dport_enable()
1808 iocmd->pat, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_dport_enable()
1810 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_dport_enable()
1811 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_enable()
1814 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_enable()
1822 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_diag_dport_disable() local
1828 iocmd->status = bfa_dport_disable(&bfad->bfa, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_dport_disable()
1830 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_dport_disable()
1831 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_disable()
1834 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_disable()
1842 struct bfa_bsg_dport_enable_s *iocmd = in bfad_iocmd_diag_dport_start() local
1849 iocmd->status = bfa_dport_start(&bfad->bfa, iocmd->lpcnt, in bfad_iocmd_diag_dport_start()
1850 iocmd->pat, bfad_hcb_comp, in bfad_iocmd_diag_dport_start()
1854 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_diag_dport_start()
1855 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_start()
1858 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_start()
1867 struct bfa_bsg_diag_dport_show_s *iocmd = in bfad_iocmd_diag_dport_show() local
1872 iocmd->status = bfa_dport_show(&bfad->bfa, &iocmd->result); in bfad_iocmd_diag_dport_show()
1882 struct bfa_bsg_phy_attr_s *iocmd = in bfad_iocmd_phy_get_attr() local
1889 iocmd->status = bfa_phy_get_attr(BFA_PHY(&bfad->bfa), iocmd->instance, in bfad_iocmd_phy_get_attr()
1890 &iocmd->attr, bfad_hcb_comp, &fcomp); in bfad_iocmd_phy_get_attr()
1892 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_get_attr()
1895 iocmd->status = fcomp.status; in bfad_iocmd_phy_get_attr()
1903 struct bfa_bsg_phy_stats_s *iocmd = in bfad_iocmd_phy_get_stats() local
1910 iocmd->status = bfa_phy_get_stats(BFA_PHY(&bfad->bfa), iocmd->instance, in bfad_iocmd_phy_get_stats()
1911 &iocmd->stats, bfad_hcb_comp, &fcomp); in bfad_iocmd_phy_get_stats()
1913 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_get_stats()
1916 iocmd->status = fcomp.status; in bfad_iocmd_phy_get_stats()
1924 struct bfa_bsg_phy_s *iocmd = (struct bfa_bsg_phy_s *)cmd; in bfad_iocmd_phy_read() local
1931 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_read()
1932 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_phy_read()
1936 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_phy_s); in bfad_iocmd_phy_read()
1939 iocmd->status = bfa_phy_read(BFA_PHY(&bfad->bfa), in bfad_iocmd_phy_read()
1940 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_read()
1943 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_read()
1946 iocmd->status = fcomp.status; in bfad_iocmd_phy_read()
1947 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_read()
1956 struct bfa_bsg_vhba_attr_s *iocmd = in bfad_iocmd_vhba_query() local
1958 struct bfa_vhba_attr_s *attr = &iocmd->attr; in bfad_iocmd_vhba_query()
1967 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vhba_query()
1975 struct bfa_bsg_phy_s *iocmd = (struct bfa_bsg_phy_s *)cmd; in bfad_iocmd_phy_update() local
1982 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_update()
1983 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_phy_update()
1987 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_phy_s); in bfad_iocmd_phy_update()
1990 iocmd->status = bfa_phy_update(BFA_PHY(&bfad->bfa), in bfad_iocmd_phy_update()
1991 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_update()
1994 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_update()
1997 iocmd->status = fcomp.status; in bfad_iocmd_phy_update()
2005 struct bfa_bsg_debug_s *iocmd = (struct bfa_bsg_debug_s *)cmd; in bfad_iocmd_porglog_get() local
2008 if (iocmd->bufsz < sizeof(struct bfa_plog_s)) { in bfad_iocmd_porglog_get()
2010 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_porglog_get()
2014 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_porglog_get()
2015 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_debug_s); in bfad_iocmd_porglog_get()
2026 struct bfa_bsg_debug_s *iocmd = (struct bfa_bsg_debug_s *)cmd; in bfad_iocmd_debug_fw_core() local
2033 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_debug_fw_core()
2037 if (iocmd->bufsz < BFA_DEBUG_FW_CORE_CHUNK_SZ || in bfad_iocmd_debug_fw_core()
2038 !IS_ALIGNED(iocmd->bufsz, sizeof(u16)) || in bfad_iocmd_debug_fw_core()
2039 !IS_ALIGNED(iocmd->offset, sizeof(u32))) { in bfad_iocmd_debug_fw_core()
2041 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_debug_fw_core()
2045 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_debug_s); in bfad_iocmd_debug_fw_core()
2047 offset = iocmd->offset; in bfad_iocmd_debug_fw_core()
2048 iocmd->status = bfa_ioc_debug_fwcore(&bfad->bfa.ioc, iocmd_bufptr, in bfad_iocmd_debug_fw_core()
2049 &offset, &iocmd->bufsz); in bfad_iocmd_debug_fw_core()
2050 iocmd->offset = offset; in bfad_iocmd_debug_fw_core()
2059 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_debug_ctl() local
2073 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_debug_ctl()
2080 struct bfa_bsg_portlogctl_s *iocmd = (struct bfa_bsg_portlogctl_s *)cmd; in bfad_iocmd_porglog_ctl() local
2082 if (iocmd->ctl == BFA_TRUE) in bfad_iocmd_porglog_ctl()
2087 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_porglog_ctl()
2094 struct bfa_bsg_fcpim_profile_s *iocmd = in bfad_iocmd_fcpim_cfg_profile() local
2102 iocmd->status = bfa_fcpim_profile_on(&bfad->bfa, tv.tv_sec); in bfad_iocmd_fcpim_cfg_profile()
2104 iocmd->status = bfa_fcpim_profile_off(&bfad->bfa); in bfad_iocmd_fcpim_cfg_profile()
2113 struct bfa_bsg_itnim_ioprofile_s *iocmd = in bfad_iocmd_itnim_get_ioprofile() local
2121 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_ioprofile()
2123 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_ioprofile()
2125 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_ioprofile()
2127 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_ioprofile()
2129 iocmd->status = bfa_itnim_get_ioprofile( in bfad_iocmd_itnim_get_ioprofile()
2131 &iocmd->ioprofile); in bfad_iocmd_itnim_get_ioprofile()
2140 struct bfa_bsg_fcport_stats_s *iocmd = in bfad_iocmd_fcport_get_stats() local
2148 &fcomp, &iocmd->stats); in bfad_iocmd_fcport_get_stats()
2150 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_fcport_get_stats()
2152 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_fcport_get_stats()
2153 bfa_trc(bfad, iocmd->status); in bfad_iocmd_fcport_get_stats()
2157 iocmd->status = fcomp.status; in bfad_iocmd_fcport_get_stats()
2165 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_reset_stats() local
2174 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_fcport_reset_stats()
2176 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_fcport_reset_stats()
2177 bfa_trc(bfad, iocmd->status); in bfad_iocmd_fcport_reset_stats()
2181 iocmd->status = fcomp.status; in bfad_iocmd_fcport_reset_stats()
2189 struct bfa_bsg_boot_s *iocmd = (struct bfa_bsg_boot_s *)cmd; in bfad_iocmd_boot_cfg() local
2195 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_boot_cfg()
2197 &iocmd->cfg, sizeof(struct bfa_boot_cfg_s), 0, in bfad_iocmd_boot_cfg()
2200 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_boot_cfg()
2203 iocmd->status = fcomp.status; in bfad_iocmd_boot_cfg()
2211 struct bfa_bsg_boot_s *iocmd = (struct bfa_bsg_boot_s *)cmd; in bfad_iocmd_boot_query() local
2217 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_boot_query()
2219 &iocmd->cfg, sizeof(struct bfa_boot_cfg_s), 0, in bfad_iocmd_boot_query()
2222 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_boot_query()
2225 iocmd->status = fcomp.status; in bfad_iocmd_boot_query()
2233 struct bfa_bsg_preboot_s *iocmd = (struct bfa_bsg_preboot_s *)cmd; in bfad_iocmd_preboot_query() local
2235 struct bfa_boot_pbc_s *pbcfg = &iocmd->cfg; in bfad_iocmd_preboot_query()
2243 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_preboot_query()
2252 struct bfa_bsg_ethboot_s *iocmd = (struct bfa_bsg_ethboot_s *)cmd; in bfad_iocmd_ethboot_cfg() local
2258 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_ethboot_cfg()
2260 bfad->bfa.ioc.port_id, &iocmd->cfg, in bfad_iocmd_ethboot_cfg()
2264 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ethboot_cfg()
2267 iocmd->status = fcomp.status; in bfad_iocmd_ethboot_cfg()
2275 struct bfa_bsg_ethboot_s *iocmd = (struct bfa_bsg_ethboot_s *)cmd; in bfad_iocmd_ethboot_query() local
2281 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_ethboot_query()
2283 bfad->bfa.ioc.port_id, &iocmd->cfg, in bfad_iocmd_ethboot_query()
2287 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ethboot_query()
2290 iocmd->status = fcomp.status; in bfad_iocmd_ethboot_query()
2298 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_cfg_trunk() local
2312 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_cfg_trunk()
2327 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_cfg_trunk()
2338 struct bfa_bsg_trunk_attr_s *iocmd = (struct bfa_bsg_trunk_attr_s *)cmd; in bfad_iocmd_trunk_get_attr() local
2346 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_trunk_get_attr()
2348 memcpy((void *)&iocmd->attr, (void *)&trunk->attr, in bfad_iocmd_trunk_get_attr()
2350 iocmd->attr.port_id = bfa_lps_get_base_pid(&bfad->bfa); in bfad_iocmd_trunk_get_attr()
2351 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_trunk_get_attr()
2361 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_qos() local
2369 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos()
2389 struct bfa_bsg_qos_attr_s *iocmd = (struct bfa_bsg_qos_attr_s *)cmd; in bfad_iocmd_qos_get_attr() local
2396 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_get_attr()
2398 iocmd->attr.state = fcport->qos_attr.state; in bfad_iocmd_qos_get_attr()
2399 iocmd->attr.total_bb_cr = in bfad_iocmd_qos_get_attr()
2401 iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; in bfad_iocmd_qos_get_attr()
2402 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
2403 iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; in bfad_iocmd_qos_get_attr()
2404 iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; in bfad_iocmd_qos_get_attr()
2405 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_qos_get_attr()
2415 struct bfa_bsg_qos_vc_attr_s *iocmd = in bfad_iocmd_qos_get_vc_attr() local
2423 iocmd->attr.total_vc_count = be16_to_cpu(bfa_vc_attr->total_vc_count); in bfad_iocmd_qos_get_vc_attr()
2424 iocmd->attr.shared_credit = be16_to_cpu(bfa_vc_attr->shared_credit); in bfad_iocmd_qos_get_vc_attr()
2425 iocmd->attr.elp_opmode_flags = in bfad_iocmd_qos_get_vc_attr()
2429 while (i < iocmd->attr.total_vc_count) { in bfad_iocmd_qos_get_vc_attr()
2430 iocmd->attr.vc_info[i].vc_credit = in bfad_iocmd_qos_get_vc_attr()
2432 iocmd->attr.vc_info[i].borrow_credit = in bfad_iocmd_qos_get_vc_attr()
2434 iocmd->attr.vc_info[i].priority = in bfad_iocmd_qos_get_vc_attr()
2440 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_qos_get_vc_attr()
2447 struct bfa_bsg_fcport_stats_s *iocmd = in bfad_iocmd_qos_get_stats() local
2456 &fcomp, &iocmd->stats); in bfad_iocmd_qos_get_stats()
2462 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_get_stats()
2464 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_qos_get_stats()
2466 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_qos_get_stats()
2467 bfa_trc(bfad, iocmd->status); in bfad_iocmd_qos_get_stats()
2471 iocmd->status = fcomp.status; in bfad_iocmd_qos_get_stats()
2479 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_qos_reset_stats() local
2493 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_reset_stats()
2495 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_qos_reset_stats()
2497 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_qos_reset_stats()
2498 bfa_trc(bfad, iocmd->status); in bfad_iocmd_qos_reset_stats()
2502 iocmd->status = fcomp.status; in bfad_iocmd_qos_reset_stats()
2510 struct bfa_bsg_vf_stats_s *iocmd = in bfad_iocmd_vf_get_stats() local
2516 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_vf_get_stats()
2519 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_vf_get_stats()
2522 memcpy((void *)&iocmd->stats, (void *)&fcs_vf->stats, in bfad_iocmd_vf_get_stats()
2525 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vf_get_stats()
2533 struct bfa_bsg_vf_reset_stats_s *iocmd = in bfad_iocmd_vf_clr_stats() local
2539 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_vf_clr_stats()
2542 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_vf_clr_stats()
2547 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vf_clr_stats()
2570 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_lunmask() local
2575 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_TRUE); in bfad_iocmd_lunmask()
2577 if (iocmd->status == BFA_STATUS_OK) in bfad_iocmd_lunmask()
2580 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_FALSE); in bfad_iocmd_lunmask()
2582 if (iocmd->status == BFA_STATUS_OK) in bfad_iocmd_lunmask()
2585 iocmd->status = bfa_fcpim_lunmask_clear(&bfad->bfa); in bfad_iocmd_lunmask()
2593 struct bfa_bsg_fcpim_lunmask_query_s *iocmd = in bfad_iocmd_fcpim_lunmask_query() local
2595 struct bfa_lunmask_cfg_s *lun_mask = &iocmd->lun_mask; in bfad_iocmd_fcpim_lunmask_query()
2599 iocmd->status = bfa_fcpim_lunmask_query(&bfad->bfa, lun_mask); in bfad_iocmd_fcpim_lunmask_query()
2607 struct bfa_bsg_fcpim_lunmask_s *iocmd = in bfad_iocmd_fcpim_cfg_lunmask() local
2613 iocmd->status = bfa_fcpim_lunmask_add(&bfad->bfa, iocmd->vf_id, in bfad_iocmd_fcpim_cfg_lunmask()
2614 &iocmd->pwwn, iocmd->rpwwn, iocmd->lun); in bfad_iocmd_fcpim_cfg_lunmask()
2616 iocmd->status = bfa_fcpim_lunmask_delete(&bfad->bfa, in bfad_iocmd_fcpim_cfg_lunmask()
2617 iocmd->vf_id, &iocmd->pwwn, in bfad_iocmd_fcpim_cfg_lunmask()
2618 iocmd->rpwwn, iocmd->lun); in bfad_iocmd_fcpim_cfg_lunmask()
2626 struct bfa_bsg_fcpim_throttle_s *iocmd = in bfad_iocmd_fcpim_throttle_query() local
2631 iocmd->status = bfa_fcpim_throttle_get(&bfad->bfa, in bfad_iocmd_fcpim_throttle_query()
2632 (void *)&iocmd->throttle); in bfad_iocmd_fcpim_throttle_query()
2641 struct bfa_bsg_fcpim_throttle_s *iocmd = in bfad_iocmd_fcpim_throttle_set() local
2646 iocmd->status = bfa_fcpim_throttle_set(&bfad->bfa, in bfad_iocmd_fcpim_throttle_set()
2647 iocmd->throttle.cfg_value); in bfad_iocmd_fcpim_throttle_set()
2656 struct bfa_bsg_tfru_s *iocmd = in bfad_iocmd_tfru_read() local
2663 iocmd->status = bfa_tfru_read(BFA_FRU(&bfad->bfa), in bfad_iocmd_tfru_read()
2664 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_tfru_read()
2667 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_tfru_read()
2669 iocmd->status = fcomp.status; in bfad_iocmd_tfru_read()
2678 struct bfa_bsg_tfru_s *iocmd = in bfad_iocmd_tfru_write() local
2685 iocmd->status = bfa_tfru_write(BFA_FRU(&bfad->bfa), in bfad_iocmd_tfru_write()
2686 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_tfru_write()
2689 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_tfru_write()
2691 iocmd->status = fcomp.status; in bfad_iocmd_tfru_write()
2700 struct bfa_bsg_fruvpd_s *iocmd = in bfad_iocmd_fruvpd_read() local
2707 iocmd->status = bfa_fruvpd_read(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_read()
2708 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_fruvpd_read()
2711 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_fruvpd_read()
2713 iocmd->status = fcomp.status; in bfad_iocmd_fruvpd_read()
2722 struct bfa_bsg_fruvpd_s *iocmd = in bfad_iocmd_fruvpd_update() local
2729 iocmd->status = bfa_fruvpd_update(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_update()
2730 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_fruvpd_update()
2731 bfad_hcb_comp, &fcomp, iocmd->trfr_cmpl); in bfad_iocmd_fruvpd_update()
2733 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_fruvpd_update()
2735 iocmd->status = fcomp.status; in bfad_iocmd_fruvpd_update()
2744 struct bfa_bsg_fruvpd_max_size_s *iocmd = in bfad_iocmd_fruvpd_get_max_size() local
2749 iocmd->status = bfa_fruvpd_get_max_size(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_get_max_size()
2750 &iocmd->max_size); in bfad_iocmd_fruvpd_get_max_size()
2757 bfad_iocmd_handler(struct bfad_s *bfad, unsigned int cmd, void *iocmd, in bfad_iocmd_handler() argument
2764 rc = bfad_iocmd_ioc_enable(bfad, iocmd); in bfad_iocmd_handler()
2767 rc = bfad_iocmd_ioc_disable(bfad, iocmd); in bfad_iocmd_handler()
2770 rc = bfad_iocmd_ioc_get_info(bfad, iocmd); in bfad_iocmd_handler()
2773 rc = bfad_iocmd_ioc_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2776 rc = bfad_iocmd_ioc_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2779 rc = bfad_iocmd_ioc_get_fwstats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2783 rc = bfad_iocmd_ioc_reset_stats(bfad, iocmd, cmd); in bfad_iocmd_handler()
2787 rc = bfad_iocmd_ioc_set_name(bfad, iocmd, cmd); in bfad_iocmd_handler()
2790 rc = bfad_iocmd_iocfc_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2793 rc = bfad_iocmd_iocfc_set_intr(bfad, iocmd); in bfad_iocmd_handler()
2796 rc = bfad_iocmd_port_enable(bfad, iocmd); in bfad_iocmd_handler()
2799 rc = bfad_iocmd_port_disable(bfad, iocmd); in bfad_iocmd_handler()
2802 rc = bfad_iocmd_port_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2805 rc = bfad_iocmd_port_get_stats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2808 rc = bfad_iocmd_port_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2814 rc = bfad_iocmd_set_port_cfg(bfad, iocmd, cmd); in bfad_iocmd_handler()
2817 rc = bfad_iocmd_port_cfg_maxfrsize(bfad, iocmd); in bfad_iocmd_handler()
2821 rc = bfad_iocmd_port_cfg_bbcr(bfad, cmd, iocmd); in bfad_iocmd_handler()
2824 rc = bfad_iocmd_port_get_bbcr_attr(bfad, iocmd); in bfad_iocmd_handler()
2827 rc = bfad_iocmd_lport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2830 rc = bfad_iocmd_lport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2833 rc = bfad_iocmd_lport_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2836 rc = bfad_iocmd_lport_get_iostats(bfad, iocmd); in bfad_iocmd_handler()
2839 rc = bfad_iocmd_lport_get_rports(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2842 rc = bfad_iocmd_rport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2845 rc = bfad_iocmd_rport_get_addr(bfad, iocmd); in bfad_iocmd_handler()
2848 rc = bfad_iocmd_rport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2851 rc = bfad_iocmd_rport_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
2854 rc = bfad_iocmd_rport_set_speed(bfad, iocmd); in bfad_iocmd_handler()
2857 rc = bfad_iocmd_vport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2860 rc = bfad_iocmd_vport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2863 rc = bfad_iocmd_vport_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
2866 rc = bfad_iocmd_fabric_get_lports(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2870 rc = bfad_iocmd_ratelim(bfad, cmd, iocmd); in bfad_iocmd_handler()
2873 rc = bfad_iocmd_ratelim_speed(bfad, cmd, iocmd); in bfad_iocmd_handler()
2876 rc = bfad_iocmd_cfg_fcpim(bfad, iocmd); in bfad_iocmd_handler()
2879 rc = bfad_iocmd_fcpim_get_modstats(bfad, iocmd); in bfad_iocmd_handler()
2882 rc = bfad_iocmd_fcpim_clr_modstats(bfad, iocmd); in bfad_iocmd_handler()
2885 rc = bfad_iocmd_fcpim_get_del_itn_stats(bfad, iocmd); in bfad_iocmd_handler()
2888 rc = bfad_iocmd_itnim_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2891 rc = bfad_iocmd_itnim_get_iostats(bfad, iocmd); in bfad_iocmd_handler()
2894 rc = bfad_iocmd_itnim_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2897 rc = bfad_iocmd_itnim_get_itnstats(bfad, iocmd); in bfad_iocmd_handler()
2900 rc = bfad_iocmd_fcport_enable(bfad, iocmd); in bfad_iocmd_handler()
2903 rc = bfad_iocmd_fcport_disable(bfad, iocmd); in bfad_iocmd_handler()
2906 rc = bfad_iocmd_ioc_get_pcifn_cfg(bfad, iocmd); in bfad_iocmd_handler()
2909 rc = bfad_iocmd_ioc_fw_sig_inv(bfad, iocmd); in bfad_iocmd_handler()
2912 rc = bfad_iocmd_pcifn_create(bfad, iocmd); in bfad_iocmd_handler()
2915 rc = bfad_iocmd_pcifn_delete(bfad, iocmd); in bfad_iocmd_handler()
2918 rc = bfad_iocmd_pcifn_bw(bfad, iocmd); in bfad_iocmd_handler()
2921 rc = bfad_iocmd_adapter_cfg_mode(bfad, iocmd); in bfad_iocmd_handler()
2924 rc = bfad_iocmd_port_cfg_mode(bfad, iocmd); in bfad_iocmd_handler()
2928 rc = bfad_iocmd_ablk_optrom(bfad, cmd, iocmd); in bfad_iocmd_handler()
2931 rc = bfad_iocmd_faa_query(bfad, iocmd); in bfad_iocmd_handler()
2934 rc = bfad_iocmd_cee_attr(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2937 rc = bfad_iocmd_cee_get_stats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2940 rc = bfad_iocmd_cee_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2943 rc = bfad_iocmd_sfp_media(bfad, iocmd); in bfad_iocmd_handler()
2946 rc = bfad_iocmd_sfp_speed(bfad, iocmd); in bfad_iocmd_handler()
2949 rc = bfad_iocmd_flash_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2952 rc = bfad_iocmd_flash_erase_part(bfad, iocmd); in bfad_iocmd_handler()
2955 rc = bfad_iocmd_flash_update_part(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2958 rc = bfad_iocmd_flash_read_part(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2961 rc = bfad_iocmd_diag_temp(bfad, iocmd); in bfad_iocmd_handler()
2964 rc = bfad_iocmd_diag_memtest(bfad, iocmd); in bfad_iocmd_handler()
2967 rc = bfad_iocmd_diag_loopback(bfad, iocmd); in bfad_iocmd_handler()
2970 rc = bfad_iocmd_diag_fwping(bfad, iocmd); in bfad_iocmd_handler()
2973 rc = bfad_iocmd_diag_queuetest(bfad, iocmd); in bfad_iocmd_handler()
2976 rc = bfad_iocmd_diag_sfp(bfad, iocmd); in bfad_iocmd_handler()
2979 rc = bfad_iocmd_diag_led(bfad, iocmd); in bfad_iocmd_handler()
2982 rc = bfad_iocmd_diag_beacon_lport(bfad, iocmd); in bfad_iocmd_handler()
2985 rc = bfad_iocmd_diag_lb_stat(bfad, iocmd); in bfad_iocmd_handler()
2988 rc = bfad_iocmd_diag_dport_enable(bfad, iocmd); in bfad_iocmd_handler()
2991 rc = bfad_iocmd_diag_dport_disable(bfad, iocmd); in bfad_iocmd_handler()
2994 rc = bfad_iocmd_diag_dport_show(bfad, iocmd); in bfad_iocmd_handler()
2997 rc = bfad_iocmd_diag_dport_start(bfad, iocmd); in bfad_iocmd_handler()
3000 rc = bfad_iocmd_phy_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3003 rc = bfad_iocmd_phy_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3006 rc = bfad_iocmd_phy_update(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3009 rc = bfad_iocmd_phy_read(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3012 rc = bfad_iocmd_vhba_query(bfad, iocmd); in bfad_iocmd_handler()
3015 rc = bfad_iocmd_porglog_get(bfad, iocmd); in bfad_iocmd_handler()
3018 rc = bfad_iocmd_debug_fw_core(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3024 rc = bfad_iocmd_debug_ctl(bfad, iocmd, cmd); in bfad_iocmd_handler()
3027 rc = bfad_iocmd_porglog_ctl(bfad, iocmd); in bfad_iocmd_handler()
3031 rc = bfad_iocmd_fcpim_cfg_profile(bfad, iocmd, cmd); in bfad_iocmd_handler()
3034 rc = bfad_iocmd_itnim_get_ioprofile(bfad, iocmd); in bfad_iocmd_handler()
3037 rc = bfad_iocmd_fcport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3040 rc = bfad_iocmd_fcport_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
3043 rc = bfad_iocmd_boot_cfg(bfad, iocmd); in bfad_iocmd_handler()
3046 rc = bfad_iocmd_boot_query(bfad, iocmd); in bfad_iocmd_handler()
3049 rc = bfad_iocmd_preboot_query(bfad, iocmd); in bfad_iocmd_handler()
3052 rc = bfad_iocmd_ethboot_cfg(bfad, iocmd); in bfad_iocmd_handler()
3055 rc = bfad_iocmd_ethboot_query(bfad, iocmd); in bfad_iocmd_handler()
3059 rc = bfad_iocmd_cfg_trunk(bfad, iocmd, cmd); in bfad_iocmd_handler()
3062 rc = bfad_iocmd_trunk_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3066 rc = bfad_iocmd_qos(bfad, iocmd, cmd); in bfad_iocmd_handler()
3069 rc = bfad_iocmd_qos_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3072 rc = bfad_iocmd_qos_get_vc_attr(bfad, iocmd); in bfad_iocmd_handler()
3075 rc = bfad_iocmd_qos_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3078 rc = bfad_iocmd_qos_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
3081 rc = bfad_iocmd_qos_set_bw(bfad, iocmd); in bfad_iocmd_handler()
3084 rc = bfad_iocmd_vf_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3087 rc = bfad_iocmd_vf_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
3092 rc = bfad_iocmd_lunmask(bfad, iocmd, cmd); in bfad_iocmd_handler()
3095 rc = bfad_iocmd_fcpim_lunmask_query(bfad, iocmd); in bfad_iocmd_handler()
3099 rc = bfad_iocmd_fcpim_cfg_lunmask(bfad, iocmd, cmd); in bfad_iocmd_handler()
3102 rc = bfad_iocmd_fcpim_throttle_query(bfad, iocmd); in bfad_iocmd_handler()
3105 rc = bfad_iocmd_fcpim_throttle_set(bfad, iocmd); in bfad_iocmd_handler()
3109 rc = bfad_iocmd_tfru_read(bfad, iocmd); in bfad_iocmd_handler()
3112 rc = bfad_iocmd_tfru_write(bfad, iocmd); in bfad_iocmd_handler()
3116 rc = bfad_iocmd_fruvpd_read(bfad, iocmd); in bfad_iocmd_handler()
3119 rc = bfad_iocmd_fruvpd_update(bfad, iocmd); in bfad_iocmd_handler()
3122 rc = bfad_iocmd_fruvpd_get_max_size(bfad, iocmd); in bfad_iocmd_handler()