Lines Matching refs:stpg
2166 struct srpt_tpg *stpg;
2324 list_for_each_entry(stpg, &sport->guid_id->tpg_list, entry) {
2327 ch->sess = target_setup_session(&stpg->tpg, tag_num,
2336 list_for_each_entry(stpg, &sport->gid_id->tpg_list, entry) {
2339 ch->sess = target_setup_session(&stpg->tpg, tag_num,
2345 ch->sess = target_setup_session(&stpg->tpg, tag_num,
3329 struct srpt_tpg *stpg = container_of(tpg, typeof(*stpg), tpg);
3331 return stpg->sport_id->name;
3735 struct srpt_tpg *stpg;
3738 stpg = kzalloc(sizeof(*stpg), GFP_KERNEL);
3739 if (!stpg)
3741 stpg->sport_id = sport_id;
3742 res = core_tpg_register(wwn, &stpg->tpg, SCSI_PROTOCOL_SRP);
3744 kfree(stpg);
3749 list_add_tail(&stpg->entry, &sport_id->tpg_list);
3752 return &stpg->tpg;
3761 struct srpt_tpg *stpg = container_of(tpg, typeof(*stpg), tpg);
3762 struct srpt_port_id *sport_id = stpg->sport_id;
3766 list_del(&stpg->entry);
3771 kfree(stpg);