Lines Matching refs:tport
148 /* SCSI protocol the tport is providing */
172 struct scsiback_tport *tport;
224 tpg->tport->tport_name, pending_req->v2p->lun,
949 if (!strcmp(phy, tpg_entry->tport->tport_name) ||
1312 static char *scsiback_dump_proto_id(struct scsiback_tport *tport)
1314 switch (tport->tport_proto_id) {
1332 struct scsiback_tport *tport = tpg->tport;
1334 return &tport->tport_name[0];
1349 struct scsiback_tport *tport;
1354 tport = kzalloc(sizeof(struct scsiback_tport), GFP_KERNEL);
1355 if (!tport)
1358 tport->tport_wwpn = wwpn;
1365 tport->tport_proto_id = SCSI_PROTOCOL_SAS;
1370 tport->tport_proto_id = SCSI_PROTOCOL_FCP;
1376 tport->tport_proto_id = SCSI_PROTOCOL_ISCSI;
1381 kfree(tport);
1387 scsiback_dump_proto_id(tport), VSCSI_NAMELEN);
1388 kfree(tport);
1391 snprintf(&tport->tport_name[0], VSCSI_NAMELEN, "%s", &name[off]);
1394 scsiback_dump_proto_id(tport), name);
1396 return &tport->tport_wwn;
1401 struct scsiback_tport *tport = container_of(wwn,
1405 scsiback_dump_proto_id(tport), tport->tport_name);
1407 kfree(tport);
1589 scsiback_dump_proto_id(tpg->tport),
1630 struct scsiback_tport *tport_wwn = tpg->tport;
1748 struct scsiback_tport *tport = container_of(wwn,
1768 tpg->tport = tport;
1771 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id);