• Home
  • Raw
  • Download

Lines Matching refs:shost

170 static void sas_smp_request(struct request_queue *q, struct Scsi_Host *shost,  in sas_smp_request()  argument
180 handler = to_sas_internal(shost->transportt)->f->smp_handler; in sas_smp_request()
181 ret = handler(shost, rphy, req); in sas_smp_request()
203 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_release() local
204 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_host_release()
211 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument
220 if (!to_sas_internal(shost->transportt)->f->smp_handler) { in sas_bsg_initialize()
221 printk("%s can't handle SMP requests\n", shost->hostt->name); in sas_bsg_initialize()
232 dev = &shost->shost_gendev; in sas_bsg_initialize()
234 "sas_host%d", shost->host_no); in sas_bsg_initialize()
250 to_sas_host_attrs(shost)->q = q; in sas_bsg_initialize()
255 q->queuedata = shost; in sas_bsg_initialize()
261 static void sas_bsg_remove(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_remove() argument
268 q = to_sas_host_attrs(shost)->q; in sas_bsg_remove()
283 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_setup() local
284 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_host_setup()
292 if (sas_bsg_initialize(shost, NULL)) in sas_host_setup()
294 shost->host_no); in sas_host_setup()
302 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_remove() local
304 sas_bsg_remove(shost, NULL); in sas_host_remove()
315 struct Scsi_Host *shost; in sas_host_match() local
320 shost = dev_to_shost(dev); in sas_host_match()
322 if (!shost->transportt) in sas_host_match()
324 if (shost->transportt->host_attrs.ac.class != in sas_host_match()
328 i = to_sas_internal(shost->transportt); in sas_host_match()
363 void sas_remove_host(struct Scsi_Host *shost) in sas_remove_host() argument
365 sas_remove_children(&shost->shost_gendev); in sas_remove_host()
501 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
502 struct sas_internal *i = to_sas_internal(shost->transportt); \
533 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
534 struct sas_internal *i = to_sas_internal(shost->transportt); \
564 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_enable() local
565 struct sas_internal *i = to_sas_internal(shost->transportt); in do_sas_phy_enable()
612 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in do_sas_phy_reset() local
613 struct sas_internal *i = to_sas_internal(shost->transportt); in do_sas_phy_reset()
661 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_setup() local
662 struct sas_internal *i = to_sas_internal(shost->transportt); in sas_phy_setup()
675 struct Scsi_Host *shost; in sas_phy_match() local
680 shost = dev_to_shost(dev->parent); in sas_phy_match()
682 if (!shost->transportt) in sas_phy_match()
684 if (shost->transportt->host_attrs.ac.class != in sas_phy_match()
688 i = to_sas_internal(shost->transportt); in sas_phy_match()
695 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_release() local
696 struct sas_internal *i = to_sas_internal(shost->transportt); in sas_phy_release()
718 struct Scsi_Host *shost = dev_to_shost(parent); in sas_phy_alloc() local
734 dev_set_name(&phy->dev, "phy-%d:%d:%d", shost->host_no, in sas_phy_alloc()
737 dev_set_name(&phy->dev, "phy-%d:%d", shost->host_no, number); in sas_phy_alloc()
841 struct Scsi_Host *shost; in sas_port_match() local
846 shost = dev_to_shost(dev->parent); in sas_port_match()
848 if (!shost->transportt) in sas_port_match()
850 if (shost->transportt->host_attrs.ac.class != in sas_port_match()
854 i = to_sas_internal(shost->transportt); in sas_port_match()
907 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc() local
926 dev_set_name(&port->dev, "port-%d:%d:%d", shost->host_no, in sas_port_alloc()
929 dev_set_name(&port->dev, "port-%d:%d", shost->host_no, in sas_port_alloc()
953 struct Scsi_Host *shost = dev_to_shost(parent); in sas_port_alloc_num() local
954 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_port_alloc_num()
1220 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_enclosure_identifier() local
1221 struct sas_internal *i = to_sas_internal(shost->transportt); in show_sas_rphy_enclosure_identifier()
1247 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in show_sas_rphy_bay_identifier() local
1248 struct sas_internal *i = to_sas_internal(shost->transportt); in show_sas_rphy_bay_identifier()
1371 struct Scsi_Host *shost; in sas_rphy_match() local
1376 shost = dev_to_shost(dev->parent->parent); in sas_rphy_match()
1378 if (!shost->transportt) in sas_rphy_match()
1380 if (shost->transportt->host_attrs.ac.class != in sas_rphy_match()
1384 i = to_sas_internal(shost->transportt); in sas_rphy_match()
1391 struct Scsi_Host *shost; in sas_end_dev_match() local
1397 shost = dev_to_shost(dev->parent->parent); in sas_end_dev_match()
1400 if (!shost->transportt) in sas_end_dev_match()
1402 if (shost->transportt->host_attrs.ac.class != in sas_end_dev_match()
1406 i = to_sas_internal(shost->transportt); in sas_end_dev_match()
1414 struct Scsi_Host *shost; in sas_expander_match() local
1420 shost = dev_to_shost(dev->parent->parent); in sas_expander_match()
1423 if (!shost->transportt) in sas_expander_match()
1425 if (shost->transportt->host_attrs.ac.class != in sas_expander_match()
1429 i = to_sas_internal(shost->transportt); in sas_expander_match()
1482 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_end_device_alloc() local
1496 shost->host_no, rphy->scsi_target_id, in sas_end_device_alloc()
1500 shost->host_no, parent->port_identifier); in sas_end_device_alloc()
1522 struct Scsi_Host *shost = dev_to_shost(&parent->dev); in sas_expander_alloc() local
1524 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_expander_alloc()
1541 shost->host_no, rdev->rphy.scsi_target_id); in sas_expander_alloc()
1559 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); in sas_rphy_add() local
1560 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_add()
1573 if (sas_bsg_initialize(shost, rphy)) in sas_rphy_add()
1617 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in sas_rphy_free() local
1618 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_free()
1624 sas_bsg_remove(shost, rphy); in sas_rphy_free()
1708 static int sas_user_scan(struct Scsi_Host *shost, uint channel, in sas_user_scan() argument
1711 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_user_scan()