Lines Matching refs:props

69 					bd->props.state &= ~BL_CORE_FBBLANK;  in fb_notifier_callback()
70 bd->props.fb_blank = FB_BLANK_UNBLANK; in fb_notifier_callback()
77 bd->props.state |= BL_CORE_FBBLANK; in fb_notifier_callback()
78 bd->props.fb_blank = fb_blank; in fb_notifier_callback()
136 return sprintf(buf, "%d\n", bd->props.power); in bl_power_show()
154 if (bd->props.power != power) { in bl_power_store()
155 old_power = bd->props.power; in bl_power_store()
156 bd->props.power = power; in bl_power_store()
159 bd->props.power = old_power; in bl_power_store()
177 return sprintf(buf, "%d\n", bd->props.brightness); in brightness_show()
187 if (brightness > bd->props.max_brightness) in backlight_device_set_brightness()
191 bd->props.brightness = brightness; in backlight_device_set_brightness()
225 return sprintf(buf, "%s\n", backlight_types[bd->props.type]); in type_show()
234 return sprintf(buf, "%d\n", bd->props.max_brightness); in max_brightness_show()
248 rc = sprintf(buf, "%d\n", bd->props.brightness); in actual_brightness_show()
260 if (WARN_ON(bd->props.scale > BACKLIGHT_SCALE_NON_LINEAR)) in scale_show()
263 return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scale]); in scale_show()
276 bd->props.state |= BL_CORE_SUSPENDED; in backlight_suspend()
290 bd->props.state &= ~BL_CORE_SUSPENDED; in backlight_resume()
332 bd->props.brightness = bd->ops->get_brightness(bd); in backlight_force_update()
353 const struct backlight_properties *props) in backlight_device_register() argument
374 if (props) { in backlight_device_register()
375 memcpy(&new_bd->props, props, in backlight_device_register()
377 if (props->type <= 0 || props->type >= BACKLIGHT_TYPE_MAX) { in backlight_device_register()
379 new_bd->props.type = BACKLIGHT_RAW; in backlight_device_register()
382 new_bd->props.type = BACKLIGHT_RAW; in backlight_device_register()
424 if (bd->props.type == type) { in backlight_device_get_by_type()
532 const struct backlight_properties *props) in devm_backlight_device_register() argument
542 props); in devm_backlight_device_register()
637 if (!bd->props.brightness) in of_find_backlight()
638 bd->props.brightness = bd->props.max_brightness; in of_find_backlight()