Lines Matching refs:ms
131 struct malidp_plane_state *ms = to_malidp_plane_state(state); in malidp_plane_atomic_print_state() local
133 drm_printf(p, "\trotmem_size=%u\n", ms->rotmem_size); in malidp_plane_atomic_print_state()
134 drm_printf(p, "\tformat_id=%u\n", ms->format); in malidp_plane_atomic_print_state()
135 drm_printf(p, "\tn_planes=%u\n", ms->n_planes); in malidp_plane_atomic_print_state()
137 prefetch_mode_names[ms->mmu_prefetch_mode]); in malidp_plane_atomic_print_state()
138 drm_printf(p, "\tmmu_prefetch_pgsize=%d\n", ms->mmu_prefetch_pgsize); in malidp_plane_atomic_print_state()
320 static bool malidp_check_pages_threshold(struct malidp_plane_state *ms, in malidp_check_pages_threshold() argument
325 for (i = 0; i < ms->n_planes; i++) { in malidp_check_pages_threshold()
331 obj = drm_gem_fb_get_obj(ms->base.fb, i); in malidp_check_pages_threshold()
424 (struct malidp_plane_state *ms, u32 *pgsize_bitmap) in malidp_mmu_prefetch_select_mode() argument
434 if (malidp_check_pages_threshold(ms, largest_pgsize)) { in malidp_mmu_prefetch_select_mode()
445 if (malidp_partial_prefetch_supported(ms->base.fb->format->format, in malidp_mmu_prefetch_select_mode()
446 ms->base.fb->modifier, in malidp_mmu_prefetch_select_mode()
447 ms->base.rotation)) { in malidp_mmu_prefetch_select_mode()
481 struct malidp_plane_state *ms) in malidp_de_prefetch_settings() argument
487 ms->mmu_prefetch_pgsize = malidp_get_pgsize_bitmap(mp); in malidp_de_prefetch_settings()
488 ms->mmu_prefetch_mode = in malidp_de_prefetch_settings()
489 malidp_mmu_prefetch_select_mode(ms, &ms->mmu_prefetch_pgsize); in malidp_de_prefetch_settings()
498 struct malidp_plane_state *ms = to_malidp_plane_state(new_plane_state); in malidp_de_plane_check() local
510 ms->format = malidp_hw_get_format_id(&mp->hwdev->hw->map, in malidp_de_plane_check()
513 if (ms->format == MALIDP_INVALID_FORMAT_ID) in malidp_de_plane_check()
516 ms->n_planes = fb->format->num_planes; in malidp_de_plane_check()
517 for (i = 0; i < ms->n_planes; i++) { in malidp_de_plane_check()
550 if (ms->n_planes == 3 && in malidp_de_plane_check()
580 ms->rotmem_size = 0; in malidp_de_plane_check()
591 ms->rotmem_size = val; in malidp_de_plane_check()
600 malidp_de_prefetch_settings(mp, ms); in malidp_de_plane_check()
687 struct malidp_plane_state *ms) in malidp_de_set_mmu_control() argument
695 mmu_ctrl = malidp_calc_mmu_control_value(ms->mmu_prefetch_mode, in malidp_de_set_mmu_control()
697 ms->n_planes, in malidp_de_set_mmu_control()
698 ms->mmu_prefetch_pgsize); in malidp_de_set_mmu_control()
787 struct malidp_plane_state *ms = to_malidp_plane_state(plane->state); in malidp_de_plane_update() local
815 val = (val & ~LAYER_FORMAT_MASK) | ms->format; in malidp_de_plane_update()
818 for (i = 0; i < ms->n_planes; i++) in malidp_de_plane_update()
821 malidp_de_set_mmu_control(mp, ms); in malidp_de_plane_update()
823 malidp_de_set_plane_pitches(mp, ms->n_planes, in malidp_de_plane_update()