Lines Matching refs:hostport
164 struct nvmet_fc_hostport *hostport;
486 * message is normal. Otherwise, send unless the hostport has
489 if (!tgtport->ops->ls_req || !assoc->hostport ||
490 assoc->hostport->invalid)
512 lsop->hosthandle = assoc->hostport->hosthandle;
992 struct nvmet_fc_hostport *hostport =
994 struct nvmet_fc_tgtport *tgtport = hostport->tgtport;
998 list_del(&hostport->host_list);
1000 if (tgtport->ops->host_release && hostport->invalid)
1001 tgtport->ops->host_release(hostport->hosthandle);
1002 kfree(hostport);
1007 nvmet_fc_hostport_put(struct nvmet_fc_hostport *hostport)
1009 kref_put(&hostport->ref, nvmet_fc_hostport_free);
1013 nvmet_fc_hostport_get(struct nvmet_fc_hostport *hostport)
1015 return kref_get_unless_zero(&hostport->ref);
1019 nvmet_fc_free_hostport(struct nvmet_fc_hostport *hostport)
1022 if (!hostport || !hostport->hosthandle)
1025 nvmet_fc_hostport_put(hostport);
1038 /* take reference for what will be the newly allocated hostport */
1115 assoc->hostport = nvmet_fc_alloc_hostport(tgtport, hosthandle);
1116 if (IS_ERR(assoc->hostport))
1168 nvmet_fc_free_hostport(assoc->hostport);
1532 if (!assoc->hostport ||
1533 assoc->hostport->hosthandle != hosthandle)
1537 assoc->hostport->invalid = 1;