Lines Matching +full:18 +full:bpp
140 const u32 max_supported_bpp = 30, min_supported_bpp = 18; in dp_panel_get_supported_bpp()
141 u32 bpp, data_rate_khz; in dp_panel_get_supported_bpp() local
143 bpp = min(mode_edid_bpp, max_supported_bpp); in dp_panel_get_supported_bpp()
149 if (mode_pclk_khz * bpp <= data_rate_khz) in dp_panel_get_supported_bpp()
150 return bpp; in dp_panel_get_supported_bpp()
151 bpp -= 6; in dp_panel_get_supported_bpp()
152 } while (bpp > min_supported_bpp); in dp_panel_get_supported_bpp()
257 u32 bpp; in dp_panel_get_mode_bpp() local
267 bpp = dp_link_bit_depth_to_bpp( in dp_panel_get_mode_bpp()
270 bpp = dp_panel_get_supported_bpp(dp_panel, mode_edid_bpp, in dp_panel_get_mode_bpp()
273 return bpp; in dp_panel_get_mode_bpp()
445 drm_dbg_dp(panel->drm_dev, "bpp = %d\n", dp_panel->dp_mode.bpp); in dp_panel_init_panel_info()
447 dp_panel->dp_mode.bpp = dp_panel_get_mode_bpp(dp_panel, dp_panel->dp_mode.bpp, in dp_panel_init_panel_info()
450 drm_dbg_dp(panel->drm_dev, "updated bpp = %d\n", in dp_panel_init_panel_info()
451 dp_panel->dp_mode.bpp); in dp_panel_init_panel_info()