Lines Matching refs:hostport
167 struct nvmet_fc_hostport *hostport;
498 * message is normal. Otherwise, send unless the hostport has
501 if (!tgtport->ops->ls_req || !assoc->hostport ||
502 assoc->hostport->invalid)
524 lsop->hosthandle = assoc->hostport->hosthandle;
988 struct nvmet_fc_hostport *hostport =
990 struct nvmet_fc_tgtport *tgtport = hostport->tgtport;
994 list_del(&hostport->host_list);
996 if (tgtport->ops->host_release && hostport->invalid)
997 tgtport->ops->host_release(hostport->hosthandle);
998 kfree(hostport);
1003 nvmet_fc_hostport_put(struct nvmet_fc_hostport *hostport)
1005 kref_put(&hostport->ref, nvmet_fc_hostport_free);
1009 nvmet_fc_hostport_get(struct nvmet_fc_hostport *hostport)
1011 return kref_get_unless_zero(&hostport->ref);
1015 nvmet_fc_free_hostport(struct nvmet_fc_hostport *hostport)
1018 if (!hostport || !hostport->hosthandle)
1021 nvmet_fc_hostport_put(hostport);
1052 * take reference for what will be the newly allocated hostport if
1142 assoc->hostport = nvmet_fc_alloc_hostport(tgtport, hosthandle);
1143 if (IS_ERR(assoc->hostport))
1201 nvmet_fc_free_hostport(assoc->hostport);
1556 if (!assoc->hostport ||
1557 assoc->hostport->hosthandle != hosthandle)
1561 assoc->hostport->invalid = 1;