Lines Matching refs:se_tpg
1054 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in usbg_cmd_work()
1183 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in bot_cmd_work()
1251 static int usbg_check_true(struct se_portal_group *se_tpg) in usbg_check_true() argument
1256 static int usbg_check_false(struct se_portal_group *se_tpg) in usbg_check_false() argument
1261 static char *usbg_get_fabric_wwn(struct se_portal_group *se_tpg) in usbg_get_fabric_wwn() argument
1263 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_fabric_wwn()
1264 struct usbg_tpg, se_tpg); in usbg_get_fabric_wwn()
1270 static u16 usbg_get_tag(struct se_portal_group *se_tpg) in usbg_get_tag() argument
1272 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_tag()
1273 struct usbg_tpg, se_tpg); in usbg_get_tag()
1277 static u32 usbg_tpg_get_inst_index(struct se_portal_group *se_tpg) in usbg_tpg_get_inst_index() argument
1393 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); in usbg_make_tpg()
1401 return &tpg->se_tpg; in usbg_make_tpg()
1422 static void usbg_drop_tpg(struct se_portal_group *se_tpg) in usbg_drop_tpg() argument
1424 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_drop_tpg()
1425 struct usbg_tpg, se_tpg); in usbg_drop_tpg()
1430 core_tpg_deregister(se_tpg); in usbg_drop_tpg()
1500 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_enable_show() local
1501 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_enable_show()
1512 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_enable_store() local
1513 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_enable_store()
1538 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_nexus_show() local
1539 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_show()
1556 static int usbg_alloc_sess_cb(struct se_portal_group *se_tpg, in usbg_alloc_sess_cb() argument
1559 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_alloc_sess_cb()
1560 struct usbg_tpg, se_tpg); in usbg_alloc_sess_cb()
1584 tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, in tcm_usbg_make_nexus()
1643 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_nexus_store() local
1644 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_store()
1685 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link() argument
1687 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_link()
1694 static void usbg_port_unlink(struct se_portal_group *se_tpg, in usbg_port_unlink() argument
1697 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_unlink()