Lines Matching refs:shost

169 static void sas_smp_request(struct request_queue *q, struct Scsi_Host *shost,
179 handler = to_sas_internal(shost->transportt)->f->smp_handler;
180 ret = handler(shost, rphy, req);
202 struct Scsi_Host *shost = dev_to_shost(dev);
203 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
210 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy)
219 if (!to_sas_internal(shost->transportt)->f->smp_handler) {
220 printk("%s can't handle SMP requests\n", shost->hostt->name);
231 dev = &shost->shost_gendev;
233 "sas_host%d", shost->host_no);
249 to_sas_host_attrs(shost)->q = q;
254 q->queuedata = shost;
260 static void sas_bsg_remove(struct Scsi_Host *shost, struct sas_rphy *rphy)
267 q = to_sas_host_attrs(shost)->q;
282 struct Scsi_Host *shost = dev_to_shost(dev);
283 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
291 if (sas_bsg_initialize(shost, NULL))
293 shost->host_no);
301 struct Scsi_Host *shost = dev_to_shost(dev);
303 sas_bsg_remove(shost, NULL);
314 struct Scsi_Host *shost;
319 shost = dev_to_shost(dev);
321 if (!shost->transportt)
323 if (shost->transportt->host_attrs.ac.class !=
327 i = to_sas_internal(shost->transportt);
357 * @shost: Scsi Host that is torn down
362 void sas_remove_host(struct Scsi_Host *shost)
364 sas_remove_children(&shost->shost_gendev);
500 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
501 struct sas_internal *i = to_sas_internal(shost->transportt); \
532 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
533 struct sas_internal *i = to_sas_internal(shost->transportt); \
563 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
564 struct sas_internal *i = to_sas_internal(shost->transportt);
611 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
612 struct sas_internal *i = to_sas_internal(shost->transportt);
660 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
661 struct sas_internal *i = to_sas_internal(shost->transportt);
674 struct Scsi_Host *shost;
679 shost = dev_to_shost(dev->parent);
681 if (!shost->transportt)
683 if (shost->transportt->host_attrs.ac.class !=
687 i = to_sas_internal(shost->transportt);
694 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
695 struct sas_internal *i = to_sas_internal(shost->transportt);
717 struct Scsi_Host *shost = dev_to_shost(parent);
733 dev_set_name(&phy->dev, "phy-%d:%d:%d", shost->host_no,
736 dev_set_name(&phy->dev, "phy-%d:%d", shost->host_no, number);
840 struct Scsi_Host *shost;
845 shost = dev_to_shost(dev->parent);
847 if (!shost->transportt)
849 if (shost->transportt->host_attrs.ac.class !=
853 i = to_sas_internal(shost->transportt);
906 struct Scsi_Host *shost = dev_to_shost(parent);
925 dev_set_name(&port->dev, "port-%d:%d:%d", shost->host_no,
928 dev_set_name(&port->dev, "port-%d:%d", shost->host_no,
952 struct Scsi_Host *shost = dev_to_shost(parent);
953 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
1219 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
1220 struct sas_internal *i = to_sas_internal(shost->transportt);
1246 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
1247 struct sas_internal *i = to_sas_internal(shost->transportt);
1370 struct Scsi_Host *shost;
1375 shost = dev_to_shost(dev->parent->parent);
1377 if (!shost->transportt)
1379 if (shost->transportt->host_attrs.ac.class !=
1383 i = to_sas_internal(shost->transportt);
1390 struct Scsi_Host *shost;
1396 shost = dev_to_shost(dev->parent->parent);
1399 if (!shost->transportt)
1401 if (shost->transportt->host_attrs.ac.class !=
1405 i = to_sas_internal(shost->transportt);
1413 struct Scsi_Host *shost;
1419 shost = dev_to_shost(dev->parent->parent);
1422 if (!shost->transportt)
1424 if (shost->transportt->host_attrs.ac.class !=
1428 i = to_sas_internal(shost->transportt);
1481 struct Scsi_Host *shost = dev_to_shost(&parent->dev);
1495 shost->host_no, rphy->scsi_target_id,
1499 shost->host_no, parent->port_identifier);
1521 struct Scsi_Host *shost = dev_to_shost(&parent->dev);
1523 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
1540 shost->host_no, rdev->rphy.scsi_target_id);
1558 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent);
1559 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
1572 if (sas_bsg_initialize(shost, rphy))
1616 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent);
1617 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
1623 sas_bsg_remove(shost, rphy);
1707 static int sas_user_scan(struct Scsi_Host *shost, uint channel,
1710 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);