Lines Matching refs:afu
19 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_init() local
21 INIT_LIST_HEAD(&afu->regions); in afu_mmio_region_init()
24 #define for_each_region(region, afu) \ argument
25 list_for_each_entry((region), &(afu)->regions, node)
27 static struct dfl_afu_mmio_region *get_region_by_index(struct dfl_afu *afu, in get_region_by_index() argument
32 for_each_region(region, afu) in get_region_by_index()
53 struct dfl_afu *afu; in afu_mmio_region_add() local
67 afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_add()
70 if (get_region_by_index(afu, region_index)) { in afu_mmio_region_add()
77 region->offset = afu->region_cur_offset; in afu_mmio_region_add()
78 list_add(®ion->node, &afu->regions); in afu_mmio_region_add()
80 afu->region_cur_offset += region_size; in afu_mmio_region_add()
81 afu->num_regions++; in afu_mmio_region_add()
97 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_destroy() local
100 list_for_each_entry_safe(region, tmp, &afu->regions, node) in afu_mmio_region_destroy()
117 struct dfl_afu *afu; in afu_mmio_region_get_by_index() local
121 afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_get_by_index()
122 region = get_region_by_index(afu, region_index); in afu_mmio_region_get_by_index()
151 struct dfl_afu *afu; in afu_mmio_region_get_by_offset() local
155 afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_get_by_offset()
156 for_each_region(region, afu) in afu_mmio_region_get_by_offset()