• Home
  • Raw
  • Download

Lines Matching refs:err_mask

387 			     unsigned int err_mask)  in ata_ering_record()  argument
391 WARN_ON(!err_mask); in ata_ering_record()
398 ent->err_mask = err_mask; in ata_ering_record()
406 if (ent->err_mask) in ata_ering_top()
421 if (!ent->err_mask) in ata_ering_map()
551 qc->err_mask |= AC_ERR_TIMEOUT; in ata_scsi_timed_out()
687 qc->err_mask |= AC_ERR_TIMEOUT; in ata_scsi_cmd_error_handler()
914 qc->err_mask |= AC_ERR_TIMEOUT; in ata_eh_fastdrain_timerfn()
1341 if (!qc->err_mask) in ata_eh_qc_retry()
1476 static const char *ata_err_string(unsigned int err_mask) in ata_err_string() argument
1478 if (err_mask & AC_ERR_HOST_BUS) in ata_err_string()
1480 if (err_mask & AC_ERR_ATA_BUS) in ata_err_string()
1482 if (err_mask & AC_ERR_TIMEOUT) in ata_err_string()
1484 if (err_mask & AC_ERR_HSM) in ata_err_string()
1486 if (err_mask & AC_ERR_SYSTEM) in ata_err_string()
1488 if (err_mask & AC_ERR_MEDIA) in ata_err_string()
1490 if (err_mask & AC_ERR_INVALID) in ata_err_string()
1492 if (err_mask & AC_ERR_DEV) in ata_err_string()
1518 unsigned int err_mask; in ata_read_log_page() local
1548 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_FROM_DEVICE, in ata_read_log_page()
1551 if (err_mask && dma) { in ata_read_log_page()
1557 DPRINTK("EXIT, err_mask=%x\n", err_mask); in ata_read_log_page()
1558 return err_mask; in ata_read_log_page()
1580 unsigned int err_mask; in ata_eh_read_log_10h() local
1584 err_mask = ata_read_log_page(dev, ATA_LOG_SATA_NCQ, 0, buf, 1); in ata_eh_read_log_10h()
1585 if (err_mask) in ata_eh_read_log_10h()
1632 unsigned int err_mask; in atapi_eh_tur() local
1640 err_mask = ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0); in atapi_eh_tur()
1641 if (err_mask == AC_ERR_DEV) in atapi_eh_tur()
1643 return err_mask; in atapi_eh_tur()
1713 unsigned int err_mask = 0, action = 0; in ata_eh_analyze_serror() local
1717 err_mask |= AC_ERR_ATA_BUS; in ata_eh_analyze_serror()
1721 err_mask |= AC_ERR_HSM; in ata_eh_analyze_serror()
1725 err_mask |= AC_ERR_SYSTEM; in ata_eh_analyze_serror()
1744 ehc->i.err_mask |= err_mask; in ata_eh_analyze_serror()
1774 if (!link->sactive || !(ehc->i.err_mask & AC_ERR_DEV)) in ata_eh_analyze_ncq_error()
1784 if (qc->err_mask) in ata_eh_analyze_ncq_error()
1807 qc->err_mask |= AC_ERR_DEV | AC_ERR_NCQ; in ata_eh_analyze_ncq_error()
1808 ehc->i.err_mask &= ~AC_ERR_DEV; in ata_eh_analyze_ncq_error()
1833 qc->err_mask |= AC_ERR_HSM; in ata_eh_analyze_tf()
1838 qc->err_mask |= AC_ERR_DEV; in ata_eh_analyze_tf()
1846 qc->err_mask |= AC_ERR_ATA_BUS; in ata_eh_analyze_tf()
1848 qc->err_mask |= AC_ERR_MEDIA; in ata_eh_analyze_tf()
1850 qc->err_mask |= AC_ERR_INVALID; in ata_eh_analyze_tf()
1868 qc->err_mask |= tmp; in ata_eh_analyze_tf()
1872 if (qc->err_mask & (AC_ERR_HSM | AC_ERR_TIMEOUT | AC_ERR_ATA_BUS)) in ata_eh_analyze_tf()
1878 static int ata_eh_categorize_error(unsigned int eflags, unsigned int err_mask, in ata_eh_categorize_error() argument
1889 if (err_mask & AC_ERR_ATA_BUS) in ata_eh_categorize_error()
1892 if (err_mask & AC_ERR_TIMEOUT) in ata_eh_categorize_error()
1896 if (err_mask & AC_ERR_HSM) in ata_eh_categorize_error()
1898 if ((err_mask & in ata_eh_categorize_error()
1920 cat = ata_eh_categorize_error(ent->eflags, ent->err_mask, in speed_down_verdict_cb()
2045 unsigned int eflags, unsigned int err_mask) in ata_eh_speed_down() argument
2053 if (ata_eh_categorize_error(eflags, err_mask, &xfer_ok) == 0) in ata_eh_speed_down()
2057 ata_ering_record(&dev->ering, eflags, err_mask); in ata_eh_speed_down()
2131 if (qc->err_mask & AC_ERR_MEDIA) in ata_eh_worth_retry()
2135 if (qc->err_mask & AC_ERR_INVALID) in ata_eh_worth_retry()
2137 return qc->err_mask != AC_ERR_DEV; /* retry if not dev error */ in ata_eh_worth_retry()
2175 ehc->i.err_mask |= AC_ERR_OTHER; in ata_eh_link_autopsy()
2182 if (ehc->i.err_mask & ~AC_ERR_OTHER) in ata_eh_link_autopsy()
2183 ehc->i.err_mask &= ~AC_ERR_OTHER; in ata_eh_link_autopsy()
2185 all_err_mask |= ehc->i.err_mask; in ata_eh_link_autopsy()
2195 qc->err_mask |= ehc->i.err_mask; in ata_eh_link_autopsy()
2201 if (qc->err_mask & AC_ERR_ATA_BUS) in ata_eh_link_autopsy()
2202 qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_MEDIA | in ata_eh_link_autopsy()
2206 if (qc->err_mask & ~AC_ERR_OTHER) in ata_eh_link_autopsy()
2207 qc->err_mask &= ~AC_ERR_OTHER; in ata_eh_link_autopsy()
2217 qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_OTHER); in ata_eh_link_autopsy()
2223 all_err_mask |= qc->err_mask; in ata_eh_link_autopsy()
2248 ap->link.eh_context.i.err_mask |= AC_ERR_TIMEOUT; in ata_eh_link_autopsy()
2461 qc->err_mask == AC_ERR_DEV)) in ata_eh_link_report()
2463 if (qc->flags & ATA_QCFLAG_SENSE_VALID && !qc->err_mask) in ata_eh_link_report()
2469 if (!nr_failed && !ehc->i.err_mask) in ata_eh_link_report()
2483 ehc->i.err_mask, link->sactive, ehc->i.serror, in ata_eh_link_report()
2490 ehc->i.err_mask, link->sactive, ehc->i.serror, in ata_eh_link_report()
2526 ata_dev_phys_link(qc->dev) != link || !qc->err_mask) in ata_eh_link_report()
2579 res->device, qc->err_mask, ata_err_string(qc->err_mask), in ata_eh_link_report()
2580 qc->err_mask & AC_ERR_NCQ ? " <F>" : ""); in ata_eh_link_report()
3089 unsigned int err_mask; in ata_eh_park_issue_cmd() local
3106 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_eh_park_issue_cmd()
3107 if (park && (err_mask || tf.lbal != 0xc4)) { in ata_eh_park_issue_cmd()
3315 unsigned int err_mask; in atapi_eh_clear_ua() local
3317 err_mask = atapi_eh_tur(dev, &sense_key); in atapi_eh_clear_ua()
3318 if (err_mask != 0 && err_mask != AC_ERR_DEV) { in atapi_eh_clear_ua()
3321 err_mask); in atapi_eh_clear_ua()
3325 if (!err_mask || sense_key != UNIT_ATTENTION) in atapi_eh_clear_ua()
3328 err_mask = atapi_eh_request_sense(dev, sense_buffer, sense_key); in atapi_eh_clear_ua()
3329 if (err_mask) { in atapi_eh_clear_ua()
3331 "UNIT ATTENTION (err_mask=0x%x)\n", err_mask); in atapi_eh_clear_ua()
3365 unsigned int err_mask; in ata_eh_maybe_retry_flush() local
3378 if (qc->err_mask & AC_ERR_DEV) in ata_eh_maybe_retry_flush()
3389 tf.command, qc->err_mask); in ata_eh_maybe_retry_flush()
3391 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_eh_maybe_retry_flush()
3392 if (!err_mask) { in ata_eh_maybe_retry_flush()
3404 err_mask); in ata_eh_maybe_retry_flush()
3408 if (err_mask & AC_ERR_DEV) { in ata_eh_maybe_retry_flush()
3409 qc->err_mask |= AC_ERR_DEV; in ata_eh_maybe_retry_flush()
3444 unsigned int err_mask; in ata_eh_set_lpm() local
3474 err_mask = ata_dev_set_feature(dev, in ata_eh_set_lpm()
3476 if (err_mask && err_mask != AC_ERR_DEV) { in ata_eh_set_lpm()
3479 err_mask); in ata_eh_set_lpm()
3518 err_mask = ata_dev_set_feature(dev, in ata_eh_set_lpm()
3520 if (err_mask && err_mask != AC_ERR_DEV) { in ata_eh_set_lpm()
3523 err_mask); in ata_eh_set_lpm()
3984 if (qc->err_mask) { in ata_eh_finish()