• Home
  • Raw
  • Download

Lines Matching refs:tf

44 static void target_fabric_setup_##_name##_cit(struct target_fabric_configfs *tf) \
46 struct config_item_type *cit = &tf->tf_##_name##_cit; \
51 cit->ct_owner = tf->tf_ops->module; \
56 static void target_fabric_setup_##_name##_cit(struct target_fabric_configfs *tf) \
58 struct config_item_type *cit = &tf->tf_##_name##_cit; \
59 struct configfs_attribute **attrs = tf->tf_ops->tfc_##_name##_attrs; \
64 cit->ct_owner = tf->tf_ops->module; \
275 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; in target_fabric_make_mappedlun() local
312 &tf->tf_tpg_mappedlun_cit); in target_fabric_make_mappedlun()
315 "statistics", &tf->tf_tpg_mappedlun_stat_cit); in target_fabric_make_mappedlun()
382 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; in target_fabric_make_nodeacl() local
390 &tf->tf_tpg_nacl_base_cit); in target_fabric_make_nodeacl()
393 &tf->tf_tpg_nacl_attrib_cit); in target_fabric_make_nodeacl()
398 &tf->tf_tpg_nacl_auth_cit); in target_fabric_make_nodeacl()
403 &tf->tf_tpg_nacl_param_cit); in target_fabric_make_nodeacl()
408 "fabric_statistics", &tf->tf_tpg_nacl_stat_cit); in target_fabric_make_nodeacl()
412 if (tf->tf_ops->fabric_init_nodeacl) { in target_fabric_make_nodeacl()
413 int ret = tf->tf_ops->fabric_init_nodeacl(se_nacl, name); in target_fabric_make_nodeacl()
455 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; in target_fabric_np_base_release() local
457 tf->tf_ops->fabric_drop_np(se_tpg_np); in target_fabric_np_base_release()
476 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; in target_fabric_make_np() local
479 if (!tf->tf_ops->fabric_make_np) { in target_fabric_make_np()
484 se_tpg_np = tf->tf_ops->fabric_make_np(se_tpg, group, name); in target_fabric_make_np()
490 &tf->tf_tpg_np_base_cit); in target_fabric_make_np()
633 struct target_fabric_configfs *tf; in target_fabric_port_link() local
650 tf = se_tpg->se_tpg_wwn->wwn_tf; in target_fabric_port_link()
663 if (tf->tf_ops->fabric_post_link) { in target_fabric_port_link()
669 tf->tf_ops->fabric_post_link(se_tpg, lun); in target_fabric_port_link()
684 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; in target_fabric_port_unlink() local
686 if (tf->tf_ops->fabric_pre_unlink) { in target_fabric_port_unlink()
692 tf->tf_ops->fabric_pre_unlink(se_tpg, lun); in target_fabric_port_unlink()
751 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; in target_fabric_make_lun() local
769 &tf->tf_tpg_port_cit); in target_fabric_make_lun()
772 "statistics", &tf->tf_tpg_port_stat_cit); in target_fabric_make_lun()
814 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_tpg_release() local
816 tf->tf_ops->fabric_drop_tpg(se_tpg); in target_fabric_tpg_release()
834 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_make_tpg() local
837 if (!tf->tf_ops->fabric_make_tpg) { in target_fabric_make_tpg()
842 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, group, name); in target_fabric_make_tpg()
847 &tf->tf_tpg_base_cit); in target_fabric_make_tpg()
850 &tf->tf_tpg_lun_cit); in target_fabric_make_tpg()
855 &tf->tf_tpg_np_cit); in target_fabric_make_tpg()
860 &tf->tf_tpg_nacl_cit); in target_fabric_make_tpg()
865 &tf->tf_tpg_attrib_cit); in target_fabric_make_tpg()
870 &tf->tf_tpg_auth_cit); in target_fabric_make_tpg()
875 &tf->tf_tpg_param_cit); in target_fabric_make_tpg()
897 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_release_wwn() local
900 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn()
932 struct target_fabric_configfs *tf = container_of(group, in target_fabric_make_wwn() local
936 if (!tf->tf_ops->fabric_make_wwn) { in target_fabric_make_wwn()
941 wwn = tf->tf_ops->fabric_make_wwn(tf, group, name); in target_fabric_make_wwn()
945 wwn->wwn_tf = tf; in target_fabric_make_wwn()
947 config_group_init_type_name(&wwn->wwn_group, name, &tf->tf_tpg_cit); in target_fabric_make_wwn()
950 &tf->tf_wwn_fabric_stats_cit); in target_fabric_make_wwn()
953 if (tf->tf_ops->add_wwn_groups) in target_fabric_make_wwn()
954 tf->tf_ops->add_wwn_groups(wwn); in target_fabric_make_wwn()
977 int target_fabric_setup_cits(struct target_fabric_configfs *tf) in target_fabric_setup_cits() argument
979 target_fabric_setup_discovery_cit(tf); in target_fabric_setup_cits()
980 target_fabric_setup_wwn_cit(tf); in target_fabric_setup_cits()
981 target_fabric_setup_wwn_fabric_stats_cit(tf); in target_fabric_setup_cits()
982 target_fabric_setup_tpg_cit(tf); in target_fabric_setup_cits()
983 target_fabric_setup_tpg_base_cit(tf); in target_fabric_setup_cits()
984 target_fabric_setup_tpg_port_cit(tf); in target_fabric_setup_cits()
985 target_fabric_setup_tpg_port_stat_cit(tf); in target_fabric_setup_cits()
986 target_fabric_setup_tpg_lun_cit(tf); in target_fabric_setup_cits()
987 target_fabric_setup_tpg_np_cit(tf); in target_fabric_setup_cits()
988 target_fabric_setup_tpg_np_base_cit(tf); in target_fabric_setup_cits()
989 target_fabric_setup_tpg_attrib_cit(tf); in target_fabric_setup_cits()
990 target_fabric_setup_tpg_auth_cit(tf); in target_fabric_setup_cits()
991 target_fabric_setup_tpg_param_cit(tf); in target_fabric_setup_cits()
992 target_fabric_setup_tpg_nacl_cit(tf); in target_fabric_setup_cits()
993 target_fabric_setup_tpg_nacl_base_cit(tf); in target_fabric_setup_cits()
994 target_fabric_setup_tpg_nacl_attrib_cit(tf); in target_fabric_setup_cits()
995 target_fabric_setup_tpg_nacl_auth_cit(tf); in target_fabric_setup_cits()
996 target_fabric_setup_tpg_nacl_param_cit(tf); in target_fabric_setup_cits()
997 target_fabric_setup_tpg_nacl_stat_cit(tf); in target_fabric_setup_cits()
998 target_fabric_setup_tpg_mappedlun_cit(tf); in target_fabric_setup_cits()
999 target_fabric_setup_tpg_mappedlun_stat_cit(tf); in target_fabric_setup_cits()