Lines Matching refs:sas_host

204 	struct sas_host_attrs *sas_host = to_sas_host_attrs(shost);  in sas_host_release()  local
205 struct request_queue *q = sas_host->q; in sas_host_release()
284 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_host_setup() local
286 INIT_LIST_HEAD(&sas_host->rphy_list); in sas_host_setup()
287 mutex_init(&sas_host->lock); in sas_host_setup()
288 sas_host->next_target_id = 0; in sas_host_setup()
289 sas_host->next_expander_id = 0; in sas_host_setup()
290 sas_host->next_port_id = 0; in sas_host_setup()
954 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_port_alloc_num() local
957 mutex_lock(&sas_host->lock); in sas_port_alloc_num()
964 index = sas_host->next_port_id++; in sas_port_alloc_num()
965 mutex_unlock(&sas_host->lock); in sas_port_alloc_num()
1524 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_expander_alloc() local
1537 mutex_lock(&sas_host->lock); in sas_expander_alloc()
1538 rdev->rphy.scsi_target_id = sas_host->next_expander_id++; in sas_expander_alloc()
1539 mutex_unlock(&sas_host->lock); in sas_expander_alloc()
1560 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_add() local
1577 mutex_lock(&sas_host->lock); in sas_rphy_add()
1578 list_add_tail(&rphy->list, &sas_host->rphy_list); in sas_rphy_add()
1582 rphy->scsi_target_id = sas_host->next_target_id++; in sas_rphy_add()
1585 mutex_unlock(&sas_host->lock); in sas_rphy_add()
1618 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_rphy_free() local
1620 mutex_lock(&sas_host->lock); in sas_rphy_free()
1622 mutex_unlock(&sas_host->lock); in sas_rphy_free()
1710 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_user_scan() local
1713 mutex_lock(&sas_host->lock); in sas_user_scan()
1714 list_for_each_entry(rphy, &sas_host->rphy_list, list) { in sas_user_scan()
1725 mutex_unlock(&sas_host->lock); in sas_user_scan()