Lines Matching refs:pflags
252 WARN_ON(!(ap->pflags & ATA_PFLAG_INITIALIZING)); in ata_port_desc()
541 ap->pflags &= ~ATA_PFLAG_EH_PENDING; /* clear pending from freeze */ in ata_eh_unload()
542 ap->pflags |= ATA_PFLAG_UNLOADED; in ata_eh_unload()
725 if (ap->pflags & ATA_PFLAG_RESUMING) { in ata_scsi_port_error_handler()
732 ap->pflags |= ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
733 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
739 if (!(ap->pflags & (ATA_PFLAG_UNLOADING | ATA_PFLAG_SUSPENDED))) in ata_scsi_port_error_handler()
743 if ((ap->pflags & ATA_PFLAG_UNLOADING) && in ata_scsi_port_error_handler()
744 !(ap->pflags & ATA_PFLAG_UNLOADED)) in ata_scsi_port_error_handler()
758 if (ap->pflags & ATA_PFLAG_EH_PENDING) { in ata_scsi_port_error_handler()
766 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
788 ap->pflags &= ~ATA_PFLAG_RESUMING; in ata_scsi_port_error_handler()
790 if (ap->pflags & ATA_PFLAG_LOADING) in ata_scsi_port_error_handler()
791 ap->pflags &= ~ATA_PFLAG_LOADING; in ata_scsi_port_error_handler()
792 else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) && in ata_scsi_port_error_handler()
796 if (ap->pflags & ATA_PFLAG_RECOVERED) in ata_scsi_port_error_handler()
799 ap->pflags &= ~(ATA_PFLAG_SCSI_HOTPLUG | ATA_PFLAG_RECOVERED); in ata_scsi_port_error_handler()
802 ap->pflags &= ~ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
915 if (ap->pflags & ATA_PFLAG_EH_PENDING) in ata_eh_set_pending()
918 ap->pflags |= ATA_PFLAG_EH_PENDING; in ata_eh_set_pending()
969 if (ap->pflags & ATA_PFLAG_INITIALIZING) in ata_std_sched_eh()
1099 ap->pflags |= ATA_PFLAG_FROZEN; in __ata_port_freeze()
1160 ap->pflags &= ~ATA_PFLAG_FROZEN; in ata_eh_thaw_port()
1274 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_detach_dev()
1317 ap->pflags |= ATA_PFLAG_RECOVERED; in ata_eh_about_to_do()
2846 ap->pflags |= ATA_PFLAG_RESETTING; in ata_eh_reset()
3139 ap->pflags &= ~ATA_PFLAG_RESETTING; in ata_eh_reset()
3403 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_revalidate_and_attach()
3829 if (ap->pflags & ATA_PFLAG_UNLOADING) in ata_eh_recover()
4126 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_suspend()
4133 WARN_ON(ap->pflags & ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_suspend()
4174 ap->pflags &= ~ATA_PFLAG_PM_PENDING; in ata_eh_handle_port_suspend()
4176 ap->pflags |= ATA_PFLAG_SUSPENDED; in ata_eh_handle_port_suspend()
4202 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_resume()
4209 WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED)); in ata_eh_handle_port_resume()
4232 ap->pflags &= ~(ATA_PFLAG_PM_PENDING | ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_resume()
4233 ap->pflags |= ATA_PFLAG_RESUMING; in ata_eh_handle_port_resume()