Lines Matching refs:ata_dev

425 	struct ata_device *ata_dev;
427 ata_for_each_dev(ata_dev, link, ALL) {
428 ata_tdev_delete(ata_dev);
450 struct ata_device *ata_dev;
473 ata_for_each_dev(ata_dev, link, ALL) {
474 error = ata_tdev_add(ata_dev);
481 while (--ata_dev >= link->device) {
482 ata_tdev_delete(ata_dev);
502 struct ata_device *ata_dev = transport_class_to_dev(dev); \
504 return get_ata_##title##_names(ata_dev->field, buf); \
522 struct ata_device *ata_dev = transport_class_to_dev(dev); \
524 return scnprintf(buf, 20, format_string, cast ata_dev->field); \
558 struct ata_device *ata_dev = transport_class_to_dev(dev);
561 ata_ering_map(&ata_dev->ering, ata_show_ering, &arg);
572 struct ata_device *ata_dev = transport_class_to_dev(dev);
575 if (ata_dev->class == ATA_DEV_PMP)
579 ata_dev->id[i],
591 struct ata_device *ata_dev = transport_class_to_dev(dev);
594 if (ata_dev->class != ATA_DEV_PMP)
598 ata_dev->gscr[i],
612 struct ata_device *ata_dev = transport_class_to_dev(dev);
615 if (!ata_id_has_trim(ata_dev->id))
617 else if (ata_dev->horkage & ATA_HORKAGE_NOTRIM)
619 else if (ata_dev->horkage & ATA_HORKAGE_NO_NCQ_TRIM)
621 else if (ata_fpdma_dsm_supported(ata_dev))
677 * @ata_dev: ATA device to remove
681 static void ata_tdev_delete(struct ata_device *ata_dev)
683 struct device *dev = &ata_dev->tdev;
687 ata_tdev_free(ata_dev);
693 * @ata_dev: ata_dev structure.
700 static int ata_tdev_add(struct ata_device *ata_dev)
702 struct device *dev = &ata_dev->tdev;
703 struct ata_link *link = ata_dev->link;
711 dev_set_name(dev, "dev%d.%d", ap->print_id,ata_dev->devno);
716 ata_acpi_bind_dev(ata_dev);
719 ata_tdev_free(ata_dev);
726 ata_tdev_free(ata_dev);