panel_type
int panel_type = panel->vbt.panel_type;
entry = &backlight_data->data[panel_type];
method = &backlight_data->backlight_control[panel_type];
level = backlight_data->brightness_level[panel_type].level;
min_level = backlight_data->brightness_min_level[panel_type].level;
scale = backlight_data->brightness_precision_bits[panel_type] == 16;
backlight_data->brightness_precision_bits[panel_type];
level = backlight_data->level[panel_type];
DIV_ROUND_UP(backlight_data->hdr_dpcd_refresh_timeout[panel_type], 100);
index = sdvo_lvds_options->panel_type;
u8 panel_type = panel->vbt.panel_type;
panel->vbt.psr.enable = panel_bool(power->psr, panel_type);
if (!panel_bool(power->drrs, panel_type) && panel->vbt.drrs_type != DRRS_TYPE_NONE) {
if (panel_bool(power->dmrrs, panel_type))
panel->vbt.edp.hobl = panel_bool(power->hobl, panel_type);
panel_type);
int panel_type = panel->vbt.panel_type;
switch (panel_bits(edp->color_depth, panel_type, 2)) {
edp_link_params = &edp->fast_link_params[panel_type];
&edp->power_seqs[panel_type]);
edp->edp_fast_link_training_rate[panel_type] * 20;
vswing = (edp->edp_vswing_preemph >> (panel_type * 4)) & 0xF;
panel_bits(edp->sdrrs_msa_timing_delay, panel_type, 2);
edp->edp_max_port_link_rate[panel_type] * 20;
panel_bool(edp->edp_dsc_disable, panel_type);
int panel_type = panel->vbt.panel_type;
psr_table = &psr->psr_table[panel_type];
wakeup_time = panel_bits(wakeup_time, panel_type, 2);
int panel_type = panel->vbt.panel_type;
panel_type);
config = &start->config[panel_type];
pps = &start->pps[panel_type];
int panel_type = panel->vbt.panel_type;
seq_data = find_panel_sequence_block(display, sequence, panel_type, &seq_size);
if (panel->vbt.panel_type >= 0) {
panel->vbt.panel_type = get_panel_type(display, devdata,
if (panel->vbt.panel_type < 0) {
if (lfp_options->panel_type > 0xf &&
lfp_options->panel_type != 0xff) {
lfp_options->panel_type);
return lfp_options->panel_type;
int panel_type;
panel_types[i].panel_type = panel_types[i].get_panel_type(display, devdata,
drm_WARN_ON(display->drm, panel_types[i].panel_type > 0xf &&
panel_types[i].panel_type != 0xff);
if (panel_types[i].panel_type >= 0)
panel_types[i].name, panel_types[i].panel_type);
if (panel_types[PANEL_TYPE_OPREGION].panel_type >= 0)
else if (panel_types[PANEL_TYPE_VBT].panel_type == 0xff &&
panel_types[PANEL_TYPE_PNPID].panel_type >= 0)
else if (panel_types[PANEL_TYPE_VBT].panel_type != 0xff &&
panel_types[PANEL_TYPE_VBT].panel_type >= 0)
panel_types[i].name, panel_types[i].panel_type);
return panel_types[i].panel_type;
static unsigned int panel_bits(unsigned int value, int panel_type, int num_bits)
return (value >> (panel_type * num_bits)) & (BIT(num_bits) - 1);
static bool panel_bool(unsigned int value, int panel_type)
return panel_bits(value, panel_type, 1);
int panel_type = panel->vbt.panel_type;
panel_type, 2);
int panel_type = panel->vbt.panel_type;
panel_type);
panel_type);
int panel_type = panel->vbt.panel_type;
pnp_id = get_lfp_pnp_id(data, ptrs, panel_type);
tail->panel_name[panel_type].name);
tail->seamless_drrs_min_refresh_rate[panel_type];
if (panel->vbt.panel_type >= num_dtd) {
panel->vbt.panel_type, num_dtd);
dtd = &generic_dtd->dtd[panel->vbt.panel_type];
int panel_type;
connector->panel.vbt.panel_type = -1;
u8 panel_type;
u8 panel_type;