• Home
  • Raw
  • Download

Lines Matching refs:tport

239 	struct fcloop_tport *tport;  member
258 struct fcloop_tport *tport; member
270 struct fcloop_tport *tport; member
381 struct fcloop_tport *tport = targetport->private; in fcloop_h2t_xmt_ls_rsp() local
382 struct nvme_fc_remote_port *remoteport = tport->remoteport; in fcloop_h2t_xmt_ls_rsp()
405 struct fcloop_tport *tport = in fcloop_tport_lsrqst_work() local
409 spin_lock(&tport->lock); in fcloop_tport_lsrqst_work()
411 tls_req = list_first_entry_or_null(&tport->ls_list, in fcloop_tport_lsrqst_work()
417 spin_unlock(&tport->lock); in fcloop_tport_lsrqst_work()
425 spin_lock(&tport->lock); in fcloop_tport_lsrqst_work()
427 spin_unlock(&tport->lock); in fcloop_tport_lsrqst_work()
435 struct fcloop_tport *tport = targetport->private; in fcloop_t2h_ls_req() local
446 if (!tport->remoteport) { in fcloop_t2h_ls_req()
448 spin_lock(&tport->lock); in fcloop_t2h_ls_req()
449 list_add_tail(&tport->ls_list, &tls_req->ls_list); in fcloop_t2h_ls_req()
450 spin_unlock(&tport->lock); in fcloop_t2h_ls_req()
451 queue_work(nvmet_wq, &tport->ls_work); in fcloop_t2h_ls_req()
456 ret = nvme_fc_rcv_ls_req(tport->remoteport, &tls_req->ls_rsp, in fcloop_t2h_ls_req()
471 struct fcloop_tport *tport; in fcloop_t2h_xmt_ls_rsp() local
479 tport = targetport->private; in fcloop_t2h_xmt_ls_rsp()
480 spin_lock(&tport->lock); in fcloop_t2h_xmt_ls_rsp()
481 list_add_tail(&tport->ls_list, &tls_req->ls_list); in fcloop_t2h_xmt_ls_rsp()
482 spin_unlock(&tport->lock); in fcloop_t2h_xmt_ls_rsp()
483 queue_work(nvmet_wq, &tport->ls_work); in fcloop_t2h_xmt_ls_rsp()
504 struct fcloop_tport *tport = tgt_rscn->tport; in fcloop_tgt_rscn_work() local
506 if (tport->remoteport) in fcloop_tgt_rscn_work()
507 nvme_fc_rescan_remoteport(tport->remoteport); in fcloop_tgt_rscn_work()
520 tgt_rscn->tport = tgtport->private; in fcloop_tgt_discovery_evt()
640 ret = nvmet_fc_rcv_fcp_req(tfcp_req->tport->targetport, in fcloop_fcp_recv_work()
682 if (tfcp_req->tport->targetport) in fcloop_fcp_abort_recv_work()
683 nvmet_fc_rcv_fcp_abort(tfcp_req->tport->targetport, in fcloop_fcp_abort_recv_work()
737 tfcp_req->tport = rport->targetport->private; in fcloop_fcp_req()
1043 struct fcloop_tport *tport = targetport->private; in fcloop_targetport_delete() local
1045 flush_work(&tport->ls_work); in fcloop_targetport_delete()
1046 fcloop_nport_put(tport->nport); in fcloop_targetport_delete()
1271 (!remoteport && nport->tport)) { in fcloop_alloc_nport()
1336 rport->targetport = (nport->tport) ? nport->tport->targetport : NULL; in fcloop_create_remote_port()
1337 if (nport->tport) { in fcloop_create_remote_port()
1338 nport->tport->remoteport = remoteport; in fcloop_create_remote_port()
1339 nport->tport->lport = nport->lport; in fcloop_create_remote_port()
1357 if (rport && nport->tport) in __unlink_remote_port()
1358 nport->tport->remoteport = NULL; in __unlink_remote_port()
1414 struct fcloop_tport *tport; in fcloop_create_target_port() local
1434 tport = targetport->private; in fcloop_create_target_port()
1435 tport->targetport = targetport; in fcloop_create_target_port()
1436 tport->remoteport = (nport->rport) ? nport->rport->remoteport : NULL; in fcloop_create_target_port()
1439 tport->nport = nport; in fcloop_create_target_port()
1440 tport->lport = nport->lport; in fcloop_create_target_port()
1441 nport->tport = tport; in fcloop_create_target_port()
1442 spin_lock_init(&tport->lock); in fcloop_create_target_port()
1443 INIT_WORK(&tport->ls_work, fcloop_tport_lsrqst_work); in fcloop_create_target_port()
1444 INIT_LIST_HEAD(&tport->ls_list); in fcloop_create_target_port()
1453 struct fcloop_tport *tport = nport->tport; in __unlink_target_port() local
1455 if (tport && nport->rport) in __unlink_target_port()
1457 nport->tport = NULL; in __unlink_target_port()
1459 return tport; in __unlink_target_port()
1463 __targetport_unreg(struct fcloop_nport *nport, struct fcloop_tport *tport) in __targetport_unreg() argument
1465 if (!tport) in __targetport_unreg()
1468 return nvmet_fc_unregister_targetport(tport->targetport); in __targetport_unreg()
1476 struct fcloop_tport *tport = NULL; in fcloop_delete_target_port() local
1489 tmpport->port_name == portname && tmpport->tport) { in fcloop_delete_target_port()
1491 tport = __unlink_target_port(nport); in fcloop_delete_target_port()
1501 ret = __targetport_unreg(nport, tport); in fcloop_delete_target_port()
1600 struct fcloop_tport *tport; in fcloop_exit() local
1613 tport = __unlink_target_port(nport); in fcloop_exit()
1618 ret = __targetport_unreg(nport, tport); in fcloop_exit()