Lines Matching refs:pflags
252 WARN_ON(!(ap->pflags & ATA_PFLAG_INITIALIZING)); in ata_port_desc()
514 ap->pflags &= ~ATA_PFLAG_EH_PENDING; /* clear pending from freeze */ in ata_eh_unload()
515 ap->pflags |= ATA_PFLAG_UNLOADED; in ata_eh_unload()
693 ap->pflags |= ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
694 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
700 if (!(ap->pflags & (ATA_PFLAG_UNLOADING | ATA_PFLAG_SUSPENDED))) in ata_scsi_port_error_handler()
704 if ((ap->pflags & ATA_PFLAG_UNLOADING) && in ata_scsi_port_error_handler()
705 !(ap->pflags & ATA_PFLAG_UNLOADED)) in ata_scsi_port_error_handler()
719 if (ap->pflags & ATA_PFLAG_EH_PENDING) { in ata_scsi_port_error_handler()
727 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
753 if (ap->pflags & ATA_PFLAG_LOADING) in ata_scsi_port_error_handler()
754 ap->pflags &= ~ATA_PFLAG_LOADING; in ata_scsi_port_error_handler()
755 else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) && in ata_scsi_port_error_handler()
759 if (ap->pflags & ATA_PFLAG_RECOVERED) in ata_scsi_port_error_handler()
762 ap->pflags &= ~(ATA_PFLAG_SCSI_HOTPLUG | ATA_PFLAG_RECOVERED); in ata_scsi_port_error_handler()
765 ap->pflags &= ~ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
789 while (ap->pflags & (ATA_PFLAG_EH_PENDING | ATA_PFLAG_EH_IN_PROGRESS)) { in ata_port_wait_eh()
878 if (ap->pflags & ATA_PFLAG_EH_PENDING) in ata_eh_set_pending()
881 ap->pflags |= ATA_PFLAG_EH_PENDING; in ata_eh_set_pending()
936 if (ap->pflags & ATA_PFLAG_INITIALIZING) in ata_std_sched_eh()
1070 ap->pflags |= ATA_PFLAG_FROZEN; in __ata_port_freeze()
1139 ap->pflags &= ~ATA_PFLAG_FROZEN; in ata_eh_thaw_port()
1252 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_detach_dev()
1295 ap->pflags |= ATA_PFLAG_RECOVERED; in ata_eh_about_to_do()
1409 if (qc->ap->pflags & ATA_PFLAG_FROZEN) { in ata_eh_request_sense()
1591 if (!(qc->ap->pflags & ATA_PFLAG_FROZEN)) { in ata_eh_analyze_tf()
1998 if (ap->pflags & ATA_PFLAG_FROZEN || in ata_eh_link_autopsy()
2241 if (ap->pflags & ATA_PFLAG_FROZEN) in ata_eh_link_report()
2479 ap->pflags |= ATA_PFLAG_RESETTING; in ata_eh_reset()
2562 if ((ap->pflags & ATA_PFLAG_FROZEN) && in ata_eh_reset()
2718 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_eh_reset()
2721 if (ap->pflags & ATA_PFLAG_FROZEN) in ata_eh_reset()
2783 ap->pflags &= ~ATA_PFLAG_RESETTING; in ata_eh_reset()
3045 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_revalidate_and_attach()
3228 if (!(ap->pflags & ATA_PFLAG_FROZEN)) in ata_eh_maybe_retry_flush()
3405 if ((ap->pflags & ATA_PFLAG_FROZEN) || ata_link_nr_enabled(link)) in ata_eh_skip_recovery()
3608 if (ap->pflags & ATA_PFLAG_UNLOADING) in ata_eh_recover()
3760 if (ap->pflags & ATA_PFLAG_FROZEN) { in ata_eh_recover()
3899 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_suspend()
3906 WARN_ON(ap->pflags & ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_suspend()
3931 ap->pflags &= ~ATA_PFLAG_PM_PENDING; in ata_eh_handle_port_suspend()
3933 ap->pflags |= ATA_PFLAG_SUSPENDED; in ata_eh_handle_port_suspend()
3934 else if (ap->pflags & ATA_PFLAG_FROZEN) in ata_eh_handle_port_suspend()
3959 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_resume()
3966 WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED)); in ata_eh_handle_port_resume()
3989 ap->pflags &= ~(ATA_PFLAG_PM_PENDING | ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_resume()