Searched refs:Vmuchar_t (Results 1 - 15 of 15) sorted by relevance

/ast/src/lib/libast/vmalloc/
H A Dvmsegment.c49 if((Vmuchar_t*)addr >= (Vmuchar_t*)seg->addr &&
50 (Vmuchar_t*)addr < (Vmuchar_t*)seg->baddr )
H A Dvmlast.c73 { next = (Block_t*)((Vmuchar_t*)tp+size);
83 (*_Vmtrace)(vm, NIL(Vmuchar_t*), (Vmuchar_t*)tp, orgsize, 0);
116 s = (Vmuchar_t*)(seg->free) - (Vmuchar_t*)data;
117 else s = (Vmuchar_t*)BLOCK(seg->baddr) - (Vmuchar_t*)data;
118 (*_Vmtrace)(vm, (Vmuchar_t*)data, NIL(Vmuchar_t*), s, 0);
124 SIZE(fp) = ((Vmuchar_t*)BLOC
[all...]
H A Dvmpool.c88 next = (Block_t*)((Vmuchar_t*)tp+size);
94 next = (Block_t*)((Vmuchar_t*)next + size);
106 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)tp,vd->pool,0);
123 Vmuchar_t *laddr, *baddr;
133 { laddr = (Vmuchar_t*)SEGBLOCK(seg);
135 if((Vmuchar_t*)addr < laddr || (Vmuchar_t*)addr >= baddr)
140 tp = (Block_t*)(laddr + (((Vmuchar_t*)addr-laddr)/size)*size );
148 offset = (Vmuchar_t*)add
[all...]
H A Dvmdebug.c211 static void dbsetinfo(Vmuchar_t* data, size_t size, char* file, int line)
214 Vmuchar_t* data; /* real address not the one from Vmbest */
220 reg Vmuchar_t *begp, *endp;
274 reg Vmuchar_t *data;
284 if((Vmuchar_t*)addr > (Vmuchar_t*)b &&
285 (Vmuchar_t*)addr < (Vmuchar_t*)endb)
302 { data = (Vmuchar_t*)DATA(b);
303 if((Vmuchar_t*)add
[all...]
H A Dvmtrace.c101 Vmuchar_t* oldaddr, Vmuchar_t* newaddr, size_t size, size_t align )
105 Vmuchar_t* oldaddr; /* old data address */
106 Vmuchar_t* newaddr; /* new data address */
123 if(oldaddr == (Vmuchar_t*)(-1)) /* printing busy blocks */
125 oldaddr = NIL(Vmuchar_t*);
261 Vmuchar_t* data;
277 trtrace(vm, (Vmuchar_t*)(-1), data, s, 0);
279 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
H A Dvmhdr.h94 typedef unsigned char Vmuchar_t; typedef
113 #define VLONG(addr) ((Vmulong_t)((Vmuchar_t*)((Vmulong_t)addr) - (Vmuchar_t*)0) )
222 Vmuchar_t a[ALIGNB];
253 { Vmuchar_t data[HEADSIZE]; /* to standardize size */
267 { Vmuchar_t data[BODYSIZE]; /* to standardize size */
333 Vmuchar_t* baddr; /* bottom of usable memory */
340 #define SEGBLOCK(s) ((Block_t*)(((Vmuchar_t*)(s)) + ROUND(sizeof(Seg_t),ALIGN)))
395 #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) )
418 #define DBBLOCK(d) ((Block_t*)((Vmuchar_t*)(
[all...]
H A Dvmbest.c190 { nextb = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
272 { if((Vmuchar_t*)root > (Vmuchar_t*)seg->addr &&
273 (Vmuchar_t*)root < seg->baddr)
416 { np = (Block_t*)((Vmuchar_t*)fp+size+sizeof(Head_t));
582 if((size = (seg->baddr - ((Vmuchar_t*)bp) - sizeof(Head_t))) > 0)
598 (*_Vmtrace)(vm, (Vmuchar_t*)0, (Vmuchar_t*)0, 0, 0);
708 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)DAT
[all...]
H A Dvmopen.c42 Vmuchar_t a[ROUND(sizeof(Vmdata_t),ALIGN)];
46 Vmuchar_t a[ROUND(sizeof(Vmalloc_t),ALIGN)];
50 Vmuchar_t a[ROUND(sizeof(Seg_t),ALIGN)];
70 Vmuchar_t *addr;
87 { addr = NIL(Vmuchar_t*);
107 if(!(addr = (Vmuchar_t*)(*disc->memoryf)(vmp, NIL(Void_t*), 0, size, disc)) )
143 size = ((seg->baddr - (Vmuchar_t*)bp)/ALIGN) * ALIGN; /**/ ASSERT(size > 0);
H A Dvmprivate.c51 reg Vmuchar_t* addr = (Vmuchar_t*)Version; /* shut compiler warning */
71 addr = NIL(Vmuchar_t*);
73 { addr = (Vmuchar_t*)(*vm->disc->memoryf)(vm,seg->addr,seg->extent,
75 if(addr == (Vmuchar_t*)seg->addr)
81 { if(!(addr = (Vmuchar_t*)(*vm->disc->memoryf)(vm, NIL(Void_t*), 0, size, vm->disc)) )
142 SIZE(bp) = seg->baddr - (Vmuchar_t*)bp - 2*sizeof(Head_t);
286 Vmuchar_t*,Vmuchar_t*,size_t,size_t))), /* _Vmtrace */
H A Dvmprofile.c210 static void pfsetinfo(Vmalloc_t* vm, Vmuchar_t* data, size_t size, char* file, int line)
214 Vmuchar_t* data;
485 { pfsetinfo(vm,(Vmuchar_t*)data,size,file,line);
489 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)data,size,0);
534 (*_Vmtrace)(vm,(Vmuchar_t*)data,NIL(Vmuchar_t*),s,0);
591 pfsetinfo(vm,(Vmuchar_t*)addr,size,file,line);
596 (*_Vmtrace)(vm,(Vmuchar_t*)data,(Vmuchar_t*)add
[all...]
H A Dvmclear.c63 size = seg->baddr - ((Vmuchar_t*)tp) - 2*sizeof(Head_t);
H A Dvmstat.c110 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
127 st->n_busy += ((seg->baddr - (Vmuchar_t*)b) - sizeof(Head_t))/s;
H A Dvmmopen.c71 #define MMDATA(mmvm) ((Vmuchar_t*)(mmvm)->base + MMHEAD(mmvm->file))
494 static Vmuchar_t *min = (Vmuchar_t*)_map_min;
495 static Vmuchar_t *max = (Vmuchar_t*)_map_max;
H A Dmalloc.c733 Vmuchar_t data[1];
/ast/src/cmd/tests/vmalloc/
H A Dtwalk.c30 static Vmuchar_t *Buf, *Endbuf, *Avail;
47 { Avail = Buf = (Vmuchar_t*)(&Algn[0]);
96 if((Vmuchar_t*)vm1 < Buf || (Vmuchar_t*)vm1 >= Endbuf)
101 if((Vmuchar_t*)vm2 < Buf || (Vmuchar_t*)vm2 >= Endbuf)
106 if((Vmuchar_t*)vm3 < Buf || (Vmuchar_t*)vm3 >= Endbuf)
112 if((Vmuchar_t*)vm4 >= Buf && (Vmuchar_t*)vm
[all...]

Completed in 30 milliseconds