Lines Matching refs:stpg
2157 struct srpt_tpg *stpg;
2315 list_for_each_entry(stpg, &sport->guid_id->tpg_list, entry) {
2318 ch->sess = target_setup_session(&stpg->tpg, tag_num,
2327 list_for_each_entry(stpg, &sport->gid_id->tpg_list, entry) {
2330 ch->sess = target_setup_session(&stpg->tpg, tag_num,
2336 ch->sess = target_setup_session(&stpg->tpg, tag_num,
3325 struct srpt_tpg *stpg = container_of(tpg, typeof(*stpg), tpg);
3327 return stpg->sport_id->name;
3784 struct srpt_tpg *stpg;
3787 stpg = kzalloc(sizeof(*stpg), GFP_KERNEL);
3788 if (!stpg)
3790 stpg->sport_id = sport_id;
3791 res = core_tpg_register(wwn, &stpg->tpg, SCSI_PROTOCOL_SRP);
3793 kfree(stpg);
3798 list_add_tail(&stpg->entry, &sport_id->tpg_list);
3801 return &stpg->tpg;
3810 struct srpt_tpg *stpg = container_of(tpg, typeof(*stpg), tpg);
3811 struct srpt_port_id *sport_id = stpg->sport_id;
3815 list_del(&stpg->entry);
3820 kfree(stpg);