Lines Matching refs:parent
220 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
246 sdev->sdev_gendev.parent = get_device(&starget->dev);
310 struct Scsi_Host *shost = dev_to_shost(dev->parent);
326 struct device *parent = dev->parent;
330 put_device(parent);
344 static struct scsi_target *__scsi_find_target(struct device *parent,
348 struct Scsi_Host *shost = dev_to_shost(parent);
399 * @parent: parent of the target (need not be a scsi host)
409 static struct scsi_target *scsi_alloc_target(struct device *parent,
412 struct Scsi_Host *shost = dev_to_shost(parent);
429 dev->parent = get_device(parent);
444 found_target = __scsi_find_target(parent, channel, id);
1053 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
1202 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
1463 struct device *parent = &shost->shost_gendev;
1469 starget = scsi_alloc_target(parent, channel, id);
1530 static void __scsi_scan_target(struct device *parent, unsigned int channel,
1533 struct Scsi_Host *shost = dev_to_shost(parent);
1544 starget = scsi_alloc_target(parent, channel, id);
1585 * @parent: host to scan
1595 * Scan the target id on @parent, @channel, and @id. Scan at least LUN 0,
1601 void scsi_scan_target(struct device *parent, unsigned int channel,
1604 struct Scsi_Host *shost = dev_to_shost(parent);
1618 __scsi_scan_target(parent, channel, id, lun, rescan);