Lines Matching refs:vma
418 if (prior->vma->handle != bo->handles[plane].u32 || in drv_bo_map()
419 prior->vma->map_flags != map_flags) in drv_bo_map()
433 if (prior->vma->handle != bo->handles[plane].u32 || in drv_bo_map()
434 prior->vma->map_flags != map_flags) in drv_bo_map()
437 prior->vma->refcount++; in drv_bo_map()
438 mapping.vma = prior->vma; in drv_bo_map()
442 mapping.vma = calloc(1, sizeof(*mapping.vma)); in drv_bo_map()
443 memcpy(mapping.vma->map_strides, bo->strides, sizeof(mapping.vma->map_strides)); in drv_bo_map()
444 addr = bo->drv->backend->bo_map(bo, mapping.vma, plane, map_flags); in drv_bo_map()
447 free(mapping.vma); in drv_bo_map()
452 mapping.vma->refcount = 1; in drv_bo_map()
453 mapping.vma->addr = addr; in drv_bo_map()
454 mapping.vma->handle = bo->handles[plane].u32; in drv_bo_map()
455 mapping.vma->map_flags = map_flags; in drv_bo_map()
461 addr = (uint8_t *)((*map_data)->vma->addr); in drv_bo_map()
477 if (!--mapping->vma->refcount) { in drv_bo_unmap()
478 ret = bo->drv->backend->bo_unmap(bo, mapping->vma); in drv_bo_unmap()
479 free(mapping->vma); in drv_bo_unmap()
499 assert(mapping->vma); in drv_bo_invalidate()
501 assert(mapping->vma->refcount > 0); in drv_bo_invalidate()
514 assert(mapping->vma); in drv_bo_flush_or_unmap()
516 assert(mapping->vma->refcount > 0); in drv_bo_flush_or_unmap()