plane.c (1f39b1dfa53c84b56d7ad37fed44afda7004959d) | plane.c (ee423808990d6fa6b367561a2390ad99b1551d6b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2017 NVIDIA CORPORATION. All rights reserved. 4 */ 5 6#include <linux/iommu.h> 7#include <linux/interconnect.h> 8 --- 186 unchanged lines hidden (view full) --- 195 state->map[i] = NULL; 196 } 197} 198 199int tegra_plane_prepare_fb(struct drm_plane *plane, 200 struct drm_plane_state *state) 201{ 202 struct tegra_dc *dc = to_tegra_dc(state->crtc); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2017 NVIDIA CORPORATION. All rights reserved. 4 */ 5 6#include <linux/iommu.h> 7#include <linux/interconnect.h> 8 --- 186 unchanged lines hidden (view full) --- 195 state->map[i] = NULL; 196 } 197} 198 199int tegra_plane_prepare_fb(struct drm_plane *plane, 200 struct drm_plane_state *state) 201{ 202 struct tegra_dc *dc = to_tegra_dc(state->crtc); |
203 int err; |
|
203 204 if (!state->fb) 205 return 0; 206 | 204 205 if (!state->fb) 206 return 0; 207 |
207 drm_gem_plane_helper_prepare_fb(plane, state); | 208 err = drm_gem_plane_helper_prepare_fb(plane, state); 209 if (err < 0) 210 return err; |
208 209 return tegra_dc_pin(dc, to_tegra_plane_state(state)); 210} 211 212void tegra_plane_cleanup_fb(struct drm_plane *plane, 213 struct drm_plane_state *state) 214{ 215 struct tegra_dc *dc = to_tegra_dc(state->crtc); --- 520 unchanged lines hidden --- | 211 212 return tegra_dc_pin(dc, to_tegra_plane_state(state)); 213} 214 215void tegra_plane_cleanup_fb(struct drm_plane *plane, 216 struct drm_plane_state *state) 217{ 218 struct tegra_dc *dc = to_tegra_dc(state->crtc); --- 520 unchanged lines hidden --- |