Lines Matching refs:props
62 bd->props.state &= ~BL_CORE_FBBLANK; in fb_notifier_callback()
63 bd->props.fb_blank = FB_BLANK_UNBLANK; in fb_notifier_callback()
70 bd->props.state |= BL_CORE_FBBLANK; in fb_notifier_callback()
71 bd->props.fb_blank = fb_blank; in fb_notifier_callback()
129 return sprintf(buf, "%d\n", bd->props.power); in bl_power_show()
147 if (bd->props.power != power) { in bl_power_store()
148 old_power = bd->props.power; in bl_power_store()
149 bd->props.power = power; in bl_power_store()
152 bd->props.power = old_power; in bl_power_store()
170 return sprintf(buf, "%d\n", bd->props.brightness); in brightness_show()
180 if (brightness > bd->props.max_brightness) in backlight_device_set_brightness()
184 bd->props.brightness = brightness; in backlight_device_set_brightness()
218 return sprintf(buf, "%s\n", backlight_types[bd->props.type]); in type_show()
227 return sprintf(buf, "%d\n", bd->props.max_brightness); in max_brightness_show()
241 rc = sprintf(buf, "%d\n", bd->props.brightness); in actual_brightness_show()
257 bd->props.state |= BL_CORE_SUSPENDED; in backlight_suspend()
271 bd->props.state &= ~BL_CORE_SUSPENDED; in backlight_resume()
312 bd->props.brightness = bd->ops->get_brightness(bd); in backlight_force_update()
333 const struct backlight_properties *props) in backlight_device_register() argument
354 if (props) { in backlight_device_register()
355 memcpy(&new_bd->props, props, in backlight_device_register()
357 if (props->type <= 0 || props->type >= BACKLIGHT_TYPE_MAX) { in backlight_device_register()
359 new_bd->props.type = BACKLIGHT_RAW; in backlight_device_register()
362 new_bd->props.type = BACKLIGHT_RAW; in backlight_device_register()
404 if (bd->props.type == type) { in backlight_device_get_by_type()
512 const struct backlight_properties *props) in devm_backlight_device_register() argument
522 props); in devm_backlight_device_register()
617 if (!bd->props.brightness) in of_find_backlight()
618 bd->props.brightness = bd->props.max_brightness; in of_find_backlight()