• Home
  • Raw
  • Download

Lines Matching refs:ms

138 	struct malidp_plane_state *ms = to_malidp_plane_state(state);  in malidp_plane_atomic_print_state()  local
140 drm_printf(p, "\trotmem_size=%u\n", ms->rotmem_size); in malidp_plane_atomic_print_state()
141 drm_printf(p, "\tformat_id=%u\n", ms->format); in malidp_plane_atomic_print_state()
142 drm_printf(p, "\tn_planes=%u\n", ms->n_planes); in malidp_plane_atomic_print_state()
144 prefetch_mode_names[ms->mmu_prefetch_mode]); in malidp_plane_atomic_print_state()
145 drm_printf(p, "\tmmu_prefetch_pgsize=%d\n", ms->mmu_prefetch_pgsize); in malidp_plane_atomic_print_state()
332 static bool malidp_check_pages_threshold(struct malidp_plane_state *ms, in malidp_check_pages_threshold() argument
337 for (i = 0; i < ms->n_planes; i++) { in malidp_check_pages_threshold()
343 obj = drm_gem_fb_get_obj(ms->base.fb, i); in malidp_check_pages_threshold()
436 (struct malidp_plane_state *ms, u32 *pgsize_bitmap) in malidp_mmu_prefetch_select_mode() argument
446 if (malidp_check_pages_threshold(ms, largest_pgsize)) { in malidp_mmu_prefetch_select_mode()
457 if (malidp_partial_prefetch_supported(ms->base.fb->format->format, in malidp_mmu_prefetch_select_mode()
458 ms->base.fb->modifier, in malidp_mmu_prefetch_select_mode()
459 ms->base.rotation)) { in malidp_mmu_prefetch_select_mode()
493 struct malidp_plane_state *ms) in malidp_de_prefetch_settings() argument
499 ms->mmu_prefetch_pgsize = malidp_get_pgsize_bitmap(mp); in malidp_de_prefetch_settings()
500 ms->mmu_prefetch_mode = in malidp_de_prefetch_settings()
501 malidp_mmu_prefetch_select_mode(ms, &ms->mmu_prefetch_pgsize); in malidp_de_prefetch_settings()
508 struct malidp_plane_state *ms = to_malidp_plane_state(state); in malidp_de_plane_check() local
520 ms->format = malidp_hw_get_format_id(&mp->hwdev->hw->map, in malidp_de_plane_check()
523 if (ms->format == MALIDP_INVALID_FORMAT_ID) in malidp_de_plane_check()
526 ms->n_planes = fb->format->num_planes; in malidp_de_plane_check()
527 for (i = 0; i < ms->n_planes; i++) { in malidp_de_plane_check()
560 if (ms->n_planes == 3 && in malidp_de_plane_check()
590 ms->rotmem_size = 0; in malidp_de_plane_check()
601 ms->rotmem_size = val; in malidp_de_plane_check()
610 malidp_de_prefetch_settings(mp, ms); in malidp_de_plane_check()
697 struct malidp_plane_state *ms) in malidp_de_set_mmu_control() argument
705 mmu_ctrl = malidp_calc_mmu_control_value(ms->mmu_prefetch_mode, in malidp_de_set_mmu_control()
707 ms->n_planes, in malidp_de_set_mmu_control()
708 ms->mmu_prefetch_pgsize); in malidp_de_set_mmu_control()
795 struct malidp_plane_state *ms = to_malidp_plane_state(plane->state); in malidp_de_plane_update() local
822 val = (val & ~LAYER_FORMAT_MASK) | ms->format; in malidp_de_plane_update()
825 for (i = 0; i < ms->n_planes; i++) in malidp_de_plane_update()
828 malidp_de_set_mmu_control(mp, ms); in malidp_de_plane_update()
830 malidp_de_set_plane_pitches(mp, ms->n_planes, in malidp_de_plane_update()