Home
last modified time | relevance | path

Searched refs:Vmuchar_t (Results 1 – 14 of 14) sorted by relevance

/titanic_41/usr/src/lib/libast/common/vmalloc/
H A Dvmlast.c86 { next = (Block_t*)((Vmuchar_t*)tp+size);
96 (*_Vmtrace)(vm, NIL(Vmuchar_t*), (Vmuchar_t*)tp, orgsize, 0);
142 s = (Vmuchar_t*)(seg->free) - (Vmuchar_t*)data;
143 else s = (Vmuchar_t*)BLOCK(seg->baddr) - (Vmuchar_t*)data;
144 (*_Vmtrace)(vm, (Vmuchar_t*)data, NIL(Vmuchar_t*), s, 0);
150 SIZE(fp) = ((Vmuchar_t*)BLOCK(seg->baddr) - (Vmuchar_t*)data) - sizeof(Head_t);
212 (seg->last && (Vmuchar_t*)data > (Vmuchar_t*)seg->last) )
221 { if(seg->last && (Vmuchar_t*)data < (Vmuchar_t*)seg->last)
222 oldsize = (Vmuchar_t*)seg->last - (Vmuchar_t*)data;
223 else oldsize = (Vmuchar_t*)BLOCK(seg->baddr) - (Vmuchar_t*)data;
[all …]
H A Dvmdebug.c212 static void dbsetinfo(Vmuchar_t* data, size_t size, const char* file, int line) in dbsetinfo()
215 Vmuchar_t* data; /* real address not the one from Vmbest */ in dbsetinfo()
221 reg Vmuchar_t *begp, *endp;
274 reg Vmuchar_t* data;
291 if((Vmuchar_t*)addr > (Vmuchar_t*)b &&
292 (Vmuchar_t*)addr < (Vmuchar_t*)endb)
309 { data = (Vmuchar_t*)DATA(b);
310 if((Vmuchar_t*)addr >= data && (Vmuchar_t*)addr < data+SIZE(b))
313 if((Vmuchar_t*)addr >= data &&
314 (Vmuchar_t*)addr < data+DBSIZE(data))
[all …]
H A Dvmpool.c99 next = (Block_t*)((Vmuchar_t*)tp+size);
105 next = (Block_t*)((Vmuchar_t*)next + size);
117 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)tp,vd->pool,0);
134 reg Vmuchar_t *laddr, *baddr;
153 { laddr = (Vmuchar_t*)SEGBLOCK(seg);
155 if((Vmuchar_t*)addr < laddr || (Vmuchar_t*)addr >= baddr)
160 tp = (Block_t*)(laddr + (((Vmuchar_t*)addr-laddr)/size)*size );
168 offset = (Vmuchar_t*)addr - (Vmuchar_t*)tp;
218 (*_Vmtrace)(vm, (Vmuchar_t*)data, NIL(Vmuchar_t*), vd->pool, 0);
272 (*_Vmtrace)(vm, (Vmuchar_t*)data, (Vmuchar_t*)data, size, 0);
[all …]
H A Dvmbest.c199 { nextb = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
281 { if((Vmuchar_t*)root > (Vmuchar_t*)seg->addr &&
282 (Vmuchar_t*)root < seg->baddr)
444 { np = (Block_t*)((Vmuchar_t*)fp+size+sizeof(Head_t));
625 if((size = (seg->baddr - ((Vmuchar_t*)bp) - sizeof(Head_t))) > 0)
641 (*_Vmtrace)(vm, (Vmuchar_t*)0, (Vmuchar_t*)0, 0, 0);
770 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)DATA(tp),orgsize,0);
809 if((Vmuchar_t*)addr > (Vmuchar_t*)b &&
810 (Vmuchar_t*)addr < (Vmuchar_t*)endb)
823 { reg Vmuchar_t* data = (Vmuchar_t*)DATA(b);
[all …]
H A Dvmhdr.h101 typedef unsigned char Vmuchar_t; typedef
259 Vmuchar_t a[ALIGNB];
290 { Vmuchar_t data[HEADSIZE]; /* to standardize size */
303 { Vmuchar_t data[BODYSIZE]; /* to standardize size */
368 Vmuchar_t* baddr; /* bottom of usable memory */
375 #define SEGBLOCK(s) ((Block_t*)(((Vmuchar_t*)(s)) + ROUND(sizeof(Seg_t),ALIGN)))
431 #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) )
454 #define DBBLOCK(d) ((Block_t*)((Vmuchar_t*)(d) - 3*sizeof(Head_t)) )
456 #define DBSEG(d) (((Head_t*)((Vmuchar_t*)(d) - sizeof(Head_t)))->head.seg.seg )
457 #define DBSIZE(d) (((Head_t*)((Vmuchar_t*)(d) - 2*sizeof(Head_t)))->head.size.size )
[all …]
H A Dvmtrace.c101 Vmuchar_t* oldaddr, Vmuchar_t* newaddr, size_t size, size_t align ) in trtrace()
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 Dvmsegment.c57 if((Vmuchar_t*)addr >= (Vmuchar_t*)seg->addr &&
58 (Vmuchar_t*)addr < (Vmuchar_t*)seg->baddr )
H A Dvmprivate.c50 reg Vmuchar_t* addr = (Vmuchar_t*)Version; /* shut compiler warning */
78 addr = NIL(Vmuchar_t*);
87 addr = (Vmuchar_t*)(*memoryf)(vm,seg->addr,seg->extent,
92 { /**/ASSERT(addr == (Vmuchar_t*)seg->addr);
99 { if((addr = (Vmuchar_t*)(*memoryf)(vm,NIL(Void_t*),0,size,vm->disc)) )
168 SIZE(bp) = seg->baddr - (Vmuchar_t*)bp - 2*sizeof(Head_t);
290 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, const char* file, int line) in pfsetinfo()
214 Vmuchar_t* data;
493 pfsetinfo(vm,(Vmuchar_t*)data,size,file,line);
497 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)data,size,0);
556 (*_Vmtrace)(vm,(Vmuchar_t*)data,NIL(Vmuchar_t*),s,0);
627 pfsetinfo(vm,(Vmuchar_t*)addr,size,file,line);
632 (*_Vmtrace)(vm,(Vmuchar_t*)data,(Vmuchar_t*)addr,size,0);
643 pfsetinfo(vm,(Vmuchar_t*)data,s,file,line);
650 { reg Vmuchar_t *d = (Vmuchar_t*)addr+oldsize, *ed = (Vmuchar_t*)addr+size;
722 pfsetinfo(vm,(Vmuchar_t*)data,size,file,line);
[all …]
H A Dvmopen.c61 Vmuchar_t* addr;
80 { addr = NIL(Vmuchar_t*);
109 if(!(addr = (Vmuchar_t*)(*memoryf)(vm,NIL(Void_t*),0,s,disc)) )
154 SIZE(b) = seg->baddr - (Vmuchar_t*)b - 2*sizeof(Head_t);
H A Dvmmopen.c174 #define MMADDR(b) ((Void_t*)(((Vmuchar_t*)b) + MM_START) )
209 return (Void_t*)(((Vmuchar_t*)mmdc->mm->base) + MM_START);
224 Vmuchar_t *base;
228 { base = ((Vmuchar_t*)mmdc->mm->base) + MM_START;
H A Dvmstat.c102 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
118 st->n_busy += ((seg->baddr - (Vmuchar_t*)b) - sizeof(Head_t))/s;
H A Dvmclear.c72 size = seg->baddr - ((Vmuchar_t*)tp) - 2*sizeof(Head_t);
H A Dmalloc.c466 Vmuchar_t data[1];