Lines Matching refs:tegra
628 struct tegra_plane *tegra = to_tegra_plane(plane); in tegra_plane_atomic_check() local
654 err = tegra_plane_setup_legacy_state(tegra, plane_state); in tegra_plane_atomic_check()
702 err = tegra_plane_state_add(tegra, new_plane_state); in tegra_plane_atomic_check()
871 struct tegra_plane *tegra = to_tegra_plane(plane); in tegra_cursor_atomic_check() local
896 err = tegra_plane_state_add(tegra, new_plane_state); in tegra_cursor_atomic_check()
908 struct tegra_drm *tegra = plane->dev->dev_private; in __tegra_cursor_atomic_update() local
985 value = (src.y1 & tegra->vmask) << 16 | (src.x1 & tegra->hmask); in __tegra_cursor_atomic_update()
988 value = (drm_rect_height(&src) & tegra->vmask) << 16 | in __tegra_cursor_atomic_update()
989 (drm_rect_width(&src) & tegra->hmask); in __tegra_cursor_atomic_update()
997 value = ((y & tegra->vmask) << 16) | (x & tegra->hmask); in __tegra_cursor_atomic_update()
1994 struct tegra_plane *tegra; in tegra_crtc_update_memory_bandwidth() local
2012 tegra = to_tegra_plane(plane); in tegra_crtc_update_memory_bandwidth()
2014 icc_set_bw(tegra->icc_mem, 0, 0); in tegra_crtc_update_memory_bandwidth()
2015 icc_set_bw(tegra->icc_mem_vfilter, 0, 0); in tegra_crtc_update_memory_bandwidth()
2025 tegra = to_tegra_plane(plane); in tegra_crtc_update_memory_bandwidth()
2032 if (tegra->dc != dc) in tegra_crtc_update_memory_bandwidth()
2067 if (tegra_plane_use_vertical_filtering(tegra, &old_window)) in tegra_crtc_update_memory_bandwidth()
2071 icc_set_bw(tegra->icc_mem, new_avg_bw, new_peak_bw); in tegra_crtc_update_memory_bandwidth()
2073 if (tegra_plane_use_vertical_filtering(tegra, &window)) in tegra_crtc_update_memory_bandwidth()
2074 icc_set_bw(tegra->icc_mem_vfilter, new_avg_bw, new_peak_bw); in tegra_crtc_update_memory_bandwidth()
2076 icc_set_bw(tegra->icc_mem_vfilter, 0, 0); in tegra_crtc_update_memory_bandwidth()
2338 const struct tegra_plane *tegra; in tegra_plane_overlap_mask() local
2356 tegra = to_tegra_plane(other_state->plane); in tegra_plane_overlap_mask()
2370 overlap_mask |= BIT(tegra->index); in tegra_plane_overlap_mask()
2386 struct tegra_plane *tegra; in tegra_crtc_calculate_memory_bandwidth() local
2413 tegra = to_tegra_plane(plane); in tegra_crtc_calculate_memory_bandwidth()
2415 if (WARN_ON_ONCE(tegra->index >= TEGRA_DC_LEGACY_PLANES_NUM)) in tegra_crtc_calculate_memory_bandwidth()
2418 plane_peak_bw[tegra->index] = tegra_state->peak_memory_bandwidth; in tegra_crtc_calculate_memory_bandwidth()
2420 overlap_mask[tegra->index] = mask; in tegra_crtc_calculate_memory_bandwidth()
2451 tegra = to_tegra_plane(plane); in tegra_crtc_calculate_memory_bandwidth()
2453 for_each_set_bit(i, &overlap_mask[tegra->index], 3) { in tegra_crtc_calculate_memory_bandwidth()
2454 if (i == tegra->index) in tegra_crtc_calculate_memory_bandwidth()
2463 new_peak_bw = plane_peak_bw[tegra->index] + overlap_bw; in tegra_crtc_calculate_memory_bandwidth()
2589 struct tegra_drm *tegra = drm->dev_private; in tegra_dc_early_init() local
2591 tegra->num_crtcs++; in tegra_dc_early_init()
2601 struct tegra_drm *tegra = drm->dev_private; in tegra_dc_init() local
2627 client->parent = &tegra->hub->client; in tegra_dc_init()
2675 if (dc->soc->pitch_align > tegra->pitch_align) in tegra_dc_init()
2676 tegra->pitch_align = dc->soc->pitch_align; in tegra_dc_init()
2747 struct tegra_drm *tegra = drm->dev_private; in tegra_dc_late_exit() local
2749 tegra->num_crtcs--; in tegra_dc_late_exit()