Lines Matching refs:se_tpg

162 static char *tcm_qla2xxx_get_fabric_wwn(struct se_portal_group *se_tpg)  in tcm_qla2xxx_get_fabric_wwn()  argument
164 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_wwn()
165 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_fabric_wwn()
171 static u16 tcm_qla2xxx_get_tag(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_tag() argument
173 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_tag()
174 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_tag()
178 static int tcm_qla2xxx_check_demo_mode(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode() argument
180 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode()
181 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode()
186 static int tcm_qla2xxx_check_demo_mode_cache(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_cache() argument
188 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_cache()
189 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_cache()
194 static int tcm_qla2xxx_check_demo_write_protect(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_write_protect() argument
196 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_write_protect()
197 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_write_protect()
202 static int tcm_qla2xxx_check_prod_write_protect(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_prod_write_protect() argument
204 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_prod_write_protect()
205 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_prod_write_protect()
210 static int tcm_qla2xxx_check_demo_mode_login_only(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_login_only() argument
212 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_login_only()
213 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_login_only()
218 static int tcm_qla2xxx_check_prot_fabric_only(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_prot_fabric_only() argument
220 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_prot_fabric_only()
221 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_prot_fabric_only()
226 static u32 tcm_qla2xxx_tpg_get_inst_index(struct se_portal_group *se_tpg) in tcm_qla2xxx_tpg_get_inst_index() argument
228 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_get_inst_index()
229 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_get_inst_index()
451 struct se_portal_group *se_tpg; in tcm_qla2xxx_handle_cmd() local
475 se_tpg = se_sess->se_tpg; in tcm_qla2xxx_handle_cmd()
476 tpg = container_of(se_tpg, struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_handle_cmd()
781 struct se_portal_group *se_tpg = se_nacl->se_tpg; in tcm_qla2xxx_clear_nacl_from_fcport_map() local
782 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_clear_nacl_from_fcport_map()
845 struct se_portal_group *se_tpg = attrib_to_tpg(item); \
846 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \
847 struct tcm_qla2xxx_tpg, se_tpg); \
855 struct se_portal_group *se_tpg = attrib_to_tpg(item); \
856 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \
857 struct tcm_qla2xxx_tpg, se_tpg); \
906 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_enable_show() local
907 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_enable_show()
908 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_enable_show()
917 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_enable_store() local
918 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_tpg_enable_store()
922 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_enable_store()
923 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_enable_store()
963 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_fabric_prot_type_store() local
964 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_fabric_prot_type_store()
965 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_fabric_prot_type_store()
985 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_fabric_prot_type_show() local
986 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_fabric_prot_type_show()
987 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_fabric_prot_type_show()
1039 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in tcm_qla2xxx_make_tpg()
1047 return &tpg->se_tpg; in tcm_qla2xxx_make_tpg()
1050 static void tcm_qla2xxx_drop_tpg(struct se_portal_group *se_tpg) in tcm_qla2xxx_drop_tpg() argument
1052 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_drop_tpg()
1053 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_drop_tpg()
1063 core_tpg_deregister(se_tpg); in tcm_qla2xxx_drop_tpg()
1080 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_npiv_tpg_enable_store() local
1081 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_npiv_tpg_enable_store()
1085 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_npiv_tpg_enable_store()
1086 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_npiv_tpg_enable_store()
1155 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in tcm_qla2xxx_npiv_make_tpg()
1161 return &tpg->se_tpg; in tcm_qla2xxx_npiv_make_tpg()
1413 static int tcm_qla2xxx_session_cb(struct se_portal_group *se_tpg, in tcm_qla2xxx_session_cb() argument
1416 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_session_cb()
1417 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_session_cb()
1482 se_sess = target_setup_session(&tpg->se_tpg, num_tags, in tcm_qla2xxx_check_initiator_node_acl()