Lines Matching refs:devno
342 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timeout()
367 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timed_out()
369 ehc->cmd_timeout_idx[dev->devno][ent]++; in ata_internal_cmd_timed_out()
433 return ehc->i.action | ehc->i.dev_action[dev->devno]; in ata_eh_dev_action()
444 ehi->dev_action[tdev->devno] &= ~action; in ata_eh_clear_action()
452 ehi->dev_action[tdev->devno] |= in ata_eh_clear_action()
458 ehi->dev_action[dev->devno] &= ~action; in ata_eh_clear_action()
705 int devno = dev->devno; in ata_scsi_port_error_handler() local
707 ehc->saved_xfer_mode[devno] = dev->xfer_mode; in ata_scsi_port_error_handler()
709 ehc->saved_ncq_enabled |= 1 << devno; in ata_scsi_port_error_handler()
714 ehc->i.dev_action[devno] |= ATA_EH_SET_ACTIVE; in ata_scsi_port_error_handler()
1273 ehc->saved_xfer_mode[dev->devno] = 0; in ata_eh_detach_dev()
1274 ehc->saved_ncq_enabled &= ~(1 << dev->devno); in ata_eh_detach_dev()
1300 trace_ata_eh_about_to_do(link, dev ? dev->devno : 0, action); in ata_eh_about_to_do()
1332 trace_ata_eh_done(link, dev ? dev->devno : 0, action); in ata_eh_done()
1965 if (!(ehc->i.dev_action[dev->devno] & ATA_EH_GET_SUCCESS_SENSE)) in ata_eh_get_success_sense()
2140 ehc->i.dev_action[ehc->i.dev->devno] |= in ata_eh_link_autopsy()
2551 classes[dev->devno] = ATA_DEV_UNKNOWN; in ata_do_reset()
2677 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2692 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2806 classes[dev->devno] = ATA_DEV_ATA; in ata_eh_reset()
2808 classes[dev->devno] = ATA_DEV_SEMB_UNSUP; in ata_eh_reset()
2855 if (classes[dev->devno] == ATA_DEV_UNKNOWN) { in ata_eh_reset()
2857 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2861 if (ata_class_enabled(classes[dev->devno])) in ata_eh_reset()
2864 classes[dev->devno]); in ata_eh_reset()
2865 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2866 } else if (classes[dev->devno] == ATA_DEV_UNKNOWN) { in ata_eh_reset()
2869 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
3000 link->eh_context.i.dev_action[dev->devno] |= in ata_eh_pull_park_action()
3001 ehi->dev_action[dev->devno] & ATA_EH_PARK; in ata_eh_pull_park_action()
3016 ehc->unloaded_mask |= 1 << dev->devno; in ata_eh_park_issue_cmd()
3023 ehc->unloaded_mask &= ~(1 << dev->devno); in ata_eh_park_issue_cmd()
3032 ehc->unloaded_mask &= ~(1 << dev->devno); in ata_eh_park_issue_cmd()
3092 rc = ata_dev_revalidate(dev, ehc->classes[dev->devno], in ata_eh_revalidate_and_attach()
3107 ehc->tries[dev->devno] && in ata_eh_revalidate_and_attach()
3108 ata_class_enabled(ehc->classes[dev->devno])) { in ata_eh_revalidate_and_attach()
3115 dev->class = ehc->classes[dev->devno]; in ata_eh_revalidate_and_attach()
3124 ehc->classes[dev->devno] = dev->class; in ata_eh_revalidate_and_attach()
3131 new_mask |= 1 << dev->devno; in ata_eh_revalidate_and_attach()
3157 if (!(new_mask & (1 << dev->devno))) in ata_eh_revalidate_and_attach()
3160 dev->class = ehc->classes[dev->devno]; in ata_eh_revalidate_and_attach()
3230 u8 saved_xfer_mode = ehc->saved_xfer_mode[dev->devno]; in ata_set_mode()
3231 u8 saved_ncq = !!(ehc->saved_ncq_enabled & (1 << dev->devno)); in ata_set_mode()
3490 if (!dev || ehc->tries[dev->devno] <= 2) { in ata_eh_set_lpm()
3546 ehc->classes[dev->devno] != ATA_DEV_NONE) in ata_eh_skip_recovery()
3573 if (!(ehc->i.probe_mask & (1 << dev->devno)) || in ata_eh_schedule_probe()
3574 (ehc->did_probe_mask & (1 << dev->devno))) in ata_eh_schedule_probe()
3579 ehc->did_probe_mask |= (1 << dev->devno); in ata_eh_schedule_probe()
3581 ehc->saved_xfer_mode[dev->devno] = 0; in ata_eh_schedule_probe()
3582 ehc->saved_ncq_enabled &= ~(1 << dev->devno); in ata_eh_schedule_probe()
3624 ehc->tries[dev->devno]--; in ata_eh_handle_dev_fail()
3629 ehc->i.probe_mask |= (1 << dev->devno); in ata_eh_handle_dev_fail()
3633 ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1); in ata_eh_handle_dev_fail()
3636 if (ehc->tries[dev->devno] == 1) { in ata_eh_handle_dev_fail()
3646 if (ata_dev_enabled(dev) && !ehc->tries[dev->devno]) { in ata_eh_handle_dev_fail()
3656 ehc->tries[dev->devno] = ATA_EH_DEV_TRIES; in ata_eh_handle_dev_fail()
3657 memset(ehc->cmd_timeout_idx[dev->devno], 0, in ata_eh_handle_dev_fail()
3658 sizeof(ehc->cmd_timeout_idx[dev->devno])); in ata_eh_handle_dev_fail()
3715 ehc->tries[dev->devno] = 1; in ata_eh_recover()
3717 ehc->tries[dev->devno] = ATA_EH_DEV_TRIES; in ata_eh_recover()
3720 ehc->i.action |= ehc->i.dev_action[dev->devno] & in ata_eh_recover()
3722 ehc->i.dev_action[dev->devno] &= ATA_EH_PERDEV_MASK; in ata_eh_recover()
3750 ehc->classes[dev->devno] = ATA_DEV_UNKNOWN; in ata_eh_recover()
3786 if (!(ehc->i.dev_action[dev->devno] & in ata_eh_recover()
3794 if (ehc->unloaded_mask & (1 << dev->devno)) in ata_eh_recover()
3813 (1 << dev->devno))) in ata_eh_recover()