Lines Matching refs:hba

1734 	struct se_hba *hba = dev->se_hba;  in target_dev_alias_store()  local
1753 config_item_name(&hba->hba_group.cg_item), in target_dev_alias_store()
1774 struct se_hba *hba = dev->se_hba; in target_dev_udev_path_store() local
1794 config_item_name(&hba->hba_group.cg_item), in target_dev_udev_path_store()
1856 struct se_hba *hba = dev->se_hba; in target_dev_alua_lu_gp_store() local
1898 config_item_name(&hba->hba_group.cg_item), in target_dev_alua_lu_gp_store()
1923 config_item_name(&hba->hba_group.cg_item), in target_dev_alua_lu_gp_store()
2182 struct se_hba *hba; in target_lu_gp_members_show() local
2192 hba = dev->se_hba; in target_lu_gp_members_show()
2195 config_item_name(&hba->hba_group.cg_item), in target_lu_gp_members_show()
2782 struct se_hba *hba = item_to_hba(hba_ci); in target_core_make_subdev() local
2783 struct target_backend *tb = hba->backend; in target_core_make_subdev()
2789 ret = mutex_lock_interruptible(&hba->hba_access_mutex); in target_core_make_subdev()
2793 dev = target_alloc_device(hba, name); in target_core_make_subdev()
2855 mutex_unlock(&hba->hba_access_mutex); in target_core_make_subdev()
2867 mutex_unlock(&hba->hba_access_mutex); in target_core_make_subdev()
2878 struct se_hba *hba; in target_core_drop_subdev() local
2883 hba = item_to_hba(&dev->se_hba->hba_group.cg_item); in target_core_drop_subdev()
2885 mutex_lock(&hba->hba_access_mutex); in target_core_drop_subdev()
2917 mutex_unlock(&hba->hba_access_mutex); in target_core_drop_subdev()
2933 struct se_hba *hba = to_hba(item); in target_hba_info_show() local
2936 hba->hba_id, hba->backend->ops->name, in target_hba_info_show()
2942 struct se_hba *hba = to_hba(item); in target_hba_mode_show() local
2945 if (hba->hba_flags & HBA_FLAGS_PSCSI_MODE) in target_hba_mode_show()
2954 struct se_hba *hba = to_hba(item); in target_hba_mode_store() local
2958 if (hba->backend->ops->pmode_enable_hba == NULL) in target_hba_mode_store()
2967 if (hba->dev_count) { in target_hba_mode_store()
2972 ret = hba->backend->ops->pmode_enable_hba(hba, mode_flag); in target_hba_mode_store()
2976 hba->hba_flags |= HBA_FLAGS_PSCSI_MODE; in target_hba_mode_store()
2978 hba->hba_flags &= ~HBA_FLAGS_PSCSI_MODE; in target_hba_mode_store()
2988 struct se_hba *hba = container_of(to_config_group(item), in target_core_hba_release() local
2990 core_delete_hba(hba); in target_core_hba_release()
3015 struct se_hba *hba; in target_core_call_addhbatotarget() local
3060 hba = core_alloc_hba(se_plugin_str, plugin_dep_id, 0); in target_core_call_addhbatotarget()
3061 if (IS_ERR(hba)) in target_core_call_addhbatotarget()
3062 return ERR_CAST(hba); in target_core_call_addhbatotarget()
3064 config_group_init_type_name(&hba->hba_group, name, in target_core_call_addhbatotarget()
3067 return &hba->hba_group; in target_core_call_addhbatotarget()