nsm               335 drivers/rpmsg/virtio_rpmsg_bus.c 		struct rpmsg_ns_msg nsm;
nsm               337 drivers/rpmsg/virtio_rpmsg_bus.c 		strncpy(nsm.name, rpdev->id.name, RPMSG_NAME_SIZE);
nsm               338 drivers/rpmsg/virtio_rpmsg_bus.c 		nsm.addr = rpdev->ept->addr;
nsm               339 drivers/rpmsg/virtio_rpmsg_bus.c 		nsm.flags = RPMSG_NS_CREATE;
nsm               341 drivers/rpmsg/virtio_rpmsg_bus.c 		err = rpmsg_sendto(rpdev->ept, &nsm, sizeof(nsm), RPMSG_NS_ADDR);
nsm               359 drivers/rpmsg/virtio_rpmsg_bus.c 		struct rpmsg_ns_msg nsm;
nsm               361 drivers/rpmsg/virtio_rpmsg_bus.c 		strncpy(nsm.name, rpdev->id.name, RPMSG_NAME_SIZE);
nsm               362 drivers/rpmsg/virtio_rpmsg_bus.c 		nsm.addr = rpdev->ept->addr;
nsm               363 drivers/rpmsg/virtio_rpmsg_bus.c 		nsm.flags = RPMSG_NS_DESTROY;
nsm               365 drivers/rpmsg/virtio_rpmsg_bus.c 		err = rpmsg_sendto(rpdev->ept, &nsm, sizeof(nsm), RPMSG_NS_ADDR);
nsm               112 fs/lockd/host.c 				       struct nsm_handle *nsm)
nsm               117 fs/lockd/host.c 	if (nsm != NULL)
nsm               118 fs/lockd/host.c 		refcount_inc(&nsm->sm_count);
nsm               121 fs/lockd/host.c 		nsm = nsm_get_handle(ni->net, ni->sap, ni->salen,
nsm               123 fs/lockd/host.c 		if (unlikely(nsm == NULL)) {
nsm               133 fs/lockd/host.c 		nsm_release(nsm);
nsm               143 fs/lockd/host.c 	host->h_name	   = nsm->sm_name;
nsm               163 fs/lockd/host.c 	host->h_nsmhandle  = nsm;
nsm               164 fs/lockd/host.c 	host->h_addrbuf    = nsm->sm_addrbuf;
nsm               239 fs/lockd/host.c 	struct nsm_handle *nsm = NULL;
nsm               256 fs/lockd/host.c 		if (nsm == NULL)
nsm               257 fs/lockd/host.c 			nsm = host->h_nsmhandle;
nsm               270 fs/lockd/host.c 	host = nlm_alloc_host(&ni, nsm);
nsm               334 fs/lockd/host.c 	struct nsm_handle *nsm = NULL;
nsm               367 fs/lockd/host.c 		if (nsm == NULL)
nsm               368 fs/lockd/host.c 			nsm = host->h_nsmhandle;
nsm               387 fs/lockd/host.c 	host = nlm_alloc_host(&ni, nsm);
nsm               523 fs/lockd/host.c 					struct nsm_handle *nsm,
nsm               531 fs/lockd/host.c 		if (host->h_nsmhandle == nsm
nsm               556 fs/lockd/host.c 	struct nsm_handle *nsm;
nsm               559 fs/lockd/host.c 	nsm = nsm_reboot_lookup(net, info);
nsm               560 fs/lockd/host.c 	if (unlikely(nsm == NULL))
nsm               568 fs/lockd/host.c 	while ((host = next_host_state(nlm_server_hosts, nsm, info)) != NULL) {
nsm               572 fs/lockd/host.c 	while ((host = next_host_state(nlm_client_hosts, nsm, info)) != NULL) {
nsm               577 fs/lockd/host.c 	nsm_release(nsm);
nsm                63 fs/lockd/mon.c static inline struct sockaddr *nsm_addr(const struct nsm_handle *nsm)
nsm                65 fs/lockd/mon.c 	return (struct sockaddr *)&nsm->sm_addr;
nsm                91 fs/lockd/mon.c static int nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res,
nsm                97 fs/lockd/mon.c 		.priv		= &nsm->sm_priv,
nsm               101 fs/lockd/mon.c 		.mon_name	= nsm->sm_mon_name,
nsm               150 fs/lockd/mon.c 	struct nsm_handle *nsm = host->h_nsmhandle;
nsm               154 fs/lockd/mon.c 	dprintk("lockd: nsm_monitor(%s)\n", nsm->sm_name);
nsm               156 fs/lockd/mon.c 	if (nsm->sm_monitored)
nsm               163 fs/lockd/mon.c 	nsm->sm_mon_name = nsm_use_hostnames ? nsm->sm_name : nsm->sm_addrbuf;
nsm               165 fs/lockd/mon.c 	status = nsm_mon_unmon(nsm, NSMPROC_MON, &res, host);
nsm               169 fs/lockd/mon.c 		pr_notice_ratelimited("lockd: cannot monitor %s\n", nsm->sm_name);
nsm               173 fs/lockd/mon.c 	nsm->sm_monitored = 1;
nsm               191 fs/lockd/mon.c 	struct nsm_handle *nsm = host->h_nsmhandle;
nsm               195 fs/lockd/mon.c 	if (refcount_read(&nsm->sm_count) == 1
nsm               196 fs/lockd/mon.c 	 && nsm->sm_monitored && !nsm->sm_sticky) {
nsm               197 fs/lockd/mon.c 		dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name);
nsm               199 fs/lockd/mon.c 		status = nsm_mon_unmon(nsm, NSMPROC_UNMON, &res, host);
nsm               204 fs/lockd/mon.c 					nsm->sm_name);
nsm               206 fs/lockd/mon.c 			nsm->sm_monitored = 0;
nsm               213 fs/lockd/mon.c 	struct nsm_handle *nsm;
nsm               215 fs/lockd/mon.c 	list_for_each_entry(nsm, nsm_handles, sm_link)
nsm               216 fs/lockd/mon.c 		if (strlen(nsm->sm_name) == len &&
nsm               217 fs/lockd/mon.c 		    memcmp(nsm->sm_name, hostname, len) == 0)
nsm               218 fs/lockd/mon.c 			return nsm;
nsm               225 fs/lockd/mon.c 	struct nsm_handle *nsm;
nsm               227 fs/lockd/mon.c 	list_for_each_entry(nsm, nsm_handles, sm_link)
nsm               228 fs/lockd/mon.c 		if (rpc_cmp_addr(nsm_addr(nsm), sap))
nsm               229 fs/lockd/mon.c 			return nsm;
nsm               236 fs/lockd/mon.c 	struct nsm_handle *nsm;
nsm               238 fs/lockd/mon.c 	list_for_each_entry(nsm, nsm_handles, sm_link)
nsm               239 fs/lockd/mon.c 		if (memcmp(nsm->sm_priv.data, priv->data,
nsm               241 fs/lockd/mon.c 			return nsm;
nsm               262 fs/lockd/mon.c static void nsm_init_private(struct nsm_handle *nsm)
nsm               264 fs/lockd/mon.c 	u64 *p = (u64 *)&nsm->sm_priv.data;
nsm               269 fs/lockd/mon.c 	put_unaligned((unsigned long)nsm, p + 1);
nsm               406 fs/lockd/mon.c void nsm_release(struct nsm_handle *nsm)
nsm               408 fs/lockd/mon.c 	if (refcount_dec_and_lock(&nsm->sm_count, &nsm_lock)) {
nsm               409 fs/lockd/mon.c 		list_del(&nsm->sm_link);
nsm               412 fs/lockd/mon.c 				nsm->sm_name, nsm->sm_addrbuf);
nsm               413 fs/lockd/mon.c 		kfree(nsm);
nsm               261 include/linux/lockd/lockd.h void		  nsm_release(struct nsm_handle *nsm);