Lines Matching refs:hostport
165 struct nvmet_fc_hostport *hostport; member
491 if (!tgtport->ops->ls_req || !assoc->hostport || in nvmet_fc_xmt_disconnect_assoc()
492 assoc->hostport->invalid) in nvmet_fc_xmt_disconnect_assoc()
514 lsop->hosthandle = assoc->hostport->hosthandle; in nvmet_fc_xmt_disconnect_assoc()
987 struct nvmet_fc_hostport *hostport = in nvmet_fc_hostport_free() local
989 struct nvmet_fc_tgtport *tgtport = hostport->tgtport; in nvmet_fc_hostport_free()
993 list_del(&hostport->host_list); in nvmet_fc_hostport_free()
995 if (tgtport->ops->host_release && hostport->invalid) in nvmet_fc_hostport_free()
996 tgtport->ops->host_release(hostport->hosthandle); in nvmet_fc_hostport_free()
997 kfree(hostport); in nvmet_fc_hostport_free()
1002 nvmet_fc_hostport_put(struct nvmet_fc_hostport *hostport) in nvmet_fc_hostport_put() argument
1004 kref_put(&hostport->ref, nvmet_fc_hostport_free); in nvmet_fc_hostport_put()
1008 nvmet_fc_hostport_get(struct nvmet_fc_hostport *hostport) in nvmet_fc_hostport_get() argument
1010 return kref_get_unless_zero(&hostport->ref); in nvmet_fc_hostport_get()
1014 nvmet_fc_free_hostport(struct nvmet_fc_hostport *hostport) in nvmet_fc_free_hostport() argument
1017 if (!hostport || !hostport->hosthandle) in nvmet_fc_free_hostport()
1020 nvmet_fc_hostport_put(hostport); in nvmet_fc_free_hostport()
1125 assoc->hostport = nvmet_fc_alloc_hostport(tgtport, hosthandle); in nvmet_fc_alloc_target_assoc()
1126 if (IS_ERR(assoc->hostport)) in nvmet_fc_alloc_target_assoc()
1178 nvmet_fc_free_hostport(assoc->hostport); in nvmet_fc_target_assoc_free()
1542 if (!assoc->hostport || in nvmet_fc_invalidate_host()
1543 assoc->hostport->hosthandle != hosthandle) in nvmet_fc_invalidate_host()
1547 assoc->hostport->invalid = 1; in nvmet_fc_invalidate_host()