Home
last modified time | relevance | path

Searched refs:lbpc (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/gpu/drm/gma500/
H A Dcdv_device.c97 u8 lbpc; in cdv_get_brightness() local
100 pci_read_config_byte(pdev, 0xF4, &lbpc); in cdv_get_brightness()
101 val *= lbpc; in cdv_get_brightness()
116 u8 lbpc; in cdv_set_brightness() local
118 lbpc = level * 0xfe / max + 1; in cdv_set_brightness()
119 level /= lbpc; in cdv_set_brightness()
121 pci_write_config_byte(pdev, 0xF4, lbpc); in cdv_set_brightness()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_backlight.c168 u8 lbpc; in i9xx_get_backlight() local
170 pci_read_config_byte(to_pci_dev(i915->drm.dev), LBPC, &lbpc); in i9xx_get_backlight()
171 val *= lbpc; in i9xx_get_backlight()
234 u8 lbpc; in i9xx_set_backlight() local
236 lbpc = level * 0xfe / panel->backlight.pwm_level_max + 1; in i9xx_set_backlight()
237 level /= lbpc; in i9xx_set_backlight()
238 pci_write_config_byte(to_pci_dev(i915->drm.dev), LBPC, lbpc); in i9xx_set_backlight()