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, NULL, 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()
228 struct device *dma_dev = shost->dma_dev; in sas_host_setup()
236 if (sas_bsg_initialize(shost, NULL)) in sas_host_setup()
238 shost->host_no); in sas_host_setup()
241 shost->opt_sectors = min_t(unsigned int, shost->max_sectors, in sas_host_setup()
251 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_remove() local
252 struct request_queue *q = to_sas_host_attrs(shost)->q; in sas_host_remove()
264 struct Scsi_Host *shost; in sas_host_match() local
269 shost = dev_to_shost(dev); in sas_host_match()
271 if (!shost->transportt) in sas_host_match()
273 if (shost->transportt->host_attrs.ac.class != in sas_host_match()
277 i = to_sas_internal(shost->transportt); in sas_host_match()
315 void sas_remove_host(struct Scsi_Host *shost) in sas_remove_host() argument
317 sas_remove_children(&shost->shost_gendev); in sas_remove_host()
318 scsi_remove_host(shost); in sas_remove_host()
494 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
495 struct sas_internal *i = to_sas_internal(shost->transportt); \
526 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
527 struct sas_internal *i = to_sas_internal(shost->transportt); \
557 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_enable() local
558 struct sas_internal *i = to_sas_internal(shost->transportt); in do_sas_phy_enable()
605 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_reset() local
606 struct sas_internal *i = to_sas_internal(shost->transportt); in do_sas_phy_reset()
653 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_setup() local
654 struct sas_internal *i = to_sas_internal(shost->transportt); in sas_phy_setup()
667 struct Scsi_Host *shost; in sas_phy_match() local
672 shost = dev_to_shost(dev->parent); in sas_phy_match()
674 if (!shost->transportt) in sas_phy_match()
676 if (shost->transportt->host_attrs.ac.class != in sas_phy_match()
680 i = to_sas_internal(shost->transportt); in sas_phy_match()
687 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_release() local
688 struct sas_internal *i = to_sas_internal(shost->transportt); in sas_phy_release()
710 struct Scsi_Host *shost = dev_to_shost(parent); in sas_phy_alloc() local
726 dev_set_name(&phy->dev, "phy-%d:%d:%d", shost->host_no, in sas_phy_alloc()
729 dev_set_name(&phy->dev, "phy-%d:%d", shost->host_no, number); in sas_phy_alloc()
838 struct Scsi_Host *shost; in sas_port_match() local
843 shost = dev_to_shost(dev->parent); in sas_port_match()
845 if (!shost->transportt) in sas_port_match()
847 if (shost->transportt->host_attrs.ac.class != in sas_port_match()
851 i = to_sas_internal(shost->transportt); in sas_port_match()
905 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc() local
924 dev_set_name(&port->dev, "port-%d:%d:%d", shost->host_no, in sas_port_alloc()
927 dev_set_name(&port->dev, "port-%d:%d", shost->host_no, in sas_port_alloc()
952 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc_num() local
953 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_port_alloc_num()
1219 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_enclosure_identifier() local
1220 struct sas_internal *i = to_sas_internal(shost->transportt); in show_sas_rphy_enclosure_identifier()
1239 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_bay_identifier() local
1240 struct sas_internal *i = to_sas_internal(shost->transportt); in show_sas_rphy_bay_identifier()
1360 struct Scsi_Host *shost; in sas_rphy_match() local
1365 shost = dev_to_shost(dev->parent->parent); in sas_rphy_match()
1367 if (!shost->transportt) in sas_rphy_match()
1369 if (shost->transportt->host_attrs.ac.class != in sas_rphy_match()
1373 i = to_sas_internal(shost->transportt); in sas_rphy_match()
1380 struct Scsi_Host *shost; in sas_end_dev_match() local
1386 shost = dev_to_shost(dev->parent->parent); in sas_end_dev_match()
1389 if (!shost->transportt) in sas_end_dev_match()
1391 if (shost->transportt->host_attrs.ac.class != in sas_end_dev_match()
1395 i = to_sas_internal(shost->transportt); in sas_end_dev_match()
1403 struct Scsi_Host *shost; in sas_expander_match() local
1409 shost = dev_to_shost(dev->parent->parent); in sas_expander_match()
1412 if (!shost->transportt) in sas_expander_match()
1414 if (shost->transportt->host_attrs.ac.class != in sas_expander_match()
1418 i = to_sas_internal(shost->transportt); in sas_expander_match()
1465 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_end_device_alloc() local
1479 shost->host_no, rphy->scsi_target_id, in sas_end_device_alloc()
1483 shost->host_no, parent->port_identifier); in sas_end_device_alloc()
1505 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_expander_alloc() local
1507 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_expander_alloc()
1524 shost->host_no, rdev->rphy.scsi_target_id); in sas_expander_alloc()
1542 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); in sas_rphy_add() local
1543 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_add()
1556 if (sas_bsg_initialize(shost, rphy)) in sas_rphy_add()
1601 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in sas_rphy_free() local
1602 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_free()
1691 static int sas_user_scan(struct Scsi_Host *shost, uint channel, in sas_user_scan() argument
1694 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_user_scan()