Lines Matching defs:levels
23 * If @num_levels is 0 then the levels are simple values with the backlight
25 * Otherwise the levels are an index into @levels (0..n-1).
32 * @levels: Levels for the backlight, or NULL if not using indexed levels
33 * @num_levels: Number of levels
52 u32 *levels;
162 if (priv->levels) {
163 level = priv->levels[percent * (priv->num_levels - 1)
234 cell = dev_read_prop(dev, "brightness-levels", &len);
237 priv->levels = malloc(len);
238 if (!priv->levels)
240 ret = dev_read_u32_array(dev, "brightness-levels", priv->levels,
243 return log_msg_ret("levels", ret);
245 priv->default_level = priv->levels[index];
246 priv->max_level = priv->levels[count - 1];