Lines Matching defs:chunk
50 * of equal chunks where the last 4 bytes of each chunk are occupied by
51 * the page number and the chunk number. The caller must take these four
52 * bytes into account when specifying the chunk size. Each page is mapped by
55 * Each chunk has a used and a card bit in the high bits of its page number.
56 * 0 0 chunk is free and may be allocated
57 * 1 1 chunk has been given to the interface
58 * 0 1 chunk is traveling through the system
62 uint16_t chunk;
68 #define MBP_CMSK 0x01ff /* chunk number mask */
97 * Make a trail pointer from a chunk pointer
103 * Make a free chunk pointer from a chunk number
227 t->chunk = i;
235 * allocate a chunk
257 *pap = p->pages[t->page].phy + t->chunk * p->chunk_size;
258 *hp = HMAKE(t->page, t->chunk);
266 * Free a chunk
359 printf("%s: (%s) chunk %u page %u not on card\n", __func__,
381 printf("%s: (%s) chunk %u page %u not on card\n", __func__,
389 * sync the chunk