Lines Matching refs:vaddr
78 void **vaddr);
79 int (*unmap)(struct xenbus_device *dev, void *vaddr);
359 int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr, in xenbus_grant_ring() argument
367 virt_to_gfn(vaddr), 0); in xenbus_grant_ring()
375 vaddr = vaddr + XEN_PAGE_SIZE; in xenbus_grant_ring()
449 unsigned int nr_grefs, void **vaddr) in xenbus_map_ring_valloc() argument
451 return ring_ops->map(dev, gnt_refs, nr_grefs, vaddr); in xenbus_map_ring_valloc()
535 unsigned long vaddr = (unsigned long)gfn_to_virt(gfn); in xenbus_map_ring_setup_grant_hvm() local
537 info->phys_addrs[info->idx] = vaddr; in xenbus_map_ring_setup_grant_hvm()
538 info->addrs[info->idx] = vaddr; in xenbus_map_ring_setup_grant_hvm()
546 void **vaddr) in xenbus_map_ring_valloc_hvm() argument
560 *vaddr = NULL; in xenbus_map_ring_valloc_hvm()
594 *vaddr = addr; in xenbus_map_ring_valloc_hvm()
662 int xenbus_unmap_ring_vfree(struct xenbus_device *dev, void *vaddr) in xenbus_unmap_ring_vfree() argument
664 return ring_ops->unmap(dev, vaddr); in xenbus_unmap_ring_vfree()
672 void **vaddr) in xenbus_map_ring_valloc_pv() argument
682 *vaddr = NULL; in xenbus_map_ring_valloc_pv()
714 *vaddr = area->addr; in xenbus_map_ring_valloc_pv()
727 static int xenbus_unmap_ring_vfree_pv(struct xenbus_device *dev, void *vaddr) in xenbus_unmap_ring_vfree_pv() argument
738 if (node->pv.area->addr == vaddr) { in xenbus_unmap_ring_vfree_pv()
749 "can't find mapped virtual address %p", vaddr); in xenbus_unmap_ring_vfree_pv()
757 addr = (unsigned long)vaddr + (XEN_PAGE_SIZE * i); in xenbus_unmap_ring_vfree_pv()
814 static int xenbus_unmap_ring_vfree_hvm(struct xenbus_device *dev, void *vaddr) in xenbus_unmap_ring_vfree_hvm() argument
827 if (addr == vaddr) { in xenbus_unmap_ring_vfree_hvm()
838 "can't find mapped virtual address %p", vaddr); in xenbus_unmap_ring_vfree_hvm()
851 vunmap(vaddr); in xenbus_unmap_ring_vfree_hvm()
855 WARN(1, "Leaking %p, size %u page(s)\n", vaddr, nr_pages); in xenbus_unmap_ring_vfree_hvm()