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