diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-09-22 22:08:52 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-09-22 22:08:52 +0000 |
| commit | 7ae99f80b6661760c5de3edd330b279f04b092a2 (patch) | |
| tree | 533dff9d5801d8e7cb6c552f39761067180853b7 /sys/dev/drm2 | |
| parent | 02fac928ab687607786801cdf33f100c70cc6a2e (diff) | |
Diffstat (limited to 'sys/dev/drm2')
| -rw-r--r-- | sys/dev/drm2/drm_memory.c | 2 | ||||
| -rw-r--r-- | sys/dev/drm2/ttm/ttm_bo_util.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/drm2/drm_memory.c b/sys/dev/drm2/drm_memory.c index 226c2c15734b..e32925445f9c 100644 --- a/sys/dev/drm2/drm_memory.c +++ b/sys/dev/drm2/drm_memory.c @@ -129,6 +129,6 @@ void drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev) dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) vunmap(map->handle); else - pmap_unmapdev((vm_offset_t)map->handle, map->size); + pmap_unmapdev(map->handle, map->size); } EXPORT_SYMBOL(drm_core_ioremapfree); diff --git a/sys/dev/drm2/ttm/ttm_bo_util.c b/sys/dev/drm2/ttm/ttm_bo_util.c index c53bb21450d8..9caab983787c 100644 --- a/sys/dev/drm2/ttm/ttm_bo_util.c +++ b/sys/dev/drm2/ttm/ttm_bo_util.c @@ -224,7 +224,7 @@ void ttm_mem_reg_iounmap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, man = &bdev->man[mem->mem_type]; if (virtual && mem->bus.addr == NULL) - pmap_unmapdev((vm_offset_t)virtual, mem->bus.size); + pmap_unmapdev(virtual, mem->bus.size); (void) ttm_mem_io_lock(man, false); ttm_mem_io_free(bdev, mem); ttm_mem_io_unlock(man); @@ -263,7 +263,7 @@ static int ttm_copy_io_ttm_page(struct ttm_tt *ttm, void *src, memcpy(dst, src, PAGE_SIZE); - pmap_unmapdev((vm_offset_t)dst, PAGE_SIZE); + pmap_unmapdev(dst, PAGE_SIZE); return 0; } @@ -285,7 +285,7 @@ static int ttm_copy_ttm_io_page(struct ttm_tt *ttm, void *dst, memcpy(dst, src, PAGE_SIZE); - pmap_unmapdev((vm_offset_t)src, PAGE_SIZE); + pmap_unmapdev(src, PAGE_SIZE); return 0; } @@ -570,7 +570,7 @@ void ttm_bo_kunmap(struct ttm_bo_kmap_obj *map) return; switch (map->bo_kmap_type) { case ttm_bo_map_iomap: - pmap_unmapdev((vm_offset_t)map->virtual, map->size); + pmap_unmapdev(map->virtual, map->size); break; case ttm_bo_map_vmap: pmap_qremove((vm_offset_t)(map->virtual), map->num_pages); |
