Lines Matching refs:err_mask

1192 	unsigned int err_mask;  in ata_read_native_max_address()  local
1210 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_read_native_max_address()
1211 if (err_mask) { in ata_read_native_max_address()
1214 err_mask); in ata_read_native_max_address()
1215 if (err_mask == AC_ERR_DEV && (tf.error & ATA_ABORTED)) in ata_read_native_max_address()
1243 unsigned int err_mask; in ata_set_max_sectors() local
1273 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_set_max_sectors()
1274 if (err_mask) { in ata_set_max_sectors()
1277 err_mask); in ata_set_max_sectors()
1278 if (err_mask == AC_ERR_DEV && in ata_set_max_sectors()
1520 unsigned int err_mask; in ata_exec_internal_sg() local
1606 qc->err_mask |= AC_ERR_TIMEOUT; in ata_exec_internal_sg()
1624 qc->err_mask |= AC_ERR_DEV; in ata_exec_internal_sg()
1626 if (!qc->err_mask) in ata_exec_internal_sg()
1627 qc->err_mask |= AC_ERR_OTHER; in ata_exec_internal_sg()
1629 if (qc->err_mask & ~AC_ERR_OTHER) in ata_exec_internal_sg()
1630 qc->err_mask &= ~AC_ERR_OTHER; in ata_exec_internal_sg()
1639 err_mask = qc->err_mask; in ata_exec_internal_sg()
1649 if ((err_mask & AC_ERR_TIMEOUT) && auto_timeout) in ata_exec_internal_sg()
1652 return err_mask; in ata_exec_internal_sg()
1795 unsigned int err_mask = 0; in ata_dev_read_id() local
1834 err_mask = ap->ops->read_id(dev, &tf, (__le16 *)id); in ata_dev_read_id()
1836 err_mask = ata_do_dev_read_id(dev, &tf, (__le16 *)id); in ata_dev_read_id()
1838 if (err_mask) { in ata_dev_read_id()
1839 if (err_mask & AC_ERR_NODEV_HINT) { in ata_dev_read_id()
1852 if ((err_mask == AC_ERR_DEV) && (tf.error & ATA_ABORTED)) { in ata_dev_read_id()
1922 err_mask = ata_dev_set_feature(dev, SETFEATURES_SPINUP, 0); in ata_dev_read_id()
1923 if (err_mask && id[2] != 0x738c) { in ata_dev_read_id()
1950 err_mask = ata_dev_init_params(dev, id[3], id[6]); in ata_dev_read_id()
1951 if (err_mask) { in ata_dev_read_id()
1971 reason, err_mask); in ata_dev_read_id()
1989 unsigned int err_mask; in ata_dev_power_set_standby() local
2015 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_power_set_standby()
2016 if (err_mask) in ata_dev_power_set_standby()
2018 err_mask); in ata_dev_power_set_standby()
2035 unsigned int err_mask; in ata_dev_power_set_active() local
2063 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_power_set_active()
2064 if (err_mask) in ata_dev_power_set_active()
2066 err_mask); in ata_dev_power_set_active()
2090 unsigned int err_mask; in ata_read_log_page() local
2120 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_FROM_DEVICE, in ata_read_log_page()
2123 if (err_mask) { in ata_read_log_page()
2131 (unsigned int)log, (unsigned int)page, err_mask); in ata_read_log_page()
2134 return err_mask; in ata_read_log_page()
2233 unsigned int err_mask; in ata_dev_config_ncq_send_recv() local
2239 err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_SEND_RECV, in ata_dev_config_ncq_send_recv()
2241 if (!err_mask) { in ata_dev_config_ncq_send_recv()
2258 unsigned int err_mask; in ata_dev_config_ncq_non_data() local
2265 err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA, in ata_dev_config_ncq_non_data()
2267 if (!err_mask) { in ata_dev_config_ncq_non_data()
2277 unsigned int err_mask; in ata_dev_config_ncq_prio() local
2282 err_mask = ata_read_log_page(dev, in ata_dev_config_ncq_prio()
2287 if (err_mask) in ata_dev_config_ncq_prio()
2326 unsigned int err_mask; in ata_dev_config_ncq() local
2354 err_mask = ata_dev_set_feature(dev, SETFEATURES_SATA_ENABLE, in ata_dev_config_ncq()
2356 if (err_mask) { in ata_dev_config_ncq()
2359 err_mask); in ata_dev_config_ncq()
2360 if (err_mask != AC_ERR_DEV) { in ata_dev_config_ncq()
2388 unsigned int err_mask; in ata_dev_config_sense_reporting() local
2396 err_mask = ata_dev_set_feature(dev, SETFEATURE_SENSE_DATA, 0x1); in ata_dev_config_sense_reporting()
2397 if (err_mask) { in ata_dev_config_sense_reporting()
2400 err_mask); in ata_dev_config_sense_reporting()
2407 unsigned int err_mask; in ata_dev_config_zac() local
2437 err_mask = ata_read_log_page(dev, ATA_LOG_IDENTIFY_DEVICE, in ata_dev_config_zac()
2440 if (!err_mask) { in ata_dev_config_zac()
2492 unsigned int err_mask; in ata_dev_config_cdl() local
2504 err_mask = ata_read_log_page(dev, ATA_LOG_IDENTIFY_DEVICE, in ata_dev_config_cdl()
2507 if (err_mask) in ata_dev_config_cdl()
2542 err_mask = ata_read_log_page(dev, ATA_LOG_IDENTIFY_DEVICE, in ata_dev_config_cdl()
2545 if (err_mask) in ata_dev_config_cdl()
2553 err_mask = ata_dev_set_feature(dev, SETFEATURES_CDL, 1); in ata_dev_config_cdl()
2554 if (err_mask) { in ata_dev_config_cdl()
2563 err_mask = ata_dev_set_feature(dev, SETFEATURES_CDL, 0); in ata_dev_config_cdl()
2564 if (err_mask) { in ata_dev_config_cdl()
2579 err_mask = ata_dev_set_feature(dev, in ata_dev_config_cdl()
2581 if (err_mask) { in ata_dev_config_cdl()
2584 err_mask); in ata_dev_config_cdl()
2605 err_mask = ata_read_log_page(dev, ATA_LOG_CDL, 0, ap->sector_buf, 1); in ata_dev_config_cdl()
2606 if (err_mask) { in ata_dev_config_cdl()
2704 unsigned int err_mask; in ata_dev_config_devslp() local
2715 err_mask = ata_read_log_page(dev, in ata_dev_config_devslp()
2719 if (err_mask) in ata_dev_config_devslp()
2731 unsigned int err_mask; in ata_dev_config_cpr() local
2755 err_mask = ata_read_log_page(dev, ATA_LOG_CONCURRENT_POSITIONING_RANGES, in ata_dev_config_cpr()
2757 if (err_mask) in ata_dev_config_cpr()
2819 unsigned int err_mask; in ata_dev_configure() local
2990 err_mask = ata_dev_set_feature(dev, in ata_dev_configure()
2992 if (err_mask) in ata_dev_configure()
2995 err_mask); in ata_dev_configure()
3429 unsigned int err_mask = 0; in ata_dev_set_mode() local
3443 err_mask = ata_dev_set_xfermode(dev); in ata_dev_set_mode()
3446 if (err_mask & ~AC_ERR_DEV) in ata_dev_set_mode()
3482 if (err_mask & AC_ERR_DEV) { in ata_dev_set_mode()
3501 ata_dev_err(dev, "failed to set xfermode (err_mask=0x%x)\n", err_mask); in ata_dev_set_mode()
4536 unsigned int err_mask; in ata_dev_init_params() local
4552 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_init_params()
4556 if (err_mask == AC_ERR_DEV && (tf.error & ATA_ABORTED)) in ata_dev_init_params()
4557 err_mask = 0; in ata_dev_init_params()
4559 return err_mask; in ata_dev_init_params()
4844 if (unlikely(qc->err_mask)) in ata_qc_complete()
5009 qc->err_mask |= ap->ops->qc_prep(qc); in ata_qc_issue()
5010 if (unlikely(qc->err_mask)) in ata_qc_issue()
5013 qc->err_mask |= ap->ops->qc_issue(qc); in ata_qc_issue()
5014 if (unlikely(qc->err_mask)) in ata_qc_issue()
5019 qc->err_mask |= AC_ERR_SYSTEM; in ata_qc_issue()