Lines Matching refs:cached
319 struct nsm_handle *cached, *new = NULL; in nsm_get_handle() local
335 cached = nsm_lookup_hostname(&ln->nsm_handles, in nsm_get_handle()
338 cached = nsm_lookup_addr(&ln->nsm_handles, sap); in nsm_get_handle()
340 if (cached != NULL) { in nsm_get_handle()
341 refcount_inc(&cached->sm_count); in nsm_get_handle()
345 "cnt %d\n", cached->sm_name, in nsm_get_handle()
346 cached->sm_addrbuf, in nsm_get_handle()
347 refcount_read(&cached->sm_count)); in nsm_get_handle()
348 return cached; in nsm_get_handle()
379 struct nsm_handle *cached; in nsm_reboot_lookup() local
384 cached = nsm_lookup_priv(&ln->nsm_handles, &info->priv); in nsm_reboot_lookup()
385 if (unlikely(cached == NULL)) { in nsm_reboot_lookup()
389 return cached; in nsm_reboot_lookup()
392 refcount_inc(&cached->sm_count); in nsm_reboot_lookup()
396 cached->sm_name, cached->sm_addrbuf, in nsm_reboot_lookup()
397 refcount_read(&cached->sm_count)); in nsm_reboot_lookup()
398 return cached; in nsm_reboot_lookup()