Lines Matching defs:mode
60 #define LP5521_PWRSAVE_EN 0x20 /* 1 = Power save mode */
62 #define LP5521_CP_MODE_BYPASS 8 /* CP forced to bypass mode */
63 #define LP5521_CP_MODE_1X5 0x10 /* CP forced to 1.5x mode */
64 #define LP5521_CP_MODE_AUTO 0x18 /* Automatic mode selection */
87 #define LP5521_R_IS_LOADING(mode) \
88 ((mode & LP5521_MODE_R_M) == LP5521_LOAD_R)
89 #define LP5521_G_IS_LOADING(mode) \
90 ((mode & LP5521_MODE_G_M) == LP5521_LOAD_G)
91 #define LP5521_B_IS_LOADING(mode) \
92 ((mode & LP5521_MODE_B_M) == LP5521_LOAD_B)
104 /* operation mode change needs to be longer than 153 us */
164 u8 mode;
177 * operation mode and enable register should updated at the same time
180 ret = lp55xx_read(chip, LP5521_REG_OP_MODE, &mode);
188 /* change operation mode to RUN only when each engine is loading */
189 if (LP5521_R_IS_LOADING(mode)) {
190 mode = (mode & ~LP5521_MODE_R_M) | LP5521_RUN_R;
194 if (LP5521_G_IS_LOADING(mode)) {
195 mode = (mode & ~LP5521_MODE_G_M) | LP5521_RUN_G;
199 if (LP5521_B_IS_LOADING(mode)) {
200 mode = (mode & ~LP5521_MODE_B_M) | LP5521_RUN_B;
204 lp55xx_write(chip, LP5521_REG_OP_MODE, mode);
272 * 1) set engine mode to "LOAD"
305 /* Set all PWMs to direct control mode */
390 enum lp55xx_engine_mode mode = chip->engines[nr - 1].mode;
392 switch (mode) {
420 engine->mode = LP55XX_ENGINE_RUN;
424 engine->mode = LP55XX_ENGINE_LOAD;
427 engine->mode = LP55XX_ENGINE_DISABLED;