• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/nfsd/

Lines Matching refs:ent

49 struct ent {
66 struct ent *new = container_of(cnew, struct ent, h);
67 struct ent *itm = container_of(citm, struct ent, h);
79 struct ent *map = container_of(ref, struct ent, h.ref);
86 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL);
100 idtoname_hash(struct ent *ent)
104 hash = hash_str(ent->authname, ENT_HASHBITS);
105 hash = hash_long(hash ^ ent->id, ENT_HASHBITS);
108 if (ent->type == IDMAP_TYPE_GROUP)
118 struct ent *ent = container_of(ch, struct ent, h);
121 qword_add(bpp, blen, ent->authname);
122 snprintf(idstr, sizeof(idstr), "%u", ent->id);
123 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user");
138 struct ent *a = container_of(ca, struct ent, h);
139 struct ent *b = container_of(cb, struct ent, h);
148 struct ent *ent;
154 ent = container_of(h, struct ent, h);
155 seq_printf(m, "%s %s %u", ent->authname,
156 ent->type == IDMAP_TYPE_GROUP ? "group" : "user",
157 ent->id);
159 seq_printf(m, " %s", ent->name);
173 static struct ent *idtoname_lookup(struct ent *);
174 static struct ent *idtoname_update(struct ent *, struct ent *);
195 struct ent ent, *res;
208 memset(&ent, 0, sizeof(ent));
213 memcpy(ent.authname, buf1, sizeof(ent.authname));
218 ent.type = strcmp(buf1, "user") == 0 ?
224 ent.id = simple_strtoul(buf1, &bp, 10);
229 ent.h.expiry_time = get_expiry(&buf);
230 if (ent.h.expiry_time == 0)
234 res = idtoname_lookup(&ent);
244 set_bit(CACHE_NEGATIVE, &ent.h.flags);
248 memcpy(ent.name, buf1, sizeof(ent.name));
250 res = idtoname_update(&ent, res);
264 static struct ent *
265 idtoname_lookup(struct ent *item)
271 return container_of(ch, struct ent, h);
276 static struct ent *
277 idtoname_update(struct ent *new, struct ent *old)
283 return container_of(ch, struct ent, h);
296 nametoid_hash(struct ent *ent)
298 return hash_str(ent->name, ENT_HASHBITS);
305 struct ent *ent = container_of(ch, struct ent, h);
307 qword_add(bpp, blen, ent->authname);
308 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user");
309 qword_add(bpp, blen, ent->name);
323 struct ent *a = container_of(ca, struct ent, h);
324 struct ent *b = container_of(cb, struct ent, h);
333 struct ent *ent;
339 ent = container_of(h, struct ent, h);
340 seq_printf(m, "%s %s %s", ent->authname,
341 ent->type == IDMAP_TYPE_GROUP ? "group" : "user",
342 ent->name);
344 seq_printf(m, " %u", ent->id);
349 static struct ent *nametoid_lookup(struct ent *);
350 static struct ent *nametoid_update(struct ent *, struct ent *);
372 struct ent ent, *res;
384 memset(&ent, 0, sizeof(ent));
389 memcpy(ent.authname, buf1, sizeof(ent.authname));
394 ent.type = strcmp(buf1, "user") == 0 ?
401 memcpy(ent.name, buf1, sizeof(ent.name));
404 ent.h.expiry_time = get_expiry(&buf);
405 if (ent.h.expiry_time == 0)
409 error = get_int(&buf, &ent.id);
413 set_bit(CACHE_NEGATIVE, &ent.h.flags);
416 res = nametoid_lookup(&ent);
419 res = nametoid_update(&ent, res);
432 static struct ent *
433 nametoid_lookup(struct ent *item)
439 return container_of(ch, struct ent, h);
444 static struct ent *
445 nametoid_update(struct ent *new, struct ent *old)
451 return container_of(ch, struct ent, h);
527 do_idmap_lookup(struct ent *(*lookup_fn)(struct ent *), struct ent *key,
528 struct cache_detail *detail, struct ent **item,
538 do_idmap_lookup_nowait(struct ent *(*lookup_fn)(struct ent *),
539 struct ent *key, struct cache_detail *detail,
540 struct ent **item)
565 struct ent *(*lookup_fn)(struct ent *), struct ent *key,
566 struct cache_detail *detail, struct ent **item)
600 struct ent *item, key = {
623 struct ent *item, key = {