/netbsd-current/sys/external/bsd/drm2/linux/ |
H A D | linux_backlight.c | 35 #include <linux/backlight.h> 38 backlight_enable(struct backlight_device *backlight) argument 44 backlight_disable(struct backlight_device *backlight) argument
|
/netbsd-current/etc/powerd/scripts/ |
H A D | lid_switch | 17 wsconsctl -d -w backlight=0 >/dev/null 22 wsconsctl -d -w backlight=1 >/dev/null
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/i915/display/ |
H A D | intel_panel.c | 496 panel->backlight.min, panel->backlight.max); 508 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); 509 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max); 521 return scale(hw_level, panel->backlight.min, panel->backlight.max, 532 WARN_ON(panel->backlight.max == 0); 539 return panel->backlight.max - val + panel->backlight [all...] |
H A D | intel_dsi_dcs_backlight.c | 150 dcs_set_backlight(conn_state, panel->backlight.level); 158 panel->backlight.max = PANEL_PWM_MAX_VALUE; 159 panel->backlight.level = PANEL_PWM_MAX_VALUE; 171 if (dev_priv->vbt.backlight.type != INTEL_BACKLIGHT_DSI_DCS) 177 panel->backlight.setup = dcs_setup_backlight; 178 panel->backlight.enable = dcs_enable_backlight; 179 panel->backlight.disable = dcs_disable_backlight; 180 panel->backlight.set = dcs_set_backlight; 181 panel->backlight.get = dcs_get_backlight;
|
H A D | intel_dp_aux_backlight.c | 37 /* Early return when display use other mechanism to enable backlight. */ 54 DRM_DEBUG_KMS("Failed to %s aux backlight\n", 60 * Read the current backlight value from DPCD register(s) based 83 * Sends the current backlight level over the aux channel, checking if its using 102 DRM_DEBUG_KMS("Failed to write aux backlight level\n"); 126 freq = dev_priv->vbt.backlight.pwm_freq_hz; 127 DRM_DEBUG_KMS("VBT defined backlight frequency %u Hz\n", freq); 129 DRM_DEBUG_KMS("Use panel default backlight frequency\n"); 158 DRM_DEBUG_KMS("VBT defined backlight frequency out of range\n"); 176 DRM_DEBUG_KMS("Failed to write aux backlight fre [all...] |
H A D | dvo_ivch.c | 351 u16 vr01, vr30, backlight; local 360 backlight = 1; 362 backlight = 0; 364 ivch_write(dvo, VR80, backlight);
|
H A D | intel_bios.c | 431 DRM_DEBUG_KMS("Unsupported backlight data entry size %u\n", 438 dev_priv->vbt.backlight.present = entry->type == BDB_BACKLIGHT_TYPE_PWM; 439 if (!dev_priv->vbt.backlight.present) { 440 DRM_DEBUG_KMS("PWM backlight not present in VBT (type %u)\n", 445 dev_priv->vbt.backlight.type = INTEL_BACKLIGHT_DISPLAY_DDI; 451 dev_priv->vbt.backlight.type = method->type; 452 dev_priv->vbt.backlight.controller = method->controller; 455 dev_priv->vbt.backlight.pwm_freq_hz = entry->pwm_freq_hz; 456 dev_priv->vbt.backlight.active_low_pwm = entry->active_low_pwm; 457 dev_priv->vbt.backlight [all...] |
H A D | intel_display_types.h | 203 /* backlight */ 221 /* Connector and platform specific backlight functions */ 230 } backlight; member in struct:intel_panel
|
H A D | intel_dp.c | 916 int backlight_controller = dev_priv->vbt.backlight.controller; 2980 /* Enable backlight in the panel power control. */ 2987 * If we enable the backlight right away following a panel power 3006 /* Enable backlight PWM and backlight PP control. */ 3021 /* Disable backlight in the panel power control. */ 3045 /* Disable backlight PP control and backlight PWM. */ 3060 * Hook for controlling the panel power control backlight through the bl_power 3076 DRM_DEBUG_KMS("panel power control backlight [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/drm/ |
H A D | drm_panel.c | 29 #include <linux/backlight.h> 207 * and the backlight to be enabled. Content will be visible on screen after 225 ret = backlight_enable(panel->backlight); 227 DRM_DEV_INFO(panel->dev, "failed to enable backlight: %d\n", 238 * This will typically turn off the panel's backlight or disable the display 251 ret = backlight_disable(panel->backlight); 253 DRM_DEV_INFO(panel->dev, "failed to disable backlight: %d\n", 328 * drm_panel_of_backlight - use backlight device node for backlight 331 * Use this function to enable backlight handlin 349 struct backlight_device *backlight; local [all...] |
/netbsd-current/sbin/wsconsctl/ |
H A D | display.c | 48 static struct wsdisplay_param backlight; variable in typeref:struct:wsdisplay_param 62 { "backlight", &backlight.curval, FMT_UINT, 0 }, 93 if (field_by_value(&backlight.curval)->flags & FLG_GET) { 94 backlight.param = WSDISPLAYIO_PARAM_BACKLIGHT; 95 if (ioctl(fd, WSDISPLAYIO_GETPARAM, &backlight) < 0) 96 field_disable_by_value(&backlight.curval); 176 if (field_by_value(&backlight.curval)->flags & FLG_SET) { 177 backlight.param = WSDISPLAYIO_PARAM_BACKLIGHT; 178 if (ioctl(fd, WSDISPLAYIO_SETPARAM, &backlight) < [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce/ |
H A D | amdgpu_dce_abm.c | 150 * 1. Find 16 bit backlight active duty cycle, where 0 <= backlight 151 * active duty cycle <= backlight period 154 /* 1.1 Apply bitmask for backlight period value based on value of BITCNT 186 /* 2.1 Lock group 2 backlight registers */ 195 /* 2.3 Unlock group 2 backlight registers */ 215 // Check for max backlight condition 218 // Take MSB of fractional part since backlight is not max 259 unsigned int backlight = calculate_16_bit_backlight_from_pwm(abm_dce); local 278 BL1_PWM_CURRENT_ABM_LEVEL, backlight); 299 unsigned int backlight = REG_READ(BL1_PWM_CURRENT_ABM_LEVEL); local 310 unsigned int backlight = REG_READ(BL1_PWM_TARGET_ABM_LEVEL); local [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/include/drm/ |
H A D | drm_panel.h | 50 * to call the .enable() function. This will typically enable the backlight to 53 * for taking this into account before enabling the backlight to avoid visual 59 * turning off the backlight and waiting for some time to make sure no image 68 * functionality to enable/disable backlight. 142 * @backlight: 144 * Backlight device, used to turn on backlight after the call 145 * to enable(), and to turn off backlight before the call to 147 * backlight is set by drm_panel_of_backlight() and drivers 150 struct backlight_device *backlight; member in struct:drm_panel
|
/netbsd-current/sys/dev/acpi/ |
H A D | vald_acpi.c | 202 /* Get LCD backlight status. */ 207 "can't get backlight status error=%d\n", result); 209 aprint_verbose_dev(self, "LCD backlight %s\n", 514 uint32_t backlight, backlight_new, result, bright; local 522 /* Get LCD backlight status. */ 523 rv = vald_acpi_ghci_get(sc, GHCI_BACKLIGHT, &backlight, &result); 528 backlight_new = backlight; 530 if (backlight == 1) 533 /* backlight on */ 538 if ((backlight [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/ |
H A D | nouveau_backlight.c | 39 #include <linux/backlight.h> 239 NV_INFO_ONCE(drm, "Apple GMUX detected: not registering Nouveau backlight interface\n"); 280 NV_ERROR(drm, "Failed to retrieve a unique name for the backlight interface\n"); 293 nouveau_connector(connector)->backlight = bl; 308 struct nouveau_backlight *bl = nv_conn->backlight; 317 nv_conn->backlight = NULL;
|
H A D | nouveau_connector.h | 123 struct nouveau_backlight *backlight; member in struct:nouveau_connector
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_debugfs.c | 1082 * As written to display, taking ABM and backlight lut into account. 1091 unsigned int backlight = dc_get_current_backlight_pwm(dc); local 1093 seq_printf(m, "0x%x\n", backlight); 1099 * As written to display, taking ABM and backlight lut into account. 1108 unsigned int backlight = dc_get_target_backlight_pwm(dc); local 1110 seq_printf(m, "0x%x\n", backlight);
|
/netbsd-current/external/mit/xorg/server/drivers/xf86-video-intel/ |
H A D | Makefile | 20 SRCS+= backlight.c
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/radeon/ |
H A D | radeon_drv.c | 303 MODULE_PARM_DESC(backlight, "backlight support (1 = enable, 0 = disable, -1 = auto)"); 304 module_param_named(backlight, radeon_backlight, int, 0444);
|
H A D | radeon_legacy_encoders.c | 32 #include <linux/backlight.h> 45 #include <asm/backlight.h> 419 /* First, try to detect backlight level sense based on the assumption 428 * backlight should work on a given panel? 455 DRM_INFO("radeon legacy LVDS backlight initialized\n"); 491 DRM_INFO("radeon legacy LVDS backlight unloaded\n");
|
H A D | radeon_atombios_encoders.c | 32 #include <linux/backlight.h> 201 /* Mac laptops with multiple GPUs use the gmux driver for backlight 202 * so don't register a backlight device 242 * fbdev will attempt to turn the backlight on after console 243 * unblanking and it will try and restore 0 which turns the backlight 251 DRM_INFO("radeon atom DIG backlight initialized\n"); 288 DRM_INFO("radeon atom LVDS backlight unloaded\n");
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/i915/ |
H A D | i915_drv.h | 41 #include <linux/backlight.h> 714 } backlight; member in struct:intel_vbt_data 1014 /* backlight registers and fields in struct intel_panel */
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
H A D | amdgpu_atombios_encoders.c | 42 #include <linux/backlight.h> 182 /* Mac laptops with multiple GPUs use the gmux driver for backlight 183 * so don't register a backlight device 224 DRM_INFO("amdgpu atom DIG backlight initialized\n"); 258 DRM_INFO("amdgpu atom LVDS backlight unloaded\n");
|