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 strscpy(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 strscpy(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
2138 bfa_pending_q_init_status(&cb_qe, bfad_hcb_comp, &fcomp, &iocmd->stats); in bfad_iocmd_fcport_get_stats()
2140 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_fcport_get_stats()
2142 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_fcport_get_stats()
2143 bfa_trc(bfad, iocmd->status); in bfad_iocmd_fcport_get_stats()
2147 iocmd->status = fcomp.status; in bfad_iocmd_fcport_get_stats()
2155 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_fcport_reset_stats() local
2164 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_fcport_reset_stats()
2166 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_fcport_reset_stats()
2167 bfa_trc(bfad, iocmd->status); in bfad_iocmd_fcport_reset_stats()
2171 iocmd->status = fcomp.status; in bfad_iocmd_fcport_reset_stats()
2179 struct bfa_bsg_boot_s *iocmd = (struct bfa_bsg_boot_s *)cmd; in bfad_iocmd_boot_cfg() local
2185 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_boot_cfg()
2187 &iocmd->cfg, sizeof(struct bfa_boot_cfg_s), 0, in bfad_iocmd_boot_cfg()
2190 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_boot_cfg()
2193 iocmd->status = fcomp.status; in bfad_iocmd_boot_cfg()
2201 struct bfa_bsg_boot_s *iocmd = (struct bfa_bsg_boot_s *)cmd; in bfad_iocmd_boot_query() local
2207 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_boot_query()
2209 &iocmd->cfg, sizeof(struct bfa_boot_cfg_s), 0, in bfad_iocmd_boot_query()
2212 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_boot_query()
2215 iocmd->status = fcomp.status; in bfad_iocmd_boot_query()
2223 struct bfa_bsg_preboot_s *iocmd = (struct bfa_bsg_preboot_s *)cmd; in bfad_iocmd_preboot_query() local
2225 struct bfa_boot_pbc_s *pbcfg = &iocmd->cfg; in bfad_iocmd_preboot_query()
2233 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_preboot_query()
2242 struct bfa_bsg_ethboot_s *iocmd = (struct bfa_bsg_ethboot_s *)cmd; in bfad_iocmd_ethboot_cfg() local
2248 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_ethboot_cfg()
2250 bfad->bfa.ioc.port_id, &iocmd->cfg, in bfad_iocmd_ethboot_cfg()
2254 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ethboot_cfg()
2257 iocmd->status = fcomp.status; in bfad_iocmd_ethboot_cfg()
2265 struct bfa_bsg_ethboot_s *iocmd = (struct bfa_bsg_ethboot_s *)cmd; in bfad_iocmd_ethboot_query() local
2271 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), in bfad_iocmd_ethboot_query()
2273 bfad->bfa.ioc.port_id, &iocmd->cfg, in bfad_iocmd_ethboot_query()
2277 if (iocmd->status != BFA_STATUS_OK) in bfad_iocmd_ethboot_query()
2280 iocmd->status = fcomp.status; in bfad_iocmd_ethboot_query()
2288 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_cfg_trunk() local
2302 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_cfg_trunk()
2317 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_cfg_trunk()
2328 struct bfa_bsg_trunk_attr_s *iocmd = (struct bfa_bsg_trunk_attr_s *)cmd; in bfad_iocmd_trunk_get_attr() local
2336 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_trunk_get_attr()
2338 memcpy((void *)&iocmd->attr, (void *)&trunk->attr, in bfad_iocmd_trunk_get_attr()
2340 iocmd->attr.port_id = bfa_lps_get_base_pid(&bfad->bfa); in bfad_iocmd_trunk_get_attr()
2341 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_trunk_get_attr()
2351 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_qos() local
2359 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos()
2379 struct bfa_bsg_qos_attr_s *iocmd = (struct bfa_bsg_qos_attr_s *)cmd; in bfad_iocmd_qos_get_attr() local
2386 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_get_attr()
2388 iocmd->attr.state = fcport->qos_attr.state; in bfad_iocmd_qos_get_attr()
2389 iocmd->attr.total_bb_cr = in bfad_iocmd_qos_get_attr()
2391 iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; in bfad_iocmd_qos_get_attr()
2392 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
2393 iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; in bfad_iocmd_qos_get_attr()
2394 iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; in bfad_iocmd_qos_get_attr()
2395 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_qos_get_attr()
2405 struct bfa_bsg_qos_vc_attr_s *iocmd = in bfad_iocmd_qos_get_vc_attr() local
2413 iocmd->attr.total_vc_count = be16_to_cpu(bfa_vc_attr->total_vc_count); in bfad_iocmd_qos_get_vc_attr()
2414 iocmd->attr.shared_credit = be16_to_cpu(bfa_vc_attr->shared_credit); in bfad_iocmd_qos_get_vc_attr()
2415 iocmd->attr.elp_opmode_flags = in bfad_iocmd_qos_get_vc_attr()
2419 while (i < iocmd->attr.total_vc_count) { in bfad_iocmd_qos_get_vc_attr()
2420 iocmd->attr.vc_info[i].vc_credit = in bfad_iocmd_qos_get_vc_attr()
2422 iocmd->attr.vc_info[i].borrow_credit = in bfad_iocmd_qos_get_vc_attr()
2424 iocmd->attr.vc_info[i].priority = in bfad_iocmd_qos_get_vc_attr()
2430 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_qos_get_vc_attr()
2437 struct bfa_bsg_fcport_stats_s *iocmd = in bfad_iocmd_qos_get_stats() local
2445 bfa_pending_q_init_status(&cb_qe, bfad_hcb_comp, &fcomp, &iocmd->stats); in bfad_iocmd_qos_get_stats()
2451 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_get_stats()
2453 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_qos_get_stats()
2455 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_qos_get_stats()
2456 bfa_trc(bfad, iocmd->status); in bfad_iocmd_qos_get_stats()
2460 iocmd->status = fcomp.status; in bfad_iocmd_qos_get_stats()
2468 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)cmd; in bfad_iocmd_qos_reset_stats() local
2481 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; in bfad_iocmd_qos_reset_stats()
2483 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); in bfad_iocmd_qos_reset_stats()
2485 if (iocmd->status != BFA_STATUS_OK) { in bfad_iocmd_qos_reset_stats()
2486 bfa_trc(bfad, iocmd->status); in bfad_iocmd_qos_reset_stats()
2490 iocmd->status = fcomp.status; in bfad_iocmd_qos_reset_stats()
2498 struct bfa_bsg_vf_stats_s *iocmd = in bfad_iocmd_vf_get_stats() local
2504 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_vf_get_stats()
2507 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_vf_get_stats()
2510 memcpy((void *)&iocmd->stats, (void *)&fcs_vf->stats, in bfad_iocmd_vf_get_stats()
2513 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vf_get_stats()
2521 struct bfa_bsg_vf_reset_stats_s *iocmd = in bfad_iocmd_vf_clr_stats() local
2527 fcs_vf = bfa_fcs_vf_lookup(&bfad->bfa_fcs, iocmd->vf_id); in bfad_iocmd_vf_clr_stats()
2530 iocmd->status = BFA_STATUS_UNKNOWN_VFID; in bfad_iocmd_vf_clr_stats()
2535 iocmd->status = BFA_STATUS_OK; in bfad_iocmd_vf_clr_stats()
2587 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_lunmask() local
2592 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_TRUE); in bfad_iocmd_lunmask()
2594 if (iocmd->status == BFA_STATUS_OK) in bfad_iocmd_lunmask()
2597 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_FALSE); in bfad_iocmd_lunmask()
2599 if (iocmd->status == BFA_STATUS_OK) in bfad_iocmd_lunmask()
2602 iocmd->status = bfa_fcpim_lunmask_clear(&bfad->bfa); in bfad_iocmd_lunmask()
2610 struct bfa_bsg_fcpim_lunmask_query_s *iocmd = in bfad_iocmd_fcpim_lunmask_query() local
2612 struct bfa_lunmask_cfg_s *lun_mask = &iocmd->lun_mask; in bfad_iocmd_fcpim_lunmask_query()
2616 iocmd->status = bfa_fcpim_lunmask_query(&bfad->bfa, lun_mask); in bfad_iocmd_fcpim_lunmask_query()
2624 struct bfa_bsg_fcpim_lunmask_s *iocmd = in bfad_iocmd_fcpim_cfg_lunmask() local
2630 iocmd->status = bfa_fcpim_lunmask_add(&bfad->bfa, iocmd->vf_id, in bfad_iocmd_fcpim_cfg_lunmask()
2631 &iocmd->pwwn, iocmd->rpwwn, iocmd->lun); in bfad_iocmd_fcpim_cfg_lunmask()
2633 iocmd->status = bfa_fcpim_lunmask_delete(&bfad->bfa, in bfad_iocmd_fcpim_cfg_lunmask()
2634 iocmd->vf_id, &iocmd->pwwn, in bfad_iocmd_fcpim_cfg_lunmask()
2635 iocmd->rpwwn, iocmd->lun); in bfad_iocmd_fcpim_cfg_lunmask()
2643 struct bfa_bsg_fcpim_throttle_s *iocmd = in bfad_iocmd_fcpim_throttle_query() local
2648 iocmd->status = bfa_fcpim_throttle_get(&bfad->bfa, in bfad_iocmd_fcpim_throttle_query()
2649 (void *)&iocmd->throttle); in bfad_iocmd_fcpim_throttle_query()
2658 struct bfa_bsg_fcpim_throttle_s *iocmd = in bfad_iocmd_fcpim_throttle_set() local
2663 iocmd->status = bfa_fcpim_throttle_set(&bfad->bfa, in bfad_iocmd_fcpim_throttle_set()
2664 iocmd->throttle.cfg_value); in bfad_iocmd_fcpim_throttle_set()
2673 struct bfa_bsg_tfru_s *iocmd = in bfad_iocmd_tfru_read() local
2680 iocmd->status = bfa_tfru_read(BFA_FRU(&bfad->bfa), in bfad_iocmd_tfru_read()
2681 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_tfru_read()
2684 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_tfru_read()
2686 iocmd->status = fcomp.status; in bfad_iocmd_tfru_read()
2695 struct bfa_bsg_tfru_s *iocmd = in bfad_iocmd_tfru_write() local
2702 iocmd->status = bfa_tfru_write(BFA_FRU(&bfad->bfa), in bfad_iocmd_tfru_write()
2703 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_tfru_write()
2706 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_tfru_write()
2708 iocmd->status = fcomp.status; in bfad_iocmd_tfru_write()
2717 struct bfa_bsg_fruvpd_s *iocmd = in bfad_iocmd_fruvpd_read() local
2724 iocmd->status = bfa_fruvpd_read(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_read()
2725 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_fruvpd_read()
2728 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_fruvpd_read()
2730 iocmd->status = fcomp.status; in bfad_iocmd_fruvpd_read()
2739 struct bfa_bsg_fruvpd_s *iocmd = in bfad_iocmd_fruvpd_update() local
2746 iocmd->status = bfa_fruvpd_update(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_update()
2747 &iocmd->data, iocmd->len, iocmd->offset, in bfad_iocmd_fruvpd_update()
2748 bfad_hcb_comp, &fcomp, iocmd->trfr_cmpl); in bfad_iocmd_fruvpd_update()
2750 if (iocmd->status == BFA_STATUS_OK) { in bfad_iocmd_fruvpd_update()
2752 iocmd->status = fcomp.status; in bfad_iocmd_fruvpd_update()
2761 struct bfa_bsg_fruvpd_max_size_s *iocmd = in bfad_iocmd_fruvpd_get_max_size() local
2766 iocmd->status = bfa_fruvpd_get_max_size(BFA_FRU(&bfad->bfa), in bfad_iocmd_fruvpd_get_max_size()
2767 &iocmd->max_size); in bfad_iocmd_fruvpd_get_max_size()
2774 bfad_iocmd_handler(struct bfad_s *bfad, unsigned int cmd, void *iocmd, in bfad_iocmd_handler() argument
2781 rc = bfad_iocmd_ioc_enable(bfad, iocmd); in bfad_iocmd_handler()
2784 rc = bfad_iocmd_ioc_disable(bfad, iocmd); in bfad_iocmd_handler()
2787 rc = bfad_iocmd_ioc_get_info(bfad, iocmd); in bfad_iocmd_handler()
2790 rc = bfad_iocmd_ioc_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2793 rc = bfad_iocmd_ioc_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2796 rc = bfad_iocmd_ioc_get_fwstats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2800 rc = bfad_iocmd_ioc_reset_stats(bfad, iocmd, cmd); in bfad_iocmd_handler()
2804 rc = bfad_iocmd_ioc_set_name(bfad, iocmd, cmd); in bfad_iocmd_handler()
2807 rc = bfad_iocmd_iocfc_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2810 rc = bfad_iocmd_iocfc_set_intr(bfad, iocmd); in bfad_iocmd_handler()
2813 rc = bfad_iocmd_port_enable(bfad, iocmd); in bfad_iocmd_handler()
2816 rc = bfad_iocmd_port_disable(bfad, iocmd); in bfad_iocmd_handler()
2819 rc = bfad_iocmd_port_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2822 rc = bfad_iocmd_port_get_stats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2825 rc = bfad_iocmd_port_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2831 rc = bfad_iocmd_set_port_cfg(bfad, iocmd, cmd); in bfad_iocmd_handler()
2834 rc = bfad_iocmd_port_cfg_maxfrsize(bfad, iocmd); in bfad_iocmd_handler()
2838 rc = bfad_iocmd_port_cfg_bbcr(bfad, cmd, iocmd); in bfad_iocmd_handler()
2841 rc = bfad_iocmd_port_get_bbcr_attr(bfad, iocmd); in bfad_iocmd_handler()
2844 rc = bfad_iocmd_lport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2847 rc = bfad_iocmd_lport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2850 rc = bfad_iocmd_lport_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2853 rc = bfad_iocmd_lport_get_iostats(bfad, iocmd); in bfad_iocmd_handler()
2856 rc = bfad_iocmd_lport_get_rports(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2859 rc = bfad_iocmd_rport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2862 rc = bfad_iocmd_rport_get_addr(bfad, iocmd); in bfad_iocmd_handler()
2865 rc = bfad_iocmd_rport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2868 rc = bfad_iocmd_rport_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
2871 rc = bfad_iocmd_rport_set_speed(bfad, iocmd); in bfad_iocmd_handler()
2874 rc = bfad_iocmd_vport_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2877 rc = bfad_iocmd_vport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
2880 rc = bfad_iocmd_vport_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
2883 rc = bfad_iocmd_fabric_get_lports(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2887 rc = bfad_iocmd_ratelim(bfad, cmd, iocmd); in bfad_iocmd_handler()
2890 rc = bfad_iocmd_ratelim_speed(bfad, cmd, iocmd); in bfad_iocmd_handler()
2893 rc = bfad_iocmd_cfg_fcpim(bfad, iocmd); in bfad_iocmd_handler()
2896 rc = bfad_iocmd_fcpim_get_modstats(bfad, iocmd); in bfad_iocmd_handler()
2899 rc = bfad_iocmd_fcpim_clr_modstats(bfad, iocmd); in bfad_iocmd_handler()
2902 rc = bfad_iocmd_fcpim_get_del_itn_stats(bfad, iocmd); in bfad_iocmd_handler()
2905 rc = bfad_iocmd_itnim_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2908 rc = bfad_iocmd_itnim_get_iostats(bfad, iocmd); in bfad_iocmd_handler()
2911 rc = bfad_iocmd_itnim_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2914 rc = bfad_iocmd_itnim_get_itnstats(bfad, iocmd); in bfad_iocmd_handler()
2917 rc = bfad_iocmd_fcport_enable(bfad, iocmd); in bfad_iocmd_handler()
2920 rc = bfad_iocmd_fcport_disable(bfad, iocmd); in bfad_iocmd_handler()
2923 rc = bfad_iocmd_ioc_get_pcifn_cfg(bfad, iocmd); in bfad_iocmd_handler()
2926 rc = bfad_iocmd_ioc_fw_sig_inv(bfad, iocmd); in bfad_iocmd_handler()
2929 rc = bfad_iocmd_pcifn_create(bfad, iocmd); in bfad_iocmd_handler()
2932 rc = bfad_iocmd_pcifn_delete(bfad, iocmd); in bfad_iocmd_handler()
2935 rc = bfad_iocmd_pcifn_bw(bfad, iocmd); in bfad_iocmd_handler()
2938 rc = bfad_iocmd_adapter_cfg_mode(bfad, iocmd); in bfad_iocmd_handler()
2941 rc = bfad_iocmd_port_cfg_mode(bfad, iocmd); in bfad_iocmd_handler()
2945 rc = bfad_iocmd_ablk_optrom(bfad, cmd, iocmd); in bfad_iocmd_handler()
2948 rc = bfad_iocmd_faa_query(bfad, iocmd); in bfad_iocmd_handler()
2951 rc = bfad_iocmd_cee_attr(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2954 rc = bfad_iocmd_cee_get_stats(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2957 rc = bfad_iocmd_cee_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
2960 rc = bfad_iocmd_sfp_media(bfad, iocmd); in bfad_iocmd_handler()
2963 rc = bfad_iocmd_sfp_speed(bfad, iocmd); in bfad_iocmd_handler()
2966 rc = bfad_iocmd_flash_get_attr(bfad, iocmd); in bfad_iocmd_handler()
2969 rc = bfad_iocmd_flash_erase_part(bfad, iocmd); in bfad_iocmd_handler()
2972 rc = bfad_iocmd_flash_update_part(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2975 rc = bfad_iocmd_flash_read_part(bfad, iocmd, payload_len); in bfad_iocmd_handler()
2978 rc = bfad_iocmd_diag_temp(bfad, iocmd); in bfad_iocmd_handler()
2981 rc = bfad_iocmd_diag_memtest(bfad, iocmd); in bfad_iocmd_handler()
2984 rc = bfad_iocmd_diag_loopback(bfad, iocmd); in bfad_iocmd_handler()
2987 rc = bfad_iocmd_diag_fwping(bfad, iocmd); in bfad_iocmd_handler()
2990 rc = bfad_iocmd_diag_queuetest(bfad, iocmd); in bfad_iocmd_handler()
2993 rc = bfad_iocmd_diag_sfp(bfad, iocmd); in bfad_iocmd_handler()
2996 rc = bfad_iocmd_diag_led(bfad, iocmd); in bfad_iocmd_handler()
2999 rc = bfad_iocmd_diag_beacon_lport(bfad, iocmd); in bfad_iocmd_handler()
3002 rc = bfad_iocmd_diag_lb_stat(bfad, iocmd); in bfad_iocmd_handler()
3005 rc = bfad_iocmd_diag_dport_enable(bfad, iocmd); in bfad_iocmd_handler()
3008 rc = bfad_iocmd_diag_dport_disable(bfad, iocmd); in bfad_iocmd_handler()
3011 rc = bfad_iocmd_diag_dport_show(bfad, iocmd); in bfad_iocmd_handler()
3014 rc = bfad_iocmd_diag_dport_start(bfad, iocmd); in bfad_iocmd_handler()
3017 rc = bfad_iocmd_phy_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3020 rc = bfad_iocmd_phy_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3023 rc = bfad_iocmd_phy_update(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3026 rc = bfad_iocmd_phy_read(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3029 rc = bfad_iocmd_vhba_query(bfad, iocmd); in bfad_iocmd_handler()
3032 rc = bfad_iocmd_porglog_get(bfad, iocmd); in bfad_iocmd_handler()
3035 rc = bfad_iocmd_debug_fw_core(bfad, iocmd, payload_len); in bfad_iocmd_handler()
3041 rc = bfad_iocmd_debug_ctl(bfad, iocmd, cmd); in bfad_iocmd_handler()
3044 rc = bfad_iocmd_porglog_ctl(bfad, iocmd); in bfad_iocmd_handler()
3048 rc = bfad_iocmd_fcpim_cfg_profile(bfad, iocmd, cmd); in bfad_iocmd_handler()
3051 rc = bfad_iocmd_itnim_get_ioprofile(bfad, iocmd); in bfad_iocmd_handler()
3054 rc = bfad_iocmd_fcport_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3057 rc = bfad_iocmd_fcport_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
3060 rc = bfad_iocmd_boot_cfg(bfad, iocmd); in bfad_iocmd_handler()
3063 rc = bfad_iocmd_boot_query(bfad, iocmd); in bfad_iocmd_handler()
3066 rc = bfad_iocmd_preboot_query(bfad, iocmd); in bfad_iocmd_handler()
3069 rc = bfad_iocmd_ethboot_cfg(bfad, iocmd); in bfad_iocmd_handler()
3072 rc = bfad_iocmd_ethboot_query(bfad, iocmd); in bfad_iocmd_handler()
3076 rc = bfad_iocmd_cfg_trunk(bfad, iocmd, cmd); in bfad_iocmd_handler()
3079 rc = bfad_iocmd_trunk_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3083 rc = bfad_iocmd_qos(bfad, iocmd, cmd); in bfad_iocmd_handler()
3086 rc = bfad_iocmd_qos_get_attr(bfad, iocmd); in bfad_iocmd_handler()
3089 rc = bfad_iocmd_qos_get_vc_attr(bfad, iocmd); in bfad_iocmd_handler()
3092 rc = bfad_iocmd_qos_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3095 rc = bfad_iocmd_qos_reset_stats(bfad, iocmd); in bfad_iocmd_handler()
3098 rc = bfad_iocmd_qos_set_bw(bfad, iocmd); in bfad_iocmd_handler()
3101 rc = bfad_iocmd_vf_get_stats(bfad, iocmd); in bfad_iocmd_handler()
3104 rc = bfad_iocmd_vf_clr_stats(bfad, iocmd); in bfad_iocmd_handler()
3109 rc = bfad_iocmd_lunmask(bfad, iocmd, cmd); in bfad_iocmd_handler()
3112 rc = bfad_iocmd_fcpim_lunmask_query(bfad, iocmd); in bfad_iocmd_handler()
3116 rc = bfad_iocmd_fcpim_cfg_lunmask(bfad, iocmd, cmd); in bfad_iocmd_handler()
3119 rc = bfad_iocmd_fcpim_throttle_query(bfad, iocmd); in bfad_iocmd_handler()
3122 rc = bfad_iocmd_fcpim_throttle_set(bfad, iocmd); in bfad_iocmd_handler()
3126 rc = bfad_iocmd_tfru_read(bfad, iocmd); in bfad_iocmd_handler()
3129 rc = bfad_iocmd_tfru_write(bfad, iocmd); in bfad_iocmd_handler()
3133 rc = bfad_iocmd_fruvpd_read(bfad, iocmd); in bfad_iocmd_handler()
3136 rc = bfad_iocmd_fruvpd_update(bfad, iocmd); in bfad_iocmd_handler()
3139 rc = bfad_iocmd_fruvpd_get_max_size(bfad, iocmd); in bfad_iocmd_handler()