Lines Matching refs:perm
113 int perm = -EFAULT; in dir_to_perm() local
117 perm = VHOST_MAP_WO; in dir_to_perm()
120 perm = VHOST_MAP_RO; in dir_to_perm()
123 perm = VHOST_MAP_RW; in dir_to_perm()
129 return perm; in dir_to_perm()
133 size_t size, unsigned int perm) in vdpasim_map_range() argument
149 (u64)dma_addr + size - 1, (u64)paddr, perm); in vdpasim_map_range()
178 int perm = dir_to_perm(dir); in vdpasim_map_page() local
180 if (perm < 0) in vdpasim_map_page()
183 return vdpasim_map_range(vdpasim, paddr, size, perm); in vdpasim_map_page()
544 map->last, map->addr, map->perm); in vdpasim_set_map()
558 u64 pa, u32 perm, void *opaque) in vdpasim_dma_map() argument
565 pa, perm, opaque); in vdpasim_dma_map()