Lines Matching refs:se_tpg
1050 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in usbg_cmd_work()
1180 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in bot_cmd_work()
1249 static int usbg_check_true(struct se_portal_group *se_tpg) in usbg_check_true() argument
1254 static int usbg_check_false(struct se_portal_group *se_tpg) in usbg_check_false() argument
1259 static char *usbg_get_fabric_wwn(struct se_portal_group *se_tpg) in usbg_get_fabric_wwn() argument
1261 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_fabric_wwn()
1262 struct usbg_tpg, se_tpg); in usbg_get_fabric_wwn()
1268 static u16 usbg_get_tag(struct se_portal_group *se_tpg) in usbg_get_tag() argument
1270 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_tag()
1271 struct usbg_tpg, se_tpg); in usbg_get_tag()
1275 static u32 usbg_tpg_get_inst_index(struct se_portal_group *se_tpg) in usbg_tpg_get_inst_index() argument
1391 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); in usbg_make_tpg()
1399 return &tpg->se_tpg; in usbg_make_tpg()
1420 static void usbg_drop_tpg(struct se_portal_group *se_tpg) in usbg_drop_tpg() argument
1422 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_drop_tpg()
1423 struct usbg_tpg, se_tpg); in usbg_drop_tpg()
1428 core_tpg_deregister(se_tpg); in usbg_drop_tpg()
1498 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_enable_show() local
1499 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_enable_show()
1510 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_enable_store() local
1511 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_enable_store()
1536 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_nexus_show() local
1537 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_show()
1554 static int usbg_alloc_sess_cb(struct se_portal_group *se_tpg, in usbg_alloc_sess_cb() argument
1557 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_alloc_sess_cb()
1558 struct usbg_tpg, se_tpg); in usbg_alloc_sess_cb()
1582 tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, in tcm_usbg_make_nexus()
1641 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_nexus_store() local
1642 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_store()
1683 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link() argument
1685 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_link()
1692 static void usbg_port_unlink(struct se_portal_group *se_tpg, in usbg_port_unlink() argument
1695 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_unlink()