Lines Matching refs:parent

501 	struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);	\
533 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
564 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_enable()
612 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_reset()
661 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_setup()
680 shost = dev_to_shost(dev->parent); in sas_phy_match()
695 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_release()
700 put_device(dev->parent); in sas_phy_release()
716 struct sas_phy *sas_phy_alloc(struct device *parent, int number) in sas_phy_alloc() argument
718 struct Scsi_Host *shost = dev_to_shost(parent); in sas_phy_alloc()
729 phy->dev.parent = get_device(parent); in sas_phy_alloc()
732 if (scsi_is_sas_expander_device(parent)) { in sas_phy_alloc()
733 struct sas_rphy *rphy = dev_to_rphy(parent); in sas_phy_alloc()
846 shost = dev_to_shost(dev->parent); in sas_port_match()
865 put_device(dev->parent); in sas_port_release()
905 struct sas_port *sas_port_alloc(struct device *parent, int port_id) in sas_port_alloc() argument
907 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc()
918 port->dev.parent = get_device(parent); in sas_port_alloc()
924 if (scsi_is_sas_expander_device(parent)) { in sas_port_alloc()
925 struct sas_rphy *rphy = dev_to_rphy(parent); in sas_port_alloc()
950 struct sas_port *sas_port_alloc_num(struct device *parent) in sas_port_alloc_num() argument
953 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc_num()
958 if (scsi_is_sas_expander_device(parent)) { in sas_port_alloc_num()
959 struct sas_rphy *rphy = dev_to_rphy(parent); in sas_port_alloc_num()
966 return sas_port_alloc(parent, index); in sas_port_alloc_num()
1038 struct device *parent = port->dev.parent; in sas_port_delete() local
1040 sysfs_remove_link(&port->dev.kobj, dev_name(parent)); in sas_port_delete()
1146 struct device *parent = port->dev.parent->parent->parent; in sas_port_mark_backlink() local
1151 res = sysfs_create_link(&port->dev.kobj, &parent->kobj, in sas_port_mark_backlink()
1152 dev_name(parent)); in sas_port_mark_backlink()
1219 struct sas_phy *phy = dev_to_phy(rphy->dev.parent); in show_sas_rphy_enclosure_identifier()
1220 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_enclosure_identifier()
1246 struct sas_phy *phy = dev_to_phy(rphy->dev.parent); in show_sas_rphy_bay_identifier()
1247 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_bay_identifier()
1376 shost = dev_to_shost(dev->parent->parent); in sas_rphy_match()
1397 shost = dev_to_shost(dev->parent->parent); in sas_end_dev_match()
1420 shost = dev_to_shost(dev->parent->parent); in sas_expander_match()
1443 put_device(dev->parent); in sas_expander_release()
1455 put_device(dev->parent); in sas_end_device_release()
1480 struct sas_rphy *sas_end_device_alloc(struct sas_port *parent) in sas_end_device_alloc() argument
1482 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_end_device_alloc()
1491 rdev->rphy.dev.parent = get_device(&parent->dev); in sas_end_device_alloc()
1493 if (scsi_is_sas_expander_device(parent->dev.parent)) { in sas_end_device_alloc()
1494 struct sas_rphy *rphy = dev_to_rphy(parent->dev.parent); in sas_end_device_alloc()
1497 parent->port_identifier); in sas_end_device_alloc()
1500 shost->host_no, parent->port_identifier); in sas_end_device_alloc()
1519 struct sas_rphy *sas_expander_alloc(struct sas_port *parent, in sas_expander_alloc() argument
1522 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_expander_alloc()
1535 rdev->rphy.dev.parent = get_device(&parent->dev); in sas_expander_alloc()
1558 struct sas_port *parent = dev_to_sas_port(rphy->dev.parent); in sas_rphy_add() local
1559 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); in sas_rphy_add()
1564 if (parent->rphy) in sas_rphy_add()
1566 parent->rphy = rphy; in sas_rphy_add()
1617 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in sas_rphy_free()
1652 struct sas_port *parent = dev_to_sas_port(rphy->dev.parent); in sas_rphy_unlink() local
1654 parent->rphy = NULL; in sas_rphy_unlink()