Lines Matching refs:table
29 unsigned long *table, *entry; in dma_alloc_cpu_table() local
31 table = kmem_cache_alloc(dma_region_table_cache, GFP_ATOMIC); in dma_alloc_cpu_table()
32 if (!table) in dma_alloc_cpu_table()
35 for (entry = table; entry < table + ZPCI_TABLE_ENTRIES; entry++) in dma_alloc_cpu_table()
37 return table; in dma_alloc_cpu_table()
40 static void dma_free_cpu_table(void *table) in dma_free_cpu_table() argument
42 kmem_cache_free(dma_region_table_cache, table); in dma_free_cpu_table()
47 unsigned long *table, *entry; in dma_alloc_page_table() local
49 table = kmem_cache_alloc(dma_page_table_cache, GFP_ATOMIC); in dma_alloc_page_table()
50 if (!table) in dma_alloc_page_table()
53 for (entry = table; entry < table + ZPCI_PT_ENTRIES; entry++) in dma_alloc_page_table()
55 return table; in dma_alloc_page_table()
58 static void dma_free_page_table(void *table) in dma_free_page_table() argument
60 kmem_cache_free(dma_page_table_cache, table); in dma_free_page_table()
206 void dma_cleanup_tables(unsigned long *table) in dma_cleanup_tables() argument
210 if (!table) in dma_cleanup_tables()
214 if (reg_entry_isvalid(table[rtx])) in dma_cleanup_tables()
215 dma_free_seg_table(table[rtx]); in dma_cleanup_tables()
217 dma_free_cpu_table(table); in dma_cleanup_tables()