ehc 981 drivers/ata/libata-acpi.c struct ata_eh_context *ehc = &ap->link.eh_context; ehc 991 drivers/ata/libata-acpi.c !(acpi_sata && (ehc->i.flags & ATA_EHI_DID_HARDRESET))) ehc 1326 drivers/ata/libata-core.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 1327 drivers/ata/libata-core.c int print_info = ehc->i.flags & ATA_EHI_PRINTINFO; ehc 2434 drivers/ata/libata-core.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 2435 drivers/ata/libata-core.c int print_info = ehc->i.flags & ATA_EHI_PRINTINFO; ehc 3487 drivers/ata/libata-core.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 3512 drivers/ata/libata-core.c ehc->i.flags |= ATA_EHI_POST_SETMODE; ehc 3514 drivers/ata/libata-core.c ehc->i.flags &= ~ATA_EHI_POST_SETMODE; ehc 3554 drivers/ata/libata-core.c if (!(ehc->i.flags & ATA_EHI_QUIET) || ehc 3555 drivers/ata/libata-core.c ehc->i.flags & ATA_EHI_DID_HARDRESET) ehc 3932 drivers/ata/libata-core.c struct ata_eh_context *ehc = &link->eh_context; ehc 3981 drivers/ata/libata-core.c ehc->i.serror &= ~SERR_PHYRDY_CHG; ehc 4005 drivers/ata/libata-core.c struct ata_eh_context *ehc = &link->eh_context; ehc 4006 drivers/ata/libata-core.c const unsigned long *timing = sata_ehc_deb_timing(ehc); ehc 4010 drivers/ata/libata-core.c if (ehc->i.action & ATA_EH_HARDRESET) ehc 4025 drivers/ata/libata-core.c ehc->i.action &= ~ATA_EH_SOFTRESET; ehc 324 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 331 drivers/ata/libata-eh.c idx = ehc->cmd_timeout_idx[dev->devno][ent]; ehc 349 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 356 drivers/ata/libata-eh.c idx = ehc->cmd_timeout_idx[dev->devno][ent]; ehc 358 drivers/ata/libata-eh.c ehc->cmd_timeout_idx[dev->devno][ent]++; ehc 420 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 422 drivers/ata/libata-eh.c return ehc->i.action | ehc->i.dev_action[dev->devno]; ehc 671 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 681 drivers/ata/libata-eh.c ehc->saved_xfer_mode[devno] = dev->xfer_mode; ehc 683 drivers/ata/libata-eh.c ehc->saved_ncq_enabled |= 1 << devno; ehc 1306 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 1323 drivers/ata/libata-eh.c ehc->saved_xfer_mode[dev->devno] = 0; ehc 1324 drivers/ata/libata-eh.c ehc->saved_ncq_enabled &= ~(1 << dev->devno); ehc 1347 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 1357 drivers/ata/libata-eh.c if (!(ehc->i.flags & ATA_EHI_QUIET) && link != ap->slave_link) ehc 1378 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 1380 drivers/ata/libata-eh.c ata_eh_clear_action(link, dev, &ehc->i, action); ehc 1624 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 1625 drivers/ata/libata-eh.c u32 serror = ehc->i.serror; ehc 1655 drivers/ata/libata-eh.c ata_ehi_hotplugged(&ehc->i); ehc 1657 drivers/ata/libata-eh.c ehc->i.err_mask |= err_mask; ehc 1658 drivers/ata/libata-eh.c ehc->i.action |= action; ehc 1676 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 1687 drivers/ata/libata-eh.c if (!link->sactive || !(ehc->i.err_mask & AC_ERR_DEV)) ehc 1732 drivers/ata/libata-eh.c ehc->i.err_mask &= ~AC_ERR_DEV; ehc 2114 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 2124 drivers/ata/libata-eh.c if (ehc->i.flags & ATA_EHI_NO_AUTOPSY) ehc 2130 drivers/ata/libata-eh.c ehc->i.serror |= serror; ehc 2134 drivers/ata/libata-eh.c ehc->i.probe_mask |= ATA_ALL_DEVICES; ehc 2135 drivers/ata/libata-eh.c ehc->i.action |= ATA_EH_RESET; ehc 2136 drivers/ata/libata-eh.c ehc->i.err_mask |= AC_ERR_OTHER; ehc 2143 drivers/ata/libata-eh.c if (ehc->i.err_mask & ~AC_ERR_OTHER) ehc 2144 drivers/ata/libata-eh.c ehc->i.err_mask &= ~AC_ERR_OTHER; ehc 2146 drivers/ata/libata-eh.c all_err_mask |= ehc->i.err_mask; ehc 2154 drivers/ata/libata-eh.c qc->err_mask |= ehc->i.err_mask; ehc 2157 drivers/ata/libata-eh.c ehc->i.action |= ata_eh_analyze_tf(qc, &qc->result_tf); ehc 2181 drivers/ata/libata-eh.c ehc->i.dev = qc->dev; ehc 2195 drivers/ata/libata-eh.c ehc->i.flags |= ATA_EHI_QUIET; ehc 2200 drivers/ata/libata-eh.c ehc->i.action |= ATA_EH_RESET; ehc 2203 drivers/ata/libata-eh.c ehc->i.action |= ATA_EH_REVALIDATE; ehc 2208 drivers/ata/libata-eh.c if (ehc->i.dev) { ehc 2209 drivers/ata/libata-eh.c ehc->i.dev_action[ehc->i.dev->devno] |= ehc 2210 drivers/ata/libata-eh.c ehc->i.action & ATA_EH_PERDEV_MASK; ehc 2211 drivers/ata/libata-eh.c ehc->i.action &= ~ATA_EH_PERDEV_MASK; ehc 2219 drivers/ata/libata-eh.c dev = ehc->i.dev; ehc 2227 drivers/ata/libata-eh.c ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask); ehc 2228 drivers/ata/libata-eh.c trace_ata_eh_link_autopsy(dev, ehc->i.action, all_err_mask); ehc 2413 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 2419 drivers/ata/libata-eh.c if (ehc->i.flags & ATA_EHI_QUIET) ehc 2423 drivers/ata/libata-eh.c if (ehc->i.desc[0] != '\0') ehc 2424 drivers/ata/libata-eh.c desc = ehc->i.desc; ehc 2438 drivers/ata/libata-eh.c if (!nr_failed && !ehc->i.err_mask) ehc 2449 drivers/ata/libata-eh.c if (ehc->i.dev) { ehc 2450 drivers/ata/libata-eh.c ata_dev_err(ehc->i.dev, "exception Emask 0x%x " ehc 2452 drivers/ata/libata-eh.c ehc->i.err_mask, link->sactive, ehc->i.serror, ehc 2453 drivers/ata/libata-eh.c ehc->i.action, frozen, tries_buf); ehc 2455 drivers/ata/libata-eh.c ata_dev_err(ehc->i.dev, "%s\n", desc); ehc 2459 drivers/ata/libata-eh.c ehc->i.err_mask, link->sactive, ehc->i.serror, ehc 2460 drivers/ata/libata-eh.c ehc->i.action, frozen, tries_buf); ehc 2466 drivers/ata/libata-eh.c if (ehc->i.serror) ehc 2469 drivers/ata/libata-eh.c ehc->i.serror & SERR_DATA_RECOVERED ? "RecovData " : "", ehc 2470 drivers/ata/libata-eh.c ehc->i.serror & SERR_COMM_RECOVERED ? "RecovComm " : "", ehc 2471 drivers/ata/libata-eh.c ehc->i.serror & SERR_DATA ? "UnrecovData " : "", ehc 2472 drivers/ata/libata-eh.c ehc->i.serror & SERR_PERSISTENT ? "Persist " : "", ehc 2473 drivers/ata/libata-eh.c ehc->i.serror & SERR_PROTOCOL ? "Proto " : "", ehc 2474 drivers/ata/libata-eh.c ehc->i.serror & SERR_INTERNAL ? "HostInt " : "", ehc 2475 drivers/ata/libata-eh.c ehc->i.serror & SERR_PHYRDY_CHG ? "PHYRdyChg " : "", ehc 2476 drivers/ata/libata-eh.c ehc->i.serror & SERR_PHY_INT_ERR ? "PHYInt " : "", ehc 2477 drivers/ata/libata-eh.c ehc->i.serror & SERR_COMM_WAKE ? "CommWake " : "", ehc 2478 drivers/ata/libata-eh.c ehc->i.serror & SERR_10B_8B_ERR ? "10B8B " : "", ehc 2479 drivers/ata/libata-eh.c ehc->i.serror & SERR_DISPARITY ? "Dispar " : "", ehc 2480 drivers/ata/libata-eh.c ehc->i.serror & SERR_CRC ? "BadCRC " : "", ehc 2481 drivers/ata/libata-eh.c ehc->i.serror & SERR_HANDSHAKE ? "Handshk " : "", ehc 2482 drivers/ata/libata-eh.c ehc->i.serror & SERR_LINK_SEQ_ERR ? "LinkSeq " : "", ehc 2483 drivers/ata/libata-eh.c ehc->i.serror & SERR_TRANS_ST_ERROR ? "TrStaTrns " : "", ehc 2484 drivers/ata/libata-eh.c ehc->i.serror & SERR_UNRECOG_FIS ? "UnrecFIS " : "", ehc 2485 drivers/ata/libata-eh.c ehc->i.serror & SERR_DEV_XCHG ? "DevExch " : ""); ehc 2646 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 2648 drivers/ata/libata-eh.c unsigned int *classes = ehc->classes; ehc 2650 drivers/ata/libata-eh.c int verbose = !(ehc->i.flags & ATA_EHI_QUIET); ehc 2673 drivers/ata/libata-eh.c if (ehc->i.flags & ATA_EHI_DID_RESET) { ehc 2675 drivers/ata/libata-eh.c WARN_ON(time_after(ehc->last_reset, now)); ehc 2676 drivers/ata/libata-eh.c deadline = ata_deadline(ehc->last_reset, ehc 2710 drivers/ata/libata-eh.c ehc->i.action &= ~ATA_EH_RESET; ehc 2713 drivers/ata/libata-eh.c ehc->i.action |= ATA_EH_HARDRESET; ehc 2716 drivers/ata/libata-eh.c ehc->i.action |= ATA_EH_SOFTRESET; ehc 2725 drivers/ata/libata-eh.c sehc->i.action |= ehc->i.action; ehc 2741 drivers/ata/libata-eh.c ehc->i.action |= sehc->i.action; ehc 2747 drivers/ata/libata-eh.c ehc->i.action &= ~ATA_EH_RESET; ehc 2763 drivers/ata/libata-eh.c if (reset && !(ehc->i.action & ATA_EH_RESET)) { ehc 2789 drivers/ata/libata-eh.c ehc->last_reset = jiffies; ehc 2791 drivers/ata/libata-eh.c ehc->i.flags |= ATA_EHI_DID_HARDRESET; ehc 2793 drivers/ata/libata-eh.c ehc->i.flags |= ATA_EHI_DID_SOFTRESET; ehc 2959 drivers/ata/libata-eh.c ehc->last_reset = jiffies; /* update to completion time */ ehc 2960 drivers/ata/libata-eh.c ehc->i.action |= ATA_EH_REVALIDATE; ehc 2966 drivers/ata/libata-eh.c ehc->i.flags &= ~ATA_EHI_HOTPLUGGED; ehc 3078 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 3084 drivers/ata/libata-eh.c ehc->unloaded_mask |= 1 << dev->devno; ehc 3091 drivers/ata/libata-eh.c ehc->unloaded_mask &= ~(1 << dev->devno); ehc 3100 drivers/ata/libata-eh.c ehc->unloaded_mask &= ~(1 << dev->devno); ehc 3108 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3124 drivers/ata/libata-eh.c if (ehc->i.flags & ATA_EHI_DID_RESET) ehc 3136 drivers/ata/libata-eh.c rc = ata_dev_revalidate(dev, ehc->classes[dev->devno], ehc 3146 drivers/ata/libata-eh.c ehc->i.flags |= ATA_EHI_SETMODE; ehc 3151 drivers/ata/libata-eh.c ehc->tries[dev->devno] && ehc 3152 drivers/ata/libata-eh.c ata_class_enabled(ehc->classes[dev->devno])) { ehc 3159 drivers/ata/libata-eh.c dev->class = ehc->classes[dev->devno]; ehc 3168 drivers/ata/libata-eh.c ehc->classes[dev->devno] = dev->class; ehc 3191 drivers/ata/libata-eh.c if ((ehc->i.flags & ATA_EHI_DID_RESET) && ata_is_host_link(link)) { ehc 3204 drivers/ata/libata-eh.c dev->class = ehc->classes[dev->devno]; ehc 3209 drivers/ata/libata-eh.c ehc->i.flags |= ATA_EHI_PRINTINFO; ehc 3211 drivers/ata/libata-eh.c ehc->i.flags &= ~ATA_EHI_PRINTINFO; ehc 3222 drivers/ata/libata-eh.c ehc->i.flags |= ATA_EHI_SETMODE; ehc 3273 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3274 drivers/ata/libata-eh.c u8 saved_xfer_mode = ehc->saved_xfer_mode[dev->devno]; ehc 3275 drivers/ata/libata-eh.c u8 saved_ncq = !!(ehc->saved_ncq_enabled & (1 << dev->devno)); ehc 3430 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3533 drivers/ata/libata-eh.c if (!dev || ehc->tries[dev->devno] <= 2) { ehc 3566 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3574 drivers/ata/libata-eh.c if (ehc->i.flags & ATA_EHI_NO_RECOVERY) ehc 3582 drivers/ata/libata-eh.c if ((ehc->i.action & ATA_EH_RESET) && ehc 3583 drivers/ata/libata-eh.c !(ehc->i.flags & ATA_EHI_DID_RESET)) ehc 3589 drivers/ata/libata-eh.c ehc->classes[dev->devno] != ATA_DEV_NONE) ehc 3612 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 3616 drivers/ata/libata-eh.c if (!(ehc->i.probe_mask & (1 << dev->devno)) || ehc 3617 drivers/ata/libata-eh.c (ehc->did_probe_mask & (1 << dev->devno))) ehc 3622 drivers/ata/libata-eh.c ehc->did_probe_mask |= (1 << dev->devno); ehc 3623 drivers/ata/libata-eh.c ehc->i.action |= ATA_EH_RESET; ehc 3624 drivers/ata/libata-eh.c ehc->saved_xfer_mode[dev->devno] = 0; ehc 3625 drivers/ata/libata-eh.c ehc->saved_ncq_enabled &= ~(1 << dev->devno); ehc 3661 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &dev->link->eh_context; ehc 3667 drivers/ata/libata-eh.c ehc->tries[dev->devno]--; ehc 3672 drivers/ata/libata-eh.c ehc->i.probe_mask |= (1 << dev->devno); ehc 3676 drivers/ata/libata-eh.c ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1); ehc 3679 drivers/ata/libata-eh.c if (ehc->tries[dev->devno] == 1) { ehc 3689 drivers/ata/libata-eh.c if (ata_dev_enabled(dev) && !ehc->tries[dev->devno]) { ehc 3699 drivers/ata/libata-eh.c ehc->tries[dev->devno] = ATA_EH_DEV_TRIES; ehc 3700 drivers/ata/libata-eh.c memset(ehc->cmd_timeout_idx[dev->devno], 0, ehc 3701 drivers/ata/libata-eh.c sizeof(ehc->cmd_timeout_idx[dev->devno])); ehc 3706 drivers/ata/libata-eh.c ehc->i.action |= ATA_EH_RESET; ehc 3747 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3750 drivers/ata/libata-eh.c if (ehc->i.action & ATA_EH_ENABLE_LINK) { ehc 3760 drivers/ata/libata-eh.c ehc->tries[dev->devno] = 1; ehc 3762 drivers/ata/libata-eh.c ehc->tries[dev->devno] = ATA_EH_DEV_TRIES; ehc 3765 drivers/ata/libata-eh.c ehc->i.action |= ehc->i.dev_action[dev->devno] & ehc 3767 drivers/ata/libata-eh.c ehc->i.dev_action[dev->devno] &= ATA_EH_PERDEV_MASK; ehc 3788 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3792 drivers/ata/libata-eh.c ehc->i.action = 0; ehc 3795 drivers/ata/libata-eh.c ehc->classes[dev->devno] = ATA_DEV_UNKNOWN; ehc 3800 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3802 drivers/ata/libata-eh.c if (!(ehc->i.action & ATA_EH_RESET)) ehc 3825 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3831 drivers/ata/libata-eh.c if (!(ehc->i.dev_action[dev->devno] & ehc 3839 drivers/ata/libata-eh.c if (ehc->unloaded_mask & (1 << dev->devno)) ehc 3869 drivers/ata/libata-eh.c struct ata_eh_context *ehc = &link->eh_context; ehc 3881 drivers/ata/libata-eh.c ehc->i.action = 0; ehc 3886 drivers/ata/libata-eh.c if (ehc->i.flags & ATA_EHI_SETMODE) { ehc 3890 drivers/ata/libata-eh.c ehc->i.flags &= ~ATA_EHI_SETMODE; ehc 3896 drivers/ata/libata-eh.c if (ehc->i.flags & ATA_EHI_DID_RESET) { ehc 3927 drivers/ata/libata-eh.c ehc->i.flags = 0; ehc 362 drivers/ata/libata-pmp.c struct ata_eh_context *ehc = &link->eh_context; ehc 365 drivers/ata/libata-pmp.c ehc->i.probe_mask |= ATA_ALL_DEVICES; ehc 366 drivers/ata/libata-pmp.c ehc->i.action |= ATA_EH_RESET; ehc 756 drivers/ata/libata-pmp.c struct ata_eh_context *ehc = &link->eh_context; ehc 771 drivers/ata/libata-pmp.c ehc->classes[0] = ATA_DEV_UNKNOWN; ehc 773 drivers/ata/libata-pmp.c if (ehc->i.action & ATA_EH_RESET) { ehc 786 drivers/ata/libata-pmp.c struct ata_eh_context *ehc = &tlink->eh_context; ehc 788 drivers/ata/libata-pmp.c ehc->i.probe_mask |= ATA_ALL_DEVICES; ehc 789 drivers/ata/libata-pmp.c ehc->i.action |= ATA_EH_RESET; ehc 796 drivers/ata/libata-pmp.c if (ehc->i.action & ATA_EH_REVALIDATE) ehc 797 drivers/ata/libata-pmp.c rc = sata_pmp_revalidate(dev, ehc->classes[0]); ehc 805 drivers/ata/libata-pmp.c ehc->i.probe_mask |= ATA_ALL_DEVICES; ehc 818 drivers/ata/libata-pmp.c ehc->i.action |= ATA_EH_RESET; ehc 829 drivers/ata/libata-pmp.c ehc->i.flags = 0; ehc 1723 drivers/ata/libata-sff.c struct ata_eh_context *ehc = &link->eh_context; ehc 1731 drivers/ata/libata-sff.c if (ehc->i.action & ATA_EH_HARDRESET) ehc 1741 drivers/ata/libata-sff.c ehc->i.action |= ATA_EH_HARDRESET; ehc 2033 drivers/ata/libata-sff.c struct ata_eh_context *ehc = &link->eh_context; ehc 2034 drivers/ata/libata-sff.c const unsigned long *timing = sata_ehc_deb_timing(ehc); ehc 286 drivers/ata/pata_ali.c struct ata_eh_context *ehc = &adev->link->eh_context; ehc 287 drivers/ata/pata_ali.c int print_info = ehc->i.flags & ATA_EHI_PRINTINFO; ehc 1529 drivers/ata/sata_nv.c struct ata_eh_context *ehc = &link->eh_context; ehc 1539 drivers/ata/sata_nv.c const unsigned long *timing = sata_ehc_deb_timing(ehc); ehc 1542 drivers/ata/sata_nv.c if (!(ehc->i.flags & ATA_EHI_QUIET)) ehc 1803 drivers/ata/sata_nv.c struct ata_eh_context *ehc = &ap->link.eh_context; ehc 1807 drivers/ata/sata_nv.c ehc->i.action |= ATA_EH_RESET; ehc 333 drivers/ata/sata_via.c struct ata_eh_context *ehc = &ap->link.eh_context; ehc 369 drivers/ata/sata_via.c ehc->i.action &= ~ATA_EH_RESET; ehc 1064 include/linux/libata.h sata_ehc_deb_timing(struct ata_eh_context *ehc) ehc 1066 include/linux/libata.h if (ehc->i.flags & ATA_EHI_HOTPLUGGED)