Lines Matching defs:tf
161 struct target_fabric_configfs *tf;
167 list_for_each_entry(tf, &g_tf_list, tf_list) {
168 const char *cmp_name = tf->tf_ops->fabric_alias;
170 cmp_name = tf->tf_ops->fabric_name;
172 atomic_inc(&tf->tf_access_cnt);
174 return tf;
189 struct target_fabric_configfs *tf;
195 tf = target_core_get_fabric(name);
196 if (!tf) {
239 tf = target_core_get_fabric(name);
242 if (!tf) {
248 " %s\n", tf->tf_ops->fabric_name);
251 * struct target_fabric_configfs *tf will contain a usage reference.
254 &tf->tf_wwn_cit);
256 config_group_init_type_name(&tf->tf_group, name, &tf->tf_wwn_cit);
258 config_group_init_type_name(&tf->tf_disc_group, "discovery_auth",
259 &tf->tf_discovery_cit);
260 configfs_add_default_group(&tf->tf_disc_group, &tf->tf_group);
263 config_item_name(&tf->tf_group.cg_item));
264 return &tf->tf_group;
274 struct target_fabric_configfs *tf = container_of(
278 " tf list\n", config_item_name(item));
281 " %s\n", tf->tf_ops->fabric_name);
282 atomic_dec(&tf->tf_access_cnt);
287 configfs_remove_default_groups(&tf->tf_group);
471 struct target_fabric_configfs *tf;
478 tf = kzalloc(sizeof(struct target_fabric_configfs), GFP_KERNEL);
479 if (!tf) {
485 kfree(tf);
492 INIT_LIST_HEAD(&tf->tf_list);
493 atomic_set(&tf->tf_access_cnt, 0);
494 tf->tf_ops = tfo;
495 target_fabric_setup_cits(tf);
498 list_add_tail(&tf->tf_list, &g_tf_list);