Home
last modified time | relevance | path

Searched refs:nalloc (Results 1 – 25 of 27) sorted by relevance

12

/plan9/sys/src/cmd/sam/
H A Dlist.c11 if(l->listptr == nil || l->nalloc == 0){ in growlist()
12 l->nalloc = INCR; in growlist()
16 else if(l->nused == l->nalloc){ in growlist()
17 p = erealloc(l->listptr, (l->nalloc+INCR)*esize); in growlist()
19 memset(p+l->nalloc*esize, 0, INCR*esize); in growlist()
20 l->nalloc += INCR; in growlist()
92 l->nalloc = 0; in listalloc()
H A Dsam.c708 if(tempfile.nalloc < file.nused){ in settempfile()
712 tempfile.nalloc = file.nused; in settempfile()
H A Dsam.h70 int nalloc; member
/plan9/sys/src/cmd/
H A Dread.c12 int m, n, nalloc; in line() local
15 nalloc = 0; in line()
28 if(m == nalloc){ in line()
29 nalloc += 1024; in line()
30 buf = realloc(buf, nalloc); in line()
H A Dmc.c27 int nalloc=ALLOC_QUANTA; variable
110 if(nchars++ >= nalloc) in readbuf()
117 if(nchars++ >= nalloc) in readbuf()
235 nalloc += ALLOC_QUANTA; in morechars()
236 if((cbuf = realloc(cbuf, nalloc*sizeof(*cbuf))) == 0) in morechars()
/plan9/sys/src/cmd/acme/
H A Dedit.c253 if(l->listptr==0 || l->nalloc==0){ in growlist()
254 l->nalloc = INCR; in growlist()
257 }else if(l->nused == l->nalloc){ in growlist()
258 l->listptr = erealloc(l->listptr, (l->nalloc+INCR)*sizeof(void*)); in growlist()
259 memset(l->ptr+l->nalloc, 0, INCR*sizeof(void*)); in growlist()
260 l->nalloc += INCR; in growlist()
300 s->nalloc = n+10; in allocstring()
301 s->r = emalloc(s->nalloc*sizeof(Rune)); in allocstring()
379 if(s->n+1 >= s->nalloc){ in Straddc()
380 s->nalloc += 10; in Straddc()
[all …]
H A Dedit.h13 int nalloc; member
64 int nalloc; member
/plan9/sys/src/cmd/9nfs/
H A Dstring.c8 static Strnode* nalloc(int);
41 x = nalloc(n); in strstore()
82 nalloc(int n) /* get permanent storage for Strnode */ in nalloc() function
/plan9/sys/src/cmd/htmlfmt/
H A Dutil.c110 if(b->nalloc < b->n + ns + 1){ in growbytes()
111 b->nalloc = b->n + ns + 8000; in growbytes()
113 b->b = realloc(b->b, b->nalloc); in growbytes()
H A Ddat.h14 long nalloc; member
/plan9/sys/src/libframe/
H A Dfrbox.c18 if(f->nbox+n > f->nalloc) in _fraddbox()
65 f->nalloc += delta; in _frgrowbox()
66 f->box = realloc(f->box, f->nalloc*sizeof(Frbox)); in _frgrowbox()
H A Dfrinsert.c31 if(nb == frame.nalloc){ in bxscan()
110 static int nalloc=0; in frinsert() local
156 if(npts == nalloc){ in frinsert()
158 nalloc += DELTA; in frinsert()
H A Dfrinit.c15 f->nalloc = 0; in frinit()
/plan9/sys/lib/dist/cmd/
H A Dbflz.c69 uint nalloc; variable
87 nalloc++; in allocnode()
375 fprint(2, "%d nodes used; %d of %d hash slots used\n", nalloc, nnew, nhash); in main()
/plan9/sys/src/cmd/troff2html/
H A Dtroff2html.c139 int nalloc; variable
253 if(nalloc == nchars){ in emitchar()
254 nalloc += 10000; in emitchar()
255 chars = realloc(chars, nalloc*sizeof(chars[0])); in emitchar()
/plan9/sys/src/cmd/aux/
H A Dmsexceltables.c715 static int nalloc = 0; in xf() local
719 if(nalloc >= Nxf){ in xf()
720 nalloc += 20; in xf()
721 if((Xf = realloc(Xf, nalloc*sizeof(int))) == nil) in xf()
/plan9/sys/include/
H A Dframe.h42 ushort nbox, nalloc; member
/plan9/sys/src/9/port/
H A Ddebugalloc.c37 int nalloc; member
204 p->nalloc++; in poolalloc()
354 p->nalloc, in poolread()
H A Dusbehci.c241 int nalloc; member
415 edpool.nalloc += Incr; in edalloc()
417 dprint("ehci: edalloc: %d eds\n", edpool.nalloc); in edalloc()
1158 edpool.nalloc, edpool.ninuse, edpool.nfree); in dump()
/plan9/sys/src/9/pc/
H A Dwavelan.h247 ulong nalloc; // allocation (reclaim) events member
H A Dusbuhci.c204 int nalloc; member
213 int nalloc; member
539 tdpool.nalloc, tdpool.ninuse, tdpool.nfree); in xdump()
543 qhpool.nalloc, qhpool.ninuse, qhpool.nfree); in xdump()
593 tdpool.nalloc += Incr; in tdalloc()
673 qhpool.nalloc += Incr; in qhalloc()
H A Dusbohci.c321 int nalloc; member
330 int nalloc; member
591 tdpool.nalloc += Incr; in tdalloc()
639 edpool.nalloc += Incr; in edalloc()
1026 tdpool.nalloc, tdpool.ninuse, tdpool.nfree); in dump()
1030 edpool.nalloc, edpool.ninuse, edpool.nfree); in dump()
H A Dwavelan.c650 ctlr->nalloc++; in w_intr()
864 PRINTSTAT("AllocEvs: %lud\n", ctlr->nalloc); in w_ifstat()
H A Dsdmv50xx.c409 int nalloc; member
419 srblist.nalloc++; in allocsrb()
/plan9/sys/src/cmd/samterm/
H A Dsyms776 'u' 82 nalloc;
806 print(" nalloc ", addr.nalloc, "\n");

12