• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ata/

Lines Matching defs:ehc

140  * ehc->cmd_timeout_idx keeps track of which timeout to use per
337 struct ata_eh_context *ehc = &dev->link->eh_context;
344 idx = ehc->cmd_timeout_idx[dev->devno][ent];
362 struct ata_eh_context *ehc = &dev->link->eh_context;
369 idx = ehc->cmd_timeout_idx[dev->devno][ent];
371 ehc->cmd_timeout_idx[dev->devno][ent]++;
427 struct ata_eh_context *ehc = &dev->link->eh_context;
429 return ehc->i.action | ehc->i.dev_action[dev->devno];
650 struct ata_eh_context *ehc = &link->eh_context;
660 ehc->saved_xfer_mode[devno] = dev->xfer_mode;
662 ehc->saved_ncq_enabled |= 1 << devno;
1252 struct ata_eh_context *ehc = &link->eh_context;
1269 ehc->saved_xfer_mode[dev->devno] = 0;
1270 ehc->saved_ncq_enabled &= ~(1 << dev->devno);
1293 struct ata_eh_context *ehc = &link->eh_context;
1303 if (!(ehc->i.flags & ATA_EHI_QUIET) && link != ap->slave_link)
1324 struct ata_eh_context *ehc = &link->eh_context;
1326 ata_eh_clear_action(link, dev, &ehc->i, action);
1552 struct ata_eh_context *ehc = &link->eh_context;
1553 u32 serror = ehc->i.serror;
1583 ata_ehi_hotplugged(&ehc->i);
1585 ehc->i.err_mask |= err_mask;
1586 ehc->i.action |= action;
1604 struct ata_eh_context *ehc = &link->eh_context;
1615 if (!link->sactive || !(ehc->i.err_mask & AC_ERR_DEV))
1649 ehc->i.err_mask &= ~AC_ERR_DEV;
1975 struct ata_eh_context *ehc = &link->eh_context;
1984 if (ehc->i.flags & ATA_EHI_NO_AUTOPSY)
1990 ehc->i.serror |= serror;
1994 ehc->i.probe_mask |= ATA_ALL_DEVICES;
1995 ehc->i.action |= ATA_EH_RESET;
1996 ehc->i.err_mask |= AC_ERR_OTHER;
2003 if (ehc->i.err_mask & ~AC_ERR_OTHER)
2004 ehc->i.err_mask &= ~AC_ERR_OTHER;
2006 all_err_mask |= ehc->i.err_mask;
2016 qc->err_mask |= ehc->i.err_mask;
2019 ehc->i.action |= ata_eh_analyze_tf(qc, &qc->result_tf);
2041 ehc->i.dev = qc->dev;
2050 ehc->i.action |= ATA_EH_RESET;
2053 ehc->i.action |= ATA_EH_REVALIDATE;
2058 if (ehc->i.dev) {
2059 ehc->i.dev_action[ehc->i.dev->devno] |=
2060 ehc->i.action & ATA_EH_PERDEV_MASK;
2061 ehc->i.action &= ~ATA_EH_PERDEV_MASK;
2069 dev = ehc->i.dev;
2077 ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask);
2252 struct ata_eh_context *ehc = &link->eh_context;
2257 if (ehc->i.flags & ATA_EHI_QUIET)
2261 if (ehc->i.desc[0] != '\0')
2262 desc = ehc->i.desc;
2278 if (!nr_failed && !ehc->i.err_mask)
2290 if (ehc->i.dev) {
2291 ata_dev_printk(ehc->i.dev, KERN_ERR, "exception Emask 0x%x "
2293 ehc->i.err_mask, link->sactive, ehc->i.serror,
2294 ehc->i.action, frozen, tries_buf);
2296 ata_dev_printk(ehc->i.dev, KERN_ERR, "%s\n", desc);
2300 ehc->i.err_mask, link->sactive, ehc->i.serror,
2301 ehc->i.action, frozen, tries_buf);
2307 if (ehc->i.serror)
2310 ehc->i.serror & SERR_DATA_RECOVERED ? "RecovData " : "",
2311 ehc->i.serror & SERR_COMM_RECOVERED ? "RecovComm " : "",
2312 ehc->i.serror & SERR_DATA ? "UnrecovData " : "",
2313 ehc->i.serror & SERR_PERSISTENT ? "Persist " : "",
2314 ehc->i.serror & SERR_PROTOCOL ? "Proto " : "",
2315 ehc->i.serror & SERR_INTERNAL ? "HostInt " : "",
2316 ehc->i.serror & SERR_PHYRDY_CHG ? "PHYRdyChg " : "",
2317 ehc->i.serror & SERR_PHY_INT_ERR ? "PHYInt " : "",
2318 ehc->i.serror & SERR_COMM_WAKE ? "CommWake " : "",
2319 ehc->i.serror & SERR_10B_8B_ERR ? "10B8B " : "",
2320 ehc->i.serror & SERR_DISPARITY ? "Dispar " : "",
2321 ehc->i.serror & SERR_CRC ? "BadCRC " : "",
2322 ehc->i.serror & SERR_HANDSHAKE ? "Handshk " : "",
2323 ehc->i.serror & SERR_LINK_SEQ_ERR ? "LinkSeq " : "",
2324 ehc->i.serror & SERR_TRANS_ST_ERROR ? "TrStaTrns " : "",
2325 ehc->i.serror & SERR_UNRECOG_FIS ? "UnrecFIS " : "",
2326 ehc->i.serror & SERR_DEV_XCHG ? "DevExch " : "");
2470 struct ata_eh_context *ehc = &link->eh_context;
2472 unsigned int *classes = ehc->classes;
2474 int verbose = !(ehc->i.flags & ATA_EHI_QUIET);
2495 if (ehc->i.flags & ATA_EHI_DID_RESET) {
2497 WARN_ON(time_after(ehc->last_reset, now));
2498 deadline = ata_deadline(ehc->last_reset,
2531 ehc->i.action &= ~ATA_EH_RESET;
2534 ehc->i.action |= ATA_EH_HARDRESET;
2537 ehc->i.action |= ATA_EH_SOFTRESET;
2546 sehc->i.action |= ehc->i.action;
2562 ehc->i.action |= sehc->i.action;
2569 ehc->i.action &= ~ATA_EH_RESET;
2584 if (reset && !(ehc->i.action & ATA_EH_RESET)) {
2610 ehc->last_reset = jiffies;
2612 ehc->i.flags |= ATA_EHI_DID_HARDRESET;
2614 ehc->i.flags |= ATA_EHI_DID_SOFTRESET;
2779 ehc->last_reset = jiffies; /* update to completion time */
2780 ehc->i.action |= ATA_EH_REVALIDATE;
2785 ehc->i.flags &= ~ATA_EHI_HOTPLUGGED;
2876 struct ata_eh_context *ehc = &dev->link->eh_context;
2882 ehc->unloaded_mask |= 1 << dev->devno;
2889 ehc->unloaded_mask &= ~(1 << dev->devno);
2898 ehc->unloaded_mask &= ~(1 << dev->devno);
2906 struct ata_eh_context *ehc = &link->eh_context;
2922 if (ehc->i.flags & ATA_EHI_DID_RESET)
2934 rc = ata_dev_revalidate(dev, ehc->classes[dev->devno],
2944 ehc->i.flags |= ATA_EHI_SETMODE;
2949 ehc->tries[dev->devno] &&
2950 ata_class_enabled(ehc->classes[dev->devno])) {
2957 dev->class = ehc->classes[dev->devno];
2966 ehc->classes[dev->devno] = dev->class;
2989 if ((ehc->i.flags & ATA_EHI_DID_RESET) && ata_is_host_link(link)) {
3002 dev->class = ehc->classes[dev->devno];
3007 ehc->i.flags |= ATA_EHI_PRINTINFO;
3009 ehc->i.flags &= ~ATA_EHI_PRINTINFO;
3020 ehc->i.flags |= ATA_EHI_SETMODE;
3071 struct ata_eh_context *ehc = &link->eh_context;
3072 u8 saved_xfer_mode = ehc->saved_xfer_mode[dev->devno];
3073 u8 saved_ncq = !!(ehc->saved_ncq_enabled & (1 << dev->devno));
3230 struct ata_eh_context *ehc = &link->eh_context;
3238 if (ehc->i.flags & ATA_EHI_NO_RECOVERY)
3246 if ((ehc->i.action & ATA_EH_RESET) &&
3247 !(ehc->i.flags & ATA_EHI_DID_RESET))
3253 ehc->classes[dev->devno] != ATA_DEV_NONE)
3275 struct ata_eh_context *ehc = &dev->link->eh_context;
3279 if (!(ehc->i.probe_mask & (1 << dev->devno)) ||
3280 (ehc->did_probe_mask & (1 << dev->devno)))
3285 ehc->did_probe_mask |= (1 << dev->devno);
3286 ehc->i.action |= ATA_EH_RESET;
3287 ehc->saved_xfer_mode[dev->devno] = 0;
3288 ehc->saved_ncq_enabled &= ~(1 << dev->devno);
3301 struct ata_eh_context *ehc = &dev->link->eh_context;
3307 ehc->tries[dev->devno]--;
3312 ehc->i.probe_mask |= (1 << dev->devno);
3315 ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1);
3317 if (ehc->tries[dev->devno] == 1) {
3327 if (ata_dev_enabled(dev) && !ehc->tries[dev->devno]) {
3337 ehc->tries[dev->devno] = ATA_EH_DEV_TRIES;
3338 memset(ehc->cmd_timeout_idx[dev->devno], 0,
3339 sizeof(ehc->cmd_timeout_idx[dev->devno]));
3344 ehc->i.action |= ATA_EH_RESET;
3386 struct ata_eh_context *ehc = &link->eh_context;
3389 if (ehc->i.action & ATA_EH_ENABLE_LINK) {
3399 ehc->tries[dev->devno] = 1;
3401 ehc->tries[dev->devno] = ATA_EH_DEV_TRIES;
3404 ehc->i.action |= ehc->i.dev_action[dev->devno] &
3406 ehc->i.dev_action[dev->devno] &= ATA_EH_PERDEV_MASK;
3428 struct ata_eh_context *ehc = &link->eh_context;
3432 ehc->i.action = 0;
3435 ehc->classes[dev->devno] = ATA_DEV_UNKNOWN;
3440 struct ata_eh_context *ehc = &link->eh_context;
3442 if (!(ehc->i.action & ATA_EH_RESET))
3466 struct ata_eh_context *ehc = &link->eh_context;
3471 if (!(ehc->i.dev_action[dev->devno] &
3479 if (ehc->unloaded_mask & (1 << dev->devno))
3506 struct ata_eh_context *ehc = &link->eh_context;
3515 ehc->i.action = 0;
3520 if (ehc->i.flags & ATA_EHI_SETMODE) {
3524 ehc->i.flags &= ~ATA_EHI_SETMODE;
3530 if (ehc->i.flags & ATA_EHI_DID_RESET) {
3550 if (ehc->i.action & ATA_EH_LPM)
3555 ehc->i.flags = 0;