Lines Matching refs:nsm
110 struct nsm_handle *nsm) in nlm_alloc_host() argument
115 if (nsm != NULL) in nlm_alloc_host()
116 atomic_inc(&nsm->sm_count); in nlm_alloc_host()
119 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host()
121 if (unlikely(nsm == NULL)) { in nlm_alloc_host()
131 nsm_release(nsm); in nlm_alloc_host()
141 host->h_name = nsm->sm_name; in nlm_alloc_host()
161 host->h_nsmhandle = nsm; in nlm_alloc_host()
162 host->h_addrbuf = nsm->sm_addrbuf; in nlm_alloc_host()
231 struct nsm_handle *nsm = NULL; in nlmclnt_lookup_host() local
248 if (nsm == NULL) in nlmclnt_lookup_host()
249 nsm = host->h_nsmhandle; in nlmclnt_lookup_host()
262 host = nlm_alloc_host(&ni, nsm); in nlmclnt_lookup_host()
327 struct nsm_handle *nsm = NULL; in nlmsvc_lookup_host() local
360 if (nsm == NULL) in nlmsvc_lookup_host()
361 nsm = host->h_nsmhandle; in nlmsvc_lookup_host()
380 host = nlm_alloc_host(&ni, nsm); in nlmsvc_lookup_host()
513 struct nsm_handle *nsm, in next_host_state() argument
521 if (host->h_nsmhandle == nsm in next_host_state()
546 struct nsm_handle *nsm; in nlm_host_rebooted() local
549 nsm = nsm_reboot_lookup(net, info); in nlm_host_rebooted()
550 if (unlikely(nsm == NULL)) in nlm_host_rebooted()
558 while ((host = next_host_state(nlm_server_hosts, nsm, info)) != NULL) { in nlm_host_rebooted()
562 while ((host = next_host_state(nlm_client_hosts, nsm, info)) != NULL) { in nlm_host_rebooted()
567 nsm_release(nsm); in nlm_host_rebooted()