Lines Matching refs:err_mask
1223 unsigned int err_mask; in ata_read_native_max_address() local
1241 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_read_native_max_address()
1242 if (err_mask) { in ata_read_native_max_address()
1245 err_mask); in ata_read_native_max_address()
1246 if (err_mask == AC_ERR_DEV && (tf.feature & ATA_ABORTED)) in ata_read_native_max_address()
1274 unsigned int err_mask; in ata_set_max_sectors() local
1304 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_set_max_sectors()
1305 if (err_mask) { in ata_set_max_sectors()
1308 err_mask); in ata_set_max_sectors()
1309 if (err_mask == AC_ERR_DEV && in ata_set_max_sectors()
1567 unsigned int err_mask; in ata_exec_internal_sg() local
1665 qc->err_mask |= AC_ERR_TIMEOUT; in ata_exec_internal_sg()
1687 qc->err_mask |= AC_ERR_DEV; in ata_exec_internal_sg()
1689 if (!qc->err_mask) in ata_exec_internal_sg()
1690 qc->err_mask |= AC_ERR_OTHER; in ata_exec_internal_sg()
1692 if (qc->err_mask & ~AC_ERR_OTHER) in ata_exec_internal_sg()
1693 qc->err_mask &= ~AC_ERR_OTHER; in ata_exec_internal_sg()
1700 err_mask = qc->err_mask; in ata_exec_internal_sg()
1710 if ((err_mask & AC_ERR_TIMEOUT) && auto_timeout) in ata_exec_internal_sg()
1713 return err_mask; in ata_exec_internal_sg()
1854 unsigned int err_mask = 0; in ata_dev_read_id() local
1895 err_mask = ap->ops->read_id(dev, &tf, id); in ata_dev_read_id()
1897 err_mask = ata_do_dev_read_id(dev, &tf, id); in ata_dev_read_id()
1899 if (err_mask) { in ata_dev_read_id()
1900 if (err_mask & AC_ERR_NODEV_HINT) { in ata_dev_read_id()
1913 if ((err_mask == AC_ERR_DEV) && (tf.feature & ATA_ABORTED)) { in ata_dev_read_id()
1983 err_mask = ata_dev_set_feature(dev, SETFEATURES_SPINUP, 0); in ata_dev_read_id()
1984 if (err_mask && id[2] != 0x738c) { in ata_dev_read_id()
2011 err_mask = ata_dev_init_params(dev, id[3], id[6]); in ata_dev_read_id()
2012 if (err_mask) { in ata_dev_read_id()
2033 reason, err_mask); in ata_dev_read_id()
2104 unsigned int err_mask; in ata_dev_config_ncq() local
2130 err_mask = ata_dev_set_feature(dev, SETFEATURES_SATA_ENABLE, in ata_dev_config_ncq()
2132 if (err_mask) { in ata_dev_config_ncq()
2135 err_mask); in ata_dev_config_ncq()
2136 if (err_mask != AC_ERR_DEV) { in ata_dev_config_ncq()
2152 err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_SEND_RECV, in ata_dev_config_ncq()
2154 if (err_mask) { in ata_dev_config_ncq()
2157 err_mask); in ata_dev_config_ncq()
2195 unsigned int err_mask; in ata_dev_configure() local
2385 err_mask = ata_read_log_page(dev, in ata_dev_configure()
2390 if (err_mask) in ata_dev_configure()
2393 err_mask); in ata_dev_configure()
2430 err_mask = ata_dev_set_feature(dev, in ata_dev_configure()
2432 if (err_mask) in ata_dev_configure()
2435 err_mask); in ata_dev_configure()
3238 unsigned int err_mask = 0; in ata_dev_set_mode() local
3252 err_mask = ata_dev_set_xfermode(dev); in ata_dev_set_mode()
3255 if (err_mask & ~AC_ERR_DEV) in ata_dev_set_mode()
3291 if (err_mask & AC_ERR_DEV) { in ata_dev_set_mode()
3308 ata_dev_err(dev, "failed to set xfermode (err_mask=0x%x)\n", err_mask); in ata_dev_set_mode()
4554 unsigned int err_mask; in ata_dev_set_xfermode() local
4577 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 15000); in ata_dev_set_xfermode()
4579 DPRINTK("EXIT, err_mask=%x\n", err_mask); in ata_dev_set_xfermode()
4580 return err_mask; in ata_dev_set_xfermode()
4601 unsigned int err_mask; in ata_dev_set_feature() local
4613 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_set_feature()
4615 DPRINTK("EXIT, err_mask=%x\n", err_mask); in ata_dev_set_feature()
4616 return err_mask; in ata_dev_set_feature()
4636 unsigned int err_mask; in ata_dev_init_params() local
4652 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_init_params()
4656 if (err_mask == AC_ERR_DEV && (tf.feature & ATA_ABORTED)) in ata_dev_init_params()
4657 err_mask = 0; in ata_dev_init_params()
4659 DPRINTK("EXIT, err_mask=%x\n", err_mask); in ata_dev_init_params()
4660 return err_mask; in ata_dev_init_params()
4989 if (unlikely(qc->err_mask)) in ata_qc_complete()
5051 if (qc->err_mask || qc->flags & ATA_QCFLAG_RESULT_TF) in ata_qc_complete()
5166 qc->err_mask |= ap->ops->qc_prep(qc); in ata_qc_issue()
5167 if (unlikely(qc->err_mask)) in ata_qc_issue()
5170 qc->err_mask |= ap->ops->qc_issue(qc); in ata_qc_issue()
5171 if (unlikely(qc->err_mask)) in ata_qc_issue()
5176 qc->err_mask |= AC_ERR_SYSTEM; in ata_qc_issue()