Lines Matching defs:first
45 * the first 16 Mbytes of main memory and declare all
93 * Allocate DMA pagetables using a simple first-fit algorithm
97 int first, last, pages, frame, i;
119 first = 0;
121 while (pgtbl[first].owner != VDMA_PAGE_EMPTY &&
122 first < VDMA_PGTBL_ENTRIES) first++;
123 if (first + pages > VDMA_PGTBL_ENTRIES) { /* nothing free */
128 last = first + 1;
130 && last - first < pages)
133 if (last - first == pages)
135 first = last + 1;
141 laddr = (first << 12) + (paddr & (VDMA_PAGESIZE - 1));
144 for (i = first; i < last; i++) {
161 for (i = first; i < last; i++)
164 for (i = first; i < last; i++)
167 for (i = first; i < last; i++)
213 * This will return the logical address of the first
298 * Check error conditions first