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->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()
230 struct nsm_handle *nsm = NULL; in nlmclnt_lookup_host() local
247 if (nsm == NULL) in nlmclnt_lookup_host()
248 nsm = host->h_nsmhandle; in nlmclnt_lookup_host()
261 host = nlm_alloc_host(&ni, nsm); in nlmclnt_lookup_host()
326 struct nsm_handle *nsm = NULL; in nlmsvc_lookup_host() local
359 if (nsm == NULL) in nlmsvc_lookup_host()
360 nsm = host->h_nsmhandle; in nlmsvc_lookup_host()
379 host = nlm_alloc_host(&ni, nsm); in nlmsvc_lookup_host()
512 struct nsm_handle *nsm, in next_host_state() argument
520 if (host->h_nsmhandle == nsm in next_host_state()
544 struct nsm_handle *nsm; in nlm_host_rebooted() local
547 nsm = nsm_reboot_lookup(info); in nlm_host_rebooted()
548 if (unlikely(nsm == NULL)) in nlm_host_rebooted()
556 while ((host = next_host_state(nlm_server_hosts, nsm, info)) != NULL) { in nlm_host_rebooted()
560 while ((host = next_host_state(nlm_client_hosts, nsm, info)) != NULL) { in nlm_host_rebooted()
565 nsm_release(nsm); in nlm_host_rebooted()