Lines Matching defs:action
429 return ehc->i.action | ehc->i.dev_action[dev->devno];
433 struct ata_eh_info *ehi, unsigned int action)
438 ehi->action &= ~action;
440 ehi->dev_action[tdev->devno] &= ~action;
443 WARN_ON(!(action & ATA_EH_PERDEV_MASK));
445 /* break ehi->action into ehi->dev_action */
446 if (ehi->action & action) {
449 ehi->action & action;
450 ehi->action &= ~action;
453 /* turn off the specified per-dev action */
454 ehi->dev_action[dev->devno] &= ~action;
1272 * @dev: target ATA dev for per-dev action (can be NULL)
1273 * @action: action about to be performed
1283 unsigned int action)
1292 ata_eh_clear_action(link, dev, ehi, action);
1294 /* About to take EH action, set RECOVERED. Ignore actions on
1304 * ata_eh_done - EH action complete
1306 * @dev: target ATA dev for per-dev action (can be NULL)
1307 * @action: action just completed
1316 unsigned int action)
1320 ata_eh_clear_action(link, dev, &ehc->i, action);
1510 unsigned int err_mask = 0, action = 0;
1515 action |= ATA_EH_RESET;
1519 action |= ATA_EH_RESET;
1523 action |= ATA_EH_RESET;
1542 ehc->i.action |= action;
1558 * Determined recovery action
1563 unsigned int tmp, action = 0;
1628 action |= ATA_EH_RESET;
1630 return action;
1709 * Even if multiple verdicts are returned, only one action is
1710 * taken per error. An action triggered by non-DUBIOUS errors
1797 * Determined recovery action.
1805 unsigned int action = 0;
1828 action |= ATA_EH_RESET;
1848 action |= ATA_EH_RESET;
1862 action |= ATA_EH_RESET;
1872 return action;
1911 * ata_eh_link_autopsy - analyze error and determine recovery action
1945 ehc->i.action |= ATA_EH_RESET;
1967 ehc->i.action |= ata_eh_analyze_tf(qc, &qc->result_tf);
2010 ehc->i.action |= ATA_EH_RESET;
2013 ehc->i.action |= ATA_EH_REVALIDATE;
2016 * perform per-dev EH action only on the offending device.
2020 ehc->i.action & ATA_EH_PERDEV_MASK;
2021 ehc->i.action &= ~ATA_EH_PERDEV_MASK;
2037 ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask);
2038 trace_ata_eh_link_autopsy(dev, ehc->i.action, all_err_mask);
2044 * ata_eh_autopsy - analyze error and determine recovery action
2076 mehc->i.action |= sehc->i.action;
2262 "SAct 0x%x SErr 0x%x action 0x%x%s%s\n",
2264 ehc->i.action, frozen, tries_buf);
2269 "SAct 0x%x SErr 0x%x action 0x%x%s%s\n",
2271 ehc->i.action, frozen, tries_buf);
2521 ehc->i.action &= ~ATA_EH_RESET;
2524 ehc->i.action |= ATA_EH_HARDRESET;
2527 ehc->i.action |= ATA_EH_SOFTRESET;
2535 sehc->i.action &= ~ATA_EH_RESET;
2536 sehc->i.action |= ehc->i.action;
2552 ehc->i.action |= sehc->i.action;
2558 ehc->i.action &= ~ATA_EH_RESET;
2574 if (reset && !(ehc->i.action & ATA_EH_RESET)) {
2764 ehc->i.action |= ATA_EH_REVALIDATE;
2860 * wait_for_completion_timeout(), another ATA_EH_PARK action
2925 unsigned int action = ata_eh_dev_action(dev);
2931 if ((action & ATA_EH_REVALIDATE) && ata_dev_enabled(dev)) {
3387 if ((ehc->i.action & ATA_EH_RESET) &&
3428 ehc->i.action |= ATA_EH_RESET;
3511 ehc->i.action |= ATA_EH_RESET;
3555 if (ehc->i.action & ATA_EH_ENABLE_LINK) {
3569 /* collect port action mask recorded in dev actions */
3570 ehc->i.action |= ehc->i.dev_action[dev->devno] &
3597 ehc->i.action = 0;
3607 if (!(ehc->i.action & ATA_EH_RESET))
3686 ehc->i.action = 0;