Lines Matching defs:shost
174 struct Scsi_Host *shost = dev_to_shost(job->dev);
186 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy);
190 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy)
194 if (!to_sas_internal(shost->transportt)->f->smp_handler) {
195 printk("%s can't handle SMP requests\n", shost->hostt->name);
208 snprintf(name, sizeof(name), "sas_host%d", shost->host_no);
209 q = bsg_setup_queue(&shost->shost_gendev, name,
213 to_sas_host_attrs(shost)->q = q;
226 struct Scsi_Host *shost = dev_to_shost(dev);
227 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
235 if (sas_bsg_initialize(shost, NULL))
237 shost->host_no);
245 struct Scsi_Host *shost = dev_to_shost(dev);
246 struct request_queue *q = to_sas_host_attrs(shost)->q;
258 struct Scsi_Host *shost;
263 shost = dev_to_shost(dev);
265 if (!shost->transportt)
267 if (shost->transportt->host_attrs.ac.class !=
271 i = to_sas_internal(shost->transportt);
301 * @shost: Scsi Host that is torn down
309 void sas_remove_host(struct Scsi_Host *shost)
311 sas_remove_children(&shost->shost_gendev);
312 scsi_remove_host(shost);
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);
529 struct sas_internal *i = to_sas_internal(shost->transportt);
576 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
577 struct sas_internal *i = to_sas_internal(shost->transportt);
624 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
625 struct sas_internal *i = to_sas_internal(shost->transportt);
638 struct Scsi_Host *shost;
643 shost = dev_to_shost(dev->parent);
645 if (!shost->transportt)
647 if (shost->transportt->host_attrs.ac.class !=
651 i = to_sas_internal(shost->transportt);
658 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
659 struct sas_internal *i = to_sas_internal(shost->transportt);
681 struct Scsi_Host *shost = dev_to_shost(parent);
697 dev_set_name(&phy->dev, "phy-%d:%d:%d", shost->host_no,
700 dev_set_name(&phy->dev, "phy-%d:%d", shost->host_no, number);
809 struct Scsi_Host *shost;
814 shost = dev_to_shost(dev->parent);
816 if (!shost->transportt)
818 if (shost->transportt->host_attrs.ac.class !=
822 i = to_sas_internal(shost->transportt);
875 struct Scsi_Host *shost = dev_to_shost(parent);
894 dev_set_name(&port->dev, "port-%d:%d:%d", shost->host_no,
897 dev_set_name(&port->dev, "port-%d:%d", shost->host_no,
921 struct Scsi_Host *shost = dev_to_shost(parent);
922 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
1188 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
1189 struct sas_internal *i = to_sas_internal(shost->transportt);
1208 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent);
1209 struct sas_internal *i = to_sas_internal(shost->transportt);
1329 struct Scsi_Host *shost;
1334 shost = dev_to_shost(dev->parent->parent);
1336 if (!shost->transportt)
1338 if (shost->transportt->host_attrs.ac.class !=
1342 i = to_sas_internal(shost->transportt);
1349 struct Scsi_Host *shost;
1355 shost = dev_to_shost(dev->parent->parent);
1358 if (!shost->transportt)
1360 if (shost->transportt->host_attrs.ac.class !=
1364 i = to_sas_internal(shost->transportt);
1372 struct Scsi_Host *shost;
1378 shost = dev_to_shost(dev->parent->parent);
1381 if (!shost->transportt)
1383 if (shost->transportt->host_attrs.ac.class !=
1387 i = to_sas_internal(shost->transportt);
1434 struct Scsi_Host *shost = dev_to_shost(&parent->dev);
1448 shost->host_no, rphy->scsi_target_id,
1452 shost->host_no, parent->port_identifier);
1474 struct Scsi_Host *shost = dev_to_shost(&parent->dev);
1476 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
1493 shost->host_no, rdev->rphy.scsi_target_id);
1511 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent);
1512 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
1525 if (sas_bsg_initialize(shost, rphy))
1570 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent);
1571 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);
1660 static int sas_user_scan(struct Scsi_Host *shost, uint channel,
1663 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);