Lines Matching refs:hostport

164 	struct nvmet_fc_hostport	*hostport;  member
489 if (!tgtport->ops->ls_req || !assoc->hostport || in nvmet_fc_xmt_disconnect_assoc()
490 assoc->hostport->invalid) in nvmet_fc_xmt_disconnect_assoc()
512 lsop->hosthandle = assoc->hostport->hosthandle; in nvmet_fc_xmt_disconnect_assoc()
992 struct nvmet_fc_hostport *hostport = in nvmet_fc_hostport_free() local
994 struct nvmet_fc_tgtport *tgtport = hostport->tgtport; in nvmet_fc_hostport_free()
998 list_del(&hostport->host_list); in nvmet_fc_hostport_free()
1000 if (tgtport->ops->host_release && hostport->invalid) in nvmet_fc_hostport_free()
1001 tgtport->ops->host_release(hostport->hosthandle); in nvmet_fc_hostport_free()
1002 kfree(hostport); in nvmet_fc_hostport_free()
1007 nvmet_fc_hostport_put(struct nvmet_fc_hostport *hostport) in nvmet_fc_hostport_put() argument
1009 kref_put(&hostport->ref, nvmet_fc_hostport_free); in nvmet_fc_hostport_put()
1013 nvmet_fc_hostport_get(struct nvmet_fc_hostport *hostport) in nvmet_fc_hostport_get() argument
1015 return kref_get_unless_zero(&hostport->ref); in nvmet_fc_hostport_get()
1019 nvmet_fc_free_hostport(struct nvmet_fc_hostport *hostport) in nvmet_fc_free_hostport() argument
1022 if (!hostport || !hostport->hosthandle) in nvmet_fc_free_hostport()
1025 nvmet_fc_hostport_put(hostport); in nvmet_fc_free_hostport()
1115 assoc->hostport = nvmet_fc_alloc_hostport(tgtport, hosthandle); in nvmet_fc_alloc_target_assoc()
1116 if (IS_ERR(assoc->hostport)) in nvmet_fc_alloc_target_assoc()
1168 nvmet_fc_free_hostport(assoc->hostport); in nvmet_fc_target_assoc_free()
1532 if (!assoc->hostport || in nvmet_fc_invalidate_host()
1533 assoc->hostport->hosthandle != hosthandle) in nvmet_fc_invalidate_host()
1537 assoc->hostport->invalid = 1; in nvmet_fc_invalidate_host()