Lines Matching refs:pagetable
39 u16 *pagetable = card->emupagetable; in emu10k1_addxmgr_alloc() local
50 if (pagetable[index] & 0x8000) { in emu10k1_addxmgr_alloc()
52 index += (pagetable[index] & 0x7fff); in emu10k1_addxmgr_alloc()
55 if (pagetable[index] >= numpages) { in emu10k1_addxmgr_alloc()
61 if (pagetable[index] > numpages) in emu10k1_addxmgr_alloc()
62 pagetable[index + numpages] = pagetable[index] - numpages; in emu10k1_addxmgr_alloc()
64 pagetable[index] = (numpages | 0x8000); /* Mark block as used */ in emu10k1_addxmgr_alloc()
71 index += pagetable[index]; in emu10k1_addxmgr_alloc()
85 u16 *pagetable = card->emupagetable; in emu10k1_addxmgr_free() local
91 if (pagetable[index] & 0x8000) { in emu10k1_addxmgr_free()
93 origsize = pagetable[index] & 0x7fff; in emu10k1_addxmgr_free()
94 pagetable[index] = origsize; in emu10k1_addxmgr_free()
97 if (!(pagetable[index + origsize] & 0x8000)) in emu10k1_addxmgr_free()
98 pagetable[index] += pagetable[index + origsize] & 0x7fff; in emu10k1_addxmgr_free()