Lines Matching refs:shost
174 struct Scsi_Host *shost = dev_to_shost(job->dev); in sas_smp_dispatch() local
186 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); in sas_smp_dispatch()
190 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument
194 if (!to_sas_internal(shost->transportt)->f->smp_handler) { in sas_bsg_initialize()
195 printk("%s can't handle SMP requests\n", shost->hostt->name); in sas_bsg_initialize()
208 snprintf(name, sizeof(name), "sas_host%d", shost->host_no); in sas_bsg_initialize()
209 q = bsg_setup_queue(&shost->shost_gendev, name, in sas_bsg_initialize()
213 to_sas_host_attrs(shost)->q = q; in sas_bsg_initialize()
226 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_setup() local
227 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_host_setup()
235 if (sas_bsg_initialize(shost, NULL)) in sas_host_setup()
237 shost->host_no); in sas_host_setup()
245 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_remove() local
246 struct request_queue *q = to_sas_host_attrs(shost)->q; in sas_host_remove()
258 struct Scsi_Host *shost; in sas_host_match() local
263 shost = dev_to_shost(dev); in sas_host_match()
265 if (!shost->transportt) in sas_host_match()
267 if (shost->transportt->host_attrs.ac.class != in sas_host_match()
271 i = to_sas_internal(shost->transportt); in sas_host_match()
309 void sas_remove_host(struct Scsi_Host *shost) in sas_remove_host() argument
311 sas_remove_children(&shost->shost_gendev); in sas_remove_host()
312 scsi_remove_host(shost); in sas_remove_host()
465 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
466 struct sas_internal *i = to_sas_internal(shost->transportt); \
497 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
498 struct sas_internal *i = to_sas_internal(shost->transportt); \
528 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_enable() local
529 struct sas_internal *i = to_sas_internal(shost->transportt); in do_sas_phy_enable()
576 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_reset() local
577 struct sas_internal *i = to_sas_internal(shost->transportt); in do_sas_phy_reset()
624 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_setup() local
625 struct sas_internal *i = to_sas_internal(shost->transportt); in sas_phy_setup()
638 struct Scsi_Host *shost; in sas_phy_match() local
643 shost = dev_to_shost(dev->parent); in sas_phy_match()
645 if (!shost->transportt) in sas_phy_match()
647 if (shost->transportt->host_attrs.ac.class != in sas_phy_match()
651 i = to_sas_internal(shost->transportt); in sas_phy_match()
658 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_release() local
659 struct sas_internal *i = to_sas_internal(shost->transportt); in sas_phy_release()
681 struct Scsi_Host *shost = dev_to_shost(parent); in sas_phy_alloc() local
697 dev_set_name(&phy->dev, "phy-%d:%d:%d", shost->host_no, in sas_phy_alloc()
700 dev_set_name(&phy->dev, "phy-%d:%d", shost->host_no, number); in sas_phy_alloc()
809 struct Scsi_Host *shost; in sas_port_match() local
814 shost = dev_to_shost(dev->parent); in sas_port_match()
816 if (!shost->transportt) in sas_port_match()
818 if (shost->transportt->host_attrs.ac.class != in sas_port_match()
822 i = to_sas_internal(shost->transportt); in sas_port_match()
875 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc() local
894 dev_set_name(&port->dev, "port-%d:%d:%d", shost->host_no, in sas_port_alloc()
897 dev_set_name(&port->dev, "port-%d:%d", shost->host_no, in sas_port_alloc()
921 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc_num() local
922 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_port_alloc_num()
1188 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_enclosure_identifier() local
1189 struct sas_internal *i = to_sas_internal(shost->transportt); in show_sas_rphy_enclosure_identifier()
1208 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_bay_identifier() local
1209 struct sas_internal *i = to_sas_internal(shost->transportt); in show_sas_rphy_bay_identifier()
1329 struct Scsi_Host *shost; in sas_rphy_match() local
1334 shost = dev_to_shost(dev->parent->parent); in sas_rphy_match()
1336 if (!shost->transportt) in sas_rphy_match()
1338 if (shost->transportt->host_attrs.ac.class != in sas_rphy_match()
1342 i = to_sas_internal(shost->transportt); in sas_rphy_match()
1349 struct Scsi_Host *shost; in sas_end_dev_match() local
1355 shost = dev_to_shost(dev->parent->parent); in sas_end_dev_match()
1358 if (!shost->transportt) in sas_end_dev_match()
1360 if (shost->transportt->host_attrs.ac.class != in sas_end_dev_match()
1364 i = to_sas_internal(shost->transportt); in sas_end_dev_match()
1372 struct Scsi_Host *shost; in sas_expander_match() local
1378 shost = dev_to_shost(dev->parent->parent); in sas_expander_match()
1381 if (!shost->transportt) in sas_expander_match()
1383 if (shost->transportt->host_attrs.ac.class != in sas_expander_match()
1387 i = to_sas_internal(shost->transportt); in sas_expander_match()
1434 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_end_device_alloc() local
1448 shost->host_no, rphy->scsi_target_id, in sas_end_device_alloc()
1452 shost->host_no, parent->port_identifier); in sas_end_device_alloc()
1474 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_expander_alloc() local
1476 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_expander_alloc()
1493 shost->host_no, rdev->rphy.scsi_target_id); in sas_expander_alloc()
1511 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); in sas_rphy_add() local
1512 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_add()
1525 if (sas_bsg_initialize(shost, rphy)) in sas_rphy_add()
1570 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in sas_rphy_free() local
1571 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_free()
1660 static int sas_user_scan(struct Scsi_Host *shost, uint channel, in sas_user_scan() argument
1663 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_user_scan()