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()
710 ap->pflags |= ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
711 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
717 if (!(ap->pflags & (ATA_PFLAG_UNLOADING | ATA_PFLAG_SUSPENDED))) in ata_scsi_port_error_handler()
721 if ((ap->pflags & ATA_PFLAG_UNLOADING) && in ata_scsi_port_error_handler()
722 !(ap->pflags & ATA_PFLAG_UNLOADED)) in ata_scsi_port_error_handler()
736 if (ap->pflags & ATA_PFLAG_EH_PENDING) { in ata_scsi_port_error_handler()
744 ap->pflags &= ~ATA_PFLAG_EH_PENDING; in ata_scsi_port_error_handler()
766 ap->pflags &= ~ATA_PFLAG_RESUMING; in ata_scsi_port_error_handler()
768 if (ap->pflags & ATA_PFLAG_LOADING) in ata_scsi_port_error_handler()
769 ap->pflags &= ~ATA_PFLAG_LOADING; in ata_scsi_port_error_handler()
770 else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) && in ata_scsi_port_error_handler()
774 if (ap->pflags & ATA_PFLAG_RECOVERED) in ata_scsi_port_error_handler()
777 ap->pflags &= ~(ATA_PFLAG_SCSI_HOTPLUG | ATA_PFLAG_RECOVERED); in ata_scsi_port_error_handler()
780 ap->pflags &= ~ATA_PFLAG_EH_IN_PROGRESS; in ata_scsi_port_error_handler()
804 while (ap->pflags & (ATA_PFLAG_EH_PENDING | ATA_PFLAG_EH_IN_PROGRESS)) { in ata_port_wait_eh()
893 if (ap->pflags & ATA_PFLAG_EH_PENDING) in ata_eh_set_pending()
896 ap->pflags |= ATA_PFLAG_EH_PENDING; in ata_eh_set_pending()
947 if (ap->pflags & ATA_PFLAG_INITIALIZING) in ata_std_sched_eh()
1077 ap->pflags |= ATA_PFLAG_FROZEN; in __ata_port_freeze()
1138 ap->pflags &= ~ATA_PFLAG_FROZEN; in ata_eh_thaw_port()
1258 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_detach_dev()
1301 ap->pflags |= ATA_PFLAG_RECOVERED; in ata_eh_about_to_do()
2601 ap->pflags |= ATA_PFLAG_RESETTING; in ata_eh_reset()
2894 ap->pflags &= ~ATA_PFLAG_RESETTING; in ata_eh_reset()
3165 ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; in ata_eh_revalidate_and_attach()
3729 if (ap->pflags & ATA_PFLAG_UNLOADING) in ata_eh_recover()
4035 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_suspend()
4042 WARN_ON(ap->pflags & ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_suspend()
4073 ap->pflags &= ~ATA_PFLAG_PM_PENDING; in ata_eh_handle_port_suspend()
4075 ap->pflags |= ATA_PFLAG_SUSPENDED; in ata_eh_handle_port_suspend()
4101 if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || in ata_eh_handle_port_resume()
4108 WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED)); in ata_eh_handle_port_resume()
4131 ap->pflags &= ~(ATA_PFLAG_PM_PENDING | ATA_PFLAG_SUSPENDED); in ata_eh_handle_port_resume()
4132 ap->pflags |= ATA_PFLAG_RESUMING; in ata_eh_handle_port_resume()