Lines Matching refs:pflags
254 WARN_ON(!(ap->pflags & ATA_PFLAG_INITIALIZING)); in ata_port_desc()
543 ap->pflags &= ~ATA_PFLAG_EH_PENDING; /* clear pending from freeze */ in ata_eh_unload()
544 ap->pflags |= ATA_PFLAG_UNLOADED; in ata_eh_unload()
727 if (ap->pflags & ATA_PFLAG_RESUMING) { in ata_scsi_port_error_handler()
734 ap->pflags |= ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
735 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
741 if (!(ap->pflags & (ATA_PFLAG_UNLOADING | ATA_PFLAG_SUSPENDED))) in ata_scsi_port_error_handler()
745 if ((ap->pflags & ATA_PFLAG_UNLOADING) && in ata_scsi_port_error_handler()
746 !(ap->pflags & ATA_PFLAG_UNLOADED)) in ata_scsi_port_error_handler()
760 if (ap->pflags & ATA_PFLAG_EH_PENDING) { in ata_scsi_port_error_handler()
768 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
790 ap->pflags &= ~ATA_PFLAG_RESUMING; in ata_scsi_port_error_handler()
792 if (ap->pflags & ATA_PFLAG_LOADING) in ata_scsi_port_error_handler()
793 ap->pflags &= ~ATA_PFLAG_LOADING; in ata_scsi_port_error_handler()
794 else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) && in ata_scsi_port_error_handler()
798 if (ap->pflags & ATA_PFLAG_RECOVERED) in ata_scsi_port_error_handler()
801 ap->pflags &= ~(ATA_PFLAG_SCSI_HOTPLUG | ATA_PFLAG_RECOVERED); in ata_scsi_port_error_handler()
804 ap->pflags &= ~ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
828 while (ap->pflags & (ATA_PFLAG_EH_PENDING | ATA_PFLAG_EH_IN_PROGRESS)) { in ata_port_wait_eh()
917 if (ap->pflags & ATA_PFLAG_EH_PENDING) in ata_eh_set_pending()
920 ap->pflags |= ATA_PFLAG_EH_PENDING; in ata_eh_set_pending()
971 if (ap->pflags & ATA_PFLAG_INITIALIZING) in ata_std_sched_eh()
1101 ap->pflags |= ATA_PFLAG_FROZEN; in __ata_port_freeze()
1162 ap->pflags &= ~ATA_PFLAG_FROZEN; in ata_eh_thaw_port()
1276 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_detach_dev()
1319 ap->pflags |= ATA_PFLAG_RECOVERED; in ata_eh_about_to_do()
2656 ap->pflags |= ATA_PFLAG_RESETTING; in ata_eh_reset()
2949 ap->pflags &= ~ATA_PFLAG_RESETTING; in ata_eh_reset()
3213 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_revalidate_and_attach()
3777 if (ap->pflags & ATA_PFLAG_UNLOADING) in ata_eh_recover()
4094 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_suspend()
4101 WARN_ON(ap->pflags & ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_suspend()
4142 ap->pflags &= ~ATA_PFLAG_PM_PENDING; in ata_eh_handle_port_suspend()
4144 ap->pflags |= ATA_PFLAG_SUSPENDED; in ata_eh_handle_port_suspend()
4170 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_resume()
4177 WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED)); in ata_eh_handle_port_resume()
4200 ap->pflags &= ~(ATA_PFLAG_PM_PENDING | ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_resume()
4201 ap->pflags |= ATA_PFLAG_RESUMING; in ata_eh_handle_port_resume()