Lines Matching full:brightness
76 int brightness = backlight_get_brightness(bl_dev); in mt6370_bl_update_status() local
81 if (brightness) { in mt6370_bl_update_status()
82 brightness_val[0] = (brightness - 1) & priv->dim2_mask; in mt6370_bl_update_status()
83 brightness_val[1] = (brightness - 1) >> priv->dim2_shift; in mt6370_bl_update_status()
91 gpiod_set_value(priv->enable_gpio, !!brightness); in mt6370_bl_update_status()
93 enable_val = brightness ? MT6370_BL_EN_MASK : 0; in mt6370_bl_update_status()
103 int brightness, ret; in mt6370_bl_get_brightness() local
117 brightness = brightness_val[1] << priv->dim2_shift; in mt6370_bl_get_brightness()
118 brightness += brightness_val[0] & priv->dim2_mask; in mt6370_bl_get_brightness()
120 return brightness + 1; in mt6370_bl_get_brightness()
134 u32 brightness, ovp_uV, ocp_uA; in mt6370_init_backlight_properties() local
197 ret = device_property_read_u32(dev, "max-brightness", &brightness); in mt6370_init_backlight_properties()
199 brightness = priv->def_max_brightness; in mt6370_init_backlight_properties()
201 props->max_brightness = min_t(u32, brightness, priv->def_max_brightness); in mt6370_init_backlight_properties()
203 ret = device_property_read_u32(dev, "default-brightness", &brightness); in mt6370_init_backlight_properties()
205 brightness = props->max_brightness; in mt6370_init_backlight_properties()
207 props->brightness = min_t(u32, brightness, props->max_brightness); in mt6370_init_backlight_properties()
242 * Because MT6372 uses 14 bits to control the brightness, in mt6370_check_vendor_info()
245 * mask, shift and default maximum brightness value that in mt6370_check_vendor_info()
326 bl_dev->props.brightness = 0; in mt6370_bl_remove()