Lines Matching refs:props
85 static int linux_backlight_get_status(device_t dev, struct backlight_props *props);
86 static int linux_backlight_update_status(device_t dev, struct backlight_props *props);
1040 linux_backlight_get_status(device_t dev, struct backlight_props *props)
1047 props->brightness = pdev->dev.bd->props.brightness;
1048 props->brightness = props->brightness * 100 / pdev->dev.bd->props.max_brightness;
1049 props->nlevels = 0;
1068 linux_backlight_update_status(device_t dev, struct backlight_props *props)
1075 pdev->dev.bd->props.brightness = pdev->dev.bd->props.max_brightness *
1076 props->brightness / 100;
1082 void *data, const struct backlight_ops *ops, struct backlight_properties *props)
1087 dev->bd->props.type = props->type;
1088 dev->bd->props.max_brightness = props->max_brightness;
1089 dev->bd->props.brightness = props->brightness;
1090 dev->bd->props.power = props->power;