Lines Matching refs:tport
172 struct scsiback_tport *tport; member
224 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status()
885 if (!strcmp(phy, tpg_entry->tport->tport_name) || in scsiback_add_translation_entry()
1249 static char *scsiback_dump_proto_id(struct scsiback_tport *tport) in scsiback_dump_proto_id() argument
1251 switch (tport->tport_proto_id) { in scsiback_dump_proto_id()
1269 struct scsiback_tport *tport = tpg->tport; in scsiback_get_fabric_wwn() local
1271 return &tport->tport_name[0]; in scsiback_get_fabric_wwn()
1286 struct scsiback_tport *tport; in scsiback_make_tport() local
1291 tport = kzalloc(sizeof(struct scsiback_tport), GFP_KERNEL); in scsiback_make_tport()
1292 if (!tport) in scsiback_make_tport()
1295 tport->tport_wwpn = wwpn; in scsiback_make_tport()
1302 tport->tport_proto_id = SCSI_PROTOCOL_SAS; in scsiback_make_tport()
1307 tport->tport_proto_id = SCSI_PROTOCOL_FCP; in scsiback_make_tport()
1313 tport->tport_proto_id = SCSI_PROTOCOL_ISCSI; in scsiback_make_tport()
1318 kfree(tport); in scsiback_make_tport()
1324 scsiback_dump_proto_id(tport), VSCSI_NAMELEN); in scsiback_make_tport()
1325 kfree(tport); in scsiback_make_tport()
1328 snprintf(&tport->tport_name[0], VSCSI_NAMELEN, "%s", &name[off]); in scsiback_make_tport()
1331 scsiback_dump_proto_id(tport), name); in scsiback_make_tport()
1333 return &tport->tport_wwn; in scsiback_make_tport()
1338 struct scsiback_tport *tport = container_of(wwn, in scsiback_drop_tport() local
1342 scsiback_dump_proto_id(tport), tport->tport_name); in scsiback_drop_tport()
1344 kfree(tport); in scsiback_drop_tport()
1545 scsiback_dump_proto_id(tpg->tport), in scsiback_drop_nexus()
1586 struct scsiback_tport *tport_wwn = tpg->tport; in scsiback_tpg_nexus_store()
1704 struct scsiback_tport *tport = container_of(wwn, in scsiback_make_tpg() local
1724 tpg->tport = tport; in scsiback_make_tpg()
1727 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in scsiback_make_tpg()