Home
last modified time | relevance | path

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

/drivers/gpu/drm/gma500/
Dopregion.c89 u32 bclp; /* backlight brightness to set */ member
149 static u32 asle_set_backlight(struct drm_device *dev, u32 bclp) in asle_set_backlight() argument
155 DRM_DEBUG_DRIVER("asle set backlight %x\n", bclp); in asle_set_backlight()
157 if (!(bclp & ASLE_BCLP_VALID)) in asle_set_backlight()
163 bclp &= ASLE_BCLP_MSK; in asle_set_backlight()
164 if (bclp > 255) in asle_set_backlight()
169 gma_backlight_set(dev, bclp * max / 255); in asle_set_backlight()
172 asle->cblv = (bclp * 0x64) / 0xff | ASLE_CBLV_VALID; in asle_set_backlight()
194 asle_stat |= asle_set_backlight(dev, asle->bclp); in psb_intel_opregion_asle_intr()
/drivers/gpu/drm/i915/
Dintel_opregion.c102 u32 bclp; /* backlight brightness to set */ member
151 static u32 asle_set_backlight(struct drm_device *dev, u32 bclp) in asle_set_backlight() argument
157 DRM_DEBUG_DRIVER("bclp = 0x%08x\n", bclp); in asle_set_backlight()
159 if (!(bclp & ASLE_BCLP_VALID)) in asle_set_backlight()
162 bclp &= ASLE_BCLP_MSK; in asle_set_backlight()
163 if (bclp > 255) in asle_set_backlight()
167 intel_panel_set_backlight(dev, bclp * max / 255); in asle_set_backlight()
168 iowrite32((bclp*0x64)/0xff | ASLE_CBLV_VALID, &asle->cblv); in asle_set_backlight()
223 asle_stat |= asle_set_backlight(dev, ioread32(&asle->bclp)); in intel_opregion_asle_intr()
257 asle_stat |= asle_set_backlight(dev, ioread32(&asle->bclp)); in intel_opregion_gse_intr()