Searched refs:Head_t (Results 1 - 9 of 9) sorted by relevance

/ast/src/lib/libast/vmalloc/
H A Dvmhdr.h97 typedef union _head_u Head_t; typedef in typeref:union:_head_u
219 Head_t* head;
273 ** sizeof(Head_t)%ALIGN == 0
275 ** and sizeof(Block_t) = sizeof(Head_t)+sizeof(Body_t)
278 { Head_t head;
352 #define BLOCK(d) ((Block_t*)((char*)(d) - sizeof(Head_t)) )
378 #define SEGWILD(b) (((b)->body.data+SIZE(b)+sizeof(Head_t)) >= SEG(b)->baddr)
379 #define VMWILD(vd,b) (((b)->body.data+SIZE(b)+sizeof(Head_t)) >= vd->seg->baddr)
392 ** So each block requires an extra Head_t.
394 #define PF_EXTRA sizeof(Head_t)
[all...]
H A Dvmstat.c115 { if((s = seg->free ? (SIZE(seg->free) + sizeof(Head_t)) : 0) > 0)
126 st->n_free += (SIZE(seg->free)+sizeof(Head_t))/s;
127 st->n_busy += ((seg->baddr - (Vmuchar_t*)b) - sizeof(Head_t))/s;
H A Dvmpool.c76 (s = (SIZE(tp) & ~BITS) + sizeof(Head_t)) >= size )
81 { s = (SIZE(tp) & ~BITS) + sizeof(Head_t);
89 if((s -= size) <= (size + sizeof(Head_t)) )
99 { SIZE(next) = s - sizeof(Head_t);
134 baddr = seg->baddr-sizeof(Head_t);
267 else s += sizeof(Head_t);
H A Dvmlast.c54 { if(!(tp = seg->free) || (SIZE(tp)+sizeof(Head_t)) < size)
124 SIZE(fp) = ((Vmuchar_t*)BLOCK(seg->baddr) - (Vmuchar_t*)data) - sizeof(Head_t);
232 SIZE(tp) = s - sizeof(Head_t);
248 { if(s >= (ssize_t)(size+sizeof(Head_t)) )
251 SIZE(tp) = (s - size) - sizeof(Head_t);
311 else size = (long)((Vmuchar_t*)vd->seg->baddr - (Vmuchar_t*)addr - sizeof(Head_t));
342 else s += sizeof(Head_t);
397 SIZE(next) = s - sizeof(Head_t);
H A Dvmclear.c63 size = seg->baddr - ((Vmuchar_t*)tp) - 2*sizeof(Head_t);
H A Dvmbest.c188 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
411 size = (size&~BITS) + s + sizeof(Head_t);
416 { np = (Block_t*)((Vmuchar_t*)fp+size+sizeof(Head_t));
432 size += s + sizeof(Head_t);
575 size += sizeof(Head_t);
582 if((size = (seg->baddr - ((Vmuchar_t*)bp) - sizeof(Head_t))) > 0)
583 SIZE(bp) = size - sizeof(Head_t);
626 /**/ ASSERT(HEADSIZE == sizeof(Head_t));
629 /**/ ASSERT((sizeof(Head_t)%ALIGN) == 0 );
632 /**/ ASSERT(sizeof(Block_t) == (sizeof(Body_t)+sizeof(Head_t)) );
[all...]
H A Dvmprivate.c60 s = size + sizeof(Seg_t) + sizeof(Block_t) + sizeof(Head_t) + 2*ALIGN;
101 SIZE(bp) = size - sizeof(Head_t);
119 SIZE(bp) = size - sizeof(Head_t);
142 SIZE(bp) = seg->baddr - (Vmuchar_t*)bp - 2*sizeof(Head_t);
H A Dvmopen.c144 SIZE(bp) = size - 2*sizeof(Head_t); /**/ASSERT(SIZE(bp) > 0 && (SIZE(bp)%ALIGN) == 0);
H A Dvmdebug.c283 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
341 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
584 endb = (Block_t*)(seg->baddr - sizeof(Head_t));

Completed in 44 milliseconds