Lines Matching refs:hba
1279 struct se_hba *hba = dev->se_hba; in target_core_store_dev_alias() local
1298 config_item_name(&hba->hba_group.cg_item), in target_core_store_dev_alias()
1329 struct se_hba *hba = dev->se_hba; in target_core_store_dev_udev_path() local
1349 config_item_name(&hba->hba_group.cg_item), in target_core_store_dev_udev_path()
1431 struct se_hba *hba = dev->se_hba; in target_core_store_alua_lu_gp() local
1473 config_item_name(&hba->hba_group.cg_item), in target_core_store_alua_lu_gp()
1498 config_item_name(&hba->hba_group.cg_item), in target_core_store_alua_lu_gp()
1820 struct se_hba *hba; in target_core_alua_lu_gp_show_attr_members() local
1830 hba = dev->se_hba; in target_core_alua_lu_gp_show_attr_members()
1833 config_item_name(&hba->hba_group.cg_item), in target_core_alua_lu_gp_show_attr_members()
2531 struct se_hba *hba = item_to_hba(hba_ci); in target_core_make_subdev() local
2537 ret = mutex_lock_interruptible(&hba->hba_access_mutex); in target_core_make_subdev()
2543 t = hba->transport; in target_core_make_subdev()
2545 dev = target_alloc_device(hba, name); in target_core_make_subdev()
2607 mutex_unlock(&hba->hba_access_mutex); in target_core_make_subdev()
2619 mutex_unlock(&hba->hba_access_mutex); in target_core_make_subdev()
2630 struct se_hba *hba; in target_core_drop_subdev() local
2635 hba = item_to_hba(&dev->se_hba->hba_group.cg_item); in target_core_drop_subdev()
2637 mutex_lock(&hba->hba_access_mutex); in target_core_drop_subdev()
2669 mutex_unlock(&hba->hba_access_mutex); in target_core_drop_subdev()
2692 struct se_hba *hba, in target_core_hba_show_attr_hba_info() argument
2696 hba->hba_id, hba->transport->name, in target_core_hba_show_attr_hba_info()
2702 static ssize_t target_core_hba_show_attr_hba_mode(struct se_hba *hba, in target_core_hba_show_attr_hba_mode() argument
2707 if (hba->hba_flags & HBA_FLAGS_PSCSI_MODE) in target_core_hba_show_attr_hba_mode()
2713 static ssize_t target_core_hba_store_attr_hba_mode(struct se_hba *hba, in target_core_hba_store_attr_hba_mode() argument
2716 struct se_subsystem_api *transport = hba->transport; in target_core_hba_store_attr_hba_mode()
2729 if (hba->dev_count) { in target_core_hba_store_attr_hba_mode()
2734 ret = transport->pmode_enable_hba(hba, mode_flag); in target_core_hba_store_attr_hba_mode()
2738 hba->hba_flags |= HBA_FLAGS_PSCSI_MODE; in target_core_hba_store_attr_hba_mode()
2740 hba->hba_flags &= ~HBA_FLAGS_PSCSI_MODE; in target_core_hba_store_attr_hba_mode()
2751 struct se_hba *hba = container_of(to_config_group(item), in target_core_hba_release() local
2753 core_delete_hba(hba); in target_core_hba_release()
2780 struct se_hba *hba; in target_core_call_addhbatotarget() local
2825 hba = core_alloc_hba(se_plugin_str, plugin_dep_id, 0); in target_core_call_addhbatotarget()
2826 if (IS_ERR(hba)) in target_core_call_addhbatotarget()
2827 return ERR_CAST(hba); in target_core_call_addhbatotarget()
2829 config_group_init_type_name(&hba->hba_group, name, in target_core_call_addhbatotarget()
2832 return &hba->hba_group; in target_core_call_addhbatotarget()