Lines Matching refs:blk

46 struct blk *blokp;			/* current search pointer */
47 struct blk *bloktop; /* top of arena (last blok) */
64 static void fill_pat(struct blk *, uint32_t);
65 static void chkbptr(struct blk *);
79 struct blk *p = blokp; in alloc()
80 struct blk *q; in alloc()
88 blokp = (struct blk *) in alloc()
92 p->word = (struct blk *) in alloc()
101 p = (struct blk *)(Rcheat(p->word) & ~BUSY); in alloc()
117 bloktop = (struct blk *)brkbegin; in addblok()
122 struct blk *blokstak; in addblok()
128 blokstak = (struct blk *)(stakbas) - 1; in addblok()
131 bloktop->word = (struct blk *)(Rcheat(rndstak) | BUSY); in addblok()
132 bloktop = (struct blk *)(rndstak); in addblok()
143 (&bloktop->word) - brkend + sizeof (struct blk))) == in addblok()
147 bloktop = bloktop->word = (struct blk *)(Rcheat(bloktop) + reqd); in addblok()
150 (&bloktop->word) - brkend + sizeof (struct blk))) == in addblok()
154 bloktop->word = (struct blk *)(brkbegin + 1); in addblok()
177 struct blk *p;
179 if ((p = (struct blk *)ap) && p < bloktop && p > (struct blk *)brkbegin)
185 p->word = (struct blk *)(Rcheat(p->word) & ~BUSY);
198 fill_pat(struct blk *ptr, uint32_t pat) in fill_pat()
209 chkbptr(struct blk *ptr) in chkbptr()
212 struct blk *p = (struct blk *)brkbegin; in chkbptr()
213 struct blk *q; in chkbptr()
217 q = (struct blk *)(Rcheat(p->word) & ~BUSY); in chkbptr()
222 if (q < (struct blk *)brkbegin || q > bloktop) in chkbptr()
245 struct blk *p = (struct blk *)brkbegin; in chkmem()
246 struct blk *q; in chkmem()
250 q = (struct blk *)(Rcheat(p->word) & ~BUSY); in chkmem()
252 if (q < (struct blk *)brkbegin || q > bloktop) in chkmem()
285 struct blk *pp = (struct blk *)q;
286 struct blk *p;
289 p = (struct blk *)(Rcheat(pp->word) & ~BUSY);
356 p = (struct blk *)pp;