• Home
  • Raw
  • Download

Lines Matching refs:devno

338 	idx = ehc->cmd_timeout_idx[dev->devno][ent];  in ata_internal_cmd_timeout()
363 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timed_out()
365 ehc->cmd_timeout_idx[dev->devno][ent]++; in ata_internal_cmd_timed_out()
429 return ehc->i.action | ehc->i.dev_action[dev->devno]; in ata_eh_dev_action()
440 ehi->dev_action[tdev->devno] &= ~action; in ata_eh_clear_action()
448 ehi->dev_action[tdev->devno] |= in ata_eh_clear_action()
454 ehi->dev_action[dev->devno] &= ~action; in ata_eh_clear_action()
686 int devno = dev->devno; in ata_scsi_port_error_handler() local
688 ehc->saved_xfer_mode[devno] = dev->xfer_mode; in ata_scsi_port_error_handler()
690 ehc->saved_ncq_enabled |= 1 << devno; in ata_scsi_port_error_handler()
1263 ehc->saved_xfer_mode[dev->devno] = 0; in ata_eh_detach_dev()
1264 ehc->saved_ncq_enabled &= ~(1 << dev->devno); in ata_eh_detach_dev()
2018 ehc->i.dev_action[ehc->i.dev->devno] |= in ata_eh_link_autopsy()
2434 classes[dev->devno] = ATA_DEV_UNKNOWN; in ata_do_reset()
2560 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2575 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2678 classes[dev->devno] = ATA_DEV_ATA; in ata_eh_reset()
2680 classes[dev->devno] = ATA_DEV_SEMB_UNSUP; in ata_eh_reset()
2727 if (classes[dev->devno] == ATA_DEV_UNKNOWN) { in ata_eh_reset()
2729 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2733 if (ata_class_enabled(classes[dev->devno])) in ata_eh_reset()
2736 classes[dev->devno]); in ata_eh_reset()
2737 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2738 } else if (classes[dev->devno] == ATA_DEV_UNKNOWN) { in ata_eh_reset()
2741 classes[dev->devno] = ATA_DEV_NONE; in ata_eh_reset()
2872 link->eh_context.i.dev_action[dev->devno] |= in ata_eh_pull_park_action()
2873 ehi->dev_action[dev->devno] & ATA_EH_PARK; in ata_eh_pull_park_action()
2888 ehc->unloaded_mask |= 1 << dev->devno; in ata_eh_park_issue_cmd()
2895 ehc->unloaded_mask &= ~(1 << dev->devno); in ata_eh_park_issue_cmd()
2904 ehc->unloaded_mask &= ~(1 << dev->devno); in ata_eh_park_issue_cmd()
2940 rc = ata_dev_revalidate(dev, ehc->classes[dev->devno], in ata_eh_revalidate_and_attach()
2955 ehc->tries[dev->devno] && in ata_eh_revalidate_and_attach()
2956 ata_class_enabled(ehc->classes[dev->devno])) { in ata_eh_revalidate_and_attach()
2963 dev->class = ehc->classes[dev->devno]; in ata_eh_revalidate_and_attach()
2972 ehc->classes[dev->devno] = dev->class; in ata_eh_revalidate_and_attach()
2979 new_mask |= 1 << dev->devno; in ata_eh_revalidate_and_attach()
3005 if (!(new_mask & (1 << dev->devno))) in ata_eh_revalidate_and_attach()
3008 dev->class = ehc->classes[dev->devno]; in ata_eh_revalidate_and_attach()
3078 u8 saved_xfer_mode = ehc->saved_xfer_mode[dev->devno]; in ata_set_mode()
3079 u8 saved_ncq = !!(ehc->saved_ncq_enabled & (1 << dev->devno)); in ata_set_mode()
3338 if (!dev || ehc->tries[dev->devno] <= 2) { in ata_eh_set_lpm()
3394 ehc->classes[dev->devno] != ATA_DEV_NONE) in ata_eh_skip_recovery()
3421 if (!(ehc->i.probe_mask & (1 << dev->devno)) || in ata_eh_schedule_probe()
3422 (ehc->did_probe_mask & (1 << dev->devno))) in ata_eh_schedule_probe()
3427 ehc->did_probe_mask |= (1 << dev->devno); in ata_eh_schedule_probe()
3429 ehc->saved_xfer_mode[dev->devno] = 0; in ata_eh_schedule_probe()
3430 ehc->saved_ncq_enabled &= ~(1 << dev->devno); in ata_eh_schedule_probe()
3472 ehc->tries[dev->devno]--; in ata_eh_handle_dev_fail()
3477 ehc->i.probe_mask |= (1 << dev->devno); in ata_eh_handle_dev_fail()
3481 ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1); in ata_eh_handle_dev_fail()
3484 if (ehc->tries[dev->devno] == 1) { in ata_eh_handle_dev_fail()
3494 if (ata_dev_enabled(dev) && !ehc->tries[dev->devno]) { in ata_eh_handle_dev_fail()
3504 ehc->tries[dev->devno] = ATA_EH_DEV_TRIES; in ata_eh_handle_dev_fail()
3505 memset(ehc->cmd_timeout_idx[dev->devno], 0, in ata_eh_handle_dev_fail()
3506 sizeof(ehc->cmd_timeout_idx[dev->devno])); in ata_eh_handle_dev_fail()
3565 ehc->tries[dev->devno] = 1; in ata_eh_recover()
3567 ehc->tries[dev->devno] = ATA_EH_DEV_TRIES; in ata_eh_recover()
3570 ehc->i.action |= ehc->i.dev_action[dev->devno] & in ata_eh_recover()
3572 ehc->i.dev_action[dev->devno] &= ATA_EH_PERDEV_MASK; in ata_eh_recover()
3600 ehc->classes[dev->devno] = ATA_DEV_UNKNOWN; in ata_eh_recover()
3636 if (!(ehc->i.dev_action[dev->devno] & in ata_eh_recover()
3644 if (ehc->unloaded_mask & (1 << dev->devno)) in ata_eh_recover()
3663 (1 << dev->devno))) in ata_eh_recover()