Lines Matching full:fddesc
28 struct FdDesc {
71 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) {
76 uptr size = kTableSizeL2 * sizeof(FdDesc);
80 MemoryResetRange(thr, (uptr)&fddesc, (uptr)p, size);
86 return &((FdDesc*)l1)[fd % kTableSizeL2]; // NOLINT
91 FdDesc *d = fddesc(thr, pc, fd);
123 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed);
127 FdDesc *d = &tab[l2];
135 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed);
139 int l2 = (addr - (uptr)tab) / sizeof(FdDesc);
140 FdDesc *d = &tab[l2];
151 FdDesc *d = fddesc(thr, pc, fd);
160 FdDesc *d = fddesc(thr, pc, fd);
170 FdDesc *d = fddesc(thr, pc, fd);
176 FdDesc *d = fddesc(thr, pc, fd);
196 FdDesc *od = fddesc(thr, pc, oldfd);