Home
last modified time | relevance | path

Searched refs:opregion (Results 1 – 17 of 17) sorted by relevance

/drivers/gpu/drm/i915/display/
Dintel_opregion.c255 struct opregion_swsci *swsci = i915->display.opregion.swsci; in check_swsci_function()
268 if ((i915->display.opregion.swsci_sbcb_sub_functions & in check_swsci_function()
272 if ((i915->display.opregion.swsci_gbda_sub_functions & in check_swsci_function()
283 struct opregion_swsci *swsci = dev_priv->display.opregion.swsci; in swsci()
465 struct opregion_asle *asle = dev_priv->display.opregion.asle; in asle_set_backlight()
586 struct intel_opregion *opregion = in asle_work() local
589 container_of(opregion, struct drm_i915_private, display.opregion); in asle_work()
590 struct opregion_asle *asle = dev_priv->display.opregion.asle; in asle_work()
638 if (dev_priv->display.opregion.asle) in intel_opregion_asle_intr()
639 schedule_work(&dev_priv->display.opregion.asle_work); in intel_opregion_asle_intr()
[all …]
Dintel_display_debugfs.c108 struct intel_opregion *opregion = &i915->display.opregion; in i915_opregion() local
110 if (opregion->header) in i915_opregion()
111 seq_write(m, opregion->header, OPREGION_SIZE); in i915_opregion()
119 struct intel_opregion *opregion = &i915->display.opregion; in i915_vbt() local
121 if (opregion->vbt) in i915_vbt()
122 seq_write(m, opregion->vbt, opregion->vbt_size); in i915_vbt()
Dintel_display_core.h420 struct intel_opregion opregion; member
Dintel_bios.c3141 const struct vbt_header *vbt = i915->display.opregion.vbt; in intel_bios_init()
3375 if (i915->display.opregion.vbt) in intel_bios_is_lvds_present()
/drivers/acpi/pmic/
Dintel_pmic.c54 struct intel_pmic_opregion *opregion = region_context; in intel_pmic_power_handler() local
55 struct regmap *regmap = opregion->regmap; in intel_pmic_power_handler()
56 const struct intel_pmic_opregion_data *d = opregion->data; in intel_pmic_power_handler()
70 mutex_lock(&opregion->lock); in intel_pmic_power_handler()
76 mutex_unlock(&opregion->lock); in intel_pmic_power_handler()
81 static int pmic_read_temp(struct intel_pmic_opregion *opregion, in pmic_read_temp() argument
86 if (!opregion->data->get_raw_temp) in pmic_read_temp()
89 raw_temp = opregion->data->get_raw_temp(opregion->regmap, reg); in pmic_read_temp()
93 if (!opregion->lpat_table) { in pmic_read_temp()
98 temp = opregion->data->lpat_raw_to_temp(opregion->lpat_table, raw_temp); in pmic_read_temp()
[all …]
Dtps68470_pmic.c282 struct tps68470_pmic_opregion *opregion = region_context; in tps68470_pmic_common_handler() local
283 struct regmap *regmap = opregion->regmap; in tps68470_pmic_common_handler()
296 mutex_lock(&opregion->lock); in tps68470_pmic_common_handler()
302 mutex_unlock(&opregion->lock); in tps68470_pmic_common_handler()
376 struct tps68470_pmic_opregion *opregion; in tps68470_pmic_opregion_probe() local
389 opregion = devm_kzalloc(dev, sizeof(*opregion), GFP_KERNEL); in tps68470_pmic_opregion_probe()
390 if (!opregion) in tps68470_pmic_opregion_probe()
393 mutex_init(&opregion->lock); in tps68470_pmic_opregion_probe()
394 opregion->regmap = tps68470_regmap; in tps68470_pmic_opregion_probe()
399 NULL, opregion); in tps68470_pmic_opregion_probe()
[all …]
/drivers/gpu/drm/gma500/
Dopregion.c152 struct opregion_asle *asle = dev_priv->opregion.asle; in asle_set_backlight()
172 struct psb_intel_opregion *opregion = in psb_intel_opregion_asle_work() local
175 container_of(opregion, struct drm_psb_private, opregion); in psb_intel_opregion_asle_work()
176 struct opregion_asle *asle = opregion->asle; in psb_intel_opregion_asle_work()
200 if (dev_priv->opregion.asle) in psb_intel_opregion_asle_intr()
201 schedule_work(&dev_priv->opregion.asle_work); in psb_intel_opregion_asle_intr()
212 struct opregion_asle *asle = dev_priv->opregion.asle; in psb_intel_opregion_enable_asle()
259 struct psb_intel_opregion *opregion = &dev_priv->opregion; in psb_intel_opregion_init() local
261 if (!opregion->header) in psb_intel_opregion_init()
264 if (opregion->acpi) { in psb_intel_opregion_init()
[all …]
Dintel_bios.c531 if (dev_priv->opregion.vbt) { in psb_intel_init_bios()
532 struct vbt_header *vbt = dev_priv->opregion.vbt; in psb_intel_init_bios()
538 dev_priv->opregion.vbt = NULL; in psb_intel_init_bios()
DMakefile40 gma500_gfx-$(CONFIG_ACPI) += opregion.o
Dpsb_lid.c20 u32 __iomem *lid_state = dev_priv->opregion.lid_state; in psb_lid_timer_func()
Dcdv_intel_lvds.c457 if (dev_priv->opregion.vbt) in lvds_is_present_in_vbt()
Dpsb_drv.h507 struct psb_intel_opregion opregion; member
/drivers/vfio/pci/
Dvfio_pci_igd.c29 void *opregion; member
84 opregionvbt->opregion + pos, &pos, in vfio_pci_igd_rw()
93 __le16 version = *(__le16 *)(opregionvbt->opregion + in vfio_pci_igd_rw()
112 opregionvbt->opregion + pos, &pos, in vfio_pci_igd_rw()
135 opregionvbt->opregion + pos, &pos, in vfio_pci_igd_rw()
159 memunmap(opregionvbt->opregion); in vfio_pci_igd_release()
187 opregionvbt->opregion = memremap(addr, OPREGION_SIZE, MEMREMAP_WB); in vfio_pci_igd_opregion_init()
188 if (!opregionvbt->opregion) { in vfio_pci_igd_opregion_init()
193 if (memcmp(opregionvbt->opregion, OPREGION_SIGNATURE, 16)) { in vfio_pci_igd_opregion_init()
194 memunmap(opregionvbt->opregion); in vfio_pci_igd_opregion_init()
[all …]
/drivers/gpu/drm/i915/gvt/
DMakefile20 gvt/opregion.o \
Dgvt.h124 #define vgpu_opregion(vgpu) (&(vgpu->opregion))
199 struct intel_vgpu_opregion opregion; member
/drivers/acpi/
Dacpi_video.c2126 int opregion = 0; in intel_opregion_present() local
2141 opregion = 1; in intel_opregion_present()
2143 return opregion; in intel_opregion_present()
/drivers/gpu/drm/i915/
Di915_irq.c598 if (!dev_priv->display.opregion.asle) in i915_has_asle()