Exemplo n.º 1
0
static int bochs_bo_verify_access(struct ttm_buffer_object *bo,
                                  struct file *filp)
{
    struct bochs_bo *bochsbo = bochs_bo(bo);

    return drm_vma_node_verify_access(&bochsbo->gem.vma_node, filp);
}
Exemplo n.º 2
0
static void
bochs_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl)
{
	struct bochs_bo *bochsbo = bochs_bo(bo);

	if (!bochs_ttm_bo_is_bochs_bo(bo))
		return;

	bochs_ttm_placement(bochsbo, TTM_PL_FLAG_SYSTEM);
	*pl = bochsbo->placement;
}