Lines Matching refs:key

75 	struct nfs_dns_ent *key;  in nfs_dns_ent_update()  local
78 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_update()
80 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
81 new->addrlen = key->addrlen; in nfs_dns_ent_update()
88 struct nfs_dns_ent *key; in nfs_dns_ent_init() local
91 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_init()
94 new->hostname = kmemdup_nul(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
96 new->namelen = key->namelen; in nfs_dns_ent_init()
134 static unsigned int nfs_dns_hash(const struct nfs_dns_ent *key) in nfs_dns_hash() argument
136 return hash_str(key->hostname, NFS_DNS_HASHBITS); in nfs_dns_hash()
143 struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); in nfs_dns_request() local
145 qword_add(bpp, blen, key->hostname); in nfs_dns_request()
152 struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); in nfs_dns_upcall() local
156 if (!nfs_cache_upcall(cd, key->hostname)) in nfs_dns_upcall()
203 struct nfs_dns_ent *key) in nfs_dns_lookup() argument
208 &key->h, in nfs_dns_lookup()
209 nfs_dns_hash(key)); in nfs_dns_lookup()
217 struct nfs_dns_ent *key) in nfs_dns_update() argument
222 &new->h, &key->h, in nfs_dns_update()
223 nfs_dns_hash(key)); in nfs_dns_update()
232 struct nfs_dns_ent key, *item; in nfs_dns_parse() local
244 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
245 (struct sockaddr *)&key.addr, in nfs_dns_parse()
246 sizeof(key.addr)); in nfs_dns_parse()
252 key.hostname = buf1; in nfs_dns_parse()
253 key.namelen = len; in nfs_dns_parse()
254 memset(&key.h, 0, sizeof(key.h)); in nfs_dns_parse()
260 key.h.expiry_time = ttl + seconds_since_boot(); in nfs_dns_parse()
263 item = nfs_dns_lookup(cd, &key); in nfs_dns_parse()
267 if (key.addrlen == 0) in nfs_dns_parse()
268 set_bit(CACHE_NEGATIVE, &key.h.flags); in nfs_dns_parse()
270 item = nfs_dns_update(cd, &key, item); in nfs_dns_parse()
281 struct nfs_dns_ent *key, in do_cache_lookup() argument
287 *item = nfs_dns_lookup(cd, key); in do_cache_lookup()
297 struct nfs_dns_ent *key, in do_cache_lookup_nowait() argument
302 *item = nfs_dns_lookup(cd, key); in do_cache_lookup_nowait()
322 struct nfs_dns_ent *key, in do_cache_lookup_wait() argument
331 ret = do_cache_lookup(cd, key, item, dreq); in do_cache_lookup_wait()
335 ret = do_cache_lookup_nowait(cd, key, item); in do_cache_lookup_wait()
345 struct nfs_dns_ent key = { in nfs_dns_resolve_name() local
353 ret = do_cache_lookup_wait(nn->nfs_dns_resolve, &key, &item); in nfs_dns_resolve_name()