Lines Matching refs:entry

29 	unsigned long *table, *entry;  in dma_alloc_cpu_table()  local
35 for (entry = table; entry < table + ZPCI_TABLE_ENTRIES; entry++) in dma_alloc_cpu_table()
36 *entry = ZPCI_TABLE_INVALID | ZPCI_TABLE_PROTECTED; in dma_alloc_cpu_table()
47 unsigned long *table, *entry; in dma_alloc_page_table() local
53 for (entry = table; entry < table + ZPCI_PT_ENTRIES; entry++) in dma_alloc_page_table()
54 *entry = ZPCI_PTE_INVALID | ZPCI_TABLE_PROTECTED; in dma_alloc_page_table()
63 static unsigned long *dma_get_seg_table_origin(unsigned long *entry) in dma_get_seg_table_origin() argument
67 if (reg_entry_isvalid(*entry)) in dma_get_seg_table_origin()
68 sto = get_rt_sto(*entry); in dma_get_seg_table_origin()
74 set_rt_sto(entry, sto); in dma_get_seg_table_origin()
75 validate_rt_entry(entry); in dma_get_seg_table_origin()
76 entry_clr_protected(entry); in dma_get_seg_table_origin()
81 static unsigned long *dma_get_page_table_origin(unsigned long *entry) in dma_get_page_table_origin() argument
85 if (reg_entry_isvalid(*entry)) in dma_get_page_table_origin()
86 pto = get_st_pto(*entry); in dma_get_page_table_origin()
91 set_st_pto(entry, pto); in dma_get_page_table_origin()
92 validate_st_entry(entry); in dma_get_page_table_origin()
93 entry_clr_protected(entry); in dma_get_page_table_origin()
120 unsigned long *entry; in dma_update_cpu_trans() local
122 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in dma_update_cpu_trans()
123 if (!entry) { in dma_update_cpu_trans()
129 invalidate_pt_entry(entry); in dma_update_cpu_trans()
132 set_pt_pfaa(entry, page_addr); in dma_update_cpu_trans()
133 validate_pt_entry(entry); in dma_update_cpu_trans()
137 entry_set_protected(entry); in dma_update_cpu_trans()
139 entry_clr_protected(entry); in dma_update_cpu_trans()
184 static void dma_free_seg_table(unsigned long entry) in dma_free_seg_table() argument
186 unsigned long *sto = get_rt_sto(entry); in dma_free_seg_table()