Lines Matching refs:iocmd

21 	struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd;  in bfad_iocmd_ioc_enable()  local
28 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_enable()
34 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_enable()
44 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_disable() local
50 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_disable()
66 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_disable()
75 struct bfa_bsg_ioc_info_s *iocmd = (struct bfa_bsg_ioc_info_s *)cmd; in bfad_iocmd_ioc_get_info() local
82 iocmd->nwwn = pattr.nwwn; in bfad_iocmd_ioc_get_info()
83 iocmd->pwwn = pattr.pwwn; in bfad_iocmd_ioc_get_info()
84 iocmd->ioc_type = bfa_get_type(&bfad->bfa); in bfad_iocmd_ioc_get_info()
85 iocmd->mac = bfa_get_mac(&bfad->bfa); in bfad_iocmd_ioc_get_info()
86 iocmd->factory_mac = bfa_get_mfg_mac(&bfad->bfa); in bfad_iocmd_ioc_get_info()
87 bfa_get_adapter_serial_num(&bfad->bfa, iocmd->serialnum); in bfad_iocmd_ioc_get_info()
88 iocmd->factorynwwn = pattr.factorynwwn; in bfad_iocmd_ioc_get_info()
89 iocmd->factorypwwn = pattr.factorypwwn; in bfad_iocmd_ioc_get_info()
90 iocmd->bfad_num = bfad->inst_no; in bfad_iocmd_ioc_get_info()
92 iocmd->host = im_port->shost->host_no; in bfad_iocmd_ioc_get_info()
95 strcpy(iocmd->name, bfad->adapter_name); in bfad_iocmd_ioc_get_info()
96 strcpy(iocmd->port_name, bfad->port_name); in bfad_iocmd_ioc_get_info()
97 strcpy(iocmd->hwpath, bfad->pci_name); in bfad_iocmd_ioc_get_info()
100 strcpy(iocmd->adapter_hwpath, bfad->pci_name); in bfad_iocmd_ioc_get_info()
101 for (i = 0; iocmd->adapter_hwpath[i] != ':' && i < BFA_STRING_32; i++) in bfad_iocmd_ioc_get_info()
103 for (; iocmd->adapter_hwpath[++i] != ':' && i < BFA_STRING_32; ) in bfad_iocmd_ioc_get_info()
105 iocmd->adapter_hwpath[i] = '\0'; in bfad_iocmd_ioc_get_info()
106 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_info()
113 struct bfa_bsg_ioc_attr_s *iocmd = (struct bfa_bsg_ioc_attr_s *)cmd; in bfad_iocmd_ioc_get_attr() local
117 bfa_ioc_get_attr(&bfad->bfa.ioc, &iocmd->ioc_attr); in bfad_iocmd_ioc_get_attr()
121 strcpy(iocmd->ioc_attr.driver_attr.driver, BFAD_DRIVER_NAME); in bfad_iocmd_ioc_get_attr()
122 strlcpy(iocmd->ioc_attr.driver_attr.driver_ver, in bfad_iocmd_ioc_get_attr()
124 strcpy(iocmd->ioc_attr.driver_attr.fw_ver, in bfad_iocmd_ioc_get_attr()
125 iocmd->ioc_attr.adapter_attr.fw_ver); in bfad_iocmd_ioc_get_attr()
126 strcpy(iocmd->ioc_attr.driver_attr.bios_ver, in bfad_iocmd_ioc_get_attr()
127 iocmd->ioc_attr.adapter_attr.optrom_ver); in bfad_iocmd_ioc_get_attr()
130 memcpy(bfad->pci_attr.chip_rev, iocmd->ioc_attr.pci_attr.chip_rev, in bfad_iocmd_ioc_get_attr()
132 memcpy(&iocmd->ioc_attr.pci_attr, &bfad->pci_attr, in bfad_iocmd_ioc_get_attr()
135 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_attr()
142 struct bfa_bsg_ioc_stats_s *iocmd = (struct bfa_bsg_ioc_stats_s *)cmd; in bfad_iocmd_ioc_get_stats() local
144 bfa_ioc_get_stats(&bfad->bfa, &iocmd->ioc_stats); in bfad_iocmd_ioc_get_stats()
145 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_get_stats()
153 struct bfa_bsg_ioc_fwstats_s *iocmd = in bfad_iocmd_ioc_get_fwstats() local
161 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_ioc_get_fwstats()
165 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_ioc_fwstats_s); in bfad_iocmd_ioc_get_fwstats()
167 iocmd->status = bfa_ioc_fw_stats_get(&bfad->bfa.ioc, iocmd_bufptr); in bfad_iocmd_ioc_get_fwstats()
170 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_ioc_get_fwstats()
171 bfa_trc(bfad, iocmd->status); in bfad_iocmd_ioc_get_fwstats()
182 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_reset_stats() local
187 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_reset_stats()
190 iocmd->status = bfa_ioc_fw_stats_clear(&bfad->bfa.ioc); in bfad_iocmd_ioc_reset_stats()
200 struct bfa_bsg_ioc_name_s *iocmd = (struct bfa_bsg_ioc_name_s *) cmd; in bfad_iocmd_ioc_set_name() local
203 strcpy(bfad->adapter_name, iocmd->name); in bfad_iocmd_ioc_set_name()
205 strcpy(bfad->port_name, iocmd->name); in bfad_iocmd_ioc_set_name()
207 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ioc_set_name()
214 struct bfa_bsg_iocfc_attr_s *iocmd = (struct bfa_bsg_iocfc_attr_s *)cmd; in bfad_iocmd_iocfc_get_attr() local
216 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_iocfc_get_attr()
217 bfa_iocfc_get_attr(&bfad->bfa, &iocmd->iocfc_attr); in bfad_iocmd_iocfc_get_attr()
225 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_ioc_fw_sig_inv() local
229 iocmd->status = bfa_ioc_fwsig_invalidate(&bfad->bfa.ioc); in bfad_iocmd_ioc_fw_sig_inv()
237 struct bfa_bsg_iocfc_intr_s *iocmd = (struct bfa_bsg_iocfc_intr_s *)cmd; in bfad_iocmd_iocfc_set_intr() local
241 iocmd->status = bfa_iocfc_israttr_set(&bfad->bfa, &iocmd->attr); in bfad_iocmd_iocfc_set_intr()
250 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_enable() local
256 iocmd->status = bfa_port_enable(&bfad->bfa.modules.port, in bfad_iocmd_port_enable()
259 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_enable()
260 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_enable()
264 iocmd->status = fcomp.status; in bfad_iocmd_port_enable()
271 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_disable() local
277 iocmd->status = bfa_port_disable(&bfad->bfa.modules.port, in bfad_iocmd_port_disable()
281 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_disable()
282 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_disable()
286 iocmd->status = fcomp.status; in bfad_iocmd_port_disable()
293 struct bfa_bsg_port_attr_s *iocmd = (struct bfa_bsg_port_attr_s *)cmd; in bfad_iocmd_port_get_attr() local
298 bfa_fcport_get_attr(&bfad->bfa, &iocmd->attr); in bfad_iocmd_port_get_attr()
302 if (iocmd->attr.topology != BFA_PORT_TOPOLOGY_NONE) in bfad_iocmd_port_get_attr()
303 iocmd->attr.pid = port_attr.pid; in bfad_iocmd_port_get_attr()
305 iocmd->attr.pid = 0; in bfad_iocmd_port_get_attr()
307 iocmd->attr.port_type = port_attr.port_type; in bfad_iocmd_port_get_attr()
308 iocmd->attr.loopback = port_attr.loopback; in bfad_iocmd_port_get_attr()
309 iocmd->attr.authfail = port_attr.authfail; in bfad_iocmd_port_get_attr()
310 strlcpy(iocmd->attr.port_symname.symname, in bfad_iocmd_port_get_attr()
312 sizeof(iocmd->attr.port_symname.symname)); in bfad_iocmd_port_get_attr()
314 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_port_get_attr()
322 struct bfa_bsg_port_stats_s *iocmd = (struct bfa_bsg_port_stats_s *)cmd; in bfad_iocmd_port_get_stats() local
330 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_port_get_stats()
334 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_port_stats_s); in bfad_iocmd_port_get_stats()
338 iocmd->status = bfa_port_get_stats(&bfad->bfa.modules.port, in bfad_iocmd_port_get_stats()
341 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_get_stats()
342 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_get_stats()
347 iocmd->status = fcomp.status; in bfad_iocmd_port_get_stats()
355 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_port_reset_stats() local
361 iocmd->status = bfa_port_clear_stats(&bfad->bfa.modules.port, in bfad_iocmd_port_reset_stats()
364 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_port_reset_stats()
365 bfa_trc(bfad, iocmd->status); in bfad_iocmd_port_reset_stats()
369 iocmd->status = fcomp.status; in bfad_iocmd_port_reset_stats()
374 bfad_iocmd_set_port_cfg(struct bfad_s *bfad, void *iocmd, unsigned int v_cmd) in bfad_iocmd_set_port_cfg() argument
376 struct bfa_bsg_port_cfg_s *cmd = (struct bfa_bsg_port_cfg_s *)iocmd; in bfad_iocmd_set_port_cfg()
396 struct bfa_bsg_port_cfg_maxfrsize_s *iocmd = in bfad_iocmd_port_cfg_maxfrsize() local
401 iocmd->status = bfa_fcport_cfg_maxfrsize(&bfad->bfa, iocmd->maxfrsize); in bfad_iocmd_port_cfg_maxfrsize()
410 struct bfa_bsg_bbcr_enable_s *iocmd = in bfad_iocmd_port_cfg_bbcr() local
417 rc = bfa_fcport_cfg_bbcr(&bfad->bfa, BFA_TRUE, iocmd->bb_scn); in bfad_iocmd_port_cfg_bbcr()
426 iocmd->status = rc; in bfad_iocmd_port_cfg_bbcr()
433 struct bfa_bsg_bbcr_attr_s *iocmd = (struct bfa_bsg_bbcr_attr_s *) pcmd; in bfad_iocmd_port_get_bbcr_attr() local
437 iocmd->status = in bfad_iocmd_port_get_bbcr_attr()
438 bfa_fcport_get_bbcr_attr(&bfad->bfa, &iocmd->attr); in bfad_iocmd_port_get_bbcr_attr()
449 struct bfa_bsg_lport_attr_s *iocmd = (struct bfa_bsg_lport_attr_s *)cmd; in bfad_iocmd_lport_get_attr() local
454 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_attr()
457 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_attr()
461 bfa_fcs_lport_get_attr(fcs_port, &iocmd->port_attr); in bfad_iocmd_lport_get_attr()
463 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_attr()
472 struct bfa_bsg_lport_stats_s *iocmd = in bfad_iocmd_lport_get_stats() local
478 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_stats()
481 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_stats()
485 bfa_fcs_lport_get_stats(fcs_port, &iocmd->port_stats); in bfad_iocmd_lport_get_stats()
487 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_stats()
496 struct bfa_bsg_reset_stats_s *iocmd = in bfad_iocmd_lport_reset_stats() local
505 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_lport_reset_stats()
508 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_reset_stats()
521 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_reset_stats()
530 struct bfa_bsg_lport_iostats_s *iocmd = in bfad_iocmd_lport_get_iostats() local
536 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_iostats()
539 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_iostats()
543 bfa_fcpim_port_iostats(&bfad->bfa, &iocmd->iostats, in bfad_iocmd_lport_get_iostats()
546 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_iostats()
555 struct bfa_bsg_lport_get_rports_s *iocmd = in bfad_iocmd_lport_get_rports() local
561 if (iocmd->nrports == 0) in bfad_iocmd_lport_get_rports()
566 sizeof(struct bfa_rport_qualifier_s) * iocmd->nrports) in bfad_iocmd_lport_get_rports()
568 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_lport_get_rports()
572 iocmd_bufptr = (char *)iocmd + in bfad_iocmd_lport_get_rports()
576 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_lport_get_rports()
580 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_lport_get_rports()
586 &iocmd->nrports); in bfad_iocmd_lport_get_rports()
588 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_lport_get_rports()
596 struct bfa_bsg_rport_attr_s *iocmd = (struct bfa_bsg_rport_attr_s *)cmd; in bfad_iocmd_rport_get_attr() local
603 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_attr()
607 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_attr()
611 if (iocmd->pid) in bfad_iocmd_rport_get_attr()
613 iocmd->rpwwn, iocmd->pid); in bfad_iocmd_rport_get_attr()
615 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_attr()
619 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_attr()
623 bfa_fcs_rport_get_attr(fcs_rport, &iocmd->attr); in bfad_iocmd_rport_get_attr()
625 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_attr()
633 struct bfa_bsg_rport_scsi_addr_s *iocmd = in bfad_iocmd_rport_get_addr() local
642 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_addr()
646 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_addr()
650 fcs_itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_addr()
654 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_addr()
661 iocmd->host = drv_itnim->im_port->shost->host_no; in bfad_iocmd_rport_get_addr()
665 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_addr()
669 iocmd->target = drv_itnim->scsi_tgt_id; in bfad_iocmd_rport_get_addr()
672 iocmd->bus = 0; in bfad_iocmd_rport_get_addr()
673 iocmd->lun = 0; in bfad_iocmd_rport_get_addr()
674 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_addr()
682 struct bfa_bsg_rport_stats_s *iocmd = in bfad_iocmd_rport_get_stats() local
690 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_get_stats()
694 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_get_stats()
698 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_get_stats()
702 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_get_stats()
706 memcpy((void *)&iocmd->stats, (void *)&fcs_rport->stats, in bfad_iocmd_rport_get_stats()
709 memcpy((void *)&iocmd->stats.hal_stats, in bfad_iocmd_rport_get_stats()
715 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_get_stats()
723 struct bfa_bsg_rport_reset_stats_s *iocmd = in bfad_iocmd_rport_clr_stats() local
732 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_clr_stats()
735 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_clr_stats()
739 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_clr_stats()
742 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_clr_stats()
751 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_clr_stats()
759 struct bfa_bsg_rport_set_speed_s *iocmd = in bfad_iocmd_rport_set_speed() local
767 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_rport_set_speed()
770 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_rport_set_speed()
774 fcs_rport = bfa_fcs_rport_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_rport_set_speed()
777 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_rport_set_speed()
781 fcs_rport->rpf.assigned_speed = iocmd->speed; in bfad_iocmd_rport_set_speed()
785 bfa_rport_speed(fcs_rport->bfa_rport, iocmd->speed); in bfad_iocmd_rport_set_speed()
787 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_rport_set_speed()
796 struct bfa_bsg_vport_attr_s *iocmd = (struct bfa_bsg_vport_attr_s *)cmd; in bfad_iocmd_vport_get_attr() local
801 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_get_attr()
804 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_get_attr()
808 bfa_fcs_vport_get_attr(fcs_vport, &iocmd->vport_attr); in bfad_iocmd_vport_get_attr()
810 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_get_attr()
819 struct bfa_bsg_vport_stats_s *iocmd = in bfad_iocmd_vport_get_stats() local
825 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_get_stats()
828 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_get_stats()
832 memcpy((void *)&iocmd->vport_stats, (void *)&fcs_vport->vport_stats, in bfad_iocmd_vport_get_stats()
834 memcpy((void *)&iocmd->vport_stats.port_stats, in bfad_iocmd_vport_get_stats()
838 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_get_stats()
847 struct bfa_bsg_reset_stats_s *iocmd = in bfad_iocmd_vport_clr_stats() local
853 iocmd->vf_id, iocmd->vpwwn); in bfad_iocmd_vport_clr_stats()
856 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; in bfad_iocmd_vport_clr_stats()
863 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vport_clr_stats()
872 struct bfa_bsg_fabric_get_lports_s *iocmd = in bfad_iocmd_fabric_get_lports() local
875 uint32_t nports = iocmd->nports; in bfad_iocmd_fabric_get_lports()
880 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_fabric_get_lports()
886 sizeof(wwn_t) * iocmd->nports) != BFA_STATUS_OK) { in bfad_iocmd_fabric_get_lports()
887 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_fabric_get_lports()
891 iocmd_bufptr = (char *)iocmd + in bfad_iocmd_fabric_get_lports()
895 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_fabric_get_lports()
898 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_fabric_get_lports()
904 iocmd->nports = nports; in bfad_iocmd_fabric_get_lports()
905 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fabric_get_lports()
913 struct bfa_bsg_qos_bw_s *iocmd = (struct bfa_bsg_qos_bw_s *)pcmd; in bfad_iocmd_qos_set_bw() local
917 iocmd->status = bfa_fcport_set_qos_bw(&bfad->bfa, &iocmd->qos_bw); in bfad_iocmd_qos_set_bw()
926 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ratelim() local
934 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_ratelim()
944 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ratelim()
955 struct bfa_bsg_trl_speed_s *iocmd = (struct bfa_bsg_trl_speed_s *)pcmd; in bfad_iocmd_ratelim_speed() local
962 if ((iocmd->speed == BFA_PORT_SPEED_AUTO) || in bfad_iocmd_ratelim_speed()
963 (iocmd->speed > fcport->speed_sup)) { in bfad_iocmd_ratelim_speed()
964 iocmd->status = BFA_STATUS_UNSUPP_SPEED; in bfad_iocmd_ratelim_speed()
971 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_ratelim_speed()
973 fcport->cfg.trl_def_speed = iocmd->speed; in bfad_iocmd_ratelim_speed()
974 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_ratelim_speed()
984 struct bfa_bsg_fcpim_s *iocmd = (struct bfa_bsg_fcpim_s *)cmd; in bfad_iocmd_cfg_fcpim() local
988 bfa_fcpim_path_tov_set(&bfad->bfa, iocmd->param); in bfad_iocmd_cfg_fcpim()
990 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_cfg_fcpim()
997 struct bfa_bsg_fcpim_modstats_s *iocmd = in bfad_iocmd_fcpim_get_modstats() local
1006 memset((void *)&iocmd->modstats, 0, sizeof(struct bfa_itnim_iostats_s)); in bfad_iocmd_fcpim_get_modstats()
1009 bfa_fcpim_add_stats(&iocmd->modstats, &(itnim->stats)); in bfad_iocmd_fcpim_get_modstats()
1012 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_get_modstats()
1019 struct bfa_bsg_fcpim_modstatsclr_s *iocmd = in bfad_iocmd_fcpim_clr_modstats() local
1034 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_clr_modstats()
1041 struct bfa_bsg_fcpim_del_itn_stats_s *iocmd = in bfad_iocmd_fcpim_get_del_itn_stats() local
1047 memcpy((void *)&iocmd->modstats, (void *)&fcpim->del_itn_stats, in bfad_iocmd_fcpim_get_del_itn_stats()
1051 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_fcpim_get_del_itn_stats()
1058 struct bfa_bsg_itnim_attr_s *iocmd = (struct bfa_bsg_itnim_attr_s *)cmd; in bfad_iocmd_itnim_get_attr() local
1064 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_attr()
1066 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_attr()
1068 iocmd->status = bfa_fcs_itnim_attr_get(fcs_port, in bfad_iocmd_itnim_get_attr()
1069 iocmd->rpwwn, &iocmd->attr); in bfad_iocmd_itnim_get_attr()
1077 struct bfa_bsg_itnim_iostats_s *iocmd = in bfad_iocmd_itnim_get_iostats() local
1085 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_iostats()
1087 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_iostats()
1090 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_iostats()
1092 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_iostats()
1094 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_get_iostats()
1096 memcpy((void *)&iocmd->iostats, (void *) in bfad_iocmd_itnim_get_iostats()
1108 struct bfa_bsg_rport_reset_stats_s *iocmd = in bfad_iocmd_itnim_reset_stats() local
1116 iocmd->vf_id, iocmd->pwwn); in bfad_iocmd_itnim_reset_stats()
1118 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_reset_stats()
1120 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_reset_stats()
1122 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_reset_stats()
1124 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_reset_stats()
1125 bfa_fcs_itnim_stats_clear(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_reset_stats()
1137 struct bfa_bsg_itnim_itnstats_s *iocmd = in bfad_iocmd_itnim_get_itnstats() local
1145 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_itnstats()
1147 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_itnstats()
1150 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_itnstats()
1152 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_itnstats()
1154 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_itnim_get_itnstats()
1155 bfa_fcs_itnim_stats_get(fcs_port, iocmd->rpwwn, in bfad_iocmd_itnim_get_itnstats()
1156 &iocmd->itnstats); in bfad_iocmd_itnim_get_itnstats()
1166 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_enable() local
1170 iocmd->status = bfa_fcport_enable(&bfad->bfa); in bfad_iocmd_fcport_enable()
1179 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_disable() local
1183 iocmd->status = bfa_fcport_disable(&bfad->bfa); in bfad_iocmd_fcport_disable()
1192 struct bfa_bsg_pcifn_cfg_s *iocmd = (struct bfa_bsg_pcifn_cfg_s *)cmd; in bfad_iocmd_ioc_get_pcifn_cfg() local
1198 iocmd->status = bfa_ablk_query(&bfad->bfa.modules.ablk, in bfad_iocmd_ioc_get_pcifn_cfg()
1199 &iocmd->pcifn_cfg, in bfad_iocmd_ioc_get_pcifn_cfg()
1202 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ioc_get_pcifn_cfg()
1206 iocmd->status = fcomp.status; in bfad_iocmd_ioc_get_pcifn_cfg()
1214 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_create() local
1220 iocmd->status = bfa_ablk_pf_create(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_create()
1221 &iocmd->pcifn_id, iocmd->port, in bfad_iocmd_pcifn_create()
1222 iocmd->pcifn_class, iocmd->bw_min, in bfad_iocmd_pcifn_create()
1223 iocmd->bw_max, bfad_hcb_comp, &fcomp); in bfad_iocmd_pcifn_create()
1225 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_create()
1229 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_create()
1237 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_delete() local
1243 iocmd->status = bfa_ablk_pf_delete(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_delete()
1244 iocmd->pcifn_id, in bfad_iocmd_pcifn_delete()
1247 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_delete()
1251 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_delete()
1259 struct bfa_bsg_pcifn_s *iocmd = (struct bfa_bsg_pcifn_s *)cmd; in bfad_iocmd_pcifn_bw() local
1265 iocmd->status = bfa_ablk_pf_update(&bfad->bfa.modules.ablk, in bfad_iocmd_pcifn_bw()
1266 iocmd->pcifn_id, iocmd->bw_min, in bfad_iocmd_pcifn_bw()
1267 iocmd->bw_max, bfad_hcb_comp, &fcomp); in bfad_iocmd_pcifn_bw()
1269 bfa_trc(bfad, iocmd->status); in bfad_iocmd_pcifn_bw()
1270 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_pcifn_bw()
1274 iocmd->status = fcomp.status; in bfad_iocmd_pcifn_bw()
1275 bfa_trc(bfad, iocmd->status); in bfad_iocmd_pcifn_bw()
1283 struct bfa_bsg_adapter_cfg_mode_s *iocmd = in bfad_iocmd_adapter_cfg_mode() local
1290 iocmd->status = bfa_ablk_adapter_config(&bfad->bfa.modules.ablk, in bfad_iocmd_adapter_cfg_mode()
1291 iocmd->cfg.mode, iocmd->cfg.max_pf, in bfad_iocmd_adapter_cfg_mode()
1292 iocmd->cfg.max_vf, bfad_hcb_comp, &fcomp); in bfad_iocmd_adapter_cfg_mode()
1294 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_adapter_cfg_mode()
1298 iocmd->status = fcomp.status; in bfad_iocmd_adapter_cfg_mode()
1306 struct bfa_bsg_port_cfg_mode_s *iocmd = in bfad_iocmd_port_cfg_mode() local
1313 iocmd->status = bfa_ablk_port_config(&bfad->bfa.modules.ablk, in bfad_iocmd_port_cfg_mode()
1314 iocmd->instance, iocmd->cfg.mode, in bfad_iocmd_port_cfg_mode()
1315 iocmd->cfg.max_pf, iocmd->cfg.max_vf, in bfad_iocmd_port_cfg_mode()
1318 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_port_cfg_mode()
1322 iocmd->status = fcomp.status; in bfad_iocmd_port_cfg_mode()
1330 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ablk_optrom() local
1337 iocmd->status = bfa_ablk_optrom_en(&bfad->bfa.modules.ablk, in bfad_iocmd_ablk_optrom()
1340 iocmd->status = bfa_ablk_optrom_dis(&bfad->bfa.modules.ablk, in bfad_iocmd_ablk_optrom()
1344 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ablk_optrom()
1348 iocmd->status = fcomp.status; in bfad_iocmd_ablk_optrom()
1356 struct bfa_bsg_faa_attr_s *iocmd = (struct bfa_bsg_faa_attr_s *)cmd; in bfad_iocmd_faa_query() local
1361 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_faa_query()
1363 iocmd->status = bfa_faa_query(&bfad->bfa, &iocmd->faa_attr, in bfad_iocmd_faa_query()
1367 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_faa_query()
1371 iocmd->status = fcomp.status; in bfad_iocmd_faa_query()
1379 struct bfa_bsg_cee_attr_s *iocmd = in bfad_iocmd_cee_attr() local
1388 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_cee_attr()
1392 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_cee_attr_s); in bfad_iocmd_cee_attr()
1398 iocmd->status = bfa_cee_get_attr(&bfad->bfa.modules.cee, iocmd_bufptr, in bfad_iocmd_cee_attr()
1401 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_cee_attr()
1416 struct bfa_bsg_cee_stats_s *iocmd = in bfad_iocmd_cee_get_stats() local
1425 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_cee_get_stats()
1429 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_cee_stats_s); in bfad_iocmd_cee_get_stats()
1435 iocmd->status = bfa_cee_get_stats(&bfad->bfa.modules.cee, iocmd_bufptr, in bfad_iocmd_cee_get_stats()
1438 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_cee_get_stats()
1452 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_cee_reset_stats() local
1456 iocmd->status = bfa_cee_reset_stats(&bfad->bfa.modules.cee, NULL, NULL); in bfad_iocmd_cee_reset_stats()
1458 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_cee_reset_stats()
1466 struct bfa_bsg_sfp_media_s *iocmd = (struct bfa_bsg_sfp_media_s *)cmd; in bfad_iocmd_sfp_media() local
1472 iocmd->status = bfa_sfp_media(BFA_SFP_MOD(&bfad->bfa), &iocmd->media, in bfad_iocmd_sfp_media()
1475 bfa_trc(bfad, iocmd->status); in bfad_iocmd_sfp_media()
1476 if (iocmd->status != BFA_STATUS_SFP_NOT_READY) in bfad_iocmd_sfp_media()
1480 iocmd->status = fcomp.status; in bfad_iocmd_sfp_media()
1488 struct bfa_bsg_sfp_speed_s *iocmd = (struct bfa_bsg_sfp_speed_s *)cmd; in bfad_iocmd_sfp_speed() local
1494 iocmd->status = bfa_sfp_speed(BFA_SFP_MOD(&bfad->bfa), iocmd->speed, in bfad_iocmd_sfp_speed()
1497 bfa_trc(bfad, iocmd->status); in bfad_iocmd_sfp_speed()
1498 if (iocmd->status != BFA_STATUS_SFP_NOT_READY) in bfad_iocmd_sfp_speed()
1501 iocmd->status = fcomp.status; in bfad_iocmd_sfp_speed()
1509 struct bfa_bsg_flash_attr_s *iocmd = in bfad_iocmd_flash_get_attr() local
1516 iocmd->status = bfa_flash_get_attr(BFA_FLASH(&bfad->bfa), &iocmd->attr, in bfad_iocmd_flash_get_attr()
1519 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_get_attr()
1522 iocmd->status = fcomp.status; in bfad_iocmd_flash_get_attr()
1530 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_erase_part() local
1536 iocmd->status = bfa_flash_erase_part(BFA_FLASH(&bfad->bfa), iocmd->type, in bfad_iocmd_flash_erase_part()
1537 iocmd->instance, bfad_hcb_comp, &fcomp); in bfad_iocmd_flash_erase_part()
1539 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_erase_part()
1542 iocmd->status = fcomp.status; in bfad_iocmd_flash_erase_part()
1551 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_update_part() local
1558 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_update_part()
1559 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_flash_update_part()
1563 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_flash_s); in bfad_iocmd_flash_update_part()
1567 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_flash_update_part()
1568 iocmd->type, iocmd->instance, iocmd_bufptr, in bfad_iocmd_flash_update_part()
1569 iocmd->bufsz, 0, bfad_hcb_comp, &fcomp); in bfad_iocmd_flash_update_part()
1571 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_update_part()
1574 iocmd->status = fcomp.status; in bfad_iocmd_flash_update_part()
1583 struct bfa_bsg_flash_s *iocmd = (struct bfa_bsg_flash_s *)cmd; in bfad_iocmd_flash_read_part() local
1590 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_read_part()
1591 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_flash_read_part()
1595 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_flash_s); in bfad_iocmd_flash_read_part()
1599 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), iocmd->type, in bfad_iocmd_flash_read_part()
1600 iocmd->instance, iocmd_bufptr, iocmd->bufsz, 0, in bfad_iocmd_flash_read_part()
1603 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_flash_read_part()
1606 iocmd->status = fcomp.status; in bfad_iocmd_flash_read_part()
1614 struct bfa_bsg_diag_get_temp_s *iocmd = in bfad_iocmd_diag_temp() local
1621 iocmd->status = bfa_diag_tsensor_query(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_temp()
1622 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_temp()
1624 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_temp()
1625 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_temp()
1628 iocmd->status = fcomp.status; in bfad_iocmd_diag_temp()
1636 struct bfa_bsg_diag_memtest_s *iocmd = in bfad_iocmd_diag_memtest() local
1643 iocmd->status = bfa_diag_memtest(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_memtest()
1644 &iocmd->memtest, iocmd->pat, in bfad_iocmd_diag_memtest()
1645 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_memtest()
1647 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_memtest()
1648 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_memtest()
1651 iocmd->status = fcomp.status; in bfad_iocmd_diag_memtest()
1659 struct bfa_bsg_diag_loopback_s *iocmd = in bfad_iocmd_diag_loopback() local
1666 iocmd->status = bfa_fcdiag_loopback(&bfad->bfa, iocmd->opmode, in bfad_iocmd_diag_loopback()
1667 iocmd->speed, iocmd->lpcnt, iocmd->pat, in bfad_iocmd_diag_loopback()
1668 &iocmd->result, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_loopback()
1670 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_loopback()
1671 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_loopback()
1674 iocmd->status = fcomp.status; in bfad_iocmd_diag_loopback()
1682 struct bfa_bsg_diag_fwping_s *iocmd = in bfad_iocmd_diag_fwping() local
1689 iocmd->status = bfa_diag_fwping(BFA_DIAG_MOD(&bfad->bfa), iocmd->cnt, in bfad_iocmd_diag_fwping()
1690 iocmd->pattern, &iocmd->result, in bfad_iocmd_diag_fwping()
1693 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_fwping()
1694 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_fwping()
1698 iocmd->status = fcomp.status; in bfad_iocmd_diag_fwping()
1706 struct bfa_bsg_diag_qtest_s *iocmd = (struct bfa_bsg_diag_qtest_s *)cmd; in bfad_iocmd_diag_queuetest() local
1712 iocmd->status = bfa_fcdiag_queuetest(&bfad->bfa, iocmd->force, in bfad_iocmd_diag_queuetest()
1713 iocmd->queue, &iocmd->result, in bfad_iocmd_diag_queuetest()
1716 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_queuetest()
1719 iocmd->status = fcomp.status; in bfad_iocmd_diag_queuetest()
1727 struct bfa_bsg_sfp_show_s *iocmd = in bfad_iocmd_diag_sfp() local
1734 iocmd->status = bfa_sfp_show(BFA_SFP_MOD(&bfad->bfa), &iocmd->sfp, in bfad_iocmd_diag_sfp()
1737 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_sfp()
1738 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_sfp()
1741 iocmd->status = fcomp.status; in bfad_iocmd_diag_sfp()
1742 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_sfp()
1750 struct bfa_bsg_diag_led_s *iocmd = (struct bfa_bsg_diag_led_s *)cmd; in bfad_iocmd_diag_led() local
1754 iocmd->status = bfa_diag_ledtest(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_led()
1755 &iocmd->ledtest); in bfad_iocmd_diag_led()
1763 struct bfa_bsg_diag_beacon_s *iocmd = in bfad_iocmd_diag_beacon_lport() local
1768 iocmd->status = bfa_diag_beacon_port(BFA_DIAG_MOD(&bfad->bfa), in bfad_iocmd_diag_beacon_lport()
1769 iocmd->beacon, iocmd->link_e2e_beacon, in bfad_iocmd_diag_beacon_lport()
1770 iocmd->second); in bfad_iocmd_diag_beacon_lport()
1778 struct bfa_bsg_diag_lb_stat_s *iocmd = in bfad_iocmd_diag_lb_stat() local
1783 iocmd->status = bfa_fcdiag_lb_is_running(&bfad->bfa); in bfad_iocmd_diag_lb_stat()
1785 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_lb_stat()
1793 struct bfa_bsg_dport_enable_s *iocmd = in bfad_iocmd_diag_dport_enable() local
1800 iocmd->status = bfa_dport_enable(&bfad->bfa, iocmd->lpcnt, in bfad_iocmd_diag_dport_enable()
1801 iocmd->pat, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_dport_enable()
1803 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_dport_enable()
1804 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_enable()
1807 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_enable()
1815 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_diag_dport_disable() local
1821 iocmd->status = bfa_dport_disable(&bfad->bfa, bfad_hcb_comp, &fcomp); in bfad_iocmd_diag_dport_disable()
1823 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_diag_dport_disable()
1824 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_disable()
1827 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_disable()
1835 struct bfa_bsg_dport_enable_s *iocmd = in bfad_iocmd_diag_dport_start() local
1842 iocmd->status = bfa_dport_start(&bfad->bfa, iocmd->lpcnt, in bfad_iocmd_diag_dport_start()
1843 iocmd->pat, bfad_hcb_comp, in bfad_iocmd_diag_dport_start()
1847 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_diag_dport_start()
1848 bfa_trc(bfad, iocmd->status); in bfad_iocmd_diag_dport_start()
1851 iocmd->status = fcomp.status; in bfad_iocmd_diag_dport_start()
1860 struct bfa_bsg_diag_dport_show_s *iocmd = in bfad_iocmd_diag_dport_show() local
1865 iocmd->status = bfa_dport_show(&bfad->bfa, &iocmd->result); in bfad_iocmd_diag_dport_show()
1875 struct bfa_bsg_phy_attr_s *iocmd = in bfad_iocmd_phy_get_attr() local
1882 iocmd->status = bfa_phy_get_attr(BFA_PHY(&bfad->bfa), iocmd->instance, in bfad_iocmd_phy_get_attr()
1883 &iocmd->attr, bfad_hcb_comp, &fcomp); in bfad_iocmd_phy_get_attr()
1885 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_get_attr()
1888 iocmd->status = fcomp.status; in bfad_iocmd_phy_get_attr()
1896 struct bfa_bsg_phy_stats_s *iocmd = in bfad_iocmd_phy_get_stats() local
1903 iocmd->status = bfa_phy_get_stats(BFA_PHY(&bfad->bfa), iocmd->instance, in bfad_iocmd_phy_get_stats()
1904 &iocmd->stats, bfad_hcb_comp, &fcomp); in bfad_iocmd_phy_get_stats()
1906 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_get_stats()
1909 iocmd->status = fcomp.status; in bfad_iocmd_phy_get_stats()
1917 struct bfa_bsg_phy_s *iocmd = (struct bfa_bsg_phy_s *)cmd; in bfad_iocmd_phy_read() local
1924 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_read()
1925 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_phy_read()
1929 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_phy_s); in bfad_iocmd_phy_read()
1932 iocmd->status = bfa_phy_read(BFA_PHY(&bfad->bfa), in bfad_iocmd_phy_read()
1933 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_read()
1936 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_read()
1939 iocmd->status = fcomp.status; in bfad_iocmd_phy_read()
1940 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_read()
1949 struct bfa_bsg_vhba_attr_s *iocmd = in bfad_iocmd_vhba_query() local
1951 struct bfa_vhba_attr_s *attr = &iocmd->attr; in bfad_iocmd_vhba_query()
1960 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vhba_query()
1968 struct bfa_bsg_phy_s *iocmd = (struct bfa_bsg_phy_s *)cmd; in bfad_iocmd_phy_update() local
1975 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_update()
1976 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_phy_update()
1980 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_phy_s); in bfad_iocmd_phy_update()
1983 iocmd->status = bfa_phy_update(BFA_PHY(&bfad->bfa), in bfad_iocmd_phy_update()
1984 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_update()
1987 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_phy_update()
1990 iocmd->status = fcomp.status; in bfad_iocmd_phy_update()
1998 struct bfa_bsg_debug_s *iocmd = (struct bfa_bsg_debug_s *)cmd; in bfad_iocmd_porglog_get() local
2001 if (iocmd->bufsz < sizeof(struct bfa_plog_s)) { in bfad_iocmd_porglog_get()
2003 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_porglog_get()
2007 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_porglog_get()
2008 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_debug_s); in bfad_iocmd_porglog_get()
2019 struct bfa_bsg_debug_s *iocmd = (struct bfa_bsg_debug_s *)cmd; in bfad_iocmd_debug_fw_core() local
2026 iocmd->status = BFA_STATUS_VERSION_FAIL; in bfad_iocmd_debug_fw_core()
2030 if (iocmd->bufsz < BFA_DEBUG_FW_CORE_CHUNK_SZ || in bfad_iocmd_debug_fw_core()
2031 !IS_ALIGNED(iocmd->bufsz, sizeof(u16)) || in bfad_iocmd_debug_fw_core()
2032 !IS_ALIGNED(iocmd->offset, sizeof(u32))) { in bfad_iocmd_debug_fw_core()
2034 iocmd->status = BFA_STATUS_EINVAL; in bfad_iocmd_debug_fw_core()
2038 iocmd_bufptr = (char *)iocmd + sizeof(struct bfa_bsg_debug_s); in bfad_iocmd_debug_fw_core()
2040 offset = iocmd->offset; in bfad_iocmd_debug_fw_core()
2041 iocmd->status = bfa_ioc_debug_fwcore(&bfad->bfa.ioc, iocmd_bufptr, in bfad_iocmd_debug_fw_core()
2042 &offset, &iocmd->bufsz); in bfad_iocmd_debug_fw_core()
2043 iocmd->offset = offset; in bfad_iocmd_debug_fw_core()
2052 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_debug_ctl() local
2066 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_debug_ctl()
2073 struct bfa_bsg_portlogctl_s *iocmd = (struct bfa_bsg_portlogctl_s *)cmd; in bfad_iocmd_porglog_ctl() local
2075 if (iocmd->ctl == BFA_TRUE) in bfad_iocmd_porglog_ctl()
2080 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_porglog_ctl()
2087 struct bfa_bsg_fcpim_profile_s *iocmd = in bfad_iocmd_fcpim_cfg_profile() local
2093 iocmd->status = bfa_fcpim_profile_on(&bfad->bfa, ktime_get_real_seconds()); in bfad_iocmd_fcpim_cfg_profile()
2095 iocmd->status = bfa_fcpim_profile_off(&bfad->bfa); in bfad_iocmd_fcpim_cfg_profile()
2104 struct bfa_bsg_itnim_ioprofile_s *iocmd = in bfad_iocmd_itnim_get_ioprofile() local
2112 iocmd->vf_id, iocmd->lpwwn); in bfad_iocmd_itnim_get_ioprofile()
2114 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; in bfad_iocmd_itnim_get_ioprofile()
2116 itnim = bfa_fcs_itnim_lookup(fcs_port, iocmd->rpwwn); in bfad_iocmd_itnim_get_ioprofile()
2118 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; in bfad_iocmd_itnim_get_ioprofile()
2120 iocmd->status = bfa_itnim_get_ioprofile( in bfad_iocmd_itnim_get_ioprofile()
2122 &iocmd->ioprofile); in bfad_iocmd_itnim_get_ioprofile()
2131 struct bfa_bsg_fcport_stats_s *iocmd = in bfad_iocmd_fcport_get_stats() local
2139 &fcomp, &iocmd->stats); in bfad_iocmd_fcport_get_stats()
2141 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_fcport_get_stats()
2143 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_fcport_get_stats()
2144 bfa_trc(bfad, iocmd->status); in bfad_iocmd_fcport_get_stats()
2148 iocmd->status = fcomp.status; in bfad_iocmd_fcport_get_stats()
2156 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_reset_stats() local
2165 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_fcport_reset_stats()
2167 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_fcport_reset_stats()
2168 bfa_trc(bfad, iocmd->status); in bfad_iocmd_fcport_reset_stats()
2172 iocmd->status = fcomp.status; in bfad_iocmd_fcport_reset_stats()
2180 struct bfa_bsg_boot_s *iocmd = (struct bfa_bsg_boot_s *)cmd; in bfad_iocmd_boot_cfg() local
2186 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_boot_cfg()
2188 &iocmd->cfg, sizeof(struct bfa_boot_cfg_s), 0, in bfad_iocmd_boot_cfg()
2191 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_boot_cfg()
2194 iocmd->status = fcomp.status; in bfad_iocmd_boot_cfg()
2202 struct bfa_bsg_boot_s *iocmd = (struct bfa_bsg_boot_s *)cmd; in bfad_iocmd_boot_query() local
2208 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_boot_query()
2210 &iocmd->cfg, sizeof(struct bfa_boot_cfg_s), 0, in bfad_iocmd_boot_query()
2213 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_boot_query()
2216 iocmd->status = fcomp.status; in bfad_iocmd_boot_query()
2224 struct bfa_bsg_preboot_s *iocmd = (struct bfa_bsg_preboot_s *)cmd; in bfad_iocmd_preboot_query() local
2226 struct bfa_boot_pbc_s *pbcfg = &iocmd->cfg; in bfad_iocmd_preboot_query()
2234 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_preboot_query()
2243 struct bfa_bsg_ethboot_s *iocmd = (struct bfa_bsg_ethboot_s *)cmd; in bfad_iocmd_ethboot_cfg() local
2249 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_ethboot_cfg()
2251 bfad->bfa.ioc.port_id, &iocmd->cfg, in bfad_iocmd_ethboot_cfg()
2255 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ethboot_cfg()
2258 iocmd->status = fcomp.status; in bfad_iocmd_ethboot_cfg()
2266 struct bfa_bsg_ethboot_s *iocmd = (struct bfa_bsg_ethboot_s *)cmd; in bfad_iocmd_ethboot_query() local
2272 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_ethboot_query()
2274 bfad->bfa.ioc.port_id, &iocmd->cfg, in bfad_iocmd_ethboot_query()
2278 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ethboot_query()
2281 iocmd->status = fcomp.status; in bfad_iocmd_ethboot_query()
2289 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_cfg_trunk() local
2303 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_cfg_trunk()
2318 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_cfg_trunk()
2329 struct bfa_bsg_trunk_attr_s *iocmd = (struct bfa_bsg_trunk_attr_s *)cmd; in bfad_iocmd_trunk_get_attr() local
2337 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_trunk_get_attr()
2339 memcpy((void *)&iocmd->attr, (void *)&trunk->attr, in bfad_iocmd_trunk_get_attr()
2341 iocmd->attr.port_id = bfa_lps_get_base_pid(&bfad->bfa); in bfad_iocmd_trunk_get_attr()
2342 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_trunk_get_attr()
2352 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_qos() local
2360 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos()
2380 struct bfa_bsg_qos_attr_s *iocmd = (struct bfa_bsg_qos_attr_s *)cmd; in bfad_iocmd_qos_get_attr() local
2387 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_get_attr()
2389 iocmd->attr.state = fcport->qos_attr.state; in bfad_iocmd_qos_get_attr()
2390 iocmd->attr.total_bb_cr = in bfad_iocmd_qos_get_attr()
2392 iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; in bfad_iocmd_qos_get_attr()
2393 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
2394 iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; in bfad_iocmd_qos_get_attr()
2395 iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; in bfad_iocmd_qos_get_attr()
2396 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_qos_get_attr()
2406 struct bfa_bsg_qos_vc_attr_s *iocmd = in bfad_iocmd_qos_get_vc_attr() local
2414 iocmd->attr.total_vc_count = be16_to_cpu(bfa_vc_attr->total_vc_count); in bfad_iocmd_qos_get_vc_attr()
2415 iocmd->attr.shared_credit = be16_to_cpu(bfa_vc_attr->shared_credit); in bfad_iocmd_qos_get_vc_attr()
2416 iocmd->attr.elp_opmode_flags = in bfad_iocmd_qos_get_vc_attr()
2420 while (i < iocmd->attr.total_vc_count) { in bfad_iocmd_qos_get_vc_attr()
2421 iocmd->attr.vc_info[i].vc_credit = in bfad_iocmd_qos_get_vc_attr()
2423 iocmd->attr.vc_info[i].borrow_credit = in bfad_iocmd_qos_get_vc_attr()
2425 iocmd->attr.vc_info[i].priority = in bfad_iocmd_qos_get_vc_attr()
2431 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_qos_get_vc_attr()
2438 struct bfa_bsg_fcport_stats_s *iocmd = in bfad_iocmd_qos_get_stats() local
2447 &fcomp, &iocmd->stats); in bfad_iocmd_qos_get_stats()
2453 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_get_stats()
2455 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_qos_get_stats()
2457 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_qos_get_stats()
2458 bfa_trc(bfad, iocmd->status); in bfad_iocmd_qos_get_stats()
2462 iocmd->status = fcomp.status; in bfad_iocmd_qos_get_stats()
2470 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_qos_reset_stats() local
2484 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_reset_stats()
2486 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_qos_reset_stats()
2488 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_qos_reset_stats()
2489 bfa_trc(bfad, iocmd->status); in bfad_iocmd_qos_reset_stats()
2493 iocmd->status = fcomp.status; in bfad_iocmd_qos_reset_stats()
2501 struct bfa_bsg_vf_stats_s *iocmd = in bfad_iocmd_vf_get_stats() local
2507 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_vf_get_stats()
2510 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_vf_get_stats()
2513 memcpy((void *)&iocmd->stats, (void *)&fcs_vf->stats, in bfad_iocmd_vf_get_stats()
2516 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vf_get_stats()
2524 struct bfa_bsg_vf_reset_stats_s *iocmd = in bfad_iocmd_vf_clr_stats() local
2530 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_vf_clr_stats()
2533 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_vf_clr_stats()
2538 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vf_clr_stats()
2561 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_lunmask() local
2566 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_TRUE); in bfad_iocmd_lunmask()
2568 if (iocmd->status == BFA_STATUS_OK) in bfad_iocmd_lunmask()
2571 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_FALSE); in bfad_iocmd_lunmask()
2573 if (iocmd->status == BFA_STATUS_OK) in bfad_iocmd_lunmask()
2576 iocmd->status = bfa_fcpim_lunmask_clear(&bfad->bfa); in bfad_iocmd_lunmask()
2584 struct bfa_bsg_fcpim_lunmask_query_s *iocmd = in bfad_iocmd_fcpim_lunmask_query() local
2586 struct bfa_lunmask_cfg_s *lun_mask = &iocmd->lun_mask; in bfad_iocmd_fcpim_lunmask_query()
2590 iocmd->status = bfa_fcpim_lunmask_query(&bfad->bfa, lun_mask); in bfad_iocmd_fcpim_lunmask_query()
2598 struct bfa_bsg_fcpim_lunmask_s *iocmd = in bfad_iocmd_fcpim_cfg_lunmask() local
2604 iocmd->status = bfa_fcpim_lunmask_add(&bfad->bfa, iocmd->vf_id, in bfad_iocmd_fcpim_cfg_lunmask()
2605 &iocmd->pwwn, iocmd->rpwwn, iocmd->lun); in bfad_iocmd_fcpim_cfg_lunmask()
2607 iocmd->status = bfa_fcpim_lunmask_delete(&bfad->bfa, in bfad_iocmd_fcpim_cfg_lunmask()
2608 iocmd->vf_id, &iocmd->pwwn, in bfad_iocmd_fcpim_cfg_lunmask()
2609 iocmd->rpwwn, iocmd->lun); in bfad_iocmd_fcpim_cfg_lunmask()
2617 struct bfa_bsg_fcpim_throttle_s *iocmd = in bfad_iocmd_fcpim_throttle_query() local
2622 iocmd->status = bfa_fcpim_throttle_get(&bfad->bfa, in bfad_iocmd_fcpim_throttle_query()
2623 (void *)&iocmd->throttle); in bfad_iocmd_fcpim_throttle_query()
2632 struct bfa_bsg_fcpim_throttle_s *iocmd = in bfad_iocmd_fcpim_throttle_set() local
2637 iocmd->status = bfa_fcpim_throttle_set(&bfad->bfa, in bfad_iocmd_fcpim_throttle_set()
2638 iocmd->throttle.cfg_value); in bfad_iocmd_fcpim_throttle_set()
2647 struct bfa_bsg_tfru_s *iocmd = in bfad_iocmd_tfru_read() local
2654 iocmd->status = bfa_tfru_read(BFA_FRU(&bfad->bfa), in bfad_iocmd_tfru_read()
2655 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_tfru_read()
2658 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_tfru_read()
2660 iocmd->status = fcomp.status; in bfad_iocmd_tfru_read()
2669 struct bfa_bsg_tfru_s *iocmd = in bfad_iocmd_tfru_write() local
2676 iocmd->status = bfa_tfru_write(BFA_FRU(&bfad->bfa), in bfad_iocmd_tfru_write()
2677 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_tfru_write()
2680 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_tfru_write()
2682 iocmd->status = fcomp.status; in bfad_iocmd_tfru_write()
2691 struct bfa_bsg_fruvpd_s *iocmd = in bfad_iocmd_fruvpd_read() local
2698 iocmd->status = bfa_fruvpd_read(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_read()
2699 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_fruvpd_read()
2702 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_fruvpd_read()
2704 iocmd->status = fcomp.status; in bfad_iocmd_fruvpd_read()
2713 struct bfa_bsg_fruvpd_s *iocmd = in bfad_iocmd_fruvpd_update() local
2720 iocmd->status = bfa_fruvpd_update(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_update()
2721 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_fruvpd_update()
2722 bfad_hcb_comp, &fcomp, iocmd->trfr_cmpl); in bfad_iocmd_fruvpd_update()
2724 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_fruvpd_update()
2726 iocmd->status = fcomp.status; in bfad_iocmd_fruvpd_update()
2735 struct bfa_bsg_fruvpd_max_size_s *iocmd = in bfad_iocmd_fruvpd_get_max_size() local
2740 iocmd->status = bfa_fruvpd_get_max_size(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_get_max_size()
2741 &iocmd->max_size); in bfad_iocmd_fruvpd_get_max_size()
2748 bfad_iocmd_handler(struct bfad_s *bfad, unsigned int cmd, void *iocmd, in bfad_iocmd_handler() argument
2755 rc = bfad_iocmd_ioc_enable(bfad, iocmd); in bfad_iocmd_handler()
2758 rc = bfad_iocmd_ioc_disable(bfad, iocmd); in bfad_iocmd_handler()
2761 rc = bfad_iocmd_ioc_get_info(bfad, iocmd); in bfad_iocmd_handler()
2764 rc = bfad_iocmd_ioc_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2767 rc = bfad_iocmd_ioc_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2770 rc = bfad_iocmd_ioc_get_fwstats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2774 rc = bfad_iocmd_ioc_reset_stats(bfad, iocmd, cmd); in bfad_iocmd_handler()
2778 rc = bfad_iocmd_ioc_set_name(bfad, iocmd, cmd); in bfad_iocmd_handler()
2781 rc = bfad_iocmd_iocfc_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2784 rc = bfad_iocmd_iocfc_set_intr(bfad, iocmd); in bfad_iocmd_handler()
2787 rc = bfad_iocmd_port_enable(bfad, iocmd); in bfad_iocmd_handler()
2790 rc = bfad_iocmd_port_disable(bfad, iocmd); in bfad_iocmd_handler()
2793 rc = bfad_iocmd_port_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2796 rc = bfad_iocmd_port_get_stats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2799 rc = bfad_iocmd_port_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2805 rc = bfad_iocmd_set_port_cfg(bfad, iocmd, cmd); in bfad_iocmd_handler()
2808 rc = bfad_iocmd_port_cfg_maxfrsize(bfad, iocmd); in bfad_iocmd_handler()
2812 rc = bfad_iocmd_port_cfg_bbcr(bfad, cmd, iocmd); in bfad_iocmd_handler()
2815 rc = bfad_iocmd_port_get_bbcr_attr(bfad, iocmd); in bfad_iocmd_handler()
2818 rc = bfad_iocmd_lport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2821 rc = bfad_iocmd_lport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2824 rc = bfad_iocmd_lport_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2827 rc = bfad_iocmd_lport_get_iostats(bfad, iocmd); in bfad_iocmd_handler()
2830 rc = bfad_iocmd_lport_get_rports(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2833 rc = bfad_iocmd_rport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2836 rc = bfad_iocmd_rport_get_addr(bfad, iocmd); in bfad_iocmd_handler()
2839 rc = bfad_iocmd_rport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2842 rc = bfad_iocmd_rport_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
2845 rc = bfad_iocmd_rport_set_speed(bfad, iocmd); in bfad_iocmd_handler()
2848 rc = bfad_iocmd_vport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2851 rc = bfad_iocmd_vport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2854 rc = bfad_iocmd_vport_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
2857 rc = bfad_iocmd_fabric_get_lports(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2861 rc = bfad_iocmd_ratelim(bfad, cmd, iocmd); in bfad_iocmd_handler()
2864 rc = bfad_iocmd_ratelim_speed(bfad, cmd, iocmd); in bfad_iocmd_handler()
2867 rc = bfad_iocmd_cfg_fcpim(bfad, iocmd); in bfad_iocmd_handler()
2870 rc = bfad_iocmd_fcpim_get_modstats(bfad, iocmd); in bfad_iocmd_handler()
2873 rc = bfad_iocmd_fcpim_clr_modstats(bfad, iocmd); in bfad_iocmd_handler()
2876 rc = bfad_iocmd_fcpim_get_del_itn_stats(bfad, iocmd); in bfad_iocmd_handler()
2879 rc = bfad_iocmd_itnim_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2882 rc = bfad_iocmd_itnim_get_iostats(bfad, iocmd); in bfad_iocmd_handler()
2885 rc = bfad_iocmd_itnim_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2888 rc = bfad_iocmd_itnim_get_itnstats(bfad, iocmd); in bfad_iocmd_handler()
2891 rc = bfad_iocmd_fcport_enable(bfad, iocmd); in bfad_iocmd_handler()
2894 rc = bfad_iocmd_fcport_disable(bfad, iocmd); in bfad_iocmd_handler()
2897 rc = bfad_iocmd_ioc_get_pcifn_cfg(bfad, iocmd); in bfad_iocmd_handler()
2900 rc = bfad_iocmd_ioc_fw_sig_inv(bfad, iocmd); in bfad_iocmd_handler()
2903 rc = bfad_iocmd_pcifn_create(bfad, iocmd); in bfad_iocmd_handler()
2906 rc = bfad_iocmd_pcifn_delete(bfad, iocmd); in bfad_iocmd_handler()
2909 rc = bfad_iocmd_pcifn_bw(bfad, iocmd); in bfad_iocmd_handler()
2912 rc = bfad_iocmd_adapter_cfg_mode(bfad, iocmd); in bfad_iocmd_handler()
2915 rc = bfad_iocmd_port_cfg_mode(bfad, iocmd); in bfad_iocmd_handler()
2919 rc = bfad_iocmd_ablk_optrom(bfad, cmd, iocmd); in bfad_iocmd_handler()
2922 rc = bfad_iocmd_faa_query(bfad, iocmd); in bfad_iocmd_handler()
2925 rc = bfad_iocmd_cee_attr(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2928 rc = bfad_iocmd_cee_get_stats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2931 rc = bfad_iocmd_cee_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2934 rc = bfad_iocmd_sfp_media(bfad, iocmd); in bfad_iocmd_handler()
2937 rc = bfad_iocmd_sfp_speed(bfad, iocmd); in bfad_iocmd_handler()
2940 rc = bfad_iocmd_flash_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2943 rc = bfad_iocmd_flash_erase_part(bfad, iocmd); in bfad_iocmd_handler()
2946 rc = bfad_iocmd_flash_update_part(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2949 rc = bfad_iocmd_flash_read_part(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2952 rc = bfad_iocmd_diag_temp(bfad, iocmd); in bfad_iocmd_handler()
2955 rc = bfad_iocmd_diag_memtest(bfad, iocmd); in bfad_iocmd_handler()
2958 rc = bfad_iocmd_diag_loopback(bfad, iocmd); in bfad_iocmd_handler()
2961 rc = bfad_iocmd_diag_fwping(bfad, iocmd); in bfad_iocmd_handler()
2964 rc = bfad_iocmd_diag_queuetest(bfad, iocmd); in bfad_iocmd_handler()
2967 rc = bfad_iocmd_diag_sfp(bfad, iocmd); in bfad_iocmd_handler()
2970 rc = bfad_iocmd_diag_led(bfad, iocmd); in bfad_iocmd_handler()
2973 rc = bfad_iocmd_diag_beacon_lport(bfad, iocmd); in bfad_iocmd_handler()
2976 rc = bfad_iocmd_diag_lb_stat(bfad, iocmd); in bfad_iocmd_handler()
2979 rc = bfad_iocmd_diag_dport_enable(bfad, iocmd); in bfad_iocmd_handler()
2982 rc = bfad_iocmd_diag_dport_disable(bfad, iocmd); in bfad_iocmd_handler()
2985 rc = bfad_iocmd_diag_dport_show(bfad, iocmd); in bfad_iocmd_handler()
2988 rc = bfad_iocmd_diag_dport_start(bfad, iocmd); in bfad_iocmd_handler()
2991 rc = bfad_iocmd_phy_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2994 rc = bfad_iocmd_phy_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2997 rc = bfad_iocmd_phy_update(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3000 rc = bfad_iocmd_phy_read(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3003 rc = bfad_iocmd_vhba_query(bfad, iocmd); in bfad_iocmd_handler()
3006 rc = bfad_iocmd_porglog_get(bfad, iocmd); in bfad_iocmd_handler()
3009 rc = bfad_iocmd_debug_fw_core(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3015 rc = bfad_iocmd_debug_ctl(bfad, iocmd, cmd); in bfad_iocmd_handler()
3018 rc = bfad_iocmd_porglog_ctl(bfad, iocmd); in bfad_iocmd_handler()
3022 rc = bfad_iocmd_fcpim_cfg_profile(bfad, iocmd, cmd); in bfad_iocmd_handler()
3025 rc = bfad_iocmd_itnim_get_ioprofile(bfad, iocmd); in bfad_iocmd_handler()
3028 rc = bfad_iocmd_fcport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3031 rc = bfad_iocmd_fcport_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
3034 rc = bfad_iocmd_boot_cfg(bfad, iocmd); in bfad_iocmd_handler()
3037 rc = bfad_iocmd_boot_query(bfad, iocmd); in bfad_iocmd_handler()
3040 rc = bfad_iocmd_preboot_query(bfad, iocmd); in bfad_iocmd_handler()
3043 rc = bfad_iocmd_ethboot_cfg(bfad, iocmd); in bfad_iocmd_handler()
3046 rc = bfad_iocmd_ethboot_query(bfad, iocmd); in bfad_iocmd_handler()
3050 rc = bfad_iocmd_cfg_trunk(bfad, iocmd, cmd); in bfad_iocmd_handler()
3053 rc = bfad_iocmd_trunk_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3057 rc = bfad_iocmd_qos(bfad, iocmd, cmd); in bfad_iocmd_handler()
3060 rc = bfad_iocmd_qos_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3063 rc = bfad_iocmd_qos_get_vc_attr(bfad, iocmd); in bfad_iocmd_handler()
3066 rc = bfad_iocmd_qos_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3069 rc = bfad_iocmd_qos_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
3072 rc = bfad_iocmd_qos_set_bw(bfad, iocmd); in bfad_iocmd_handler()
3075 rc = bfad_iocmd_vf_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3078 rc = bfad_iocmd_vf_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
3083 rc = bfad_iocmd_lunmask(bfad, iocmd, cmd); in bfad_iocmd_handler()
3086 rc = bfad_iocmd_fcpim_lunmask_query(bfad, iocmd); in bfad_iocmd_handler()
3090 rc = bfad_iocmd_fcpim_cfg_lunmask(bfad, iocmd, cmd); in bfad_iocmd_handler()
3093 rc = bfad_iocmd_fcpim_throttle_query(bfad, iocmd); in bfad_iocmd_handler()
3096 rc = bfad_iocmd_fcpim_throttle_set(bfad, iocmd); in bfad_iocmd_handler()
3100 rc = bfad_iocmd_tfru_read(bfad, iocmd); in bfad_iocmd_handler()
3103 rc = bfad_iocmd_tfru_write(bfad, iocmd); in bfad_iocmd_handler()
3107 rc = bfad_iocmd_fruvpd_read(bfad, iocmd); in bfad_iocmd_handler()
3110 rc = bfad_iocmd_fruvpd_update(bfad, iocmd); in bfad_iocmd_handler()
3113 rc = bfad_iocmd_fruvpd_get_max_size(bfad, iocmd); in bfad_iocmd_handler()