Lines Matching refs:vaddr
64 int (*map)(struct xenbus_device *dev, int gnt, void **vaddr);
65 int (*unmap)(struct xenbus_device *dev, void *vaddr);
462 int xenbus_map_ring_valloc(struct xenbus_device *dev, int gnt_ref, void **vaddr) in xenbus_map_ring_valloc() argument
464 return ring_ops->map(dev, gnt_ref, vaddr); in xenbus_map_ring_valloc()
469 int gnt_ref, void **vaddr) in xenbus_map_ring_valloc_pv() argument
480 *vaddr = NULL; in xenbus_map_ring_valloc_pv()
512 *vaddr = area->addr; in xenbus_map_ring_valloc_pv()
517 int gnt_ref, void **vaddr) in xenbus_map_ring_valloc_hvm() argument
523 *vaddr = NULL; in xenbus_map_ring_valloc_hvm()
543 *vaddr = addr; in xenbus_map_ring_valloc_hvm()
569 grant_handle_t *handle, void *vaddr) in xenbus_map_ring() argument
573 gnttab_set_map_op(&op, (unsigned long)vaddr, GNTMAP_host_map, gnt_ref, in xenbus_map_ring()
602 int xenbus_unmap_ring_vfree(struct xenbus_device *dev, void *vaddr) in xenbus_unmap_ring_vfree() argument
604 return ring_ops->unmap(dev, vaddr); in xenbus_unmap_ring_vfree()
608 static int xenbus_unmap_ring_vfree_pv(struct xenbus_device *dev, void *vaddr) in xenbus_unmap_ring_vfree_pv() argument
612 .host_addr = (unsigned long)vaddr, in xenbus_unmap_ring_vfree_pv()
618 if (node->area->addr == vaddr) { in xenbus_unmap_ring_vfree_pv()
629 "can't find mapped virtual address %p", vaddr); in xenbus_unmap_ring_vfree_pv()
635 lookup_address((unsigned long)vaddr, &level)).maddr; in xenbus_unmap_ring_vfree_pv()
651 static int xenbus_unmap_ring_vfree_hvm(struct xenbus_device *dev, void *vaddr) in xenbus_unmap_ring_vfree_hvm() argument
660 if (addr == vaddr) { in xenbus_unmap_ring_vfree_hvm()
671 "can't find mapped virtual address %p", vaddr); in xenbus_unmap_ring_vfree_hvm()
680 WARN(1, "Leaking %p\n", vaddr); in xenbus_unmap_ring_vfree_hvm()
697 grant_handle_t handle, void *vaddr) in xenbus_unmap_ring() argument
701 gnttab_set_unmap_op(&op, (unsigned long)vaddr, GNTMAP_host_map, handle); in xenbus_unmap_ring()