Lines Matching refs:tport

140 	struct tcm_vhost_tport *tport;
148 /* SCSI protocol the tport is providing */
300 struct tcm_vhost_tport *tport = tpg->tport;
302 switch (tport->tport_proto_id) {
311 " SAS emulation\n", tport->tport_proto_id);
322 struct tcm_vhost_tport *tport = tpg->tport;
324 return &tport->tport_name[0];
348 struct tcm_vhost_tport *tport = tpg->tport;
350 switch (tport->tport_proto_id) {
362 " SAS emulation\n", tport->tport_proto_id);
378 struct tcm_vhost_tport *tport = tpg->tport;
380 switch (tport->tport_proto_id) {
392 " SAS emulation\n", tport->tport_proto_id);
408 struct tcm_vhost_tport *tport = tpg->tport;
410 switch (tport->tport_proto_id) {
422 " SAS emulation\n", tport->tport_proto_id);
1354 tv_tport = tpg->tport;
1450 tv_tport = tpg->tport;
1695 static char *tcm_vhost_dump_proto_id(struct tcm_vhost_tport *tport)
1697 switch (tport->tport_proto_id) {
1977 " %s Initiator Port: %s\n", tcm_vhost_dump_proto_id(tpg->tport),
2019 struct tcm_vhost_tport *tport_wwn = tpg->tport;
2103 struct tcm_vhost_tport *tport = container_of(wwn,
2122 tpg->tport = tport;
2162 struct tcm_vhost_tport *tport;
2170 tport = kzalloc(sizeof(struct tcm_vhost_tport), GFP_KERNEL);
2171 if (!tport) {
2175 tport->tport_wwpn = wwpn;
2182 tport->tport_proto_id = SCSI_PROTOCOL_SAS;
2187 tport->tport_proto_id = SCSI_PROTOCOL_FCP;
2193 tport->tport_proto_id = SCSI_PROTOCOL_ISCSI;
2199 kfree(tport);
2205 " max: %d\n", name, tcm_vhost_dump_proto_id(tport),
2207 kfree(tport);
2210 snprintf(&tport->tport_name[0], TCM_VHOST_NAMELEN, "%s", &name[off]);
2213 " %s Address: %s\n", tcm_vhost_dump_proto_id(tport), name);
2215 return &tport->tport_wwn;
2220 struct tcm_vhost_tport *tport = container_of(wwn,
2224 " %s Address: %s\n", tcm_vhost_dump_proto_id(tport),
2225 tport->tport_name);
2227 kfree(tport);