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
1264 static char *usbg_get_fabric_wwn(struct se_portal_group *se_tpg) in usbg_get_fabric_wwn() argument
1266 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_fabric_wwn()
1267 struct usbg_tpg, se_tpg); in usbg_get_fabric_wwn()
1273 static u16 usbg_get_tag(struct se_portal_group *se_tpg) in usbg_get_tag() argument
1275 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_tag()
1276 struct usbg_tpg, se_tpg); in usbg_get_tag()
1280 static u32 usbg_tpg_get_inst_index(struct se_portal_group *se_tpg) in usbg_tpg_get_inst_index() argument
1404 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); in usbg_make_tpg()
1412 return &tpg->se_tpg; in usbg_make_tpg()
1433 static void usbg_drop_tpg(struct se_portal_group *se_tpg) in usbg_drop_tpg() argument
1435 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_drop_tpg()
1436 struct usbg_tpg, se_tpg); in usbg_drop_tpg()
1441 core_tpg_deregister(se_tpg); in usbg_drop_tpg()
1511 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_enable_show() local
1512 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_enable_show()
1523 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_enable_store() local
1524 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_enable_store()
1549 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_nexus_show() local
1550 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_show()
1567 static int usbg_alloc_sess_cb(struct se_portal_group *se_tpg, in usbg_alloc_sess_cb() argument
1570 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_alloc_sess_cb()
1571 struct usbg_tpg, se_tpg); in usbg_alloc_sess_cb()
1595 tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, in tcm_usbg_make_nexus()
1654 struct se_portal_group *se_tpg = to_tpg(item); in tcm_usbg_tpg_nexus_store() local
1655 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_store()
1696 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link() argument
1698 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_link()
1705 static void usbg_port_unlink(struct se_portal_group *se_tpg, in usbg_port_unlink() argument
1708 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_unlink()