Lines Matching refs:err_mask

369 			     unsigned int err_mask)
373 WARN_ON(!err_mask);
380 ent->err_mask = err_mask;
388 if (ent->err_mask)
403 if (!ent->err_mask)
617 qc->err_mask |= AC_ERR_TIMEOUT;
846 qc->err_mask |= AC_ERR_TIMEOUT;
1196 * due to unrelated failures (qc->err_mask is zero).
1201 if (!qc->err_mask)
1324 * ata_err_string - convert err_mask to descriptive string
1325 * @err_mask: error mask to convert to string
1327 * Convert @err_mask to descriptive string. Errors are
1335 * Descriptive string for @err_mask
1337 static const char *ata_err_string(unsigned int err_mask)
1339 if (err_mask & AC_ERR_HOST_BUS)
1341 if (err_mask & AC_ERR_ATA_BUS)
1343 if (err_mask & AC_ERR_TIMEOUT)
1345 if (err_mask & AC_ERR_HSM)
1347 if (err_mask & AC_ERR_SYSTEM)
1349 if (err_mask & AC_ERR_MEDIA)
1351 if (err_mask & AC_ERR_INVALID)
1353 if (err_mask & AC_ERR_DEV)
1355 if (err_mask & AC_ERR_NCQ)
1357 if (err_mask & AC_ERR_NODEV_HINT)
1379 unsigned int err_mask;
1387 err_mask = ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0);
1388 if (err_mask == AC_ERR_DEV)
1390 return err_mask;
1409 unsigned int err_mask;
1432 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0);
1433 /* Ignore err_mask; ATA_ERR might be set */
1439 tf.command, err_mask);
1510 unsigned int err_mask = 0, action = 0;
1514 err_mask |= AC_ERR_ATA_BUS;
1518 err_mask |= AC_ERR_HSM;
1522 err_mask |= AC_ERR_SYSTEM;
1541 ehc->i.err_mask |= err_mask;
1567 qc->err_mask |= AC_ERR_HSM;
1572 qc->err_mask |= AC_ERR_DEV;
1590 qc->err_mask |= AC_ERR_ATA_BUS;
1592 qc->err_mask |= AC_ERR_MEDIA;
1594 qc->err_mask |= AC_ERR_INVALID;
1605 qc->err_mask |= tmp;
1622 qc->err_mask |= AC_ERR_OTHER;
1624 qc->err_mask |= AC_ERR_HSM;
1627 if (qc->err_mask & (AC_ERR_HSM | AC_ERR_TIMEOUT | AC_ERR_ATA_BUS))
1633 static int ata_eh_categorize_error(unsigned int eflags, unsigned int err_mask,
1644 if (err_mask & AC_ERR_ATA_BUS)
1647 if (err_mask & AC_ERR_TIMEOUT)
1651 if (err_mask & AC_ERR_HSM)
1653 if ((err_mask &
1675 cat = ata_eh_categorize_error(ent->eflags, ent->err_mask,
1786 * @err_mask: err_mask of the error
1800 unsigned int eflags, unsigned int err_mask)
1808 if (ata_eh_categorize_error(eflags, err_mask, &xfer_ok) == 0)
1812 ata_ering_record(&dev->ering, eflags, err_mask);
1886 if (qc->err_mask & AC_ERR_MEDIA)
1890 if (qc->err_mask & AC_ERR_INVALID)
1892 return qc->err_mask != AC_ERR_DEV; /* retry if not dev error */
1946 ehc->i.err_mask |= AC_ERR_OTHER;
1953 if (ehc->i.err_mask & ~AC_ERR_OTHER)
1954 ehc->i.err_mask &= ~AC_ERR_OTHER;
1956 all_err_mask |= ehc->i.err_mask;
1963 /* inherit upper level err_mask */
1964 qc->err_mask |= ehc->i.err_mask;
1970 if (qc->err_mask & AC_ERR_ATA_BUS)
1971 qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_MEDIA |
1975 if (qc->err_mask & ~AC_ERR_OTHER)
1976 qc->err_mask &= ~AC_ERR_OTHER;
1986 qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_OTHER);
1992 all_err_mask |= qc->err_mask;
2026 ap->link.eh_context.i.err_mask |= AC_ERR_TIMEOUT;
2241 qc->err_mask == AC_ERR_DEV))
2243 if (qc->flags & ATA_QCFLAG_SENSE_VALID && !qc->err_mask)
2249 if (!nr_failed && !ehc->i.err_mask)
2263 ehc->i.err_mask, link->sactive, ehc->i.serror,
2270 ehc->i.err_mask, link->sactive, ehc->i.serror,
2305 ata_dev_phys_link(qc->dev) != link || !qc->err_mask)
2380 res->device, qc->err_mask, ata_err_string(qc->err_mask),
2381 qc->err_mask & AC_ERR_NCQ ? " <F>" : "");
2884 unsigned int err_mask;
2901 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0);
2902 if (park && (err_mask || tf.lbal != 0xc4)) {
3110 unsigned int err_mask;
3112 err_mask = atapi_eh_tur(dev, &sense_key);
3113 if (err_mask != 0 && err_mask != AC_ERR_DEV) {
3115 "TEST_UNIT_READY failed (err_mask=0x%x)\n",
3116 err_mask);
3120 if (!err_mask || sense_key != UNIT_ATTENTION)
3123 err_mask = atapi_eh_request_sense(dev, sense_buffer, sense_key);
3124 if (err_mask) {
3126 "UNIT ATTENTION (err_mask=0x%x)\n", err_mask);
3160 unsigned int err_mask;
3173 if (qc->err_mask & AC_ERR_DEV)
3184 tf.command, qc->err_mask);
3186 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0);
3187 if (!err_mask) {
3199 err_mask);
3203 if (err_mask & AC_ERR_DEV) {
3204 qc->err_mask |= AC_ERR_DEV;
3239 unsigned int err_mask;
3270 err_mask = ata_dev_set_feature(dev,
3272 if (err_mask && err_mask != AC_ERR_DEV) {
3275 err_mask);
3314 err_mask = ata_dev_set_feature(dev,
3316 if (err_mask && err_mask != AC_ERR_DEV) {
3319 err_mask);
3781 if (qc->err_mask) {
3784 * considering both err_mask and tf.