• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/ata/

Lines Matching refs:err_mask

89 			     unsigned int err_mask)
93 WARN_ON(!err_mask);
100 ent->err_mask = err_mask;
119 if (!ent->err_mask)
202 qc->err_mask |= AC_ERR_TIMEOUT;
269 qc->err_mask |= AC_ERR_TIMEOUT;
474 qc->err_mask |= AC_ERR_TIMEOUT;
744 * due to unrelated failures (qc->err_mask is zero).
749 if (!qc->err_mask && scmd->retries)
854 * ata_err_string - convert err_mask to descriptive string
855 * @err_mask: error mask to convert to string
857 * Convert @err_mask to descriptive string. Errors are
865 * Descriptive string for @err_mask
867 static const char * ata_err_string(unsigned int err_mask)
869 if (err_mask & AC_ERR_HOST_BUS)
871 if (err_mask & AC_ERR_ATA_BUS)
873 if (err_mask & AC_ERR_TIMEOUT)
875 if (err_mask & AC_ERR_HSM)
877 if (err_mask & AC_ERR_SYSTEM)
879 if (err_mask & AC_ERR_MEDIA)
881 if (err_mask & AC_ERR_INVALID)
883 if (err_mask & AC_ERR_DEV)
907 unsigned int err_mask;
919 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_FROM_DEVICE,
922 DPRINTK("EXIT, err_mask=%x\n", err_mask);
923 return err_mask;
945 unsigned int err_mask;
949 err_mask = ata_read_log_page(dev, ATA_LOG_SATA_NCQ, buf, 1);
950 if (err_mask)
1050 unsigned int err_mask = 0, action = 0;
1053 err_mask |= AC_ERR_ATA_BUS;
1058 err_mask |= AC_ERR_ATA_BUS;
1062 err_mask |= AC_ERR_HSM;
1066 err_mask |= AC_ERR_SYSTEM;
1072 ehc->i.err_mask |= err_mask;
1082 * is setting AC_ERR_DEV in ehi->err_mask. This function takes
1101 if (!ap->sactive || !(ehc->i.err_mask & AC_ERR_DEV))
1111 if (qc->err_mask)
1132 qc->err_mask |= AC_ERR_DEV;
1133 ehc->i.err_mask &= ~AC_ERR_DEV;
1158 qc->err_mask |= AC_ERR_HSM;
1163 qc->err_mask |= AC_ERR_DEV;
1170 qc->err_mask |= AC_ERR_ATA_BUS;
1172 qc->err_mask |= AC_ERR_MEDIA;
1174 qc->err_mask |= AC_ERR_INVALID;
1186 * appropriate err_mask.
1190 qc->err_mask |= tmp;
1194 if (qc->err_mask & (AC_ERR_HSM | AC_ERR_TIMEOUT | AC_ERR_ATA_BUS))
1200 static int ata_eh_categorize_error(int is_io, unsigned int err_mask)
1202 if (err_mask & AC_ERR_ATA_BUS)
1205 if (err_mask & AC_ERR_TIMEOUT)
1209 if (err_mask & AC_ERR_HSM)
1211 if ((err_mask &
1227 int cat = ata_eh_categorize_error(ent->is_io, ent->err_mask);
1299 * @err_mask: err_mask of the error
1313 unsigned int err_mask)
1319 if (ata_eh_categorize_error(is_io, err_mask) == 0)
1323 ata_ering_record(&dev->ering, is_io, err_mask);
1422 if (ehc->i.err_mask & ~AC_ERR_OTHER)
1423 ehc->i.err_mask &= ~AC_ERR_OTHER;
1425 all_err_mask |= ehc->i.err_mask;
1433 /* inherit upper level err_mask */
1434 qc->err_mask |= ehc->i.err_mask;
1440 if (qc->err_mask & AC_ERR_ATA_BUS)
1441 qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_MEDIA |
1445 if (qc->err_mask & ~AC_ERR_OTHER)
1446 qc->err_mask &= ~AC_ERR_OTHER;
1450 qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_OTHER);
1456 all_err_mask |= qc->err_mask;
1507 if (qc->flags & ATA_QCFLAG_SENSE_VALID && !qc->err_mask)
1513 if (!nr_failed && !ehc->i.err_mask)
1523 ehc->i.err_mask, ap->sactive, ehc->i.serror,
1530 ehc->i.err_mask, ap->sactive, ehc->i.serror,
1546 if (!(qc->flags & ATA_QCFLAG_FAILED) || !qc->err_mask)
1564 res->device, qc->err_mask, ata_err_string(qc->err_mask));
2086 if (qc->err_mask) {
2087 if (qc->err_mask & AC_ERR_INVALID)