Lines Matching defs:option

447  * @option: operation to be issued
453 static int pnv_eeh_set_option(struct eeh_pe *pe, int option)
461 switch (option) {
477 pr_warn("%s: Invalid option %d\n", __func__, option);
506 __func__, rc, option, phb->hose->global_number,
719 int pnv_eeh_phb_reset(struct pci_controller *hose, int option)
724 pr_debug("%s: Reset PHB#%x, option=%d\n",
725 __func__, hose->global_number, option);
728 if (option == EEH_RESET_FUNDAMENTAL ||
729 option == EEH_RESET_HOT)
733 else if (option == EEH_RESET_DEACTIVATE)
748 if (option == EEH_RESET_DEACTIVATE) {
761 static int pnv_eeh_root_reset(struct pci_controller *hose, int option)
766 pr_debug("%s: Reset PHB#%x, option=%d\n",
767 __func__, hose->global_number, option);
774 if (option == EEH_RESET_FUNDAMENTAL)
778 else if (option == EEH_RESET_HOT)
782 else if (option == EEH_RESET_DEACTIVATE)
792 if (option == EEH_RESET_DEACTIVATE)
801 static int __pnv_eeh_bridge_reset(struct pci_dev *dev, int option)
808 pr_debug("%s: Secondary Reset PCI bus %04x:%02x with option %d\n",
810 dev->bus->number, option);
812 switch (option) {
852 static int pnv_eeh_bridge_reset(struct pci_dev *pdev, int option)
864 return __pnv_eeh_bridge_reset(pdev, option);
866 pr_debug("%s: FW reset PCI bus %04x:%02x with option %d\n",
868 pdev->bus->number, option);
870 switch (option) {
881 __func__, option);
929 static int pnv_eeh_do_flr(struct pci_dn *pdn, int option)
941 switch (option) {
967 static int pnv_eeh_do_af_flr(struct pci_dn *pdn, int option)
979 switch (option) {
1003 static int pnv_eeh_reset_vf_pe(struct eeh_pe *pe, int option)
1015 ret = pnv_eeh_do_flr(pdn, option);
1019 return pnv_eeh_do_af_flr(pdn, option);
1025 * @option: reset option
1034 static int pnv_eeh_reset(struct eeh_pe *pe, int option)
1056 return pnv_eeh_phb_reset(hose, option);
1067 (option == EEH_RESET_HOT ||
1068 option == EEH_RESET_FUNDAMENTAL)) {
1080 return pnv_eeh_reset_vf_pe(pe, option);
1090 return pnv_eeh_root_reset(hose, option);
1103 if (option != EEH_RESET_FUNDAMENTAL) {
1109 if (option == EEH_RESET_DEACTIVATE)
1119 return pnv_eeh_root_reset(hose, option);
1120 return pnv_eeh_bridge_reset(bus->self, option);