Lines Matching refs:hba

750 struct se_device *target_alloc_device(struct se_hba *hba, const char *name)  in target_alloc_device()  argument
755 dev = hba->backend->ops->alloc_device(hba, name); in target_alloc_device()
760 dev->se_hba = hba; in target_alloc_device()
761 dev->transport = hba->backend->ops; in target_alloc_device()
763 dev->hba_index = hba->hba_index; in target_alloc_device()
874 struct se_hba *hba = dev->se_hba; in target_configure_device() local
939 spin_lock(&hba->device_lock); in target_configure_device()
940 hba->dev_count++; in target_configure_device()
941 spin_unlock(&hba->device_lock); in target_configure_device()
960 struct se_hba *hba = dev->se_hba; in target_free_device() local
971 spin_lock(&hba->device_lock); in target_free_device()
972 hba->dev_count--; in target_free_device()
973 spin_unlock(&hba->device_lock); in target_free_device()
989 struct se_hba *hba; in core_dev_setup_virtual_lun0() local
994 hba = core_alloc_hba("rd_mcp", 0, HBA_FLAGS_INTERNAL_USE); in core_dev_setup_virtual_lun0()
995 if (IS_ERR(hba)) in core_dev_setup_virtual_lun0()
996 return PTR_ERR(hba); in core_dev_setup_virtual_lun0()
998 dev = target_alloc_device(hba, "virt_lun0"); in core_dev_setup_virtual_lun0()
1004 hba->backend->ops->set_configfs_dev_params(dev, buf, sizeof(buf)); in core_dev_setup_virtual_lun0()
1010 lun0_hba = hba; in core_dev_setup_virtual_lun0()
1017 core_delete_hba(hba); in core_dev_setup_virtual_lun0()
1024 struct se_hba *hba = lun0_hba; in core_dev_release_virtual_lun0() local
1026 if (!hba) in core_dev_release_virtual_lun0()
1031 core_delete_hba(hba); in core_dev_release_virtual_lun0()