• Home
  • Raw
  • Download

Lines Matching refs:cd

141 static void nfs_dns_request(struct cache_detail *cd,  in nfs_dns_request()  argument
151 static int nfs_dns_upcall(struct cache_detail *cd, in nfs_dns_upcall() argument
157 ret = nfs_cache_upcall(cd, key->hostname); in nfs_dns_upcall()
159 ret = sunrpc_cache_pipe_upcall(cd, ch); in nfs_dns_upcall()
177 static int nfs_dns_show(struct seq_file *m, struct cache_detail *cd, in nfs_dns_show() argument
203 static struct nfs_dns_ent *nfs_dns_lookup(struct cache_detail *cd, in nfs_dns_lookup() argument
208 ch = sunrpc_cache_lookup_rcu(cd, in nfs_dns_lookup()
216 static struct nfs_dns_ent *nfs_dns_update(struct cache_detail *cd, in nfs_dns_update() argument
222 ch = sunrpc_cache_update(cd, in nfs_dns_update()
230 static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen) in nfs_dns_parse() argument
245 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
264 item = nfs_dns_lookup(cd, &key); in nfs_dns_parse()
271 item = nfs_dns_update(cd, &key, item); in nfs_dns_parse()
276 cache_put(&item->h, cd); in nfs_dns_parse()
281 static int do_cache_lookup(struct cache_detail *cd, in do_cache_lookup() argument
288 *item = nfs_dns_lookup(cd, key); in do_cache_lookup()
290 ret = cache_check(cd, &(*item)->h, &dreq->req); in do_cache_lookup()
297 static int do_cache_lookup_nowait(struct cache_detail *cd, in do_cache_lookup_nowait() argument
303 *item = nfs_dns_lookup(cd, key); in do_cache_lookup_nowait()
309 || cd->flush_time > (*item)->h.last_refresh) in do_cache_lookup_nowait()
316 cache_put(&(*item)->h, cd); in do_cache_lookup_nowait()
322 static int do_cache_lookup_wait(struct cache_detail *cd, in do_cache_lookup_wait() argument
332 ret = do_cache_lookup(cd, key, item, dreq); in do_cache_lookup_wait()
336 ret = do_cache_lookup_nowait(cd, key, item); in do_cache_lookup_wait()
431 struct cache_detail *cd = nn->nfs_dns_resolve; in rpc_pipefs_event() local
434 if (cd == NULL) in rpc_pipefs_event()
442 ret = nfs_cache_register_sb(sb, cd); in rpc_pipefs_event()
445 nfs_cache_unregister_sb(sb, cd); in rpc_pipefs_event()