Lines Matching refs:key

74 	struct nfs_dns_ent *key;  in nfs_dns_ent_update()  local
77 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_update()
79 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
80 new->addrlen = key->addrlen; in nfs_dns_ent_update()
87 struct nfs_dns_ent *key; in nfs_dns_ent_init() local
90 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_init()
93 new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
95 new->namelen = key->namelen; in nfs_dns_ent_init()
125 static unsigned int nfs_dns_hash(const struct nfs_dns_ent *key) in nfs_dns_hash() argument
127 return hash_str(key->hostname, NFS_DNS_HASHBITS); in nfs_dns_hash()
134 struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); in nfs_dns_request() local
136 qword_add(bpp, blen, key->hostname); in nfs_dns_request()
143 struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); in nfs_dns_upcall() local
146 ret = nfs_cache_upcall(cd, key->hostname); in nfs_dns_upcall()
193 struct nfs_dns_ent *key) in nfs_dns_lookup() argument
198 &key->h, in nfs_dns_lookup()
199 nfs_dns_hash(key)); in nfs_dns_lookup()
207 struct nfs_dns_ent *key) in nfs_dns_update() argument
212 &new->h, &key->h, in nfs_dns_update()
213 nfs_dns_hash(key)); in nfs_dns_update()
222 struct nfs_dns_ent key, *item; in nfs_dns_parse() local
234 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
235 (struct sockaddr *)&key.addr, in nfs_dns_parse()
236 sizeof(key.addr)); in nfs_dns_parse()
242 key.hostname = buf1; in nfs_dns_parse()
243 key.namelen = len; in nfs_dns_parse()
244 memset(&key.h, 0, sizeof(key.h)); in nfs_dns_parse()
250 key.h.expiry_time = ttl + seconds_since_boot(); in nfs_dns_parse()
253 item = nfs_dns_lookup(cd, &key); in nfs_dns_parse()
257 if (key.addrlen == 0) in nfs_dns_parse()
258 set_bit(CACHE_NEGATIVE, &key.h.flags); in nfs_dns_parse()
260 item = nfs_dns_update(cd, &key, item); in nfs_dns_parse()
271 struct nfs_dns_ent *key, in do_cache_lookup() argument
277 *item = nfs_dns_lookup(cd, key); in do_cache_lookup()
287 struct nfs_dns_ent *key, in do_cache_lookup_nowait() argument
292 *item = nfs_dns_lookup(cd, key); in do_cache_lookup_nowait()
312 struct nfs_dns_ent *key, in do_cache_lookup_wait() argument
321 ret = do_cache_lookup(cd, key, item, dreq); in do_cache_lookup_wait()
325 ret = do_cache_lookup_nowait(cd, key, item); in do_cache_lookup_wait()
335 struct nfs_dns_ent key = { in nfs_dns_resolve_name() local
343 ret = do_cache_lookup_wait(nn->nfs_dns_resolve, &key, &item); in nfs_dns_resolve_name()