Lines Matching refs:hostport
167 struct nvmet_fc_hostport *hostport; member
500 if (!tgtport->ops->ls_req || assoc->hostport->invalid) in nvmet_fc_xmt_disconnect_assoc()
522 lsop->hosthandle = assoc->hostport->hosthandle; in nvmet_fc_xmt_disconnect_assoc()
986 struct nvmet_fc_hostport *hostport = in nvmet_fc_hostport_free() local
988 struct nvmet_fc_tgtport *tgtport = hostport->tgtport; in nvmet_fc_hostport_free()
992 list_del(&hostport->host_list); in nvmet_fc_hostport_free()
994 if (tgtport->ops->host_release && hostport->invalid) in nvmet_fc_hostport_free()
995 tgtport->ops->host_release(hostport->hosthandle); in nvmet_fc_hostport_free()
996 kfree(hostport); in nvmet_fc_hostport_free()
1001 nvmet_fc_hostport_put(struct nvmet_fc_hostport *hostport) in nvmet_fc_hostport_put() argument
1003 kref_put(&hostport->ref, nvmet_fc_hostport_free); in nvmet_fc_hostport_put()
1007 nvmet_fc_hostport_get(struct nvmet_fc_hostport *hostport) in nvmet_fc_hostport_get() argument
1009 return kref_get_unless_zero(&hostport->ref); in nvmet_fc_hostport_get()
1013 nvmet_fc_free_hostport(struct nvmet_fc_hostport *hostport) in nvmet_fc_free_hostport() argument
1016 if (!hostport || !hostport->hosthandle) in nvmet_fc_free_hostport()
1019 nvmet_fc_hostport_put(hostport); in nvmet_fc_free_hostport()
1155 assoc->hostport = nvmet_fc_alloc_hostport(tgtport, hosthandle); in nvmet_fc_alloc_target_assoc()
1156 if (IS_ERR(assoc->hostport)) in nvmet_fc_alloc_target_assoc()
1207 nvmet_fc_free_hostport(assoc->hostport); in nvmet_fc_target_assoc_free()
1561 if (assoc->hostport->hosthandle != hosthandle) in nvmet_fc_invalidate_host()
1565 assoc->hostport->invalid = 1; in nvmet_fc_invalidate_host()
2945 struct nvmet_fc_hostport *hostport = queue->assoc ? queue->assoc->hostport : NULL; in nvmet_fc_host_traddr() local
2951 if (!hostport || !nvmet_fc_hostport_get(hostport)) { in nvmet_fc_host_traddr()
2957 ret = tgtport->ops->host_traddr(hostport->hosthandle, &wwnn, &wwpn); in nvmet_fc_host_traddr()
2963 nvmet_fc_hostport_put(hostport); in nvmet_fc_host_traddr()