Lines Matching refs:phys_mem
45 struct phys_mem { struct
135 struct phys_mem *mem = rb_node_data(struct phys_mem, node, node); in cmp_phys_mem()
139 static struct phys_mem *
145 struct phys_mem *new_mem = calloc(1, sizeof(*new_mem)); in ensure_phys_mem()
160 return rb_node_data(struct phys_mem, node, node); in ensure_phys_mem()
163 static struct phys_mem *
173 return rb_node_data(struct phys_mem, node, node); in search_phys_mem()
212 struct phys_mem *pmem = ensure_phys_mem(mem, page); in aub_mem_phys_write()
277 struct phys_mem *phys_mem = search_phys_mem(mem, phys_addr); in aub_mem_get_ggtt_bo() local
279 if (!phys_mem) in aub_mem_get_ggtt_bo()
285 MAP_SHARED | MAP_FIXED, mem->mem_fd, phys_mem->fd_offset); in aub_mem_get_ggtt_bo()
294 static struct phys_mem *
300 struct phys_mem *table = search_phys_mem(mem, addr); in ppgtt_walk()
347 struct phys_mem *phys_mem = ppgtt_walk(mem, mem->pml4, page); in aub_mem_get_ppgtt_bo() local
351 MAP_SHARED | MAP_FIXED, mem->mem_fd, phys_mem->fd_offset); in aub_mem_get_ppgtt_bo()
385 rb_tree_foreach_safe(struct phys_mem, entry, &mem->mem, node) { in aub_mem_fini()
397 struct phys_mem *page = search_phys_mem(mem, phys_addr); in aub_mem_get_phys_addr_data()
406 struct phys_mem *page = ppgtt_walk(mem, mem->pml4, virt_addr); in aub_mem_get_ppgtt_addr_data()
415 struct phys_mem *page = ppgtt_walk(mem, mem->pml4, virt_addr); in aub_mem_get_ppgtt_addr_aub_data()