Lines Matching refs:scan
100 unsigned long rotor, scan, limit; in iounit_get_area() local
117 scan = rotor; in iounit_get_area()
118 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); in iounit_get_area()
119 if (scan + npages > limit) { in iounit_get_area()
122 scan = iounit->limit[j - 1]; in iounit_get_area()
130 for (k = 1, scan++; k < npages; k++) in iounit_get_area()
131 if (test_bit(scan++, iounit->bmap)) in iounit_get_area()
133 iounit->rotor[j - 1] = (scan < limit) ? scan : iounit->limit[j - 1]; in iounit_get_area()
134 scan -= npages; in iounit_get_area()
136 vaddr = IOUNIT_DMA_BASE + (scan << PAGE_SHIFT) + (vaddr & ~PAGE_MASK); in iounit_get_area()
137 for (k = 0; k < npages; k++, iopte = __iopte(iopte_val(iopte) + 0x100), scan++) { in iounit_get_area()
138 set_bit(scan, iounit->bmap); in iounit_get_area()
139 sbus_writel(iopte_val(iopte), &iounit->page_table[scan]); in iounit_get_area()