Lines Matching refs:nsm
112 struct nsm_handle *nsm) in nlm_alloc_host() argument
117 if (nsm != NULL) in nlm_alloc_host()
118 refcount_inc(&nsm->sm_count); in nlm_alloc_host()
121 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host()
123 if (unlikely(nsm == NULL)) { in nlm_alloc_host()
133 nsm_release(nsm); in nlm_alloc_host()
143 host->h_name = nsm->sm_name; in nlm_alloc_host()
163 host->h_nsmhandle = nsm; in nlm_alloc_host()
164 host->h_addrbuf = nsm->sm_addrbuf; in nlm_alloc_host()
239 struct nsm_handle *nsm = NULL; in nlmclnt_lookup_host() local
256 if (nsm == NULL) in nlmclnt_lookup_host()
257 nsm = host->h_nsmhandle; in nlmclnt_lookup_host()
270 host = nlm_alloc_host(&ni, nsm); in nlmclnt_lookup_host()
334 struct nsm_handle *nsm = NULL; in nlmsvc_lookup_host() local
367 if (nsm == NULL) in nlmsvc_lookup_host()
368 nsm = host->h_nsmhandle; in nlmsvc_lookup_host()
387 host = nlm_alloc_host(&ni, nsm); in nlmsvc_lookup_host()
523 struct nsm_handle *nsm, in next_host_state() argument
531 if (host->h_nsmhandle == nsm in next_host_state()
556 struct nsm_handle *nsm; in nlm_host_rebooted() local
559 nsm = nsm_reboot_lookup(net, info); in nlm_host_rebooted()
560 if (unlikely(nsm == NULL)) in nlm_host_rebooted()
568 while ((host = next_host_state(nlm_server_hosts, nsm, info)) != NULL) { in nlm_host_rebooted()
572 while ((host = next_host_state(nlm_client_hosts, nsm, info)) != NULL) { in nlm_host_rebooted()
577 nsm_release(nsm); in nlm_host_rebooted()