Lines Matching refs:err_mask
1179 unsigned int err_mask; in ata_read_native_max_address() local
1197 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_read_native_max_address()
1198 if (err_mask) { in ata_read_native_max_address()
1201 err_mask); in ata_read_native_max_address()
1202 if (err_mask == AC_ERR_DEV && (tf.error & ATA_ABORTED)) in ata_read_native_max_address()
1230 unsigned int err_mask; in ata_set_max_sectors() local
1260 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_set_max_sectors()
1261 if (err_mask) { in ata_set_max_sectors()
1264 err_mask); in ata_set_max_sectors()
1265 if (err_mask == AC_ERR_DEV && in ata_set_max_sectors()
1508 unsigned int err_mask; in ata_exec_internal() local
1591 qc->err_mask |= AC_ERR_TIMEOUT; in ata_exec_internal()
1605 qc->err_mask |= AC_ERR_DEV; in ata_exec_internal()
1607 if (!qc->err_mask) in ata_exec_internal()
1608 qc->err_mask |= AC_ERR_OTHER; in ata_exec_internal()
1610 if (qc->err_mask & ~AC_ERR_OTHER) in ata_exec_internal()
1611 qc->err_mask &= ~AC_ERR_OTHER; in ata_exec_internal()
1620 err_mask = qc->err_mask; in ata_exec_internal()
1630 if ((err_mask & AC_ERR_TIMEOUT) && auto_timeout) in ata_exec_internal()
1633 return err_mask; in ata_exec_internal()
1738 unsigned int err_mask = 0; in ata_dev_read_id() local
1777 err_mask = ap->ops->read_id(dev, &tf, (__le16 *)id); in ata_dev_read_id()
1779 err_mask = ata_do_dev_read_id(dev, &tf, (__le16 *)id); in ata_dev_read_id()
1781 if (err_mask) { in ata_dev_read_id()
1782 if (err_mask & AC_ERR_NODEV_HINT) { in ata_dev_read_id()
1795 if ((err_mask == AC_ERR_DEV) && (tf.error & ATA_ABORTED)) { in ata_dev_read_id()
1865 err_mask = ata_dev_set_feature(dev, SETFEATURES_SPINUP, 0); in ata_dev_read_id()
1866 if (err_mask && id[2] != 0x738c) { in ata_dev_read_id()
1893 err_mask = ata_dev_init_params(dev, id[3], id[6]); in ata_dev_read_id()
1894 if (err_mask) { in ata_dev_read_id()
1914 reason, err_mask); in ata_dev_read_id()
1950 unsigned int err_mask; in ata_dev_power_is_active() local
1957 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_power_is_active()
1958 if (err_mask) { in ata_dev_power_is_active()
1960 err_mask); in ata_dev_power_is_active()
1988 unsigned int err_mask; in ata_dev_power_set_standby() local
2014 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_power_set_standby()
2015 if (err_mask) in ata_dev_power_set_standby()
2017 err_mask); in ata_dev_power_set_standby()
2034 unsigned int err_mask; in ata_dev_power_set_active() local
2052 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_power_set_active()
2053 if (err_mask) in ata_dev_power_set_active()
2055 err_mask); in ata_dev_power_set_active()
2079 unsigned int err_mask; in ata_read_log_page() local
2109 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_FROM_DEVICE, in ata_read_log_page()
2112 if (err_mask) { in ata_read_log_page()
2120 (unsigned int)log, (unsigned int)page, err_mask); in ata_read_log_page()
2123 return err_mask; in ata_read_log_page()
2218 unsigned int err_mask; in ata_dev_config_ncq_send_recv() local
2224 err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_SEND_RECV, in ata_dev_config_ncq_send_recv()
2226 if (!err_mask) { in ata_dev_config_ncq_send_recv()
2242 unsigned int err_mask; in ata_dev_config_ncq_non_data() local
2249 err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA, in ata_dev_config_ncq_non_data()
2251 if (!err_mask) in ata_dev_config_ncq_non_data()
2258 unsigned int err_mask; in ata_dev_config_ncq_prio() local
2263 err_mask = ata_read_log_page(dev, in ata_dev_config_ncq_prio()
2267 if (err_mask) in ata_dev_config_ncq_prio()
2306 unsigned int err_mask; in ata_dev_config_ncq() local
2334 err_mask = ata_dev_set_feature(dev, SETFEATURES_SATA_ENABLE, in ata_dev_config_ncq()
2336 if (err_mask) { in ata_dev_config_ncq()
2339 err_mask); in ata_dev_config_ncq()
2340 if (err_mask != AC_ERR_DEV) { in ata_dev_config_ncq()
2368 unsigned int err_mask; in ata_dev_config_sense_reporting() local
2376 err_mask = ata_dev_set_feature(dev, SETFEATURE_SENSE_DATA, 0x1); in ata_dev_config_sense_reporting()
2377 if (err_mask) { in ata_dev_config_sense_reporting()
2380 err_mask); in ata_dev_config_sense_reporting()
2386 unsigned int err_mask; in ata_dev_config_zac() local
2416 err_mask = ata_read_log_page(dev, ATA_LOG_IDENTIFY_DEVICE, in ata_dev_config_zac()
2419 if (!err_mask) { in ata_dev_config_zac()
2476 unsigned int err_mask; in ata_dev_init_cdl_resources() local
2485 err_mask = ata_read_log_page(dev, ATA_LOG_CDL, 0, cdl->desc_log_buf, in ata_dev_init_cdl_resources()
2487 if (err_mask) { in ata_dev_init_cdl_resources()
2498 unsigned int err_mask; in ata_dev_config_cdl() local
2511 err_mask = ata_read_log_page(dev, ATA_LOG_IDENTIFY_DEVICE, in ata_dev_config_cdl()
2514 if (err_mask) in ata_dev_config_cdl()
2549 err_mask = ata_read_log_page(dev, ATA_LOG_IDENTIFY_DEVICE, in ata_dev_config_cdl()
2552 if (err_mask) in ata_dev_config_cdl()
2560 err_mask = ata_dev_set_feature(dev, SETFEATURES_CDL, 1); in ata_dev_config_cdl()
2561 if (err_mask) { in ata_dev_config_cdl()
2570 err_mask = ata_dev_set_feature(dev, SETFEATURES_CDL, 0); in ata_dev_config_cdl()
2571 if (err_mask) { in ata_dev_config_cdl()
2586 err_mask = ata_dev_set_feature(dev, in ata_dev_config_cdl()
2588 if (err_mask) { in ata_dev_config_cdl()
2591 err_mask); in ata_dev_config_cdl()
2694 unsigned int err_mask; in ata_dev_config_devslp() local
2705 err_mask = ata_read_log_page(dev, in ata_dev_config_devslp()
2709 if (err_mask) in ata_dev_config_devslp()
2721 unsigned int err_mask; in ata_dev_config_cpr() local
2745 err_mask = ata_read_log_page(dev, ATA_LOG_CONCURRENT_POSITIONING_RANGES, in ata_dev_config_cpr()
2747 if (err_mask) in ata_dev_config_cpr()
2809 unsigned int err_mask; in ata_dev_configure() local
2980 err_mask = ata_dev_set_feature(dev, in ata_dev_configure()
2982 if (err_mask) in ata_dev_configure()
2985 err_mask); in ata_dev_configure()
3340 unsigned int err_mask = 0; in ata_dev_set_mode() local
3354 err_mask = ata_dev_set_xfermode(dev); in ata_dev_set_mode()
3357 if (err_mask & ~AC_ERR_DEV) in ata_dev_set_mode()
3393 if (err_mask & AC_ERR_DEV) { in ata_dev_set_mode()
3412 ata_dev_err(dev, "failed to set xfermode (err_mask=0x%x)\n", err_mask); in ata_dev_set_mode()
4498 unsigned int err_mask; in ata_dev_init_params() local
4514 err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); in ata_dev_init_params()
4518 if (err_mask == AC_ERR_DEV && (tf.error & ATA_ABORTED)) in ata_dev_init_params()
4519 err_mask = 0; in ata_dev_init_params()
4521 return err_mask; in ata_dev_init_params()
4810 if (unlikely(qc->err_mask)) in ata_qc_complete()
4976 qc->err_mask |= ap->ops->qc_prep(qc); in ata_qc_issue()
4977 if (unlikely(qc->err_mask)) in ata_qc_issue()
4982 qc->err_mask |= ap->ops->qc_issue(qc); in ata_qc_issue()
4983 if (unlikely(qc->err_mask)) in ata_qc_issue()
4988 qc->err_mask |= AC_ERR_SYSTEM; in ata_qc_issue()