Lines Matching full:dim
77 /* DIM current configuration register on page 1 */
82 * DIM current configuration register (page 4).
83 * The even address for current DIM configuration.
108 int dim; member
127 int dim = led->dim; in dim_show() local
129 if (dim < 0) in dim_show()
132 return sysfs_emit(buf, "%d\n", dim); in dim_show()
142 int dim; in dim_store() local
146 dim = -1; in dim_store()
148 ret = kstrtoint(buf, 0, &dim); in dim_store()
152 if (dim > AW200XX_DIM_MAX) in dim_store()
158 if (dim >= 0) { in dim_store()
161 dim); in dim_store()
166 led->dim = dim; in dim_store()
173 static DEVICE_ATTR_RW(dim);
179 ATTRIBUTE_GROUPS(dim);
186 int dim; in aw200xx_brightness_set() local
194 dim = led->dim; in aw200xx_brightness_set()
195 if (dim < 0) in aw200xx_brightness_set()
196 dim = max_t(int, in aw200xx_brightness_set()
200 ret = regmap_write(chip->regmap, reg, dim); in aw200xx_brightness_set()
220 * Iled = Imax * (dim / 63) * ((fade + 1) / 256) * duty in aw200xx_imax_from_global()
225 * Calculated for the maximum values of fade and dim. in aw200xx_imax_from_global()
420 led->dim = -1; in aw200xx_probe_fw()