Lines Matching refs:nsm
111 struct nsm_handle *nsm) in nlm_alloc_host() argument
116 if (nsm != NULL) in nlm_alloc_host()
117 refcount_inc(&nsm->sm_count); in nlm_alloc_host()
120 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host()
122 if (unlikely(nsm == NULL)) { in nlm_alloc_host()
132 nsm_release(nsm); in nlm_alloc_host()
142 host->h_name = nsm->sm_name; in nlm_alloc_host()
162 host->h_nsmhandle = nsm; in nlm_alloc_host()
163 host->h_addrbuf = nsm->sm_addrbuf; in nlm_alloc_host()
232 struct nsm_handle *nsm = NULL; in nlmclnt_lookup_host() local
249 if (nsm == NULL) in nlmclnt_lookup_host()
250 nsm = host->h_nsmhandle; in nlmclnt_lookup_host()
263 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()
517 struct nsm_handle *nsm, in next_host_state() argument
525 if (host->h_nsmhandle == nsm in next_host_state()
550 struct nsm_handle *nsm; in nlm_host_rebooted() local
553 nsm = nsm_reboot_lookup(net, info); in nlm_host_rebooted()
554 if (unlikely(nsm == NULL)) in nlm_host_rebooted()
562 while ((host = next_host_state(nlm_server_hosts, nsm, info)) != NULL) { in nlm_host_rebooted()
566 while ((host = next_host_state(nlm_client_hosts, nsm, info)) != NULL) { in nlm_host_rebooted()
571 nsm_release(nsm); in nlm_host_rebooted()