Lines Matching refs:iocmd

29 	struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd;  in bfad_iocmd_ioc_enable()  local
36 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_enable()
42 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_enable()
52 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_disable() local
58 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_disable()
74 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_disable()
83 struct bfa_bsg_ioc_info_s *iocmd = (struct bfa_bsg_ioc_info_s *)cmd; in bfad_iocmd_ioc_get_info() local
90 iocmd->nwwn = pattr.nwwn; in bfad_iocmd_ioc_get_info()
91 iocmd->pwwn = pattr.pwwn; in bfad_iocmd_ioc_get_info()
92 iocmd->ioc_type = bfa_get_type(&bfad->bfa); in bfad_iocmd_ioc_get_info()
93 iocmd->mac = bfa_get_mac(&bfad->bfa); in bfad_iocmd_ioc_get_info()
94 iocmd->factory_mac = bfa_get_mfg_mac(&bfad->bfa); in bfad_iocmd_ioc_get_info()
95 bfa_get_adapter_serial_num(&bfad->bfa, iocmd->serialnum); in bfad_iocmd_ioc_get_info()
96 iocmd->factorynwwn = pattr.factorynwwn; in bfad_iocmd_ioc_get_info()
97 iocmd->factorypwwn = pattr.factorypwwn; in bfad_iocmd_ioc_get_info()
98 iocmd->bfad_num = bfad->inst_no; in bfad_iocmd_ioc_get_info()
100 iocmd->host = im_port->shost->host_no; in bfad_iocmd_ioc_get_info()
103 strcpy(iocmd->name, bfad->adapter_name); in bfad_iocmd_ioc_get_info()
104 strcpy(iocmd->port_name, bfad->port_name); in bfad_iocmd_ioc_get_info()
105 strcpy(iocmd->hwpath, bfad->pci_name); in bfad_iocmd_ioc_get_info()
108 strcpy(iocmd->adapter_hwpath, bfad->pci_name); in bfad_iocmd_ioc_get_info()
109 for (i = 0; iocmd->adapter_hwpath[i] != ':' && i < BFA_STRING_32; i++) in bfad_iocmd_ioc_get_info()
111 for (; iocmd->adapter_hwpath[++i] != ':' && i < BFA_STRING_32; ) in bfad_iocmd_ioc_get_info()
113 iocmd->adapter_hwpath[i] = '\0'; in bfad_iocmd_ioc_get_info()
114 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_info()
121 struct bfa_bsg_ioc_attr_s *iocmd = (struct bfa_bsg_ioc_attr_s *)cmd; in bfad_iocmd_ioc_get_attr() local
125 bfa_ioc_get_attr(&bfad->bfa.ioc, &iocmd->ioc_attr); in bfad_iocmd_ioc_get_attr()
129 strcpy(iocmd->ioc_attr.driver_attr.driver, BFAD_DRIVER_NAME); in bfad_iocmd_ioc_get_attr()
130 strlcpy(iocmd->ioc_attr.driver_attr.driver_ver, in bfad_iocmd_ioc_get_attr()
132 strcpy(iocmd->ioc_attr.driver_attr.fw_ver, in bfad_iocmd_ioc_get_attr()
133 iocmd->ioc_attr.adapter_attr.fw_ver); in bfad_iocmd_ioc_get_attr()
134 strcpy(iocmd->ioc_attr.driver_attr.bios_ver, in bfad_iocmd_ioc_get_attr()
135 iocmd->ioc_attr.adapter_attr.optrom_ver); in bfad_iocmd_ioc_get_attr()
138 memcpy(bfad->pci_attr.chip_rev, iocmd->ioc_attr.pci_attr.chip_rev, in bfad_iocmd_ioc_get_attr()
140 memcpy(&iocmd->ioc_attr.pci_attr, &bfad->pci_attr, in bfad_iocmd_ioc_get_attr()
143 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_attr()
150 struct bfa_bsg_ioc_stats_s *iocmd = (struct bfa_bsg_ioc_stats_s *)cmd; in bfad_iocmd_ioc_get_stats() local
152 bfa_ioc_get_stats(&bfad->bfa, &iocmd->ioc_stats); in bfad_iocmd_ioc_get_stats()
153 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_stats()
161 struct bfa_bsg_ioc_fwstats_s *iocmd = in bfad_iocmd_ioc_get_fwstats() local
169 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_ioc_get_fwstats()
173 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_ioc_fwstats_s); in bfad_iocmd_ioc_get_fwstats()
175 iocmd->status = bfa_ioc_fw_stats_get(&bfad->bfa.ioc, iocmd_bufptr); in bfad_iocmd_ioc_get_fwstats()
178 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_ioc_get_fwstats()
179 bfa_trc(bfad, iocmd->status); in bfad_iocmd_ioc_get_fwstats()
190 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_reset_stats() local
195 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_reset_stats()
198 iocmd->status = bfa_ioc_fw_stats_clear(&bfad->bfa.ioc); in bfad_iocmd_ioc_reset_stats()
208 struct bfa_bsg_ioc_name_s *iocmd = (struct bfa_bsg_ioc_name_s *) cmd; in bfad_iocmd_ioc_set_name() local
211 strcpy(bfad->adapter_name, iocmd->name); in bfad_iocmd_ioc_set_name()
213 strcpy(bfad->port_name, iocmd->name); in bfad_iocmd_ioc_set_name()
215 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_set_name()
222 struct bfa_bsg_iocfc_attr_s *iocmd = (struct bfa_bsg_iocfc_attr_s *)cmd; in bfad_iocmd_iocfc_get_attr() local
224 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_iocfc_get_attr()
225 bfa_iocfc_get_attr(&bfad->bfa, &iocmd->iocfc_attr); in bfad_iocmd_iocfc_get_attr()
233 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_fw_sig_inv() local
237 iocmd->status = bfa_ioc_fwsig_invalidate(&bfad->bfa.ioc); in bfad_iocmd_ioc_fw_sig_inv()
245 struct bfa_bsg_iocfc_intr_s *iocmd = (struct bfa_bsg_iocfc_intr_s *)cmd; in bfad_iocmd_iocfc_set_intr() local
249 iocmd->status = bfa_iocfc_israttr_set(&bfad->bfa, &iocmd->attr); in bfad_iocmd_iocfc_set_intr()
258 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_enable() local
264 iocmd->status = bfa_port_enable(&bfad->bfa.modules.port, in bfad_iocmd_port_enable()
267 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_enable()
268 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_enable()
272 iocmd->status = fcomp.status; in bfad_iocmd_port_enable()
279 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_disable() local
285 iocmd->status = bfa_port_disable(&bfad->bfa.modules.port, in bfad_iocmd_port_disable()
289 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_disable()
290 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_disable()
294 iocmd->status = fcomp.status; in bfad_iocmd_port_disable()
301 struct bfa_bsg_port_attr_s *iocmd = (struct bfa_bsg_port_attr_s *)cmd; in bfad_iocmd_port_get_attr() local
306 bfa_fcport_get_attr(&bfad->bfa, &iocmd->attr); in bfad_iocmd_port_get_attr()
310 if (iocmd->attr.topology != BFA_PORT_TOPOLOGY_NONE) in bfad_iocmd_port_get_attr()
311 iocmd->attr.pid = port_attr.pid; in bfad_iocmd_port_get_attr()
313 iocmd->attr.pid = 0; in bfad_iocmd_port_get_attr()
315 iocmd->attr.port_type = port_attr.port_type; in bfad_iocmd_port_get_attr()
316 iocmd->attr.loopback = port_attr.loopback; in bfad_iocmd_port_get_attr()
317 iocmd->attr.authfail = port_attr.authfail; in bfad_iocmd_port_get_attr()
318 strlcpy(iocmd->attr.port_symname.symname, in bfad_iocmd_port_get_attr()
320 sizeof(iocmd->attr.port_symname.symname)); in bfad_iocmd_port_get_attr()
322 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_port_get_attr()
330 struct bfa_bsg_port_stats_s *iocmd = (struct bfa_bsg_port_stats_s *)cmd; in bfad_iocmd_port_get_stats() local
338 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_port_get_stats()
342 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_port_stats_s); in bfad_iocmd_port_get_stats()
346 iocmd->status = bfa_port_get_stats(&bfad->bfa.modules.port, in bfad_iocmd_port_get_stats()
349 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_get_stats()
350 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_get_stats()
355 iocmd->status = fcomp.status; in bfad_iocmd_port_get_stats()
363 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_reset_stats() local
369 iocmd->status = bfa_port_clear_stats(&bfad->bfa.modules.port, in bfad_iocmd_port_reset_stats()
372 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_reset_stats()
373 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_reset_stats()
377 iocmd->status = fcomp.status; in bfad_iocmd_port_reset_stats()
382 bfad_iocmd_set_port_cfg(struct bfad_s *bfad, void *iocmd, unsigned int v_cmd) in bfad_iocmd_set_port_cfg() argument
384 struct bfa_bsg_port_cfg_s *cmd = (struct bfa_bsg_port_cfg_s *)iocmd; in bfad_iocmd_set_port_cfg()
404 struct bfa_bsg_port_cfg_maxfrsize_s *iocmd = in bfad_iocmd_port_cfg_maxfrsize() local
409 iocmd->status = bfa_fcport_cfg_maxfrsize(&bfad->bfa, iocmd->maxfrsize); in bfad_iocmd_port_cfg_maxfrsize()
418 struct bfa_bsg_bbcr_enable_s *iocmd = in bfad_iocmd_port_cfg_bbcr() local
425 rc = bfa_fcport_cfg_bbcr(&bfad->bfa, BFA_TRUE, iocmd->bb_scn); in bfad_iocmd_port_cfg_bbcr()
434 iocmd->status = rc; in bfad_iocmd_port_cfg_bbcr()
441 struct bfa_bsg_bbcr_attr_s *iocmd = (struct bfa_bsg_bbcr_attr_s *) pcmd; in bfad_iocmd_port_get_bbcr_attr() local
445 iocmd->status = in bfad_iocmd_port_get_bbcr_attr()
446 bfa_fcport_get_bbcr_attr(&bfad->bfa, &iocmd->attr); in bfad_iocmd_port_get_bbcr_attr()
457 struct bfa_bsg_lport_attr_s *iocmd = (struct bfa_bsg_lport_attr_s *)cmd; in bfad_iocmd_lport_get_attr() local
462 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_attr()
465 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_attr()
469 bfa_fcs_lport_get_attr(fcs_port, &iocmd->port_attr); in bfad_iocmd_lport_get_attr()
471 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_attr()
480 struct bfa_bsg_lport_stats_s *iocmd = in bfad_iocmd_lport_get_stats() local
486 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_stats()
489 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_stats()
493 bfa_fcs_lport_get_stats(fcs_port, &iocmd->port_stats); in bfad_iocmd_lport_get_stats()
495 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_stats()
504 struct bfa_bsg_reset_stats_s *iocmd = in bfad_iocmd_lport_reset_stats() local
513 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_lport_reset_stats()
516 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_reset_stats()
529 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_reset_stats()
538 struct bfa_bsg_lport_iostats_s *iocmd = in bfad_iocmd_lport_get_iostats() local
544 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_iostats()
547 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_iostats()
551 bfa_fcpim_port_iostats(&bfad->bfa, &iocmd->iostats, in bfad_iocmd_lport_get_iostats()
554 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_iostats()
563 struct bfa_bsg_lport_get_rports_s *iocmd = in bfad_iocmd_lport_get_rports() local
569 if (iocmd->nrports == 0) in bfad_iocmd_lport_get_rports()
574 sizeof(struct bfa_rport_qualifier_s) * iocmd->nrports) in bfad_iocmd_lport_get_rports()
576 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_lport_get_rports()
580 iocmd_bufptr = (char *)iocmd + in bfad_iocmd_lport_get_rports()
584 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_rports()
588 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_rports()
594 &iocmd->nrports); in bfad_iocmd_lport_get_rports()
596 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_rports()
604 struct bfa_bsg_rport_attr_s *iocmd = (struct bfa_bsg_rport_attr_s *)cmd; in bfad_iocmd_rport_get_attr() local
611 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_attr()
615 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_attr()
619 if (iocmd->pid) in bfad_iocmd_rport_get_attr()
621 iocmd->rpwwn, iocmd->pid); in bfad_iocmd_rport_get_attr()
623 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_attr()
627 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_attr()
631 bfa_fcs_rport_get_attr(fcs_rport, &iocmd->attr); in bfad_iocmd_rport_get_attr()
633 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_attr()
641 struct bfa_bsg_rport_scsi_addr_s *iocmd = in bfad_iocmd_rport_get_addr() local
650 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_addr()
654 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_addr()
658 fcs_itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_addr()
662 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_addr()
669 iocmd->host = drv_itnim->im_port->shost->host_no; in bfad_iocmd_rport_get_addr()
673 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_addr()
677 iocmd->target = drv_itnim->scsi_tgt_id; in bfad_iocmd_rport_get_addr()
680 iocmd->bus = 0; in bfad_iocmd_rport_get_addr()
681 iocmd->lun = 0; in bfad_iocmd_rport_get_addr()
682 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_addr()
690 struct bfa_bsg_rport_stats_s *iocmd = in bfad_iocmd_rport_get_stats() local
698 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_stats()
702 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_stats()
706 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_stats()
710 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_stats()
714 memcpy((void *)&iocmd->stats, (void *)&fcs_rport->stats, in bfad_iocmd_rport_get_stats()
717 memcpy((void *)&iocmd->stats.hal_stats, in bfad_iocmd_rport_get_stats()
723 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_stats()
731 struct bfa_bsg_rport_reset_stats_s *iocmd = in bfad_iocmd_rport_clr_stats() local
740 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_clr_stats()
743 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_clr_stats()
747 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_clr_stats()
750 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_clr_stats()
759 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_clr_stats()
767 struct bfa_bsg_rport_set_speed_s *iocmd = in bfad_iocmd_rport_set_speed() local
775 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_set_speed()
778 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_set_speed()
782 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_set_speed()
785 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_set_speed()
789 fcs_rport->rpf.assigned_speed = iocmd->speed; in bfad_iocmd_rport_set_speed()
793 bfa_rport_speed(fcs_rport->bfa_rport, iocmd->speed); in bfad_iocmd_rport_set_speed()
795 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_set_speed()
804 struct bfa_bsg_vport_attr_s *iocmd = (struct bfa_bsg_vport_attr_s *)cmd; in bfad_iocmd_vport_get_attr() local
809 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_get_attr()
812 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_get_attr()
816 bfa_fcs_vport_get_attr(fcs_vport, &iocmd->vport_attr); in bfad_iocmd_vport_get_attr()
818 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_get_attr()
827 struct bfa_bsg_vport_stats_s *iocmd = in bfad_iocmd_vport_get_stats() local
833 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_get_stats()
836 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_get_stats()
840 memcpy((void *)&iocmd->vport_stats, (void *)&fcs_vport->vport_stats, in bfad_iocmd_vport_get_stats()
842 memcpy((void *)&iocmd->vport_stats.port_stats, in bfad_iocmd_vport_get_stats()
846 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_get_stats()
855 struct bfa_bsg_reset_stats_s *iocmd = in bfad_iocmd_vport_clr_stats() local
861 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_clr_stats()
864 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_clr_stats()
871 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_clr_stats()
880 struct bfa_bsg_fabric_get_lports_s *iocmd = in bfad_iocmd_fabric_get_lports() local
883 uint32_t nports = iocmd->nports; in bfad_iocmd_fabric_get_lports()
888 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_fabric_get_lports()
894 sizeof(wwn_t) * iocmd->nports) != BFA_STATUS_OK) { in bfad_iocmd_fabric_get_lports()
895 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_fabric_get_lports()
899 iocmd_bufptr = (char *)iocmd + in bfad_iocmd_fabric_get_lports()
903 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_fabric_get_lports()
906 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_fabric_get_lports()
912 iocmd->nports = nports; in bfad_iocmd_fabric_get_lports()
913 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fabric_get_lports()
921 struct bfa_bsg_qos_bw_s *iocmd = (struct bfa_bsg_qos_bw_s *)pcmd; in bfad_iocmd_qos_set_bw() local
925 iocmd->status = bfa_fcport_set_qos_bw(&bfad->bfa, &iocmd->qos_bw); in bfad_iocmd_qos_set_bw()
934 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ratelim() local
942 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_ratelim()
952 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ratelim()
963 struct bfa_bsg_trl_speed_s *iocmd = (struct bfa_bsg_trl_speed_s *)pcmd; in bfad_iocmd_ratelim_speed() local
970 if ((iocmd->speed == BFA_PORT_SPEED_AUTO) || in bfad_iocmd_ratelim_speed()
971 (iocmd->speed > fcport->speed_sup)) { in bfad_iocmd_ratelim_speed()
972 iocmd->status = BFA_STATUS_UNSUPP_SPEED; in bfad_iocmd_ratelim_speed()
979 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_ratelim_speed()
981 fcport->cfg.trl_def_speed = iocmd->speed; in bfad_iocmd_ratelim_speed()
982 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ratelim_speed()
992 struct bfa_bsg_fcpim_s *iocmd = (struct bfa_bsg_fcpim_s *)cmd; in bfad_iocmd_cfg_fcpim() local
996 bfa_fcpim_path_tov_set(&bfad->bfa, iocmd->param); in bfad_iocmd_cfg_fcpim()
998 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_cfg_fcpim()
1005 struct bfa_bsg_fcpim_modstats_s *iocmd = in bfad_iocmd_fcpim_get_modstats() local
1014 memset((void *)&iocmd->modstats, 0, sizeof(struct bfa_itnim_iostats_s)); in bfad_iocmd_fcpim_get_modstats()
1017 bfa_fcpim_add_stats(&iocmd->modstats, &(itnim->stats)); in bfad_iocmd_fcpim_get_modstats()
1020 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_get_modstats()
1027 struct bfa_bsg_fcpim_modstatsclr_s *iocmd = in bfad_iocmd_fcpim_clr_modstats() local
1042 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_clr_modstats()
1049 struct bfa_bsg_fcpim_del_itn_stats_s *iocmd = in bfad_iocmd_fcpim_get_del_itn_stats() local
1055 memcpy((void *)&iocmd->modstats, (void *)&fcpim->del_itn_stats, in bfad_iocmd_fcpim_get_del_itn_stats()
1059 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_get_del_itn_stats()
1066 struct bfa_bsg_itnim_attr_s *iocmd = (struct bfa_bsg_itnim_attr_s *)cmd; in bfad_iocmd_itnim_get_attr() local
1072 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_attr()
1074 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_attr()
1076 iocmd->status = bfa_fcs_itnim_attr_get(fcs_port, in bfad_iocmd_itnim_get_attr()
1077 iocmd->rpwwn, &iocmd->attr); in bfad_iocmd_itnim_get_attr()
1085 struct bfa_bsg_itnim_iostats_s *iocmd = in bfad_iocmd_itnim_get_iostats() local
1093 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_iostats()
1095 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_iostats()
1098 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_iostats()
1100 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_iostats()
1102 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_get_iostats()
1104 memcpy((void *)&iocmd->iostats, (void *) in bfad_iocmd_itnim_get_iostats()
1116 struct bfa_bsg_rport_reset_stats_s *iocmd = in bfad_iocmd_itnim_reset_stats() local
1124 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_itnim_reset_stats()
1126 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_reset_stats()
1128 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_reset_stats()
1130 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_reset_stats()
1132 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_reset_stats()
1133 bfa_fcs_itnim_stats_clear(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_reset_stats()
1145 struct bfa_bsg_itnim_itnstats_s *iocmd = in bfad_iocmd_itnim_get_itnstats() local
1153 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_itnstats()
1155 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_itnstats()
1158 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_itnstats()
1160 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_itnstats()
1162 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_get_itnstats()
1163 bfa_fcs_itnim_stats_get(fcs_port, iocmd->rpwwn, in bfad_iocmd_itnim_get_itnstats()
1164 &iocmd->itnstats); in bfad_iocmd_itnim_get_itnstats()
1174 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_enable() local
1178 iocmd->status = bfa_fcport_enable(&bfad->bfa); in bfad_iocmd_fcport_enable()
1187 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_disable() local
1191 iocmd->status = bfa_fcport_disable(&bfad->bfa); in bfad_iocmd_fcport_disable()
1200 struct bfa_bsg_pcifn_cfg_s *iocmd = (struct bfa_bsg_pcifn_cfg_s *)cmd; in bfad_iocmd_ioc_get_pcifn_cfg() local
1206 iocmd->status = bfa_ablk_query(&bfad->bfa.modules.ablk, in bfad_iocmd_ioc_get_pcifn_cfg()
1207 &iocmd->pcifn_cfg, in bfad_iocmd_ioc_get_pcifn_cfg()
1210 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ioc_get_pcifn_cfg()
1214 iocmd->status = fcomp.status; in bfad_iocmd_ioc_get_pcifn_cfg()
1222 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_create() local
1228 iocmd->status = bfa_ablk_pf_create(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_create()
1229 &iocmd->pcifn_id, iocmd->port, in bfad_iocmd_pcifn_create()
1230 iocmd->pcifn_class, iocmd->bw_min, in bfad_iocmd_pcifn_create()
1231 iocmd->bw_max, bfad_hcb_comp, &fcomp); in bfad_iocmd_pcifn_create()
1233 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_create()
1237 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_create()
1245 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_delete() local
1251 iocmd->status = bfa_ablk_pf_delete(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_delete()
1252 iocmd->pcifn_id, in bfad_iocmd_pcifn_delete()
1255 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_delete()
1259 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_delete()
1267 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_bw() local
1273 iocmd->status = bfa_ablk_pf_update(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_bw()
1274 iocmd->pcifn_id, iocmd->bw_min, in bfad_iocmd_pcifn_bw()
1275 iocmd->bw_max, bfad_hcb_comp, &fcomp); in bfad_iocmd_pcifn_bw()
1277 bfa_trc(bfad, iocmd->status); in bfad_iocmd_pcifn_bw()
1278 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_bw()
1282 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_bw()
1283 bfa_trc(bfad, iocmd->status); in bfad_iocmd_pcifn_bw()
1291 struct bfa_bsg_adapter_cfg_mode_s *iocmd = in bfad_iocmd_adapter_cfg_mode() local
1298 iocmd->status = bfa_ablk_adapter_config(&bfad->bfa.modules.ablk, in bfad_iocmd_adapter_cfg_mode()
1299 iocmd->cfg.mode, iocmd->cfg.max_pf, in bfad_iocmd_adapter_cfg_mode()
1300 iocmd->cfg.max_vf, bfad_hcb_comp, &fcomp); in bfad_iocmd_adapter_cfg_mode()
1302 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_adapter_cfg_mode()
1306 iocmd->status = fcomp.status; in bfad_iocmd_adapter_cfg_mode()
1314 struct bfa_bsg_port_cfg_mode_s *iocmd = in bfad_iocmd_port_cfg_mode() local
1321 iocmd->status = bfa_ablk_port_config(&bfad->bfa.modules.ablk, in bfad_iocmd_port_cfg_mode()
1322 iocmd->instance, iocmd->cfg.mode, in bfad_iocmd_port_cfg_mode()
1323 iocmd->cfg.max_pf, iocmd->cfg.max_vf, in bfad_iocmd_port_cfg_mode()
1326 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_port_cfg_mode()
1330 iocmd->status = fcomp.status; in bfad_iocmd_port_cfg_mode()
1338 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ablk_optrom() local
1345 iocmd->status = bfa_ablk_optrom_en(&bfad->bfa.modules.ablk, in bfad_iocmd_ablk_optrom()
1348 iocmd->status = bfa_ablk_optrom_dis(&bfad->bfa.modules.ablk, in bfad_iocmd_ablk_optrom()
1352 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ablk_optrom()
1356 iocmd->status = fcomp.status; in bfad_iocmd_ablk_optrom()
1364 struct bfa_bsg_faa_attr_s *iocmd = (struct bfa_bsg_faa_attr_s *)cmd; in bfad_iocmd_faa_query() local
1369 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_faa_query()
1371 iocmd->status = bfa_faa_query(&bfad->bfa, &iocmd->faa_attr, in bfad_iocmd_faa_query()
1375 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_faa_query()
1379 iocmd->status = fcomp.status; in bfad_iocmd_faa_query()
1387 struct bfa_bsg_cee_attr_s *iocmd = in bfad_iocmd_cee_attr() local
1396 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_cee_attr()
1400 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_cee_attr_s); in bfad_iocmd_cee_attr()
1406 iocmd->status = bfa_cee_get_attr(&bfad->bfa.modules.cee, iocmd_bufptr, in bfad_iocmd_cee_attr()
1409 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_cee_attr()
1424 struct bfa_bsg_cee_stats_s *iocmd = in bfad_iocmd_cee_get_stats() local
1433 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_cee_get_stats()
1437 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_cee_stats_s); in bfad_iocmd_cee_get_stats()
1443 iocmd->status = bfa_cee_get_stats(&bfad->bfa.modules.cee, iocmd_bufptr, in bfad_iocmd_cee_get_stats()
1446 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_cee_get_stats()
1460 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_cee_reset_stats() local
1464 iocmd->status = bfa_cee_reset_stats(&bfad->bfa.modules.cee, NULL, NULL); in bfad_iocmd_cee_reset_stats()
1466 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_cee_reset_stats()
1474 struct bfa_bsg_sfp_media_s *iocmd = (struct bfa_bsg_sfp_media_s *)cmd; in bfad_iocmd_sfp_media() local
1480 iocmd->status = bfa_sfp_media(BFA_SFP_MOD(&bfad->bfa), &iocmd->media, in bfad_iocmd_sfp_media()
1483 bfa_trc(bfad, iocmd->status); in bfad_iocmd_sfp_media()
1484 if (iocmd->status != BFA_STATUS_SFP_NOT_READY) in bfad_iocmd_sfp_media()
1488 iocmd->status = fcomp.status; in bfad_iocmd_sfp_media()
1496 struct bfa_bsg_sfp_speed_s *iocmd = (struct bfa_bsg_sfp_speed_s *)cmd; in bfad_iocmd_sfp_speed() local
1502 iocmd->status = bfa_sfp_speed(BFA_SFP_MOD(&bfad->bfa), iocmd->speed, in bfad_iocmd_sfp_speed()
1505 bfa_trc(bfad, iocmd->status); in bfad_iocmd_sfp_speed()
1506 if (iocmd->status != BFA_STATUS_SFP_NOT_READY) in bfad_iocmd_sfp_speed()
1509 iocmd->status = fcomp.status; in bfad_iocmd_sfp_speed()
1517 struct bfa_bsg_flash_attr_s *iocmd = in bfad_iocmd_flash_get_attr() local
1524 iocmd->status = bfa_flash_get_attr(BFA_FLASH(&bfad->bfa), &iocmd->attr, in bfad_iocmd_flash_get_attr()
1527 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_get_attr()
1530 iocmd->status = fcomp.status; in bfad_iocmd_flash_get_attr()
1538 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_erase_part() local
1544 iocmd->status = bfa_flash_erase_part(BFA_FLASH(&bfad->bfa), iocmd->type, in bfad_iocmd_flash_erase_part()
1545 iocmd->instance, bfad_hcb_comp, &fcomp); in bfad_iocmd_flash_erase_part()
1547 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_erase_part()
1550 iocmd->status = fcomp.status; in bfad_iocmd_flash_erase_part()
1559 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_update_part() local
1566 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_update_part()
1567 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_flash_update_part()
1571 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_flash_s); in bfad_iocmd_flash_update_part()
1575 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_flash_update_part()
1576 iocmd->type, iocmd->instance, iocmd_bufptr, in bfad_iocmd_flash_update_part()
1577 iocmd->bufsz, 0, bfad_hcb_comp, &fcomp); in bfad_iocmd_flash_update_part()
1579 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_update_part()
1582 iocmd->status = fcomp.status; in bfad_iocmd_flash_update_part()
1591 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_read_part() local
1598 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_read_part()
1599 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_flash_read_part()
1603 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_flash_s); in bfad_iocmd_flash_read_part()
1607 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), iocmd->type, in bfad_iocmd_flash_read_part()
1608 iocmd->instance, iocmd_bufptr, iocmd->bufsz, 0, in bfad_iocmd_flash_read_part()
1611 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_read_part()
1614 iocmd->status = fcomp.status; in bfad_iocmd_flash_read_part()
1622 struct bfa_bsg_diag_get_temp_s *iocmd = in bfad_iocmd_diag_temp() local
1629 iocmd->status = bfa_diag_tsensor_query(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_temp()
1630 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_temp()
1632 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_temp()
1633 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_temp()
1636 iocmd->status = fcomp.status; in bfad_iocmd_diag_temp()
1644 struct bfa_bsg_diag_memtest_s *iocmd = in bfad_iocmd_diag_memtest() local
1651 iocmd->status = bfa_diag_memtest(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_memtest()
1652 &iocmd->memtest, iocmd->pat, in bfad_iocmd_diag_memtest()
1653 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_memtest()
1655 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_memtest()
1656 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_memtest()
1659 iocmd->status = fcomp.status; in bfad_iocmd_diag_memtest()
1667 struct bfa_bsg_diag_loopback_s *iocmd = in bfad_iocmd_diag_loopback() local
1674 iocmd->status = bfa_fcdiag_loopback(&bfad->bfa, iocmd->opmode, in bfad_iocmd_diag_loopback()
1675 iocmd->speed, iocmd->lpcnt, iocmd->pat, in bfad_iocmd_diag_loopback()
1676 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_loopback()
1678 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_loopback()
1679 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_loopback()
1682 iocmd->status = fcomp.status; in bfad_iocmd_diag_loopback()
1690 struct bfa_bsg_diag_fwping_s *iocmd = in bfad_iocmd_diag_fwping() local
1697 iocmd->status = bfa_diag_fwping(BFA_DIAG_MOD(&bfad->bfa), iocmd->cnt, in bfad_iocmd_diag_fwping()
1698 iocmd->pattern, &iocmd->result, in bfad_iocmd_diag_fwping()
1701 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_fwping()
1702 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_fwping()
1706 iocmd->status = fcomp.status; in bfad_iocmd_diag_fwping()
1714 struct bfa_bsg_diag_qtest_s *iocmd = (struct bfa_bsg_diag_qtest_s *)cmd; in bfad_iocmd_diag_queuetest() local
1720 iocmd->status = bfa_fcdiag_queuetest(&bfad->bfa, iocmd->force, in bfad_iocmd_diag_queuetest()
1721 iocmd->queue, &iocmd->result, in bfad_iocmd_diag_queuetest()
1724 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_queuetest()
1727 iocmd->status = fcomp.status; in bfad_iocmd_diag_queuetest()
1735 struct bfa_bsg_sfp_show_s *iocmd = in bfad_iocmd_diag_sfp() local
1742 iocmd->status = bfa_sfp_show(BFA_SFP_MOD(&bfad->bfa), &iocmd->sfp, in bfad_iocmd_diag_sfp()
1745 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_sfp()
1746 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_sfp()
1749 iocmd->status = fcomp.status; in bfad_iocmd_diag_sfp()
1750 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_sfp()
1758 struct bfa_bsg_diag_led_s *iocmd = (struct bfa_bsg_diag_led_s *)cmd; in bfad_iocmd_diag_led() local
1762 iocmd->status = bfa_diag_ledtest(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_led()
1763 &iocmd->ledtest); in bfad_iocmd_diag_led()
1771 struct bfa_bsg_diag_beacon_s *iocmd = in bfad_iocmd_diag_beacon_lport() local
1776 iocmd->status = bfa_diag_beacon_port(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_beacon_lport()
1777 iocmd->beacon, iocmd->link_e2e_beacon, in bfad_iocmd_diag_beacon_lport()
1778 iocmd->second); in bfad_iocmd_diag_beacon_lport()
1786 struct bfa_bsg_diag_lb_stat_s *iocmd = in bfad_iocmd_diag_lb_stat() local
1791 iocmd->status = bfa_fcdiag_lb_is_running(&bfad->bfa); in bfad_iocmd_diag_lb_stat()
1793 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_lb_stat()
1801 struct bfa_bsg_dport_enable_s *iocmd = in bfad_iocmd_diag_dport_enable() local
1808 iocmd->status = bfa_dport_enable(&bfad->bfa, iocmd->lpcnt, in bfad_iocmd_diag_dport_enable()
1809 iocmd->pat, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_dport_enable()
1811 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_dport_enable()
1812 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_enable()
1815 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_enable()
1823 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_diag_dport_disable() local
1829 iocmd->status = bfa_dport_disable(&bfad->bfa, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_dport_disable()
1831 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_dport_disable()
1832 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_disable()
1835 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_disable()
1843 struct bfa_bsg_dport_enable_s *iocmd = in bfad_iocmd_diag_dport_start() local
1850 iocmd->status = bfa_dport_start(&bfad->bfa, iocmd->lpcnt, in bfad_iocmd_diag_dport_start()
1851 iocmd->pat, bfad_hcb_comp, in bfad_iocmd_diag_dport_start()
1855 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_diag_dport_start()
1856 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_start()
1859 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_start()
1868 struct bfa_bsg_diag_dport_show_s *iocmd = in bfad_iocmd_diag_dport_show() local
1873 iocmd->status = bfa_dport_show(&bfad->bfa, &iocmd->result); in bfad_iocmd_diag_dport_show()
1883 struct bfa_bsg_phy_attr_s *iocmd = in bfad_iocmd_phy_get_attr() local
1890 iocmd->status = bfa_phy_get_attr(BFA_PHY(&bfad->bfa), iocmd->instance, in bfad_iocmd_phy_get_attr()
1891 &iocmd->attr, bfad_hcb_comp, &fcomp); in bfad_iocmd_phy_get_attr()
1893 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_get_attr()
1896 iocmd->status = fcomp.status; in bfad_iocmd_phy_get_attr()
1904 struct bfa_bsg_phy_stats_s *iocmd = in bfad_iocmd_phy_get_stats() local
1911 iocmd->status = bfa_phy_get_stats(BFA_PHY(&bfad->bfa), iocmd->instance, in bfad_iocmd_phy_get_stats()
1912 &iocmd->stats, bfad_hcb_comp, &fcomp); in bfad_iocmd_phy_get_stats()
1914 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_get_stats()
1917 iocmd->status = fcomp.status; in bfad_iocmd_phy_get_stats()
1925 struct bfa_bsg_phy_s *iocmd = (struct bfa_bsg_phy_s *)cmd; in bfad_iocmd_phy_read() local
1932 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_read()
1933 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_phy_read()
1937 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_phy_s); in bfad_iocmd_phy_read()
1940 iocmd->status = bfa_phy_read(BFA_PHY(&bfad->bfa), in bfad_iocmd_phy_read()
1941 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_read()
1944 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_read()
1947 iocmd->status = fcomp.status; in bfad_iocmd_phy_read()
1948 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_read()
1957 struct bfa_bsg_vhba_attr_s *iocmd = in bfad_iocmd_vhba_query() local
1959 struct bfa_vhba_attr_s *attr = &iocmd->attr; in bfad_iocmd_vhba_query()
1968 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vhba_query()
1976 struct bfa_bsg_phy_s *iocmd = (struct bfa_bsg_phy_s *)cmd; in bfad_iocmd_phy_update() local
1983 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_update()
1984 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_phy_update()
1988 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_phy_s); in bfad_iocmd_phy_update()
1991 iocmd->status = bfa_phy_update(BFA_PHY(&bfad->bfa), in bfad_iocmd_phy_update()
1992 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_update()
1995 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_update()
1998 iocmd->status = fcomp.status; in bfad_iocmd_phy_update()
2006 struct bfa_bsg_debug_s *iocmd = (struct bfa_bsg_debug_s *)cmd; in bfad_iocmd_porglog_get() local
2009 if (iocmd->bufsz < sizeof(struct bfa_plog_s)) { in bfad_iocmd_porglog_get()
2011 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_porglog_get()
2015 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_porglog_get()
2016 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_debug_s); in bfad_iocmd_porglog_get()
2027 struct bfa_bsg_debug_s *iocmd = (struct bfa_bsg_debug_s *)cmd; in bfad_iocmd_debug_fw_core() local
2034 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_debug_fw_core()
2038 if (iocmd->bufsz < BFA_DEBUG_FW_CORE_CHUNK_SZ || in bfad_iocmd_debug_fw_core()
2039 !IS_ALIGNED(iocmd->bufsz, sizeof(u16)) || in bfad_iocmd_debug_fw_core()
2040 !IS_ALIGNED(iocmd->offset, sizeof(u32))) { in bfad_iocmd_debug_fw_core()
2042 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_debug_fw_core()
2046 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_debug_s); in bfad_iocmd_debug_fw_core()
2048 offset = iocmd->offset; in bfad_iocmd_debug_fw_core()
2049 iocmd->status = bfa_ioc_debug_fwcore(&bfad->bfa.ioc, iocmd_bufptr, in bfad_iocmd_debug_fw_core()
2050 &offset, &iocmd->bufsz); in bfad_iocmd_debug_fw_core()
2051 iocmd->offset = offset; in bfad_iocmd_debug_fw_core()
2060 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_debug_ctl() local
2074 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_debug_ctl()
2081 struct bfa_bsg_portlogctl_s *iocmd = (struct bfa_bsg_portlogctl_s *)cmd; in bfad_iocmd_porglog_ctl() local
2083 if (iocmd->ctl == BFA_TRUE) in bfad_iocmd_porglog_ctl()
2088 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_porglog_ctl()
2095 struct bfa_bsg_fcpim_profile_s *iocmd = in bfad_iocmd_fcpim_cfg_profile() local
2101 iocmd->status = bfa_fcpim_profile_on(&bfad->bfa, ktime_get_real_seconds()); in bfad_iocmd_fcpim_cfg_profile()
2103 iocmd->status = bfa_fcpim_profile_off(&bfad->bfa); in bfad_iocmd_fcpim_cfg_profile()
2112 struct bfa_bsg_itnim_ioprofile_s *iocmd = in bfad_iocmd_itnim_get_ioprofile() local
2120 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_ioprofile()
2122 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_ioprofile()
2124 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_ioprofile()
2126 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_ioprofile()
2128 iocmd->status = bfa_itnim_get_ioprofile( in bfad_iocmd_itnim_get_ioprofile()
2130 &iocmd->ioprofile); in bfad_iocmd_itnim_get_ioprofile()
2139 struct bfa_bsg_fcport_stats_s *iocmd = in bfad_iocmd_fcport_get_stats() local
2147 &fcomp, &iocmd->stats); in bfad_iocmd_fcport_get_stats()
2149 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_fcport_get_stats()
2151 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_fcport_get_stats()
2152 bfa_trc(bfad, iocmd->status); in bfad_iocmd_fcport_get_stats()
2156 iocmd->status = fcomp.status; in bfad_iocmd_fcport_get_stats()
2164 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_reset_stats() local
2173 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_fcport_reset_stats()
2175 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_fcport_reset_stats()
2176 bfa_trc(bfad, iocmd->status); in bfad_iocmd_fcport_reset_stats()
2180 iocmd->status = fcomp.status; in bfad_iocmd_fcport_reset_stats()
2188 struct bfa_bsg_boot_s *iocmd = (struct bfa_bsg_boot_s *)cmd; in bfad_iocmd_boot_cfg() local
2194 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_boot_cfg()
2196 &iocmd->cfg, sizeof(struct bfa_boot_cfg_s), 0, in bfad_iocmd_boot_cfg()
2199 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_boot_cfg()
2202 iocmd->status = fcomp.status; in bfad_iocmd_boot_cfg()
2210 struct bfa_bsg_boot_s *iocmd = (struct bfa_bsg_boot_s *)cmd; in bfad_iocmd_boot_query() local
2216 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_boot_query()
2218 &iocmd->cfg, sizeof(struct bfa_boot_cfg_s), 0, in bfad_iocmd_boot_query()
2221 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_boot_query()
2224 iocmd->status = fcomp.status; in bfad_iocmd_boot_query()
2232 struct bfa_bsg_preboot_s *iocmd = (struct bfa_bsg_preboot_s *)cmd; in bfad_iocmd_preboot_query() local
2234 struct bfa_boot_pbc_s *pbcfg = &iocmd->cfg; in bfad_iocmd_preboot_query()
2242 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_preboot_query()
2251 struct bfa_bsg_ethboot_s *iocmd = (struct bfa_bsg_ethboot_s *)cmd; in bfad_iocmd_ethboot_cfg() local
2257 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_ethboot_cfg()
2259 bfad->bfa.ioc.port_id, &iocmd->cfg, in bfad_iocmd_ethboot_cfg()
2263 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ethboot_cfg()
2266 iocmd->status = fcomp.status; in bfad_iocmd_ethboot_cfg()
2274 struct bfa_bsg_ethboot_s *iocmd = (struct bfa_bsg_ethboot_s *)cmd; in bfad_iocmd_ethboot_query() local
2280 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_ethboot_query()
2282 bfad->bfa.ioc.port_id, &iocmd->cfg, in bfad_iocmd_ethboot_query()
2286 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ethboot_query()
2289 iocmd->status = fcomp.status; in bfad_iocmd_ethboot_query()
2297 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_cfg_trunk() local
2311 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_cfg_trunk()
2326 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_cfg_trunk()
2337 struct bfa_bsg_trunk_attr_s *iocmd = (struct bfa_bsg_trunk_attr_s *)cmd; in bfad_iocmd_trunk_get_attr() local
2345 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_trunk_get_attr()
2347 memcpy((void *)&iocmd->attr, (void *)&trunk->attr, in bfad_iocmd_trunk_get_attr()
2349 iocmd->attr.port_id = bfa_lps_get_base_pid(&bfad->bfa); in bfad_iocmd_trunk_get_attr()
2350 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_trunk_get_attr()
2360 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_qos() local
2368 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos()
2388 struct bfa_bsg_qos_attr_s *iocmd = (struct bfa_bsg_qos_attr_s *)cmd; in bfad_iocmd_qos_get_attr() local
2395 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_get_attr()
2397 iocmd->attr.state = fcport->qos_attr.state; in bfad_iocmd_qos_get_attr()
2398 iocmd->attr.total_bb_cr = in bfad_iocmd_qos_get_attr()
2400 iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; in bfad_iocmd_qos_get_attr()
2401 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
2402 iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; in bfad_iocmd_qos_get_attr()
2403 iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; in bfad_iocmd_qos_get_attr()
2404 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_qos_get_attr()
2414 struct bfa_bsg_qos_vc_attr_s *iocmd = in bfad_iocmd_qos_get_vc_attr() local
2422 iocmd->attr.total_vc_count = be16_to_cpu(bfa_vc_attr->total_vc_count); in bfad_iocmd_qos_get_vc_attr()
2423 iocmd->attr.shared_credit = be16_to_cpu(bfa_vc_attr->shared_credit); in bfad_iocmd_qos_get_vc_attr()
2424 iocmd->attr.elp_opmode_flags = in bfad_iocmd_qos_get_vc_attr()
2428 while (i < iocmd->attr.total_vc_count) { in bfad_iocmd_qos_get_vc_attr()
2429 iocmd->attr.vc_info[i].vc_credit = in bfad_iocmd_qos_get_vc_attr()
2431 iocmd->attr.vc_info[i].borrow_credit = in bfad_iocmd_qos_get_vc_attr()
2433 iocmd->attr.vc_info[i].priority = in bfad_iocmd_qos_get_vc_attr()
2439 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_qos_get_vc_attr()
2446 struct bfa_bsg_fcport_stats_s *iocmd = in bfad_iocmd_qos_get_stats() local
2455 &fcomp, &iocmd->stats); in bfad_iocmd_qos_get_stats()
2461 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_get_stats()
2463 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_qos_get_stats()
2465 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_qos_get_stats()
2466 bfa_trc(bfad, iocmd->status); in bfad_iocmd_qos_get_stats()
2470 iocmd->status = fcomp.status; in bfad_iocmd_qos_get_stats()
2478 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_qos_reset_stats() local
2492 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_reset_stats()
2494 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_qos_reset_stats()
2496 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_qos_reset_stats()
2497 bfa_trc(bfad, iocmd->status); in bfad_iocmd_qos_reset_stats()
2501 iocmd->status = fcomp.status; in bfad_iocmd_qos_reset_stats()
2509 struct bfa_bsg_vf_stats_s *iocmd = in bfad_iocmd_vf_get_stats() local
2515 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_vf_get_stats()
2518 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_vf_get_stats()
2521 memcpy((void *)&iocmd->stats, (void *)&fcs_vf->stats, in bfad_iocmd_vf_get_stats()
2524 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vf_get_stats()
2532 struct bfa_bsg_vf_reset_stats_s *iocmd = in bfad_iocmd_vf_clr_stats() local
2538 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_vf_clr_stats()
2541 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_vf_clr_stats()
2546 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vf_clr_stats()
2569 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_lunmask() local
2574 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_TRUE); in bfad_iocmd_lunmask()
2576 if (iocmd->status == BFA_STATUS_OK) in bfad_iocmd_lunmask()
2579 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_FALSE); in bfad_iocmd_lunmask()
2581 if (iocmd->status == BFA_STATUS_OK) in bfad_iocmd_lunmask()
2584 iocmd->status = bfa_fcpim_lunmask_clear(&bfad->bfa); in bfad_iocmd_lunmask()
2592 struct bfa_bsg_fcpim_lunmask_query_s *iocmd = in bfad_iocmd_fcpim_lunmask_query() local
2594 struct bfa_lunmask_cfg_s *lun_mask = &iocmd->lun_mask; in bfad_iocmd_fcpim_lunmask_query()
2598 iocmd->status = bfa_fcpim_lunmask_query(&bfad->bfa, lun_mask); in bfad_iocmd_fcpim_lunmask_query()
2606 struct bfa_bsg_fcpim_lunmask_s *iocmd = in bfad_iocmd_fcpim_cfg_lunmask() local
2612 iocmd->status = bfa_fcpim_lunmask_add(&bfad->bfa, iocmd->vf_id, in bfad_iocmd_fcpim_cfg_lunmask()
2613 &iocmd->pwwn, iocmd->rpwwn, iocmd->lun); in bfad_iocmd_fcpim_cfg_lunmask()
2615 iocmd->status = bfa_fcpim_lunmask_delete(&bfad->bfa, in bfad_iocmd_fcpim_cfg_lunmask()
2616 iocmd->vf_id, &iocmd->pwwn, in bfad_iocmd_fcpim_cfg_lunmask()
2617 iocmd->rpwwn, iocmd->lun); in bfad_iocmd_fcpim_cfg_lunmask()
2625 struct bfa_bsg_fcpim_throttle_s *iocmd = in bfad_iocmd_fcpim_throttle_query() local
2630 iocmd->status = bfa_fcpim_throttle_get(&bfad->bfa, in bfad_iocmd_fcpim_throttle_query()
2631 (void *)&iocmd->throttle); in bfad_iocmd_fcpim_throttle_query()
2640 struct bfa_bsg_fcpim_throttle_s *iocmd = in bfad_iocmd_fcpim_throttle_set() local
2645 iocmd->status = bfa_fcpim_throttle_set(&bfad->bfa, in bfad_iocmd_fcpim_throttle_set()
2646 iocmd->throttle.cfg_value); in bfad_iocmd_fcpim_throttle_set()
2655 struct bfa_bsg_tfru_s *iocmd = in bfad_iocmd_tfru_read() local
2662 iocmd->status = bfa_tfru_read(BFA_FRU(&bfad->bfa), in bfad_iocmd_tfru_read()
2663 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_tfru_read()
2666 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_tfru_read()
2668 iocmd->status = fcomp.status; in bfad_iocmd_tfru_read()
2677 struct bfa_bsg_tfru_s *iocmd = in bfad_iocmd_tfru_write() local
2684 iocmd->status = bfa_tfru_write(BFA_FRU(&bfad->bfa), in bfad_iocmd_tfru_write()
2685 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_tfru_write()
2688 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_tfru_write()
2690 iocmd->status = fcomp.status; in bfad_iocmd_tfru_write()
2699 struct bfa_bsg_fruvpd_s *iocmd = in bfad_iocmd_fruvpd_read() local
2706 iocmd->status = bfa_fruvpd_read(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_read()
2707 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_fruvpd_read()
2710 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_fruvpd_read()
2712 iocmd->status = fcomp.status; in bfad_iocmd_fruvpd_read()
2721 struct bfa_bsg_fruvpd_s *iocmd = in bfad_iocmd_fruvpd_update() local
2728 iocmd->status = bfa_fruvpd_update(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_update()
2729 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_fruvpd_update()
2730 bfad_hcb_comp, &fcomp, iocmd->trfr_cmpl); in bfad_iocmd_fruvpd_update()
2732 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_fruvpd_update()
2734 iocmd->status = fcomp.status; in bfad_iocmd_fruvpd_update()
2743 struct bfa_bsg_fruvpd_max_size_s *iocmd = in bfad_iocmd_fruvpd_get_max_size() local
2748 iocmd->status = bfa_fruvpd_get_max_size(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_get_max_size()
2749 &iocmd->max_size); in bfad_iocmd_fruvpd_get_max_size()
2756 bfad_iocmd_handler(struct bfad_s *bfad, unsigned int cmd, void *iocmd, in bfad_iocmd_handler() argument
2763 rc = bfad_iocmd_ioc_enable(bfad, iocmd); in bfad_iocmd_handler()
2766 rc = bfad_iocmd_ioc_disable(bfad, iocmd); in bfad_iocmd_handler()
2769 rc = bfad_iocmd_ioc_get_info(bfad, iocmd); in bfad_iocmd_handler()
2772 rc = bfad_iocmd_ioc_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2775 rc = bfad_iocmd_ioc_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2778 rc = bfad_iocmd_ioc_get_fwstats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2782 rc = bfad_iocmd_ioc_reset_stats(bfad, iocmd, cmd); in bfad_iocmd_handler()
2786 rc = bfad_iocmd_ioc_set_name(bfad, iocmd, cmd); in bfad_iocmd_handler()
2789 rc = bfad_iocmd_iocfc_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2792 rc = bfad_iocmd_iocfc_set_intr(bfad, iocmd); in bfad_iocmd_handler()
2795 rc = bfad_iocmd_port_enable(bfad, iocmd); in bfad_iocmd_handler()
2798 rc = bfad_iocmd_port_disable(bfad, iocmd); in bfad_iocmd_handler()
2801 rc = bfad_iocmd_port_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2804 rc = bfad_iocmd_port_get_stats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2807 rc = bfad_iocmd_port_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2813 rc = bfad_iocmd_set_port_cfg(bfad, iocmd, cmd); in bfad_iocmd_handler()
2816 rc = bfad_iocmd_port_cfg_maxfrsize(bfad, iocmd); in bfad_iocmd_handler()
2820 rc = bfad_iocmd_port_cfg_bbcr(bfad, cmd, iocmd); in bfad_iocmd_handler()
2823 rc = bfad_iocmd_port_get_bbcr_attr(bfad, iocmd); in bfad_iocmd_handler()
2826 rc = bfad_iocmd_lport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2829 rc = bfad_iocmd_lport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2832 rc = bfad_iocmd_lport_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2835 rc = bfad_iocmd_lport_get_iostats(bfad, iocmd); in bfad_iocmd_handler()
2838 rc = bfad_iocmd_lport_get_rports(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2841 rc = bfad_iocmd_rport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2844 rc = bfad_iocmd_rport_get_addr(bfad, iocmd); in bfad_iocmd_handler()
2847 rc = bfad_iocmd_rport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2850 rc = bfad_iocmd_rport_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
2853 rc = bfad_iocmd_rport_set_speed(bfad, iocmd); in bfad_iocmd_handler()
2856 rc = bfad_iocmd_vport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2859 rc = bfad_iocmd_vport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2862 rc = bfad_iocmd_vport_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
2865 rc = bfad_iocmd_fabric_get_lports(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2869 rc = bfad_iocmd_ratelim(bfad, cmd, iocmd); in bfad_iocmd_handler()
2872 rc = bfad_iocmd_ratelim_speed(bfad, cmd, iocmd); in bfad_iocmd_handler()
2875 rc = bfad_iocmd_cfg_fcpim(bfad, iocmd); in bfad_iocmd_handler()
2878 rc = bfad_iocmd_fcpim_get_modstats(bfad, iocmd); in bfad_iocmd_handler()
2881 rc = bfad_iocmd_fcpim_clr_modstats(bfad, iocmd); in bfad_iocmd_handler()
2884 rc = bfad_iocmd_fcpim_get_del_itn_stats(bfad, iocmd); in bfad_iocmd_handler()
2887 rc = bfad_iocmd_itnim_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2890 rc = bfad_iocmd_itnim_get_iostats(bfad, iocmd); in bfad_iocmd_handler()
2893 rc = bfad_iocmd_itnim_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2896 rc = bfad_iocmd_itnim_get_itnstats(bfad, iocmd); in bfad_iocmd_handler()
2899 rc = bfad_iocmd_fcport_enable(bfad, iocmd); in bfad_iocmd_handler()
2902 rc = bfad_iocmd_fcport_disable(bfad, iocmd); in bfad_iocmd_handler()
2905 rc = bfad_iocmd_ioc_get_pcifn_cfg(bfad, iocmd); in bfad_iocmd_handler()
2908 rc = bfad_iocmd_ioc_fw_sig_inv(bfad, iocmd); in bfad_iocmd_handler()
2911 rc = bfad_iocmd_pcifn_create(bfad, iocmd); in bfad_iocmd_handler()
2914 rc = bfad_iocmd_pcifn_delete(bfad, iocmd); in bfad_iocmd_handler()
2917 rc = bfad_iocmd_pcifn_bw(bfad, iocmd); in bfad_iocmd_handler()
2920 rc = bfad_iocmd_adapter_cfg_mode(bfad, iocmd); in bfad_iocmd_handler()
2923 rc = bfad_iocmd_port_cfg_mode(bfad, iocmd); in bfad_iocmd_handler()
2927 rc = bfad_iocmd_ablk_optrom(bfad, cmd, iocmd); in bfad_iocmd_handler()
2930 rc = bfad_iocmd_faa_query(bfad, iocmd); in bfad_iocmd_handler()
2933 rc = bfad_iocmd_cee_attr(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2936 rc = bfad_iocmd_cee_get_stats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2939 rc = bfad_iocmd_cee_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2942 rc = bfad_iocmd_sfp_media(bfad, iocmd); in bfad_iocmd_handler()
2945 rc = bfad_iocmd_sfp_speed(bfad, iocmd); in bfad_iocmd_handler()
2948 rc = bfad_iocmd_flash_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2951 rc = bfad_iocmd_flash_erase_part(bfad, iocmd); in bfad_iocmd_handler()
2954 rc = bfad_iocmd_flash_update_part(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2957 rc = bfad_iocmd_flash_read_part(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2960 rc = bfad_iocmd_diag_temp(bfad, iocmd); in bfad_iocmd_handler()
2963 rc = bfad_iocmd_diag_memtest(bfad, iocmd); in bfad_iocmd_handler()
2966 rc = bfad_iocmd_diag_loopback(bfad, iocmd); in bfad_iocmd_handler()
2969 rc = bfad_iocmd_diag_fwping(bfad, iocmd); in bfad_iocmd_handler()
2972 rc = bfad_iocmd_diag_queuetest(bfad, iocmd); in bfad_iocmd_handler()
2975 rc = bfad_iocmd_diag_sfp(bfad, iocmd); in bfad_iocmd_handler()
2978 rc = bfad_iocmd_diag_led(bfad, iocmd); in bfad_iocmd_handler()
2981 rc = bfad_iocmd_diag_beacon_lport(bfad, iocmd); in bfad_iocmd_handler()
2984 rc = bfad_iocmd_diag_lb_stat(bfad, iocmd); in bfad_iocmd_handler()
2987 rc = bfad_iocmd_diag_dport_enable(bfad, iocmd); in bfad_iocmd_handler()
2990 rc = bfad_iocmd_diag_dport_disable(bfad, iocmd); in bfad_iocmd_handler()
2993 rc = bfad_iocmd_diag_dport_show(bfad, iocmd); in bfad_iocmd_handler()
2996 rc = bfad_iocmd_diag_dport_start(bfad, iocmd); in bfad_iocmd_handler()
2999 rc = bfad_iocmd_phy_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3002 rc = bfad_iocmd_phy_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3005 rc = bfad_iocmd_phy_update(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3008 rc = bfad_iocmd_phy_read(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3011 rc = bfad_iocmd_vhba_query(bfad, iocmd); in bfad_iocmd_handler()
3014 rc = bfad_iocmd_porglog_get(bfad, iocmd); in bfad_iocmd_handler()
3017 rc = bfad_iocmd_debug_fw_core(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3023 rc = bfad_iocmd_debug_ctl(bfad, iocmd, cmd); in bfad_iocmd_handler()
3026 rc = bfad_iocmd_porglog_ctl(bfad, iocmd); in bfad_iocmd_handler()
3030 rc = bfad_iocmd_fcpim_cfg_profile(bfad, iocmd, cmd); in bfad_iocmd_handler()
3033 rc = bfad_iocmd_itnim_get_ioprofile(bfad, iocmd); in bfad_iocmd_handler()
3036 rc = bfad_iocmd_fcport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3039 rc = bfad_iocmd_fcport_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
3042 rc = bfad_iocmd_boot_cfg(bfad, iocmd); in bfad_iocmd_handler()
3045 rc = bfad_iocmd_boot_query(bfad, iocmd); in bfad_iocmd_handler()
3048 rc = bfad_iocmd_preboot_query(bfad, iocmd); in bfad_iocmd_handler()
3051 rc = bfad_iocmd_ethboot_cfg(bfad, iocmd); in bfad_iocmd_handler()
3054 rc = bfad_iocmd_ethboot_query(bfad, iocmd); in bfad_iocmd_handler()
3058 rc = bfad_iocmd_cfg_trunk(bfad, iocmd, cmd); in bfad_iocmd_handler()
3061 rc = bfad_iocmd_trunk_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3065 rc = bfad_iocmd_qos(bfad, iocmd, cmd); in bfad_iocmd_handler()
3068 rc = bfad_iocmd_qos_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3071 rc = bfad_iocmd_qos_get_vc_attr(bfad, iocmd); in bfad_iocmd_handler()
3074 rc = bfad_iocmd_qos_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3077 rc = bfad_iocmd_qos_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
3080 rc = bfad_iocmd_qos_set_bw(bfad, iocmd); in bfad_iocmd_handler()
3083 rc = bfad_iocmd_vf_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3086 rc = bfad_iocmd_vf_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
3091 rc = bfad_iocmd_lunmask(bfad, iocmd, cmd); in bfad_iocmd_handler()
3094 rc = bfad_iocmd_fcpim_lunmask_query(bfad, iocmd); in bfad_iocmd_handler()
3098 rc = bfad_iocmd_fcpim_cfg_lunmask(bfad, iocmd, cmd); in bfad_iocmd_handler()
3101 rc = bfad_iocmd_fcpim_throttle_query(bfad, iocmd); in bfad_iocmd_handler()
3104 rc = bfad_iocmd_fcpim_throttle_set(bfad, iocmd); in bfad_iocmd_handler()
3108 rc = bfad_iocmd_tfru_read(bfad, iocmd); in bfad_iocmd_handler()
3111 rc = bfad_iocmd_tfru_write(bfad, iocmd); in bfad_iocmd_handler()
3115 rc = bfad_iocmd_fruvpd_read(bfad, iocmd); in bfad_iocmd_handler()
3118 rc = bfad_iocmd_fruvpd_update(bfad, iocmd); in bfad_iocmd_handler()
3121 rc = bfad_iocmd_fruvpd_get_max_size(bfad, iocmd); in bfad_iocmd_handler()