• Home
  • Raw
  • Download

Lines Matching refs:gai

758 		struct atto_hba_get_adapter_info *gai =  in hba_ioctl_callback()  local
773 memset(gai, 0, sizeof(*gai)); in hba_ioctl_callback()
775 gai->pci.vendor_id = a->pcid->vendor; in hba_ioctl_callback()
776 gai->pci.device_id = a->pcid->device; in hba_ioctl_callback()
777 gai->pci.ss_vendor_id = a->pcid->subsystem_vendor; in hba_ioctl_callback()
778 gai->pci.ss_device_id = a->pcid->subsystem_device; in hba_ioctl_callback()
779 gai->pci.class_code[0] = class_code[0]; in hba_ioctl_callback()
780 gai->pci.class_code[1] = class_code[1]; in hba_ioctl_callback()
781 gai->pci.class_code[2] = class_code[2]; in hba_ioctl_callback()
782 gai->pci.rev_id = a->pcid->revision; in hba_ioctl_callback()
783 gai->pci.bus_num = a->pcid->bus->number; in hba_ioctl_callback()
784 gai->pci.dev_num = PCI_SLOT(a->pcid->devfn); in hba_ioctl_callback()
785 gai->pci.func_num = PCI_FUNC(a->pcid->devfn); in hba_ioctl_callback()
799 gai->pci.link_speed_curr = in hba_ioctl_callback()
801 gai->pci.link_speed_max = in hba_ioctl_callback()
803 gai->pci.link_width_curr = in hba_ioctl_callback()
806 gai->pci.link_width_max = in hba_ioctl_callback()
811 gai->pci.msi_vector_cnt = 1; in hba_ioctl_callback()
814 gai->pci.interrupt_mode = ATTO_GAI_PCIIM_MSIX; in hba_ioctl_callback()
816 gai->pci.interrupt_mode = ATTO_GAI_PCIIM_MSI; in hba_ioctl_callback()
818 gai->pci.interrupt_mode = ATTO_GAI_PCIIM_LEGACY; in hba_ioctl_callback()
820 gai->adap_type = ATTO_GAI_AT_ESASRAID2; in hba_ioctl_callback()
823 gai->adap_type = ATTO_GAI_AT_TLSASHBA; in hba_ioctl_callback()
826 gai->adap_flags |= ATTO_GAI_AF_DEGRADED; in hba_ioctl_callback()
828 gai->adap_flags |= ATTO_GAI_AF_SPT_SUPP | in hba_ioctl_callback()
835 gai->adap_flags |= ATTO_GAI_AF_VIRT_SES; in hba_ioctl_callback()
837 gai->num_ports = ESAS2R_NUM_PHYS; in hba_ioctl_callback()
838 gai->num_phys = ESAS2R_NUM_PHYS; in hba_ioctl_callback()
840 strcpy(gai->firmware_rev, a->fw_rev); in hba_ioctl_callback()
841 strcpy(gai->flash_rev, a->flash_rev); in hba_ioctl_callback()
842 strcpy(gai->model_name_short, esas2r_get_model_name_short(a)); in hba_ioctl_callback()
843 strcpy(gai->model_name, esas2r_get_model_name(a)); in hba_ioctl_callback()
845 gai->num_targets = ESAS2R_MAX_TARGETS; in hba_ioctl_callback()
847 gai->num_busses = 1; in hba_ioctl_callback()
848 gai->num_targsper_bus = gai->num_targets; in hba_ioctl_callback()
849 gai->num_lunsper_targ = 256; in hba_ioctl_callback()
853 gai->num_connectors = 4; in hba_ioctl_callback()
855 gai->num_connectors = 2; in hba_ioctl_callback()
857 gai->adap_flags2 |= ATTO_GAI_AF2_ADAP_CTRL_SUPP; in hba_ioctl_callback()
859 gai->num_targets_backend = a->num_targets_backend; in hba_ioctl_callback()
861 gai->tunnel_flags = a->ioctl_tunnel in hba_ioctl_callback()
1216 struct atto_hba_get_adapter_info *gai = in hba_ioctl_done_callback() local
1221 gai->drvr_rev_major = ESAS2R_MAJOR_REV; in hba_ioctl_done_callback()
1222 gai->drvr_rev_minor = ESAS2R_MINOR_REV; in hba_ioctl_done_callback()
1224 strcpy(gai->drvr_rev_ascii, ESAS2R_VERSION_STR); in hba_ioctl_done_callback()
1225 strcpy(gai->drvr_name, ESAS2R_DRVR_NAME); in hba_ioctl_done_callback()
1227 gai->num_busses = 1; in hba_ioctl_done_callback()
1228 gai->num_targsper_bus = ESAS2R_MAX_ID + 1; in hba_ioctl_done_callback()
1229 gai->num_lunsper_targ = 1; in hba_ioctl_done_callback()