Lines Matching refs:tf

105 	struct target_fabric_configfs *tf;  in target_core_get_fabric()  local
111 list_for_each_entry(tf, &g_tf_list, tf_list) { in target_core_get_fabric()
112 if (!strcmp(tf->tf_ops->name, name)) { in target_core_get_fabric()
113 atomic_inc(&tf->tf_access_cnt); in target_core_get_fabric()
115 return tf; in target_core_get_fabric()
130 struct target_fabric_configfs *tf; in target_core_register_fabric() local
136 tf = target_core_get_fabric(name); in target_core_register_fabric()
137 if (!tf) { in target_core_register_fabric()
180 tf = target_core_get_fabric(name); in target_core_register_fabric()
183 if (!tf) { in target_core_register_fabric()
189 " %s\n", tf->tf_ops->name); in target_core_register_fabric()
195 &tf->tf_wwn_cit); in target_core_register_fabric()
197 tf->tf_group.default_groups = tf->tf_default_groups; in target_core_register_fabric()
198 tf->tf_group.default_groups[0] = &tf->tf_disc_group; in target_core_register_fabric()
199 tf->tf_group.default_groups[1] = NULL; in target_core_register_fabric()
201 config_group_init_type_name(&tf->tf_group, name, &tf->tf_wwn_cit); in target_core_register_fabric()
202 config_group_init_type_name(&tf->tf_disc_group, "discovery_auth", in target_core_register_fabric()
203 &tf->tf_discovery_cit); in target_core_register_fabric()
206 " %s\n", tf->tf_group.cg_item.ci_name); in target_core_register_fabric()
207 return &tf->tf_group; in target_core_register_fabric()
217 struct target_fabric_configfs *tf = container_of( in target_core_deregister_fabric() local
227 " %s\n", tf->tf_ops->name); in target_core_deregister_fabric()
228 atomic_dec(&tf->tf_access_cnt); in target_core_deregister_fabric()
233 tf_group = &tf->tf_group; in target_core_deregister_fabric()
407 struct target_fabric_configfs *tf; in target_register_template() local
414 tf = kzalloc(sizeof(struct target_fabric_configfs), GFP_KERNEL); in target_register_template()
415 if (!tf) { in target_register_template()
420 INIT_LIST_HEAD(&tf->tf_list); in target_register_template()
421 atomic_set(&tf->tf_access_cnt, 0); in target_register_template()
422 tf->tf_ops = fo; in target_register_template()
423 target_fabric_setup_cits(tf); in target_register_template()
426 list_add_tail(&tf->tf_list, &g_tf_list); in target_register_template()