/linux/drivers/gpu/drm/i915/display/ |
A D | intel_bios.c | 1448 memset(i915->vbt.dsi.sequence, 0, sizeof(i915->vbt.dsi.sequence)); in parse_mipi_sequence() 2289 if (!vbt) in intel_bios_is_valid_vbt() 2323 return vbt; in intel_bios_is_valid_vbt() 2365 if (!vbt) in oprom_get_vbt() 2375 return vbt; in oprom_get_vbt() 2378 kfree(vbt); in oprom_get_vbt() 2395 const struct vbt_header *vbt = i915->opregion.vbt; in intel_bios_init() local 2410 if (!vbt) { in intel_bios_init() 2415 vbt = oprom_vbt; in intel_bios_init() 2425 (int)sizeof(vbt->signature), vbt->signature, bdb->version); in intel_bios_init() [all …]
|
A D | intel_ddi_buf_trans.c | 1067 i915->vbt.edp.low_vswing) in bdw_get_buf_trans() 1102 i915->vbt.edp.low_vswing) in skl_y_get_buf_trans() 1118 i915->vbt.edp.low_vswing) in skl_u_get_buf_trans() 1134 i915->vbt.edp.low_vswing) in skl_get_buf_trans() 1150 i915->vbt.edp.low_vswing) in kbl_y_get_buf_trans() 1166 i915->vbt.edp.low_vswing) in kbl_u_get_buf_trans() 1182 i915->vbt.edp.low_vswing) in kbl_get_buf_trans() 1198 i915->vbt.edp.low_vswing) in bxt_get_buf_trans() 1290 dev_priv->vbt.edp.low_vswing) in ehl_get_combo_buf_trans() 1317 dev_priv->vbt.edp.low_vswing) in jsl_get_combo_buf_trans() [all …]
|
A D | intel_dsi_vbt.c | 243 if (dev_priv->vbt.dsi.seq_version >= 3) { in vlv_exec_gpio() 281 if (dev_priv->vbt.dsi.seq_version >= 3) { in chv_exec_gpio() 368 if (dev_priv->vbt.dsi.seq_version >= 3) in mipi_exec_gpio() 374 if (dev_priv->vbt.dsi.seq_version == 2) in mipi_exec_gpio() 584 seq_id >= ARRAY_SIZE(dev_priv->vbt.dsi.sequence))) in intel_dsi_vbt_exec() 587 data = dev_priv->vbt.dsi.sequence[seq_id]; in intel_dsi_vbt_exec() 600 if (dev_priv->vbt.dsi.seq_version >= 3) in intel_dsi_vbt_exec() 616 if (dev_priv->vbt.dsi.seq_version >= 3) in intel_dsi_vbt_exec() 729 struct mipi_config *mipi_config = dev_priv->vbt.dsi.config; in intel_dsi_vbt_init() 730 struct mipi_pps_data *pps = dev_priv->vbt.dsi.pps; in intel_dsi_vbt_init() [all …]
|
A D | intel_opregion.c | 822 opregion->vbt = opregion->vbt_firmware; in intel_load_vbt_firmware() 847 const void *vbt; in intel_opregion_setup() local 940 vbt = opregion->rvda; in intel_opregion_setup() 942 if (intel_bios_is_valid_vbt(vbt, vbt_size)) { in intel_opregion_setup() 945 opregion->vbt = vbt; in intel_opregion_setup() 956 vbt = base + OPREGION_VBT_OFFSET; in intel_opregion_setup() 967 if (intel_bios_is_valid_vbt(vbt, vbt_size)) { in intel_opregion_setup() 970 opregion->vbt = vbt; in intel_opregion_setup() 1132 opregion->vbt = NULL; in intel_opregion_unregister()
|
A D | intel_dsi_dcs_backlight.c | 163 if (dev_priv->vbt.backlight.brightness_precision_bits > 8) in dcs_setup_backlight() 164 panel->backlight.max = (1 << dev_priv->vbt.backlight.brightness_precision_bits) - 1; in dcs_setup_backlight() 188 if (dev_priv->vbt.backlight.type != INTEL_BACKLIGHT_DSI_DCS) in intel_dsi_dcs_init_backlight_funcs()
|
A D | intel_dsi.c | 121 orientation = dev_priv->vbt.dsi.orientation; in intel_dsi_get_panel_orientation() 125 orientation = dev_priv->vbt.orientation; in intel_dsi_get_panel_orientation()
|
A D | intel_pps.c | 211 int backlight_controller = dev_priv->vbt.backlight.controller; in bxt_power_sequencer_idx() 1160 struct edp_power_seq cur, vbt, spec, in pps_init_delays() local 1173 vbt = dev_priv->vbt.edp.pps; in pps_init_delays() 1180 vbt.t11_t12 = max_t(u16, vbt.t11_t12, 1300 * 10); in pps_init_delays() 1183 vbt.t11_t12); in pps_init_delays() 1189 vbt.t11_t12 += 100 * 10; in pps_init_delays() 1203 intel_pps_dump_state("vbt", &vbt); in pps_init_delays() 1207 #define assign_final(field) final->field = (max(cur.field, vbt.field) == 0 ? \ in pps_init_delays() 1209 max(cur.field, vbt.field)) in pps_init_delays()
|
A D | intel_psr.c | 410 if (dev_priv->vbt.psr.tp1_wakeup_time_us == 0) in intel_psr1_get_tp_time() 412 else if (dev_priv->vbt.psr.tp1_wakeup_time_us <= 100) in intel_psr1_get_tp_time() 414 else if (dev_priv->vbt.psr.tp1_wakeup_time_us <= 500) in intel_psr1_get_tp_time() 419 if (dev_priv->vbt.psr.tp2_tp3_wakeup_time_us == 0) in intel_psr1_get_tp_time() 421 else if (dev_priv->vbt.psr.tp2_tp3_wakeup_time_us <= 100) in intel_psr1_get_tp_time() 423 else if (dev_priv->vbt.psr.tp2_tp3_wakeup_time_us <= 500) in intel_psr1_get_tp_time() 446 idle_frames = max(6, dev_priv->vbt.psr.idle_frames); in psr_compute_idle_frames() 488 if (dev_priv->vbt.psr.psr2_tp2_tp3_wakeup_time_us >= 0 && in intel_psr2_get_tp_time() 489 dev_priv->vbt.psr.psr2_tp2_tp3_wakeup_time_us <= 50) in intel_psr2_get_tp_time() 2207 if (!dev_priv->vbt.psr.enable) in intel_psr_init() [all …]
|
A D | intel_dp_aux_backlight.c | 335 i915->vbt.backlight.pwm_freq_hz, intel_dp->edp_dpcd, in intel_dp_aux_vesa_setup_backlight() 414 switch (i915->vbt.backlight.type) { in intel_dp_aux_init_backlight_funcs() 426 if (i915->vbt.backlight.type != INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE) in intel_dp_aux_init_backlight_funcs()
|
A D | intel_panel.c | 44 return i915->vbt.lvds_use_ssc in intel_panel_use_ssc() 182 if (!dev_priv->vbt.lfp_lvds_vbt_mode) in intel_panel_vbt_fixed_mode() 186 dev_priv->vbt.lfp_lvds_vbt_mode); in intel_panel_vbt_fixed_mode()
|
A D | intel_opregion.h | 48 const void *vbt; member
|
A D | intel_drrs.c | 419 if (dev_priv->vbt.drrs_type != SEAMLESS_DRRS_SUPPORT) { in intel_drrs_init() 431 dev_priv->drrs.type = dev_priv->vbt.drrs_type; in intel_drrs_init()
|
A D | intel_sdvo.c | 2018 dev_priv->vbt.crt_ddc_pin)); in intel_sdvo_get_analog_edid() 2304 if (dev_priv->vbt.sdvo_lvds_vbt_mode != NULL) { in intel_sdvo_get_lvds_modes() 2306 dev_priv->vbt.sdvo_lvds_vbt_mode); in intel_sdvo_get_lvds_modes() 2604 mapping = &dev_priv->vbt.sdvo_mappings[0]; in intel_sdvo_select_ddc_bus() 2606 mapping = &dev_priv->vbt.sdvo_mappings[1]; in intel_sdvo_select_ddc_bus() 2622 mapping = &dev_priv->vbt.sdvo_mappings[0]; in intel_sdvo_select_i2c_bus() 2624 mapping = &dev_priv->vbt.sdvo_mappings[1]; in intel_sdvo_select_i2c_bus() 2662 my_mapping = &dev_priv->vbt.sdvo_mappings[0]; in intel_sdvo_get_slave_addr() 2663 other_mapping = &dev_priv->vbt.sdvo_mappings[1]; in intel_sdvo_get_slave_addr() 2665 my_mapping = &dev_priv->vbt.sdvo_mappings[1]; in intel_sdvo_get_slave_addr() [all …]
|
A D | intel_dpll.c | 978 dev_priv->vbt.lvds_ssc_freq == 100000) || in ilk_update_pll_dividers() 1095 dev_priv->vbt.lvds_ssc_freq); in ilk_crtc_compute_clock() 1096 refclk = dev_priv->vbt.lvds_ssc_freq; in ilk_crtc_compute_clock() 1224 refclk = dev_priv->vbt.lvds_ssc_freq; in g4x_crtc_compute_clock() 1270 refclk = dev_priv->vbt.lvds_ssc_freq; in pnv_crtc_compute_clock() 1307 refclk = dev_priv->vbt.lvds_ssc_freq; in i9xx_crtc_compute_clock() 1344 refclk = dev_priv->vbt.lvds_ssc_freq; in i8xx_crtc_compute_clock()
|
A D | intel_lvds.c | 816 val = dev_priv->vbt.bios_lvds_val; in compute_is_dual_link_lvds() 846 drm_WARN(dev, !dev_priv->vbt.int_lvds_support, in intel_lvds_init() 851 if (!dev_priv->vbt.int_lvds_support) { in intel_lvds_init()
|
A D | intel_backlight.c | 1160 u16 pwm_freq_hz = dev_priv->vbt.backlight.pwm_freq_hz; in get_vbt_pwm_freq() 1217 min = clamp_t(int, dev_priv->vbt.backlight.min_brightness, 0, 64); in get_backlight_min_vbt() 1218 if (min != dev_priv->vbt.backlight.min_brightness) { in get_backlight_min_vbt() 1221 dev_priv->vbt.backlight.min_brightness, min); in get_backlight_min_vbt() 1410 panel->backlight.controller = dev_priv->vbt.backlight.controller; in bxt_setup_backlight() 1483 if (dev_priv->vbt.dsi.config->pwm_blc == PPS_BLC_PMIC) { in ext_pwm_setup_backlight() 1601 if (!dev_priv->vbt.backlight.present) { in intel_backlight_setup()
|
A D | g4x_dp.c | 399 if (intel_dp_is_edp(intel_dp) && dev_priv->vbt.edp.bpp && in intel_dp_get_config() 400 pipe_config->pipe_bpp > dev_priv->vbt.edp.bpp) { in intel_dp_get_config() 416 pipe_config->pipe_bpp, dev_priv->vbt.edp.bpp); in intel_dp_get_config() 417 dev_priv->vbt.edp.bpp = pipe_config->pipe_bpp; in intel_dp_get_config()
|
/linux/drivers/bluetooth/ |
A D | virtio_bt.c | 55 if (virtbt_add_inbuf(vbt) < 0) in virtbt_open() 67 cancel_work_sync(&vbt->rx); in virtbt_close() 220 virtbt_rx_handle(vbt, skb); in virtbt_rx_work() 241 schedule_work(&vbt->rx); in virtbt_rx_done() 272 vbt = kzalloc(sizeof(*vbt), GFP_KERNEL); in virtbt_probe() 273 if (!vbt) in virtbt_probe() 276 vdev->priv = vbt; in virtbt_probe() 277 vbt->vdev = vdev; in virtbt_probe() 292 vbt->hdev = hdev; in virtbt_probe() 370 vbt->hdev = NULL; in virtbt_remove() [all …]
|
/linux/drivers/gpu/drm/gma500/ |
A D | mid_bios.c | 142 memcpy_fromio(vbt, vbt_virtual, sizeof(*vbt)); in read_vbt_r0() 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 197 if (read_vbt_r0(addr, &vbt)) in mid_get_vbt_data_r1() 200 gct_virtual = ioremap(addr + sizeof(vbt), vbt.size - sizeof(vbt)); in mid_get_vbt_data_r1() 220 struct vbt_r10 vbt; in mid_get_vbt_data_r10() local 227 if (read_vbt_r10(addr, &vbt)) in mid_get_vbt_data_r10() [all …]
|
A D | intel_bios.c | 520 struct vbt_header *vbt = NULL; in psb_intel_init_bios() local 530 if (dev_priv->opregion.vbt) { in psb_intel_init_bios() 531 struct vbt_header *vbt = dev_priv->opregion.vbt; in psb_intel_init_bios() local 532 if (memcmp(vbt->signature, "$VBT", 4) == 0) { in psb_intel_init_bios() 534 vbt->signature); in psb_intel_init_bios() 535 bdb = (struct bdb_header *)((char *)vbt + vbt->bdb_offset); in psb_intel_init_bios() 537 dev_priv->opregion.vbt = NULL; in psb_intel_init_bios() 548 vbt = (struct vbt_header *)(bios + i); in psb_intel_init_bios() 553 if (!vbt) { in psb_intel_init_bios() 558 bdb = (struct bdb_header *)(bios + i + vbt->bdb_offset); in psb_intel_init_bios()
|
A D | power.c | 129 int bsm, vbt; in gma_suspend_pci() local 137 pci_read_config_dword(pdev, 0xFC, &vbt); in gma_suspend_pci() 138 dev_priv->regs.saveVBT = vbt; in gma_suspend_pci()
|
A D | opregion.c | 302 opregion->vbt = NULL; in psb_intel_opregion_fini() 334 opregion->vbt = base + OPREGION_VBT_OFFSET; in psb_intel_opregion_setup()
|
/linux/drivers/gpu/drm/i915/gvt/ |
A 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()
|
/linux/include/dt-bindings/usb/ |
A D | pd.h | 350 #define VDO_ACABLE1(hw, fw, ver, conn, lat, term, vbm, sbu, sbut, cur, vbt, sopp, spd) \ argument 354 | (vbt) << 4 | (sopp) << 3 | ((spd) & 0x7))
|
/linux/include/linux/usb/ |
A D | pd_vdo.h | 373 #define VDO_ACABLE1(hw, fw, ver, conn, lat, term, vbm, sbu, sbut, cur, vbt, sopp, spd) \ argument 377 | (vbt) << 4 | (sopp) << 3 | ((spd) & 0x7))
|