Lines Matching refs:hba
579 struct se_hba *hba = dev->se_hba; in core_dev_export() local
588 spin_lock(&hba->device_lock); in core_dev_export()
590 spin_unlock(&hba->device_lock); in core_dev_export()
601 struct se_hba *hba = dev->se_hba; in core_dev_unexport() local
615 spin_lock(&hba->device_lock); in core_dev_unexport()
617 spin_unlock(&hba->device_lock); in core_dev_unexport()
1471 struct se_device *target_alloc_device(struct se_hba *hba, const char *name) in target_alloc_device() argument
1476 dev = hba->transport->alloc_device(hba, name); in target_alloc_device()
1481 dev->se_hba = hba; in target_alloc_device()
1482 dev->transport = hba->transport; in target_alloc_device()
1552 struct se_hba *hba = dev->se_hba; in target_configure_device() local
1617 spin_lock(&hba->device_lock); in target_configure_device()
1618 hba->dev_count++; in target_configure_device()
1619 spin_unlock(&hba->device_lock); in target_configure_device()
1638 struct se_hba *hba = dev->se_hba; in target_free_device() local
1649 spin_lock(&hba->device_lock); in target_free_device()
1650 hba->dev_count--; in target_free_device()
1651 spin_unlock(&hba->device_lock); in target_free_device()
1667 struct se_hba *hba; in core_dev_setup_virtual_lun0() local
1672 hba = core_alloc_hba("rd_mcp", 0, HBA_FLAGS_INTERNAL_USE); in core_dev_setup_virtual_lun0()
1673 if (IS_ERR(hba)) in core_dev_setup_virtual_lun0()
1674 return PTR_ERR(hba); in core_dev_setup_virtual_lun0()
1676 dev = target_alloc_device(hba, "virt_lun0"); in core_dev_setup_virtual_lun0()
1682 hba->transport->set_configfs_dev_params(dev, buf, sizeof(buf)); in core_dev_setup_virtual_lun0()
1688 lun0_hba = hba; in core_dev_setup_virtual_lun0()
1695 core_delete_hba(hba); in core_dev_setup_virtual_lun0()
1702 struct se_hba *hba = lun0_hba; in core_dev_release_virtual_lun0() local
1704 if (!hba) in core_dev_release_virtual_lun0()
1709 core_delete_hba(hba); in core_dev_release_virtual_lun0()