Lines Matching defs:action
433 return ehc->i.action | ehc->i.dev_action[dev->devno];
437 struct ata_eh_info *ehi, unsigned int action)
442 ehi->action &= ~action;
444 ehi->dev_action[tdev->devno] &= ~action;
447 WARN_ON(!(action & ATA_EH_PERDEV_MASK));
449 /* break ehi->action into ehi->dev_action */
450 if (ehi->action & action) {
453 ehi->action & action;
454 ehi->action &= ~action;
457 /* turn off the specified per-dev action */
458 ehi->dev_action[dev->devno] &= ~action;
1271 * @dev: target ATA dev for per-dev action (can be NULL)
1272 * @action: action about to be performed
1282 unsigned int action)
1289 trace_ata_eh_about_to_do(link, dev ? dev->devno : 0, action);
1293 ata_eh_clear_action(link, dev, ehi, action);
1295 /* About to take EH action, set RECOVERED. Ignore actions on
1305 * ata_eh_done - EH action complete
1307 * @dev: target ATA dev for per-dev action (can be NULL)
1308 * @action: action just completed
1317 unsigned int action)
1321 trace_ata_eh_done(link, dev ? dev->devno : 0, action);
1323 ata_eh_clear_action(link, dev, &ehc->i, action);
1516 unsigned int err_mask = 0, action = 0;
1521 action |= ATA_EH_RESET;
1525 action |= ATA_EH_RESET;
1529 action |= ATA_EH_RESET;
1548 ehc->i.action |= action;
1563 * Determined recovery action
1568 unsigned int tmp, action = 0;
1640 action |= ATA_EH_RESET;
1642 return action;
1721 * Even if multiple verdicts are returned, only one action is
1722 * taken per error. An action triggered by non-DUBIOUS errors
1809 * Determined recovery action.
1817 unsigned int action = 0;
1838 action |= ATA_EH_RESET;
1858 action |= ATA_EH_RESET;
1872 action |= ATA_EH_RESET;
1882 return action;
2013 * ata_eh_link_autopsy - analyze error and determine recovery action
2045 ehc->i.action |= ATA_EH_RESET;
2077 ehc->i.action |= ata_eh_analyze_tf(qc);
2120 ehc->i.action |= ATA_EH_RESET;
2123 ehc->i.action |= ATA_EH_REVALIDATE;
2126 * perform per-dev EH action only on the offending device.
2130 ehc->i.action & ATA_EH_PERDEV_MASK;
2131 ehc->i.action &= ~ATA_EH_PERDEV_MASK;
2147 ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask);
2148 trace_ata_eh_link_autopsy(dev, ehc->i.action, all_err_mask);
2153 * ata_eh_autopsy - analyze error and determine recovery action
2185 mehc->i.action |= sehc->i.action;
2370 "SAct 0x%x SErr 0x%x action 0x%x%s%s\n",
2372 ehc->i.action, frozen, tries_buf);
2377 "SAct 0x%x SErr 0x%x action 0x%x%s%s\n",
2379 ehc->i.action, frozen, tries_buf);
2626 ehc->i.action &= ~ATA_EH_RESET;
2629 ehc->i.action |= ATA_EH_HARDRESET;
2632 ehc->i.action |= ATA_EH_SOFTRESET;
2640 sehc->i.action &= ~ATA_EH_RESET;
2641 sehc->i.action |= ehc->i.action;
2657 ehc->i.action |= sehc->i.action;
2663 ehc->i.action &= ~ATA_EH_RESET;
2679 if (reset && !(ehc->i.action & ATA_EH_RESET)) {
2881 ehc->i.action |= ATA_EH_REVALIDATE;
2977 * wait_for_completion_timeout(), another ATA_EH_PARK action
3040 unsigned int action = ata_eh_dev_action(dev);
3050 if ((action & ATA_EH_SET_ACTIVE) && ata_dev_enabled(dev)) {
3055 if ((action & ATA_EH_REVALIDATE) && ata_dev_enabled(dev)) {
3527 if ((ehc->i.action & ATA_EH_RESET) &&
3568 ehc->i.action |= ATA_EH_RESET;
3651 ehc->i.action |= ATA_EH_RESET;
3693 if (ehc->i.action & ATA_EH_ENABLE_LINK) {
3707 /* collect port action mask recorded in dev actions */
3708 ehc->i.action |= ehc->i.dev_action[dev->devno] &
3735 ehc->i.action = 0;
3745 if (!(ehc->i.action & ATA_EH_RESET))
3824 ehc->i.action = 0;