| /plan9/sys/src/cmd/ip/ppp/ |
| H A D | ppp.h | 11 typedef struct Block Block; typedef 20 struct Block struct 22 Block *next; argument 23 Block *flist; argument 24 Block *list; /* chain of block lists */ argument 48 Block* allocb(int); argument 49 void freeb(Block*); 50 Block* concat(Block*); 51 int blen(Block*); 52 Block* pullup(Block*, int); [all …]
|
| H A D | block.c | 18 Block* list[NLIST]; 50 Block* 54 Block *bp, **l; in allocb() 69 bp->base = (uchar*)bp+sizeof(Block); in allocb() 86 bp = mallocz(sizeof(Block)+len, 1); in allocb() 89 bp->base = (uchar*)bp+sizeof(Block); in allocb() 101 freeb(Block *bp) in freeb() 104 Block **l, *next; in freeb() 119 bp->next = (Block*)0xdeadbabe; in freeb() 120 bp->list = (Block*)0xdeadbabe; in freeb() [all …]
|
| H A D | thw.c | 42 static Block* comp(PPP*, ushort, Block*, int*); 43 static Block *compresetreq(void*, Block*); 44 static void compcompack(void*, Block*); 48 static Block* uncomp(PPP*, Block*, int *protop, Block**); 50 static void uncresetack(void*, Block*); 87 static Block * 88 compresetreq(void *as, Block *b) in compresetreq() 110 static Block* 111 comp(PPP *ppp, ushort proto, Block *b, int *protop) in comp() 115 Block *bb; in comp() [all …]
|
| /plan9/sys/src/cmd/fossil/ |
| H A D | fns.h | 1 Block* sourceBlock(Source*, ulong, int); 2 Block* _sourceBlock(Source*, ulong, int, int, ulong); 20 Block* cacheAllocBlock(Cache*, int, u32int, u32int, u32int); 26 Block* cacheGlobal(Cache*, uchar[VtScoreSize], int, u32int, int); 27 Block* cacheLocal(Cache*, int, u32int, int); 28 Block* cacheLocalData(Cache*, u32int, int, u32int, int, u32int); 32 Block* blockCopy(Block*, u32int, u32int, u32int); 33 void blockDependency(Block*, Block*, int, uchar*, Entry*); 34 int blockDirty(Block*); 35 void blockDupLock(Block*); [all …]
|
| H A D | dat.h | 3 typedef struct Block Block; typedef 151 Block *b; /* block containing this source */ 230 struct Block { struct 249 Block *next; /* doubly linked hash chains */ argument 250 Block **prev; argument 262 Block *ionext; argument 299 void (*clre)(Fsck*, Block*, int); 300 void (*clrp)(Fsck*, Block*, int); 301 void (*close)(Fsck*, Block*, u32int); 302 void (*clri)(Fsck*, char*, MetaBlock*, int, Block*);
|
| H A D | cache.c | 33 Block **heads; /* hash table for finding address */ 35 Block **heap; /* heap for locating victims */ 37 Block *blocks; /* array of block descriptors */ 108 static Block *cacheBumpBlock(Cache *c); 109 static void heapDel(Block*); 110 static void heapIns(Block*); 117 static BList *blistAlloc(Block*); 151 Block *b; in cacheAlloc() 172 c->heads = vtMemAllocZ(c->hashSize*sizeof(Block*)); in cacheAlloc() 173 c->heap = vtMemAllocZ(nblocks*sizeof(Block*)); in cacheAlloc() [all …]
|
| H A D | nobwatch.c | 23 bwatchDependency(Block *b) in bwatchDependency() 29 bwatchLock(Block *b) in bwatchLock() 35 bwatchUnlock(Block *b) in bwatchUnlock()
|
| H A D | source.c | 9 static Block *sourceLoad(Source *r, Entry *e); 10 static int sourceShrinkDepth(Source*, Block*, Entry*, int); 12 static int sourceGrowDepth(Source*, Block*, Entry*, int); 17 sourceAlloc(Fs *fs, Block *b, Source *p, u32int offset, int mode, int issnapshot) in sourceAlloc() 137 Block *b; in sourceRoot() 160 Block *b; in sourceOpen() 185 Block *b; in sourceCreate() 262 Block *b; in sourceKill() 328 Block *b; in sourceGetSize() 346 Block *b; in sourceShrinkSize() [all …]
|
| /plan9/sys/src/cmd/unix/drawterm/kern/ |
| H A D | fns.h | 7 Block* adjustblock(Block*, int); 9 Block* allocb(int); 13 Block* bl2mem(uchar*, Block*, int); 14 int blocklen(Block*); 29 void checkb(Block*, char*); 49 Block* concatblock(Block*); 50 Block* copyblock(Block*, int); 61 Block* devbread(Chan*, long, ulong); 62 long devbwrite(Chan*, Block*, ulong); 110 void freeb(Block*); [all …]
|
| H A D | qio.c | 26 Block* bfirst; /* buffer */ 27 Block* blast; 38 void (*bypass)(void*, Block*); /* bypass queue altogether */ 71 freeblist(Block *b) in freeblist() 73 Block *next; in freeblist() 85 Block* 86 padblock(Block *bp, int size) in padblock() 89 Block *nbp; in padblock() 133 blocklen(Block *bp) in blocklen() 149 blockalloclen(Block *bp) in blockalloclen() [all …]
|
| H A D | allocb.c | 19 static Block* 22 Block *b; in _allocb() 25 if((b = mallocz(sizeof(Block)+size+Hdrspc, 0)) == nil) in _allocb() 35 addr = ROUND(addr + sizeof(Block), BLOCKALIGN); in _allocb() 39 b->lim = ((uchar*)b) + sizeof(Block)+size+Hdrspc; in _allocb() 53 Block* 56 Block *b; in allocb() 72 Block* 75 Block *b; in iallocb() 102 freeb(Block *b) in freeb() [all …]
|
| /plan9/sys/src/9/port/ |
| H A D | portfns.h | 7 Block* adjustblock(Block*, int); 9 Block* allocb(int); 14 Block* bl2mem(uchar*, Block*, int); 15 int blocklen(Block*); 31 void checkb(Block*, char*); 47 Block* concatblock(Block*); 48 Block* copyblock(Block*, int); 61 Block* devbread(Chan*, long, ulong); 62 long devbwrite(Chan*, Block*, ulong); 118 void freeb(Block*); [all …]
|
| H A D | qio.c | 29 Block* bfirst; /* buffer */ 30 Block* blast; 41 void (*bypass)(void*, Block*); /* bypass queue altogether */ 74 freeblist(Block *b) in freeblist() 76 Block *next; in freeblist() 89 Block* 90 padblock(Block *bp, int size) in padblock() 93 Block *nbp; in padblock() 137 blocklen(Block *bp) in blocklen() 153 blockalloclen(Block *bp) in blockalloclen() [all …]
|
| H A D | ucallocb.c | 23 static Block* 26 Block *b; in _ucallocb() 29 if((b = ucalloc(sizeof(Block)+size+Hdrspc)) == nil) in _ucallocb() 41 addr = ROUND(addr + sizeof(Block), BLOCKALIGN); in _ucallocb() 59 Block* 62 Block *b; in ucallocb() 77 Block* 80 Block *b; in uciallocb() 117 ucfreeb(Block *b) in ucfreeb()
|
| H A D | allocb.c | 31 return ALIGNUP(sizeof(Block)) + Hdrspc + ALIGNUP(size); in blocksize() 40 Block * 43 Block *b; in mem2block() 48 b = (Block *)buf; in mem2block() 58 b->base = (uchar*)ALIGNUP((ulong)b + sizeof(Block)); in mem2block() 73 static Block* 79 Block* 82 Block *b; in allocb() 103 Block* 106 Block *b; in iallocb() [all …]
|
| /plan9/sys/src/libflate/ |
| H A D | inflateblock.c | 5 typedef struct Block Block; typedef 7 struct Block struct 16 Block *b; in blgetc() argument 27 Block *b; in blwrite() 41 Block bd, bs; in inflateblock()
|
| H A D | deflateblock.c | 5 typedef struct Block Block; typedef 7 struct Block struct 16 Block *b; in blread() argument 29 Block *b; in blwrite() 43 Block bd, bs; in deflateblock()
|
| H A D | inflatezlibblock.c | 6 typedef struct Block Block; typedef 8 struct Block struct 17 Block *b; in blgetc() argument 28 Block *b; in blwrite() 42 Block bd, bs; in inflatezlibblock()
|
| /plan9/sys/src/ape/cmd/pdksh/ |
| H A D | alloc.c | 19 typedef struct Block Block; typedef 34 Block *block; 39 struct Block { struct 40 Block *next; /* list of Blocks in Area */ argument 41 Block *prev; /* previous block in list */ argument 47 static Block aempty = {&aempty, &aempty, aempty.cell, aempty.cell}; argument 49 static void ablockfree ARGS((Block *bp, Area *ap)); 50 static void *asplit ARGS((Area *ap, Block *bp, Cell *fp, Cell *fpp, int cells)); 67 register Block *bp; 68 register Block *tmp; [all …]
|
| /plan9/sys/src/cmd/sam/ |
| H A D | disk.c | 3 static Block *blist; 54 Block* 58 Block *b; in disknewblock() 67 blist = emalloc(100*sizeof(Block)); in disknewblock() 81 diskrelease(Disk *d, Block *b) in diskrelease() 91 diskwrite(Disk *d, Block **bp, Rune *r, uint n) in diskwrite() 94 Block *b; in diskwrite() 110 diskread(Disk *d, Block *b, Rune *r, uint n) in diskread()
|
| /plan9/sys/src/cmd/acme/ |
| H A D | disk.c | 14 static Block *blist; 65 Block* 69 Block *b; in disknewblock() 78 blist = emalloc(100*sizeof(Block)); in disknewblock() 92 diskrelease(Disk *d, Block *b) in diskrelease() 102 diskwrite(Disk *d, Block **bp, Rune *r, uint n) in diskwrite() 105 Block *b; in diskwrite() 121 diskread(Disk *d, Block *b, Rune *r, uint n) in diskread()
|
| /plan9/sys/src/cmd/ip/ |
| H A D | httpfile.c | 55 typedef struct Block Block; typedef 56 struct Block struct 61 Block *link; argument 70 Block *first; argument 71 Block **end; 78 queuereq(Block *b, Req *r) in queuereq() 88 addblock(Blocklist *l, Block *b) in addblock() 102 delreq(Block *b, Req *r) in delreq() 120 Block **l, **oldest, *b; in evictblock() 139 Block * [all …]
|
| /plan9/sys/src/9/bcm/ |
| H A D | etherusb.c | 37 typedef int (Unpackfn)(Ether*, Block*); 38 typedef void (Transmitfn)(Ctlr*, Block*); 77 dump(int c, Block *b) in dump() 90 unpack(Ether *edev, Block *b, int m) in unpack() 92 Block *nb; in unpack() 115 unpackcdc(Ether *edev, Block *b) in unpackcdc() 126 unpackasix(Ether *edev, Block *b) in unpackasix() 149 unpacksmsc(Ether *edev, Block *b) in unpacksmsc() 179 transmit(Ctlr *ctlr, Block *b) in transmit() 189 transmitcdc(Ctlr *ctlr, Block *b) in transmitcdc() [all …]
|
| /plan9/sys/src/9/ip/ |
| H A D | pktmedium.c | 13 static void pktbwrite(Ipifc*, Block*, int, uchar*); 14 static void pktin(Fs*, Ipifc*, Block*); 51 pktbwrite(Ipifc *ifc, Block *bp, int, uchar*) in pktbwrite() 64 pktin(Fs *f, Ipifc *ifc, Block *bp) in pktin()
|
| H A D | ip.h | 107 Block* blist; 117 Block* blist; 234 void (*bwrite)(Ipifc *ifc, Block *b, int version, uchar *ip); 241 void (*pktin)(Fs *f, Ipifc *ifc, Block *bp); 397 void (*rcv)(Proto*, Ipifc*, Block*); 399 void (*advise)(Proto*, Block*, char*); 622 Block* hold; 623 Block* last; 637 extern Arpent* arpget(Arp*, Block *bp, int version, Ipifc *ifc, uchar *ip, uchar *h); 639 extern Block* arpresolve(Arp*, Arpent *a, Medium *type, uchar *mac); [all …]
|