Lines Matching full:props
90 struct backlight_props props; in main() local
171 if (ioctl(fd, BACKLIGHTGETSTATUS, &props) == -1) in main()
174 printf("%u\n", props.brightness); in main()
176 printf("brightness: %d\n", props.brightness); in main()
177 if (props.nlevels != 0) { in main()
179 for (i = 0; i < props.nlevels; i++) in main()
180 printf(" %d", props.levels[i]); in main()
188 props.brightness = percent; in main()
189 if (ioctl(fd, BACKLIGHTUPDATESTATUS, &props) == -1) in main()
197 if (ioctl(fd, BACKLIGHTGETSTATUS, &props) == -1) in main()
201 props.brightness += percent; in main()
202 if ((int)props.brightness < 0) in main()
203 props.brightness = 0; in main()
204 if (props.brightness > 100) in main()
205 props.brightness = 100; in main()
206 if (ioctl(fd, BACKLIGHTUPDATESTATUS, &props) == -1) in main()