Lines Matching refs:tegra
627 struct tegra_plane *tegra = to_tegra_plane(plane); in tegra_plane_atomic_check() local
653 err = tegra_plane_setup_legacy_state(tegra, plane_state); in tegra_plane_atomic_check()
701 err = tegra_plane_state_add(tegra, new_plane_state); in tegra_plane_atomic_check()
870 struct tegra_plane *tegra = to_tegra_plane(plane); in tegra_cursor_atomic_check() local
895 err = tegra_plane_state_add(tegra, new_plane_state); in tegra_cursor_atomic_check()
907 struct tegra_drm *tegra = plane->dev->dev_private; in __tegra_cursor_atomic_update() local
984 value = (src.y1 & tegra->vmask) << 16 | (src.x1 & tegra->hmask); in __tegra_cursor_atomic_update()
987 value = (drm_rect_height(&src) & tegra->vmask) << 16 | in __tegra_cursor_atomic_update()
988 (drm_rect_width(&src) & tegra->hmask); in __tegra_cursor_atomic_update()
996 value = ((y & tegra->vmask) << 16) | (x & tegra->hmask); in __tegra_cursor_atomic_update()
1993 struct tegra_plane *tegra; in tegra_crtc_update_memory_bandwidth() local
2011 tegra = to_tegra_plane(plane); in tegra_crtc_update_memory_bandwidth()
2013 icc_set_bw(tegra->icc_mem, 0, 0); in tegra_crtc_update_memory_bandwidth()
2014 icc_set_bw(tegra->icc_mem_vfilter, 0, 0); in tegra_crtc_update_memory_bandwidth()
2024 tegra = to_tegra_plane(plane); in tegra_crtc_update_memory_bandwidth()
2031 if (tegra->dc != dc) in tegra_crtc_update_memory_bandwidth()
2066 if (tegra_plane_use_vertical_filtering(tegra, &old_window)) in tegra_crtc_update_memory_bandwidth()
2070 icc_set_bw(tegra->icc_mem, new_avg_bw, new_peak_bw); in tegra_crtc_update_memory_bandwidth()
2072 if (tegra_plane_use_vertical_filtering(tegra, &window)) in tegra_crtc_update_memory_bandwidth()
2073 icc_set_bw(tegra->icc_mem_vfilter, new_avg_bw, new_peak_bw); in tegra_crtc_update_memory_bandwidth()
2075 icc_set_bw(tegra->icc_mem_vfilter, 0, 0); in tegra_crtc_update_memory_bandwidth()
2337 const struct tegra_plane *tegra; in tegra_plane_overlap_mask() local
2355 tegra = to_tegra_plane(other_state->plane); in tegra_plane_overlap_mask()
2369 overlap_mask |= BIT(tegra->index); in tegra_plane_overlap_mask()
2386 struct tegra_plane *tegra; in tegra_crtc_calculate_memory_bandwidth() local
2414 tegra = to_tegra_plane(plane); in tegra_crtc_calculate_memory_bandwidth()
2416 if (WARN_ON_ONCE(tegra->index >= TEGRA_DC_LEGACY_PLANES_NUM)) in tegra_crtc_calculate_memory_bandwidth()
2419 plane_peak_bw[tegra->index] = tegra_state->peak_memory_bandwidth; in tegra_crtc_calculate_memory_bandwidth()
2421 overlap_mask[tegra->index] = mask; in tegra_crtc_calculate_memory_bandwidth()
2452 tegra = to_tegra_plane(plane); in tegra_crtc_calculate_memory_bandwidth()
2454 for_each_set_bit(i, &overlap_mask[tegra->index], 3) { in tegra_crtc_calculate_memory_bandwidth()
2455 if (i == tegra->index) in tegra_crtc_calculate_memory_bandwidth()
2464 new_peak_bw = plane_peak_bw[tegra->index] + overlap_bw; in tegra_crtc_calculate_memory_bandwidth()
2590 struct tegra_drm *tegra = drm->dev_private; in tegra_dc_early_init() local
2592 tegra->num_crtcs++; in tegra_dc_early_init()
2602 struct tegra_drm *tegra = drm->dev_private; in tegra_dc_init() local
2628 client->parent = &tegra->hub->client; in tegra_dc_init()
2676 if (dc->soc->pitch_align > tegra->pitch_align) in tegra_dc_init()
2677 tegra->pitch_align = dc->soc->pitch_align; in tegra_dc_init()
2748 struct tegra_drm *tegra = drm->dev_private; in tegra_dc_late_exit() local
2750 tegra->num_crtcs--; in tegra_dc_late_exit()