Lines Matching full:cached
303 * nsm_get_handle - Find or create a cached nsm_handle
312 * Returns a cached nsm_handle after bumping its ref count, or
322 struct nsm_handle *cached, *new = NULL; in nsm_get_handle() local
338 cached = nsm_lookup_hostname(&ln->nsm_handles, in nsm_get_handle()
341 cached = nsm_lookup_addr(&ln->nsm_handles, sap); in nsm_get_handle()
343 if (cached != NULL) { in nsm_get_handle()
344 refcount_inc(&cached->sm_count); in nsm_get_handle()
348 "cnt %d\n", cached->sm_name, in nsm_get_handle()
349 cached->sm_addrbuf, in nsm_get_handle()
350 refcount_read(&cached->sm_count)); in nsm_get_handle()
351 return cached; in nsm_get_handle()
382 struct nsm_handle *cached; in nsm_reboot_lookup() local
387 cached = nsm_lookup_priv(&ln->nsm_handles, &info->priv); in nsm_reboot_lookup()
388 if (unlikely(cached == NULL)) { in nsm_reboot_lookup()
392 return cached; in nsm_reboot_lookup()
395 refcount_inc(&cached->sm_count); in nsm_reboot_lookup()
399 cached->sm_name, cached->sm_addrbuf, in nsm_reboot_lookup()
400 refcount_read(&cached->sm_count)); in nsm_reboot_lookup()
401 return cached; in nsm_reboot_lookup()