Lines Matching refs:wwn
808 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in target_fabric_tpg_release() local
809 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_tpg_release()
828 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); in target_fabric_make_tpg() local
829 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_make_tpg()
837 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, name); in target_fabric_make_tpg()
890 struct se_wwn *wwn = container_of(to_config_group(item), in target_fabric_release_wwn() local
892 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_release_wwn()
894 configfs_remove_default_groups(&wwn->fabric_stat_group); in target_fabric_release_wwn()
895 configfs_remove_default_groups(&wwn->param_group); in target_fabric_release_wwn()
896 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn()
926 struct se_wwn *wwn = container_of(to_config_group(item), struct se_wwn, in target_fabric_wwn_cmd_completion_affinity_show() local
929 wwn->cmd_compl_affinity == WORK_CPU_UNBOUND ? in target_fabric_wwn_cmd_completion_affinity_show()
930 SE_COMPL_AFFINITY_CURR_CPU : wwn->cmd_compl_affinity); in target_fabric_wwn_cmd_completion_affinity_show()
937 struct se_wwn *wwn = container_of(to_config_group(item), struct se_wwn, in target_fabric_wwn_cmd_completion_affinity_store() local
946 wwn->cmd_compl_affinity = compl_val; in target_fabric_wwn_cmd_completion_affinity_store()
949 wwn->cmd_compl_affinity = WORK_CPU_UNBOUND; in target_fabric_wwn_cmd_completion_affinity_store()
959 wwn->cmd_compl_affinity = compl_val; in target_fabric_wwn_cmd_completion_affinity_store()
981 struct se_wwn *wwn; in target_fabric_make_wwn() local
988 wwn = tf->tf_ops->fabric_make_wwn(tf, group, name); in target_fabric_make_wwn()
989 if (!wwn || IS_ERR(wwn)) in target_fabric_make_wwn()
992 wwn->cmd_compl_affinity = SE_COMPL_AFFINITY_CPUID; in target_fabric_make_wwn()
993 wwn->wwn_tf = tf; in target_fabric_make_wwn()
995 config_group_init_type_name(&wwn->wwn_group, name, &tf->tf_tpg_cit); in target_fabric_make_wwn()
997 config_group_init_type_name(&wwn->fabric_stat_group, "fabric_statistics", in target_fabric_make_wwn()
999 configfs_add_default_group(&wwn->fabric_stat_group, &wwn->wwn_group); in target_fabric_make_wwn()
1001 config_group_init_type_name(&wwn->param_group, "param", in target_fabric_make_wwn()
1003 configfs_add_default_group(&wwn->param_group, &wwn->wwn_group); in target_fabric_make_wwn()
1006 tf->tf_ops->add_wwn_groups(wwn); in target_fabric_make_wwn()
1007 return &wwn->wwn_group; in target_fabric_make_wwn()
1014 struct se_wwn *wwn = container_of(to_config_group(item), in target_fabric_drop_wwn() local
1017 configfs_remove_default_groups(&wwn->wwn_group); in target_fabric_drop_wwn()
1026 TF_CIT_SETUP_DRV(wwn, NULL, &target_fabric_wwn_group_ops);