Lines Matching refs:props

124 			bd->props.state &= ~BL_CORE_FBBLANK;  in fb_notifier_callback()
130 bd->props.state |= BL_CORE_FBBLANK; in fb_notifier_callback()
188 return sprintf(buf, "%d\n", bd->props.power); in bl_power_show()
206 if (bd->props.power != power) { in bl_power_store()
207 old_power = bd->props.power; in bl_power_store()
208 bd->props.power = power; in bl_power_store()
211 bd->props.power = old_power; in bl_power_store()
229 return sprintf(buf, "%d\n", bd->props.brightness); in brightness_show()
239 if (brightness > bd->props.max_brightness) in backlight_device_set_brightness()
243 bd->props.brightness = brightness; in backlight_device_set_brightness()
277 return sprintf(buf, "%s\n", backlight_types[bd->props.type]); in type_show()
286 return sprintf(buf, "%d\n", bd->props.max_brightness); in max_brightness_show()
302 rc = sprintf(buf, "%d\n", bd->props.brightness); in actual_brightness_show()
315 if (WARN_ON(bd->props.scale > BACKLIGHT_SCALE_NON_LINEAR)) in scale_show()
318 return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scale]); in scale_show()
329 bd->props.state |= BL_CORE_SUSPENDED; in backlight_suspend()
343 bd->props.state &= ~BL_CORE_SUSPENDED; in backlight_resume()
399 bd->props.brightness = brightness; in backlight_force_update()
413 const struct backlight_properties *props) in backlight_device_register() argument
434 if (props) { in backlight_device_register()
435 memcpy(&new_bd->props, props, in backlight_device_register()
437 if (props->type <= 0 || props->type >= BACKLIGHT_TYPE_MAX) { in backlight_device_register()
439 new_bd->props.type = BACKLIGHT_RAW; in backlight_device_register()
442 new_bd->props.type = BACKLIGHT_RAW; in backlight_device_register()
493 if (bd->props.type == type) { in backlight_device_get_by_type()
623 const struct backlight_properties *props) in devm_backlight_device_register() argument
633 props); in devm_backlight_device_register()