Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 149) sorted by relevance

123456

/plan9/sys/src/cmd/cc/
H A Dcompat.c10 return alloc(n); in malloc()
16 return alloc(m*n); in calloc()
38 v = alloc(size); in mallocz()
H A Dpswt.c45 iq = alloc(nc*sizeof(C1)); in doswit()
98 iqh = alloc(nc*sizeof(C1)); in doswit()
99 iql = alloc(nc*sizeof(C1)); in doswit()
129 c = alloc(sizeof(*c)); in casf()
/plan9/sys/src/9/pc/
H A Dethervt6105m.c302 void* alloc; /* descriptors, etc. */ member
435 char *alloc, *e, *p; in vt6105Mifstat() local
439 alloc = malloc(READSTR); in vt6105Mifstat()
440 p = alloc; in vt6105Mifstat()
491 n = readstr(offset, a, n, alloc); in vt6105Mifstat()
492 free(alloc); in vt6105Mifstat()
613 uchar *alloc; in vt6105Mattach() local
620 if(ctlr->alloc != nil){ in vt6105Mattach()
633 alloc = mallocalign((ctlr->nrd+ctlr->ntd)*dsz, dsz, 0, 0); in vt6105Mattach()
634 if(alloc == nil){ in vt6105Mattach()
[all …]
H A Dethervt6102.c273 void* alloc; /* receive/transmit descriptors */ member
476 uchar *alloc, *bounce; in vt6102attach() local
481 if(ctlr->alloc != nil){ in vt6102attach()
493 alloc = malloc((ctlr->nrd+ctlr->ntd)*ctlr->cls + ctlr->ntd*Txcopy + ctlr->cls-1); in vt6102attach()
494 if(alloc == nil){ in vt6102attach()
498 ctlr->alloc = alloc; in vt6102attach()
499 alloc = (uchar*)ROUNDUP((ulong)alloc, ctlr->cls); in vt6102attach()
501 ctlr->rd = (Ds*)alloc; in vt6102attach()
513 free(ctlr->alloc); in vt6102attach()
514 ctlr->alloc = nil; in vt6102attach()
[all …]
H A Dether8139.c188 void* alloc; /* base of per-Ctlr allocated data */ member
408 uchar *alloc; in rtl8139init() local
426 alloc = (uchar*)ROUNDUP((ulong)ctlr->alloc, 32); in rtl8139init()
427 ctlr->rbstart = alloc; in rtl8139init()
428 alloc += ctlr->rblen+16; in rtl8139init()
439 ctlr->td[i].data = alloc; in rtl8139init()
440 alloc += Tdbsz; in rtl8139init()
482 if(ctlr->alloc == nil){ in rtl8139attach()
484 ctlr->alloc = malloc(ctlr->rblen+16 + Ntd*Tdbsz + 32); in rtl8139attach()
485 if(ctlr->alloc == nil) { in rtl8139attach()
[all …]
H A Detherdp83820.c362 void* alloc; /* base of per-Ctlr allocated data */ member
634 uchar *alloc; in dp83820init() local
643 alloc = (uchar*)ROUNDUP((ulong)ctlr->alloc, 8); in dp83820init()
644 ctlr->rd = (Desc*)alloc; in dp83820init()
645 alloc += ctlr->nrd*sizeof(Desc); in dp83820init()
669 ctlr->td = (Desc*)alloc; in dp83820init()
708 if(ctlr->alloc != nil){ in dp83820attach()
718 if(ctlr->alloc != nil){ in dp83820attach()
719 free(ctlr->alloc); in dp83820attach()
720 ctlr->alloc = nil; in dp83820attach()
[all …]
/plan9/sys/src/cmd/disk/prep/
H A Dprep.c57 uchar alloc; member
106 if(autox[i].alloc){ in main()
110 autox[i].alloc = 1; in main()
369 if(autox[i].alloc==0 || autox[i].size) in autoxpart()
384 if(autox[i].alloc==0 || autox[i].size) in autoxpart()
400 if(autox[i].alloc==0 || autox[i].size) in autoxpart()
415 if(autox[i].alloc==0 || autox[i].size) in autoxpart()
427 if(autox[i].alloc) in autoxpart()
432 if(autox[i].alloc == 0) in autoxpart()
/plan9/sys/src/cmd/
H A Dsh.C36 Node *alloc(int (*op)(Node *));
91 alloc(int (*op)(Node *)) in alloc() function
200 np = alloc(xsubshell); in command()
269 np = alloc(0); in list()
277 np1 = alloc(0); in list()
308 np1 = alloc(xpipeline); in pipeline()
381 np = alloc(xsimple); in simple()
/plan9/sys/src/cmd/vnc/
H A Ddev.c117 int i, j, alloc; in devwalk() local
124 alloc = 0; in devwalk()
127 if(alloc && wq->clone!=nil) in devwalk()
135 alloc = 1; in devwalk()
178 if(alloc) in devwalk()
/plan9/sys/src/9/port/
H A Ddev.c171 int i, j, alloc; in devwalk() local
179 alloc = 0; in devwalk()
182 if(alloc && wq->clone!=nil) in devwalk()
190 alloc = 1; in devwalk()
252 if(alloc) in devwalk()
/plan9/sys/src/cmd/aux/vga/
H A Dvesa.c119 vga->link = alloc(sizeof(Ctlr)); in dbvesa()
124 vga->link->link = alloc(sizeof(Ctlr)); in dbvesa()
164 m = alloc(sizeof(Mode)); in dbvesamode()
181 m->attr = alloc(sizeof(Attr)); in dbvesamode()
183 m->attr->val = alloc(32); in dbvesamode()
325 vbe = alloc(sizeof(Vbe)); in mkvbe()
330 vbe->mem = alloc(MemSize); in mkvbe()
331 vbe->isvalid = alloc(MemSize/PageSize); in mkvbe()
332 vbe->buf = alloc(PageSize); in mkvbe()
333 vbe->modebuf = alloc(PageSize); in mkvbe()
[all …]
H A Ddb.c24 attr = alloc(sizeof(Attr)); in addattr()
25 attr->attr = alloc(strlen(t->attr)+1); in addattr()
27 attr->val = alloc(strlen(t->val)+1); in addattr()
71 *ctlr = alloc(sizeof(Ctlr)); in addctlr()
116 vga->bios = alloc(len+1); in dbbios()
342 mode = alloc(sizeof(Mode)); in dbmode()
/plan9/sys/src/cmd/samterm/
H A Drasp.c37 t = alloc(sizeof(Section)); in rsinsert()
91 s->next->text = alloc(RUNESIZE*(TBLOCKSIZE+1)); in splitsect()
148 s->text = alloc(RUNESIZE*(TBLOCKSIZE+1)); in rdata()
263 *s = alloc(RUNESIZE*want); in Strgrow()
/plan9/sys/src/cmd/unix/drawterm/kern/
H A Ddev.c171 int i, j, alloc; in devwalk() local
179 alloc = 0; in devwalk()
182 if(alloc && wq->clone!=nil) in devwalk()
190 alloc = 1; in devwalk()
252 if(alloc) in devwalk()
/plan9/sys/src/cmd/cwfs/
H A Dnet.c64 int alloc; /* flag: allocated */ member
109 if(!netconn->alloc) in getchan()
145 netconn->alloc = 1; in getchan()
208 netconn->alloc = 0; in nethangup()
/plan9/sys/src/ape/cmd/pdksh/
H A Dexpand.h38 (xs).beg = alloc((xs).len + X_EXTRA, (xs).areap); \
84 vp__ = (void**) alloc(sizeofN(void*, n), ATEMP); \
H A Dtable.c47 ntblp = (struct tbl**) alloc(sizeofN(struct tbl *, nsize), tp->areap);
121 p = (struct tbl *) alloc(offsetof(struct tbl, name[0]) + len,
178 p = (struct tbl **)alloc(sizeofN(struct tbl *, tp->size+1), ATEMP);
H A Dtree.c496 r = (struct op *) alloc(sizeof(struct op), ap);
509 alloc((int)(tw - t->vars) * sizeof(*tw), ap);
521 alloc((int)(tw - t->args) * sizeof(*tw), ap);
542 return memcpy(alloc(len, ap), wp, len);
682 ior = (struct ioword **) alloc((int)(ior - iow) * sizeof(*ior), ap);
688 q = (struct ioword *) alloc(sizeof(*p), ap);
/plan9/sys/src/cmd/unix/drawterm/gui-osx/
H A DMakefile6 alloc.$O\
/plan9/sys/src/cmd/unix/drawterm/gui-win32/
H A DMakefile6 alloc.$O\
/plan9/sys/src/cmd/unix/drawterm/libdraw/
H A DMakefile6 alloc.$O\
/plan9/sys/src/cmd/upas/bayes/
H A Ddfa.c30 Reiset *alloc; /* chain of all Reisets */ member
413 d.last = &d.alloc; in dregcvt()
445 for(s=d.alloc; s; s=s->next) in dregcvt()
451 for(s=d.alloc; s; s=s->next) in dregcvt()
461 for(s=d.alloc; s; s=s->next){ in dregcvt()
473 for(s=d.alloc; s; s=s->next){ in dregcvt()
504 for(s=d.alloc; s; s=s->next) in dregcvt()
576 for(s=d->alloc; s; s=s->next){ in ddump()
/plan9/sys/src/cmd/gs/src/
H A Dgp_unix_cache.c211 private int gp_cache_loaditem(FILE *file, gp_cache_entry *item, gp_cache_alloc alloc, void *userdat… in gp_cache_loaditem() argument
250 item->buffer = alloc(userdata, len); in gp_cache_loaditem()
406 gp_cache_alloc alloc, void *userdata) in gp_cache_query() argument
450 hit = gp_cache_loaditem(file, &item, alloc, userdata); in gp_cache_query()
H A Dgxstate.h68 gs_state_alloc_proc_t alloc; member
/plan9/sys/src/cmd/unix/drawterm/libmemdraw/
H A DMakefile6 alloc.$O\

123456