Lines Matching refs:shost
175 struct Scsi_Host *shost = dev_to_shost(job->dev); in sas_smp_dispatch() local
187 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); in sas_smp_dispatch()
191 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument
195 if (!to_sas_internal(shost->transportt)->f->smp_handler) { in sas_bsg_initialize()
196 printk("%s can't handle SMP requests\n", shost->hostt->name); in sas_bsg_initialize()
209 snprintf(name, sizeof(name), "sas_host%d", shost->host_no); in sas_bsg_initialize()
210 q = bsg_setup_queue(&shost->shost_gendev, name, in sas_bsg_initialize()
214 to_sas_host_attrs(shost)->q = q; in sas_bsg_initialize()
227 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_setup() local
228 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_host_setup()
236 if (sas_bsg_initialize(shost, NULL)) in sas_host_setup()
238 shost->host_no); in sas_host_setup()
246 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_remove() local
247 struct request_queue *q = to_sas_host_attrs(shost)->q; in sas_host_remove()
259 struct Scsi_Host *shost; in sas_host_match() local
264 shost = dev_to_shost(dev); in sas_host_match()
266 if (!shost->transportt) in sas_host_match()
268 if (shost->transportt->host_attrs.ac.class != in sas_host_match()
272 i = to_sas_internal(shost->transportt); in sas_host_match()
310 void sas_remove_host(struct Scsi_Host *shost) in sas_remove_host() argument
312 sas_remove_children(&shost->shost_gendev); in sas_remove_host()
313 scsi_remove_host(shost); in sas_remove_host()
466 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
467 struct sas_internal *i = to_sas_internal(shost->transportt); \
498 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
499 struct sas_internal *i = to_sas_internal(shost->transportt); \
529 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_enable() local
530 struct sas_internal *i = to_sas_internal(shost->transportt); in do_sas_phy_enable()
577 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_reset() local
578 struct sas_internal *i = to_sas_internal(shost->transportt); in do_sas_phy_reset()
625 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_setup() local
626 struct sas_internal *i = to_sas_internal(shost->transportt); in sas_phy_setup()
639 struct Scsi_Host *shost; in sas_phy_match() local
644 shost = dev_to_shost(dev->parent); in sas_phy_match()
646 if (!shost->transportt) in sas_phy_match()
648 if (shost->transportt->host_attrs.ac.class != in sas_phy_match()
652 i = to_sas_internal(shost->transportt); in sas_phy_match()
659 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_release() local
660 struct sas_internal *i = to_sas_internal(shost->transportt); in sas_phy_release()
682 struct Scsi_Host *shost = dev_to_shost(parent); in sas_phy_alloc() local
698 dev_set_name(&phy->dev, "phy-%d:%d:%d", shost->host_no, in sas_phy_alloc()
701 dev_set_name(&phy->dev, "phy-%d:%d", shost->host_no, number); in sas_phy_alloc()
805 struct Scsi_Host *shost; in sas_port_match() local
810 shost = dev_to_shost(dev->parent); in sas_port_match()
812 if (!shost->transportt) in sas_port_match()
814 if (shost->transportt->host_attrs.ac.class != in sas_port_match()
818 i = to_sas_internal(shost->transportt); in sas_port_match()
871 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc() local
890 dev_set_name(&port->dev, "port-%d:%d:%d", shost->host_no, in sas_port_alloc()
893 dev_set_name(&port->dev, "port-%d:%d", shost->host_no, in sas_port_alloc()
917 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc_num() local
918 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_port_alloc_num()
1184 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_enclosure_identifier() local
1185 struct sas_internal *i = to_sas_internal(shost->transportt); in show_sas_rphy_enclosure_identifier()
1204 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_bay_identifier() local
1205 struct sas_internal *i = to_sas_internal(shost->transportt); in show_sas_rphy_bay_identifier()
1325 struct Scsi_Host *shost; in sas_rphy_match() local
1330 shost = dev_to_shost(dev->parent->parent); in sas_rphy_match()
1332 if (!shost->transportt) in sas_rphy_match()
1334 if (shost->transportt->host_attrs.ac.class != in sas_rphy_match()
1338 i = to_sas_internal(shost->transportt); in sas_rphy_match()
1345 struct Scsi_Host *shost; in sas_end_dev_match() local
1351 shost = dev_to_shost(dev->parent->parent); in sas_end_dev_match()
1354 if (!shost->transportt) in sas_end_dev_match()
1356 if (shost->transportt->host_attrs.ac.class != in sas_end_dev_match()
1360 i = to_sas_internal(shost->transportt); in sas_end_dev_match()
1368 struct Scsi_Host *shost; in sas_expander_match() local
1374 shost = dev_to_shost(dev->parent->parent); in sas_expander_match()
1377 if (!shost->transportt) in sas_expander_match()
1379 if (shost->transportt->host_attrs.ac.class != in sas_expander_match()
1383 i = to_sas_internal(shost->transportt); in sas_expander_match()
1430 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_end_device_alloc() local
1444 shost->host_no, rphy->scsi_target_id, in sas_end_device_alloc()
1448 shost->host_no, parent->port_identifier); in sas_end_device_alloc()
1470 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_expander_alloc() local
1472 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_expander_alloc()
1489 shost->host_no, rdev->rphy.scsi_target_id); in sas_expander_alloc()
1507 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); in sas_rphy_add() local
1508 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_add()
1521 if (sas_bsg_initialize(shost, rphy)) in sas_rphy_add()
1566 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in sas_rphy_free() local
1567 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_free()
1656 static int sas_user_scan(struct Scsi_Host *shost, uint channel, in sas_user_scan() argument
1659 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_user_scan()