Lines Matching refs:ttm
559 bool src_external = (src->ttm->page_flags & TTM_TT_FLAG_EXTERNAL) != 0; in vmw_bo_cpu_blit()
560 bool dst_external = (dst->ttm->page_flags & TTM_TT_FLAG_EXTERNAL) != 0; in vmw_bo_cpu_blit()
571 if (!ttm_tt_is_populated(dst->ttm)) { in vmw_bo_cpu_blit()
572 ret = dst->bdev->funcs->ttm_tt_populate(dst->bdev, dst->ttm, &ctx); in vmw_bo_cpu_blit()
577 if (!ttm_tt_is_populated(src->ttm)) { in vmw_bo_cpu_blit()
578 ret = src->bdev->funcs->ttm_tt_populate(src->bdev, src->ttm, &ctx); in vmw_bo_cpu_blit()
588 if (!src->ttm->pages && src->ttm->sg) { in vmw_bo_cpu_blit()
589 src_pages = kvmalloc_array(src->ttm->num_pages, in vmw_bo_cpu_blit()
593 ret = drm_prime_sg_to_page_array(src->ttm->sg, src_pages, in vmw_bo_cpu_blit()
594 src->ttm->num_pages); in vmw_bo_cpu_blit()
598 if (!dst->ttm->pages && dst->ttm->sg) { in vmw_bo_cpu_blit()
599 dst_pages = kvmalloc_array(dst->ttm->num_pages, in vmw_bo_cpu_blit()
605 ret = drm_prime_sg_to_page_array(dst->ttm->sg, dst_pages, in vmw_bo_cpu_blit()
606 dst->ttm->num_pages); in vmw_bo_cpu_blit()
615 d.dst_pages = dst->ttm->pages ? dst->ttm->pages : dst_pages; in vmw_bo_cpu_blit()
616 d.src_pages = src->ttm->pages ? src->ttm->pages : src_pages; in vmw_bo_cpu_blit()