/drivers/gpu/drm/i915/display/ |
D | intel_bios.c | 150 list_for_each_entry(entry, &i915->display.vbt.bdb_blocks, node) { in find_section() 374 if (i915->display.vbt.version < 155) in generate_lfp_data_ptrs() 505 list_add_tail(&entry->node, &i915->display.vbt.bdb_blocks); in init_bdb_block() 791 int panel_type = panel->vbt.panel_type; in parse_panel_options() 798 panel->vbt.lvds_dither = lvds_options->pixel_dither; in parse_panel_options() 817 panel->vbt.drrs_type = DRRS_TYPE_STATIC; in parse_panel_options() 821 panel->vbt.drrs_type = DRRS_TYPE_SEAMLESS; in parse_panel_options() 826 panel->vbt.drrs_type = DRRS_TYPE_NONE; in parse_panel_options() 842 int panel_type = panel->vbt.panel_type; in parse_lfp_panel_dtd() 854 panel->vbt.lfp_lvds_vbt_mode = panel_fixed_mode; in parse_lfp_panel_dtd() [all …]
|
D | intel_dsi_dcs_backlight.c | 56 for_each_dsi_port(port, panel->vbt.dsi.bl_ports) { in dcs_get_backlight() 83 for_each_dsi_port(port, panel->vbt.dsi.bl_ports) { in dcs_set_backlight() 102 for_each_dsi_port(port, panel->vbt.dsi.cabc_ports) { in dcs_disable_backlight() 110 for_each_dsi_port(port, panel->vbt.dsi.bl_ports) { in dcs_disable_backlight() 135 for_each_dsi_port(port, panel->vbt.dsi.bl_ports) { in dcs_enable_backlight() 151 for_each_dsi_port(port, panel->vbt.dsi.cabc_ports) { in dcs_enable_backlight() 167 if (panel->vbt.backlight.brightness_precision_bits > 8) in dcs_setup_backlight() 168 panel->backlight.max = (1 << panel->vbt.backlight.brightness_precision_bits) - 1; in dcs_setup_backlight() 191 if (panel->vbt.backlight.type != INTEL_BACKLIGHT_DSI_DCS) in intel_dsi_dcs_init_backlight_funcs()
|
D | intel_dsi_vbt.c | 262 if (connector->panel.vbt.dsi.seq_version >= 3) { in vlv_exec_gpio() 301 if (connector->panel.vbt.dsi.seq_version >= 3) { in chv_exec_gpio() 470 if (connector->panel.vbt.dsi.seq_version >= 3) in mipi_exec_gpio() 476 if (connector->panel.vbt.dsi.seq_version == 2) in mipi_exec_gpio() 481 if (connector->panel.vbt.dsi.seq_version >= 4 && *data & BIT(1)) in mipi_exec_gpio() 687 seq_id >= ARRAY_SIZE(connector->panel.vbt.dsi.sequence))) in intel_dsi_vbt_exec() 690 data = connector->panel.vbt.dsi.sequence[seq_id]; in intel_dsi_vbt_exec() 703 if (connector->panel.vbt.dsi.seq_version >= 3) in intel_dsi_vbt_exec() 719 if (connector->panel.vbt.dsi.seq_version >= 3) in intel_dsi_vbt_exec() 822 struct mipi_config *mipi_config = connector->panel.vbt.dsi.config; in intel_dsi_vbt_init() [all …]
|
D | intel_opregion.c | 863 opregion->vbt = opregion->vbt_firmware; in intel_load_vbt_firmware() 888 const void *vbt; in intel_opregion_setup() local 995 vbt = opregion->rvda; in intel_opregion_setup() 997 if (intel_bios_is_valid_vbt(vbt, vbt_size)) { in intel_opregion_setup() 1000 opregion->vbt = vbt; in intel_opregion_setup() 1011 vbt = base + OPREGION_VBT_OFFSET; in intel_opregion_setup() 1022 if (intel_bios_is_valid_vbt(vbt, vbt_size)) { in intel_opregion_setup() 1025 opregion->vbt = vbt; in intel_opregion_setup() 1248 opregion->vbt = NULL; in intel_opregion_unregister()
|
D | intel_pps.c | 214 int backlight_controller = connector->panel.vbt.backlight.controller; in bxt_power_sequencer_idx() 1191 struct edp_power_seq *vbt) in pps_init_delays_vbt() argument 1196 *vbt = connector->panel.vbt.edp.pps; in pps_init_delays_vbt() 1198 if (!pps_delays_valid(vbt)) in pps_init_delays_vbt() 1207 vbt->t11_t12 = max_t(u16, vbt->t11_t12, 1300 * 10); in pps_init_delays_vbt() 1210 vbt->t11_t12); in pps_init_delays_vbt() 1217 vbt->t11_t12 += 100 * 10; in pps_init_delays_vbt() 1219 intel_pps_dump_state(intel_dp, "vbt", vbt); in pps_init_delays_vbt() 1247 struct edp_power_seq cur, vbt, spec, in pps_init_delays() local 1257 pps_init_delays_vbt(intel_dp, &vbt); in pps_init_delays() [all …]
|
D | intel_dsi.c | 105 orientation = connector->panel.vbt.dsi.orientation; in intel_dsi_get_panel_orientation() 109 orientation = dev_priv->display.vbt.orientation; in intel_dsi_get_panel_orientation()
|
D | intel_panel.c | 46 return i915->display.vbt.lvds_use_ssc && in intel_panel_use_ssc() 101 int min_vrefresh = connector->panel.vbt.seamless_drrs_min_refresh_rate; in intel_panel_downclock_mode() 157 return connector->panel.vbt.drrs_type; in intel_panel_drrs_type() 293 mode = connector->panel.vbt.lfp_lvds_vbt_mode; in intel_panel_add_vbt_lfp_fixed_mode() 307 mode = connector->panel.vbt.sdvo_lvds_vbt_mode; in intel_panel_add_vbt_sdvo_fixed_mode() 655 connector->panel.vbt.panel_type = -1; in intel_panel_init_alloc()
|
D | intel_psr.c | 95 return connector->panel.vbt.psr.enable; in psr_global_enabled() 436 if (connector->panel.vbt.psr.tp1_wakeup_time_us == 0) in intel_psr1_get_tp_time() 438 else if (connector->panel.vbt.psr.tp1_wakeup_time_us <= 100) in intel_psr1_get_tp_time() 440 else if (connector->panel.vbt.psr.tp1_wakeup_time_us <= 500) in intel_psr1_get_tp_time() 445 if (connector->panel.vbt.psr.tp2_tp3_wakeup_time_us == 0) in intel_psr1_get_tp_time() 447 else if (connector->panel.vbt.psr.tp2_tp3_wakeup_time_us <= 100) in intel_psr1_get_tp_time() 449 else if (connector->panel.vbt.psr.tp2_tp3_wakeup_time_us <= 500) in intel_psr1_get_tp_time() 473 idle_frames = max(6, connector->panel.vbt.psr.idle_frames); in psr_compute_idle_frames() 516 if (connector->panel.vbt.psr.psr2_tp2_tp3_wakeup_time_us >= 0 && in intel_psr2_get_tp_time() 517 connector->panel.vbt.psr.psr2_tp2_tp3_wakeup_time_us <= 50) in intel_psr2_get_tp_time() [all …]
|
D | intel_dp_aux_backlight.c | 384 panel->vbt.backlight.pwm_freq_hz, intel_dp->edp_dpcd, in intel_dp_aux_vesa_setup_backlight() 468 switch (panel->vbt.backlight.type) { in intel_dp_aux_init_backlight_funcs() 480 if (panel->vbt.backlight.type != INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE) in intel_dp_aux_init_backlight_funcs()
|
D | intel_lvds.c | 817 val = connector->panel.vbt.bios_lvds_val; in compute_is_dual_link_lvds() 845 drm_WARN(dev, !dev_priv->display.vbt.int_lvds_support, in intel_lvds_init() 850 if (!dev_priv->display.vbt.int_lvds_support) { in intel_lvds_init() 980 intel_connector->panel.vbt.drrs_type != DRRS_TYPE_NONE); in intel_lvds_init()
|
D | intel_opregion.h | 51 const void *vbt; member
|
D | intel_dpll.c | 1014 dev_priv->display.vbt.lvds_ssc_freq == 100000) || in ilk_update_pll_dividers() 1129 dev_priv->display.vbt.lvds_ssc_freq); in ilk_crtc_compute_clock() 1130 refclk = dev_priv->display.vbt.lvds_ssc_freq; in ilk_crtc_compute_clock() 1276 refclk = dev_priv->display.vbt.lvds_ssc_freq; in g4x_crtc_compute_clock() 1323 refclk = dev_priv->display.vbt.lvds_ssc_freq; in pnv_crtc_compute_clock() 1359 refclk = dev_priv->display.vbt.lvds_ssc_freq; in i9xx_crtc_compute_clock() 1397 refclk = dev_priv->display.vbt.lvds_ssc_freq; in i8xx_crtc_compute_clock()
|
D | intel_backlight.c | 1174 u16 pwm_freq_hz = connector->panel.vbt.backlight.pwm_freq_hz; in get_vbt_pwm_freq() 1231 min = clamp_t(int, connector->panel.vbt.backlight.min_brightness, 0, 64); in get_backlight_min_vbt() 1232 if (min != connector->panel.vbt.backlight.min_brightness) { in get_backlight_min_vbt() 1235 connector->panel.vbt.backlight.min_brightness, min); in get_backlight_min_vbt() 1424 panel->backlight.controller = connector->panel.vbt.backlight.controller; in bxt_setup_backlight() 1497 if (connector->panel.vbt.dsi.config->pwm_blc == PPS_BLC_PMIC) { in ext_pwm_setup_backlight() 1615 if (!connector->panel.vbt.backlight.present) { in intel_backlight_setup()
|
D | vlv_dsi.c | 1698 struct mipi_config *mipi_config = connector->panel.vbt.dsi.config; in vlv_dphy_param_init() 1934 if (intel_connector->panel.vbt.dsi.config->dual_link) in vlv_dsi_init() 1939 if (drm_WARN_ON(&dev_priv->drm, intel_connector->panel.vbt.dsi.bl_ports & ~intel_dsi->ports)) in vlv_dsi_init() 1940 intel_connector->panel.vbt.dsi.bl_ports &= intel_dsi->ports; in vlv_dsi_init() 1942 if (drm_WARN_ON(&dev_priv->drm, intel_connector->panel.vbt.dsi.cabc_ports & ~intel_dsi->ports)) in vlv_dsi_init() 1943 intel_connector->panel.vbt.dsi.cabc_ports &= intel_dsi->ports; in vlv_dsi_init()
|
D | intel_sdvo.c | 2027 dev_priv->display.vbt.crt_ddc_pin)); in intel_sdvo_get_analog_edid() 2590 mapping = &dev_priv->display.vbt.sdvo_mappings[0]; in intel_sdvo_select_ddc_bus() 2592 mapping = &dev_priv->display.vbt.sdvo_mappings[1]; in intel_sdvo_select_ddc_bus() 2608 mapping = &dev_priv->display.vbt.sdvo_mappings[0]; in intel_sdvo_select_i2c_bus() 2610 mapping = &dev_priv->display.vbt.sdvo_mappings[1]; in intel_sdvo_select_i2c_bus() 2648 my_mapping = &dev_priv->display.vbt.sdvo_mappings[0]; in intel_sdvo_get_slave_addr() 2649 other_mapping = &dev_priv->display.vbt.sdvo_mappings[1]; in intel_sdvo_get_slave_addr() 2651 my_mapping = &dev_priv->display.vbt.sdvo_mappings[1]; in intel_sdvo_get_slave_addr() 2652 other_mapping = &dev_priv->display.vbt.sdvo_mappings[0]; in intel_sdvo_get_slave_addr()
|
D | intel_display_core.h | 422 struct intel_vbt_data vbt; member
|
D | icl_dsi.c | 1888 struct mipi_config *mipi_config = connector->panel.vbt.dsi.config; in icl_dphy_param_init() 2091 if (intel_connector->panel.vbt.dsi.config->dual_link) in icl_dsi_init() 2096 if (drm_WARN_ON(&dev_priv->drm, intel_connector->panel.vbt.dsi.bl_ports & ~intel_dsi->ports)) in icl_dsi_init() 2097 intel_connector->panel.vbt.dsi.bl_ports &= intel_dsi->ports; in icl_dsi_init() 2099 if (drm_WARN_ON(&dev_priv->drm, intel_connector->panel.vbt.dsi.cabc_ports & ~intel_dsi->ports)) in icl_dsi_init() 2100 intel_connector->panel.vbt.dsi.cabc_ports &= intel_dsi->ports; in icl_dsi_init()
|
D | intel_dp.c | 432 int edp_max_rate = connector->panel.vbt.edp.max_link_rate; in vbt_max_link_rate() 1250 intel_connector->panel.vbt.edp.bpp && in intel_dp_max_bpp() 1251 intel_connector->panel.vbt.edp.bpp < bpp) { in intel_dp_max_bpp() 1254 intel_connector->panel.vbt.edp.bpp); in intel_dp_max_bpp() 1255 bpp = intel_connector->panel.vbt.edp.bpp; in intel_dp_max_bpp() 1942 pipe_config->msa_timing_delay = connector->panel.vbt.edp.drrs_msa_timing_delay; in intel_dp_drrs_compute_config() 2776 if (connector->panel.vbt.edp.bpp && pipe_bpp > connector->panel.vbt.edp.bpp) { in intel_edp_fixup_vbt_bpp() 2792 pipe_bpp, connector->panel.vbt.edp.bpp); in intel_edp_fixup_vbt_bpp() 2793 connector->panel.vbt.edp.bpp = pipe_bpp; in intel_edp_fixup_vbt_bpp() 5154 i915->display.vbt.orientation, in intel_edp_add_properties()
|
D | intel_vrr.c | 26 if (!connector->panel.vbt.vrr) in intel_vrr_is_capable()
|
/drivers/bluetooth/ |
D | virtio_bt.c | 29 static int virtbt_add_inbuf(struct virtio_bluetooth *vbt) in virtbt_add_inbuf() argument 31 struct virtqueue *vq = vbt->vqs[VIRTBT_VQ_RX]; in virtbt_add_inbuf() 53 struct virtio_bluetooth *vbt = hci_get_drvdata(hdev); in virtbt_open() local 55 if (virtbt_add_inbuf(vbt) < 0) in virtbt_open() 58 virtqueue_kick(vbt->vqs[VIRTBT_VQ_RX]); in virtbt_open() 64 struct virtio_bluetooth *vbt = hci_get_drvdata(hdev); in virtbt_close() local 67 cancel_work_sync(&vbt->rx); in virtbt_close() 69 for (i = 0; i < ARRAY_SIZE(vbt->vqs); i++) { in virtbt_close() 70 struct virtqueue *vq = vbt->vqs[i]; in virtbt_close() 87 struct virtio_bluetooth *vbt = hci_get_drvdata(hdev); in virtbt_send_frame() local [all …]
|
/drivers/gpu/drm/gma500/ |
D | mid_bios.c | 134 static int read_vbt_r0(u32 addr, struct vbt_r0 *vbt) in read_vbt_r0() argument 138 vbt_virtual = ioremap(addr, sizeof(*vbt)); in read_vbt_r0() 142 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt)); in read_vbt_r0() 148 static int read_vbt_r10(u32 addr, struct vbt_r10 *vbt) in read_vbt_r10() argument 152 vbt_virtual = ioremap(addr, sizeof(*vbt)); in read_vbt_r10() 156 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt)); in read_vbt_r10() 164 struct vbt_r0 vbt; in mid_get_vbt_data_r0() local 169 if (read_vbt_r0(addr, &vbt)) in mid_get_vbt_data_r0() 172 gct_virtual = ioremap(addr + sizeof(vbt), vbt.size - sizeof(vbt)); in mid_get_vbt_data_r0() 192 struct vbt_r0 vbt; in mid_get_vbt_data_r1() local [all …]
|
D | intel_bios.c | 521 struct vbt_header *vbt = NULL; in psb_intel_init_bios() local 531 if (dev_priv->opregion.vbt) { in psb_intel_init_bios() 532 struct vbt_header *vbt = dev_priv->opregion.vbt; in psb_intel_init_bios() local 533 if (memcmp(vbt->signature, "$VBT", 4) == 0) { in psb_intel_init_bios() 535 vbt->signature); in psb_intel_init_bios() 536 bdb = (struct bdb_header *)((char *)vbt + vbt->bdb_offset); in psb_intel_init_bios() 538 dev_priv->opregion.vbt = NULL; in psb_intel_init_bios() 549 vbt = (struct vbt_header *)(bios + i); in psb_intel_init_bios() 554 if (!vbt) { in psb_intel_init_bios() 559 bdb = (struct bdb_header *)(bios + i + vbt->bdb_offset); in psb_intel_init_bios()
|
D | power.c | 138 int bsm, vbt; in gma_suspend_pci() local 143 pci_read_config_dword(pdev, 0xFC, &vbt); in gma_suspend_pci() 144 dev_priv->regs.saveVBT = vbt; in gma_suspend_pci()
|
D | opregion.c | 299 opregion->vbt = NULL; in psb_intel_opregion_fini() 331 opregion->vbt = base + OPREGION_VBT_OFFSET; in psb_intel_opregion_setup()
|
/drivers/gpu/drm/i915/gvt/ |
D | opregion.c | 116 struct vbt { struct 136 static void virt_vbt_generation(struct vbt *v) in virt_vbt_generation() argument 140 memset(v, 0, sizeof(struct vbt)); in virt_vbt_generation() 150 v->header.vbt_size = sizeof(struct vbt); in virt_vbt_generation() 151 v->header.bdb_offset = offsetof(struct vbt, bdb_header); in virt_vbt_generation() 157 v->bdb_header.bdb_size = sizeof(struct vbt) - sizeof(struct vbt_header); in virt_vbt_generation() 224 struct vbt v; in intel_vgpu_init_opregion() 253 memcpy(buf + INTEL_GVT_OPREGION_VBT_OFFSET, &v, sizeof(struct vbt)); in intel_vgpu_init_opregion()
|