Lines Matching refs:parent
285 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
311 sdev->sdev_gendev.parent = get_device(&starget->dev);
392 struct Scsi_Host *shost = dev_to_shost(dev->parent);
408 struct device *parent = dev->parent;
412 put_device(parent);
426 static struct scsi_target *__scsi_find_target(struct device *parent,
430 struct Scsi_Host *shost = dev_to_shost(parent);
481 * @parent: parent of the target (need not be a scsi host)
491 static struct scsi_target *scsi_alloc_target(struct device *parent,
494 struct Scsi_Host *shost = dev_to_shost(parent);
511 dev->parent = get_device(parent);
527 found_target = __scsi_find_target(parent, channel, id);
1164 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
1312 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
1576 struct device *parent = &shost->shost_gendev;
1582 starget = scsi_alloc_target(parent, channel, id);
1662 static void __scsi_scan_target(struct device *parent, unsigned int channel,
1665 struct Scsi_Host *shost = dev_to_shost(parent);
1676 starget = scsi_alloc_target(parent, channel, id);
1717 * @parent: host to scan
1727 * Scan the target id on @parent, @channel, and @id. Scan at least LUN 0,
1733 void scsi_scan_target(struct device *parent, unsigned int channel,
1736 struct Scsi_Host *shost = dev_to_shost(parent);
1750 __scsi_scan_target(parent, channel, id, lun, rescan);