Lines Matching refs:se_tpg
1054 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in usbg_cmd_work()
1185 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in bot_cmd_work()
1255 static int usbg_check_true(struct se_portal_group *se_tpg) in usbg_check_true() argument
1260 static int usbg_check_false(struct se_portal_group *se_tpg) in usbg_check_false() argument
1265 static char *usbg_get_fabric_wwn(struct se_portal_group *se_tpg) in usbg_get_fabric_wwn() argument
1267 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_fabric_wwn()
1268 struct usbg_tpg, se_tpg); in usbg_get_fabric_wwn()
1274 static u16 usbg_get_tag(struct se_portal_group *se_tpg) in usbg_get_tag() argument
1276 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_tag()
1277 struct usbg_tpg, se_tpg); in usbg_get_tag()
1281 static u32 usbg_tpg_get_inst_index(struct se_portal_group *se_tpg) in usbg_tpg_get_inst_index() argument
1397 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); in usbg_make_tpg()
1405 return &tpg->se_tpg; in usbg_make_tpg()
1426 static void usbg_drop_tpg(struct se_portal_group *se_tpg) in usbg_drop_tpg() argument
1428 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_drop_tpg()
1429 struct usbg_tpg, se_tpg); in usbg_drop_tpg()
1434 core_tpg_deregister(se_tpg); in usbg_drop_tpg()
1504 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_enable_show() local
1505 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_enable_show()
1516 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_enable_store() local
1517 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_enable_store()
1542 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_nexus_show() local
1543 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_show()
1560 static int usbg_alloc_sess_cb(struct se_portal_group *se_tpg, in usbg_alloc_sess_cb() argument
1563 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_alloc_sess_cb()
1564 struct usbg_tpg, se_tpg); in usbg_alloc_sess_cb()
1588 tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, in tcm_usbg_make_nexus()
1647 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_nexus_store() local
1648 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_store()
1689 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link() argument
1691 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_link()
1698 static void usbg_port_unlink(struct se_portal_group *se_tpg, in usbg_port_unlink() argument
1701 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_unlink()