Lines Matching refs:pflags

254 	WARN_ON(!(ap->pflags & ATA_PFLAG_INITIALIZING));  in ata_port_desc()
528 ap->pflags &= ~ATA_PFLAG_EH_PENDING; /* clear pending from freeze */ in ata_eh_unload()
529 ap->pflags |= ATA_PFLAG_UNLOADED; in ata_eh_unload()
703 if (ap->pflags & ATA_PFLAG_RESUMING) in ata_scsi_port_error_handler()
708 ap->pflags |= ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
709 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
715 if (!(ap->pflags & (ATA_PFLAG_UNLOADING | ATA_PFLAG_SUSPENDED))) in ata_scsi_port_error_handler()
719 if ((ap->pflags & ATA_PFLAG_UNLOADING) && in ata_scsi_port_error_handler()
720 !(ap->pflags & ATA_PFLAG_UNLOADED)) in ata_scsi_port_error_handler()
734 if (ap->pflags & ATA_PFLAG_EH_PENDING) { in ata_scsi_port_error_handler()
742 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
764 ap->pflags &= ~ATA_PFLAG_RESUMING; in ata_scsi_port_error_handler()
766 if (ap->pflags & ATA_PFLAG_LOADING) in ata_scsi_port_error_handler()
767 ap->pflags &= ~ATA_PFLAG_LOADING; in ata_scsi_port_error_handler()
768 else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) && in ata_scsi_port_error_handler()
772 if (ap->pflags & ATA_PFLAG_RECOVERED) in ata_scsi_port_error_handler()
775 ap->pflags &= ~(ATA_PFLAG_SCSI_HOTPLUG | ATA_PFLAG_RECOVERED); in ata_scsi_port_error_handler()
778 ap->pflags &= ~ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
802 while (ap->pflags & (ATA_PFLAG_EH_PENDING | ATA_PFLAG_EH_IN_PROGRESS)) { in ata_port_wait_eh()
891 if (ap->pflags & ATA_PFLAG_EH_PENDING) in ata_eh_set_pending()
894 ap->pflags |= ATA_PFLAG_EH_PENDING; in ata_eh_set_pending()
945 if (ap->pflags & ATA_PFLAG_INITIALIZING) in ata_std_sched_eh()
1075 ap->pflags |= ATA_PFLAG_FROZEN; in __ata_port_freeze()
1136 ap->pflags &= ~ATA_PFLAG_FROZEN; in ata_eh_thaw_port()
1256 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_detach_dev()
1299 ap->pflags |= ATA_PFLAG_RECOVERED; in ata_eh_about_to_do()
2599 ap->pflags |= ATA_PFLAG_RESETTING; in ata_eh_reset()
2892 ap->pflags &= ~ATA_PFLAG_RESETTING; in ata_eh_reset()
3163 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_revalidate_and_attach()
3726 if (ap->pflags & ATA_PFLAG_UNLOADING) in ata_eh_recover()
4032 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_suspend()
4039 WARN_ON(ap->pflags & ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_suspend()
4070 ap->pflags &= ~ATA_PFLAG_PM_PENDING; in ata_eh_handle_port_suspend()
4072 ap->pflags |= ATA_PFLAG_SUSPENDED; in ata_eh_handle_port_suspend()
4098 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_resume()
4105 WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED)); in ata_eh_handle_port_resume()
4128 ap->pflags &= ~(ATA_PFLAG_PM_PENDING | ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_resume()
4129 ap->pflags |= ATA_PFLAG_RESUMING; in ata_eh_handle_port_resume()