Lines Matching full:sas_host
210 snprintf(name, sizeof(name), "sas_host%d", shost->host_no); in sas_bsg_initialize()
229 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_host_setup() local
232 INIT_LIST_HEAD(&sas_host->rphy_list); in sas_host_setup()
233 mutex_init(&sas_host->lock); in sas_host_setup()
234 sas_host->next_target_id = 0; in sas_host_setup()
235 sas_host->next_expander_id = 0; in sas_host_setup()
236 sas_host->next_port_id = 0; in sas_host_setup()
261 "sas_host", sas_host_setup, sas_host_remove, NULL);
955 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_port_alloc_num() local
958 mutex_lock(&sas_host->lock); in sas_port_alloc_num()
965 index = sas_host->next_port_id++; in sas_port_alloc_num()
966 mutex_unlock(&sas_host->lock); in sas_port_alloc_num()
1509 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_expander_alloc() local
1522 mutex_lock(&sas_host->lock); in sas_expander_alloc()
1523 rdev->rphy.scsi_target_id = sas_host->next_expander_id++; in sas_expander_alloc()
1524 mutex_unlock(&sas_host->lock); in sas_expander_alloc()
1545 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_add() local
1562 mutex_lock(&sas_host->lock); in sas_rphy_add()
1563 list_add_tail(&rphy->list, &sas_host->rphy_list); in sas_rphy_add()
1567 rphy->scsi_target_id = sas_host->next_target_id++; in sas_rphy_add()
1570 mutex_unlock(&sas_host->lock); in sas_rphy_add()
1604 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_free() local
1606 mutex_lock(&sas_host->lock); in sas_rphy_free()
1608 mutex_unlock(&sas_host->lock); in sas_rphy_free()
1690 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in scan_channel_zero() local
1693 list_for_each_entry(rphy, &sas_host->rphy_list, list) { in scan_channel_zero()
1712 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_user_scan() local
1718 mutex_lock(&sas_host->lock); in sas_user_scan()
1720 mutex_unlock(&sas_host->lock); in sas_user_scan()
1724 mutex_lock(&sas_host->lock); in sas_user_scan()
1726 mutex_unlock(&sas_host->lock); in sas_user_scan()