Lines Matching refs:pgtbl
32 static VDMA_PGTBL_ENTRY *pgtbl; variable
55 pgtbl[i].frame = paddr; in vdma_pgtbl_init()
56 pgtbl[i].owner = VDMA_PAGE_EMPTY; in vdma_pgtbl_init()
71 pgtbl = (VDMA_PGTBL_ENTRY *)__get_free_pages(GFP_KERNEL | GFP_DMA, in vdma_init()
73 BUG_ON(!pgtbl); in vdma_init()
74 dma_cache_wback_inv((unsigned long)pgtbl, VDMA_PGTBL_SIZE); in vdma_init()
75 pgtbl = (VDMA_PGTBL_ENTRY *)CKSEG1ADDR((unsigned long)pgtbl); in vdma_init()
83 CPHYSADDR((unsigned long)pgtbl)); in vdma_init()
121 while (pgtbl[first].owner != VDMA_PAGE_EMPTY && in vdma_alloc()
129 while (pgtbl[last].owner == VDMA_PAGE_EMPTY in vdma_alloc()
145 pgtbl[i].frame = frame; in vdma_alloc()
146 pgtbl[i].owner = laddr; in vdma_alloc()
165 printk("%08x ", pgtbl[i].frame); in vdma_alloc()
168 printk("%08x ", pgtbl[i].owner); in vdma_alloc()
190 if (pgtbl[i].owner != laddr) { in vdma_free()
197 while (i < VDMA_PGTBL_ENTRIES && pgtbl[i].owner == laddr) { in vdma_free()
198 pgtbl[i].owner = VDMA_PAGE_EMPTY; in vdma_free()
224 if (pgtbl[i].frame == frame) in vdma_phys2log()
241 return pgtbl[laddr >> 12].frame + (laddr & (VDMA_PAGESIZE - 1)); in vdma_log2phys()