Lines Matching refs:se_tpg
130 struct se_portal_group se_tpg; member
297 static int vhost_scsi_check_true(struct se_portal_group *se_tpg) in vhost_scsi_check_true() argument
302 static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) in vhost_scsi_get_fabric_wwn() argument
304 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn()
305 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_fabric_wwn()
311 static u16 vhost_scsi_get_tpgt(struct se_portal_group *se_tpg) in vhost_scsi_get_tpgt() argument
313 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt()
314 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_tpgt()
318 static int vhost_scsi_check_prot_fabric_only(struct se_portal_group *se_tpg) in vhost_scsi_check_prot_fabric_only() argument
320 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_check_prot_fabric_only()
321 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_check_prot_fabric_only()
1669 struct se_portal_group *se_tpg; in vhost_scsi_set_endpoint() local
1723 se_tpg = &tpg->se_tpg; in vhost_scsi_set_endpoint()
1724 ret = target_depend_item(&se_tpg->tpg_group.cg_item); in vhost_scsi_set_endpoint()
1788 target_undepend_item(&tpg->se_tpg.tpg_group.cg_item); in vhost_scsi_set_endpoint()
1801 struct se_portal_group *se_tpg; in vhost_scsi_clear_endpoint() local
1881 se_tpg = &tpg->se_tpg; in vhost_scsi_clear_endpoint()
1882 target_undepend_item(&se_tpg->tpg_group.cg_item); in vhost_scsi_clear_endpoint()
2177 static int vhost_scsi_port_link(struct se_portal_group *se_tpg, in vhost_scsi_port_link() argument
2180 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_port_link()
2181 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_port_link()
2191 static void vhost_scsi_port_unlink(struct se_portal_group *se_tpg, in vhost_scsi_port_unlink() argument
2194 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_port_unlink()
2195 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_port_unlink()
2206 struct se_portal_group *se_tpg = attrib_to_tpg(item); in vhost_scsi_tpg_attrib_fabric_prot_type_store() local
2207 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_tpg_attrib_fabric_prot_type_store()
2208 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_tpg_attrib_fabric_prot_type_store()
2228 struct se_portal_group *se_tpg = attrib_to_tpg(item); in vhost_scsi_tpg_attrib_fabric_prot_type_show() local
2229 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_tpg_attrib_fabric_prot_type_show()
2230 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_tpg_attrib_fabric_prot_type_show()
2265 tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, 0, 0, in vhost_scsi_make_nexus()
2330 struct se_portal_group *se_tpg = to_tpg(item); in vhost_scsi_tpg_nexus_show() local
2331 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_tpg_nexus_show()
2332 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_tpg_nexus_show()
2352 struct se_portal_group *se_tpg = to_tpg(item); in vhost_scsi_tpg_nexus_store() local
2353 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_tpg_nexus_store()
2354 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_tpg_nexus_store()
2459 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in vhost_scsi_make_tpg()
2468 return &tpg->se_tpg; in vhost_scsi_make_tpg()
2471 static void vhost_scsi_drop_tpg(struct se_portal_group *se_tpg) in vhost_scsi_drop_tpg() argument
2473 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_drop_tpg()
2474 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_drop_tpg()
2486 core_tpg_deregister(se_tpg); in vhost_scsi_drop_tpg()