Lines Matching refs:q
80 struct blk *q; in alloc() local
85 while (!busy(q = p->word)) in alloc()
86 p->word = q->word; in alloc()
87 if ((char *)q - (char *)p >= rbytes) { in alloc()
90 if (q > blokp) in alloc()
100 q = p; in alloc()
102 } while (p > q || (c++) == 0); in alloc()
213 struct blk *q; in chkbptr() local
217 q = (struct blk *)(Rcheat(p->word) & ~BUSY); in chkbptr()
222 if (q < (struct blk *)brkbegin || q > bloktop) in chkbptr()
229 us += q - p; in chkbptr()
231 un += q - p; in chkbptr()
233 if (p >= q) in chkbptr()
236 p = q; in chkbptr()
246 struct blk *q; in chkmem() local
250 q = (struct blk *)(Rcheat(p->word) & ~BUSY); in chkmem()
252 if (q < (struct blk *)brkbegin || q > bloktop) in chkmem()
259 us += q - p; in chkmem()
261 un += q - p; in chkmem()
263 if (p >= q) in chkmem()
266 p = q; in chkmem()
282 blklen(q) in blklen() argument
283 char *q; in blklen()
285 struct blk *pp = (struct blk *)q;
291 return ((size_t)((long)p - (long)q));
323 char *q; local
334 q = alloc(nbytes);
335 memcpy(q, pp, blen);
337 return ((char *)q);
341 q = alloc(nbytes);
342 memcpy(q, pp, nbytes);
344 return ((char *)q);
358 q = alloc(nbytes);
359 memcpy(q, pp, sizeof (p));
361 return ((char *)q);
365 q = alloc(nbytes);
366 memcpy(q, pp, nbytes);
368 return ((char *)q);