Lines Matching refs:adpinfo
453 struct mpi3mr_bsg_in_adpinfo adpinfo; in mpi3mr_bsg_populate_adpinfo() local
455 memset(&adpinfo, 0, sizeof(adpinfo)); in mpi3mr_bsg_populate_adpinfo()
456 adpinfo.adp_type = MPI3MR_BSG_ADPTYPE_AVGFAMILY; in mpi3mr_bsg_populate_adpinfo()
457 adpinfo.pci_dev_id = mrioc->pdev->device; in mpi3mr_bsg_populate_adpinfo()
458 adpinfo.pci_dev_hw_rev = mrioc->pdev->revision; in mpi3mr_bsg_populate_adpinfo()
459 adpinfo.pci_subsys_dev_id = mrioc->pdev->subsystem_device; in mpi3mr_bsg_populate_adpinfo()
460 adpinfo.pci_subsys_ven_id = mrioc->pdev->subsystem_vendor; in mpi3mr_bsg_populate_adpinfo()
461 adpinfo.pci_bus = mrioc->pdev->bus->number; in mpi3mr_bsg_populate_adpinfo()
462 adpinfo.pci_dev = PCI_SLOT(mrioc->pdev->devfn); in mpi3mr_bsg_populate_adpinfo()
463 adpinfo.pci_func = PCI_FUNC(mrioc->pdev->devfn); in mpi3mr_bsg_populate_adpinfo()
464 adpinfo.pci_seg_id = pci_domain_nr(mrioc->pdev->bus); in mpi3mr_bsg_populate_adpinfo()
465 adpinfo.app_intfc_ver = MPI3MR_IOCTL_VERSION; in mpi3mr_bsg_populate_adpinfo()
469 adpinfo.adp_state = MPI3MR_BSG_ADPSTATE_UNRECOVERABLE; in mpi3mr_bsg_populate_adpinfo()
471 adpinfo.adp_state = MPI3MR_BSG_ADPSTATE_IN_RESET; in mpi3mr_bsg_populate_adpinfo()
473 adpinfo.adp_state = MPI3MR_BSG_ADPSTATE_FAULT; in mpi3mr_bsg_populate_adpinfo()
475 adpinfo.adp_state = MPI3MR_BSG_ADPSTATE_OPERATIONAL; in mpi3mr_bsg_populate_adpinfo()
477 memcpy((u8 *)&adpinfo.driver_info, (u8 *)&mrioc->driver_info, in mpi3mr_bsg_populate_adpinfo()
478 sizeof(adpinfo.driver_info)); in mpi3mr_bsg_populate_adpinfo()
480 if (job->request_payload.payload_len >= sizeof(adpinfo)) { in mpi3mr_bsg_populate_adpinfo()
483 &adpinfo, sizeof(adpinfo)); in mpi3mr_bsg_populate_adpinfo()