Lines Matching full:dim
78 /* DIM current configuration register on page 1 */
83 * DIM current configuration register (page 4).
84 * The even address for current DIM configuration.
111 int dim; member
131 int dim = led->dim; in dim_show() local
133 if (dim < 0) in dim_show()
136 return sysfs_emit(buf, "%d\n", dim); in dim_show()
146 int dim; in dim_store() local
150 dim = -1; in dim_store()
152 ret = kstrtoint(buf, 0, &dim); in dim_store()
156 if (dim > AW200XX_DIM_MAX) in dim_store()
162 if (dim >= 0) { in dim_store()
165 dim); in dim_store()
170 led->dim = dim; in dim_store()
177 static DEVICE_ATTR_RW(dim);
183 ATTRIBUTE_GROUPS(dim);
190 int dim; in aw200xx_brightness_set() local
198 dim = led->dim; in aw200xx_brightness_set()
199 if (dim < 0) in aw200xx_brightness_set()
200 dim = AW200XX_REG_FADE2DIM(brightness); in aw200xx_brightness_set()
202 ret = regmap_write(chip->regmap, reg, dim); in aw200xx_brightness_set()
222 * Iled = Imax * (dim / 63) * ((fade + 1) / 256) * duty in aw200xx_imax_from_global()
227 * Calculated for the maximum values of fade and dim. in aw200xx_imax_from_global()
461 led->dim = -1; in aw200xx_probe_fw()