Lines Matching refs:stpg
2154 struct srpt_tpg *stpg; in srpt_cm_req_recv() local
2312 list_for_each_entry(stpg, &sport->guid_id->tpg_list, entry) { in srpt_cm_req_recv()
2315 ch->sess = target_setup_session(&stpg->tpg, tag_num, in srpt_cm_req_recv()
2324 list_for_each_entry(stpg, &sport->gid_id->tpg_list, entry) { in srpt_cm_req_recv()
2327 ch->sess = target_setup_session(&stpg->tpg, tag_num, in srpt_cm_req_recv()
2333 ch->sess = target_setup_session(&stpg->tpg, tag_num, in srpt_cm_req_recv()
3323 struct srpt_tpg *stpg = container_of(tpg, typeof(*stpg), tpg); in srpt_get_fabric_wwn() local
3325 return stpg->sport_id->name; in srpt_get_fabric_wwn()
3782 struct srpt_tpg *stpg; in srpt_make_tpg() local
3785 stpg = kzalloc(sizeof(*stpg), GFP_KERNEL); in srpt_make_tpg()
3786 if (!stpg) in srpt_make_tpg()
3788 stpg->sport_id = sport_id; in srpt_make_tpg()
3789 res = core_tpg_register(wwn, &stpg->tpg, SCSI_PROTOCOL_SRP); in srpt_make_tpg()
3791 kfree(stpg); in srpt_make_tpg()
3796 list_add_tail(&stpg->entry, &sport_id->tpg_list); in srpt_make_tpg()
3799 return &stpg->tpg; in srpt_make_tpg()
3808 struct srpt_tpg *stpg = container_of(tpg, typeof(*stpg), tpg); in srpt_drop_tpg() local
3809 struct srpt_port_id *sport_id = stpg->sport_id; in srpt_drop_tpg()
3813 list_del(&stpg->entry); in srpt_drop_tpg()
3818 kfree(stpg); in srpt_drop_tpg()