Lines Matching refs:stpg
2225 struct srpt_tpg *stpg; in srpt_cm_req_recv() local
2381 list_for_each_entry(stpg, &sport->guid_id->tpg_list, entry) { in srpt_cm_req_recv()
2384 ch->sess = target_setup_session(&stpg->tpg, tag_num, in srpt_cm_req_recv()
2393 list_for_each_entry(stpg, &sport->gid_id->tpg_list, entry) { in srpt_cm_req_recv()
2396 ch->sess = target_setup_session(&stpg->tpg, tag_num, in srpt_cm_req_recv()
2402 ch->sess = target_setup_session(&stpg->tpg, tag_num, in srpt_cm_req_recv()
3385 struct srpt_tpg *stpg = container_of(tpg, typeof(*stpg), tpg); in srpt_get_fabric_wwn() local
3387 return stpg->sport_id->name; in srpt_get_fabric_wwn()
3791 struct srpt_tpg *stpg; in srpt_make_tpg() local
3794 stpg = kzalloc(sizeof(*stpg), GFP_KERNEL); in srpt_make_tpg()
3795 if (!stpg) in srpt_make_tpg()
3797 stpg->sport_id = sport_id; in srpt_make_tpg()
3798 res = core_tpg_register(wwn, &stpg->tpg, SCSI_PROTOCOL_SRP); in srpt_make_tpg()
3800 kfree(stpg); in srpt_make_tpg()
3805 list_add_tail(&stpg->entry, &sport_id->tpg_list); in srpt_make_tpg()
3808 return &stpg->tpg; in srpt_make_tpg()
3817 struct srpt_tpg *stpg = container_of(tpg, typeof(*stpg), tpg); in srpt_drop_tpg() local
3818 struct srpt_port_id *sport_id = stpg->sport_id; in srpt_drop_tpg()
3822 list_del(&stpg->entry); in srpt_drop_tpg()
3827 kfree(stpg); in srpt_drop_tpg()