Lines Matching refs:lbm
180 memset(&vc4_state->lbm, 0, sizeof(vc4_state->lbm)); in vc4_plane_duplicate_state()
205 if (drm_mm_node_allocated(&vc4_state->lbm)) { in vc4_plane_destroy_state()
209 drm_mm_remove_node(&vc4_state->lbm); in vc4_plane_destroy_state()
455 u32 lbm; in vc4_lbm_size() local
476 lbm = pix_per_line * 8; in vc4_lbm_size()
479 lbm = pix_per_line * 16; in vc4_lbm_size()
486 lbm = pix_per_line * 16; in vc4_lbm_size()
490 lbm = roundup(lbm, vc4->is_vc5 ? 128 : 64); in vc4_lbm_size()
493 lbm /= vc4->is_vc5 ? 4 : 2; in vc4_lbm_size()
495 return lbm; in vc4_lbm_size()
602 if (!drm_mm_node_allocated(&vc4_state->lbm)) { in vc4_plane_allocate_lbm()
607 &vc4_state->lbm, in vc4_plane_allocate_lbm()
616 WARN_ON_ONCE(lbm_size != vc4_state->lbm.size); in vc4_plane_allocate_lbm()
619 vc4_state->dlist[vc4_state->lbm_offset] = vc4_state->lbm.start; in vc4_plane_allocate_lbm()