Lines Matching refs:sas_host
228 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_host_setup() local
230 INIT_LIST_HEAD(&sas_host->rphy_list); in sas_host_setup()
231 mutex_init(&sas_host->lock); in sas_host_setup()
232 sas_host->next_target_id = 0; in sas_host_setup()
233 sas_host->next_expander_id = 0; in sas_host_setup()
234 sas_host->next_port_id = 0; in sas_host_setup()
923 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_port_alloc_num() local
926 mutex_lock(&sas_host->lock); in sas_port_alloc_num()
933 index = sas_host->next_port_id++; in sas_port_alloc_num()
934 mutex_unlock(&sas_host->lock); in sas_port_alloc_num()
1484 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_expander_alloc() local
1497 mutex_lock(&sas_host->lock); in sas_expander_alloc()
1498 rdev->rphy.scsi_target_id = sas_host->next_expander_id++; in sas_expander_alloc()
1499 mutex_unlock(&sas_host->lock); in sas_expander_alloc()
1520 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_add() local
1537 mutex_lock(&sas_host->lock); in sas_rphy_add()
1538 list_add_tail(&rphy->list, &sas_host->rphy_list); in sas_rphy_add()
1542 rphy->scsi_target_id = sas_host->next_target_id++; in sas_rphy_add()
1545 mutex_unlock(&sas_host->lock); in sas_rphy_add()
1579 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_free() local
1581 mutex_lock(&sas_host->lock); in sas_rphy_free()
1583 mutex_unlock(&sas_host->lock); in sas_rphy_free()
1672 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_user_scan() local
1675 mutex_lock(&sas_host->lock); in sas_user_scan()
1676 list_for_each_entry(rphy, &sas_host->rphy_list, list) { in sas_user_scan()
1687 mutex_unlock(&sas_host->lock); in sas_user_scan()