Lines Matching full:dim
6 #include <linux/dim.h>
8 bool dim_on_top(struct dim *dim) in dim_on_top() argument
10 switch (dim->tune_state) { in dim_on_top()
15 return (dim->steps_left > 1) && (dim->steps_right == 1); in dim_on_top()
17 return (dim->steps_right > 1) && (dim->steps_left == 1); in dim_on_top()
22 void dim_turn(struct dim *dim) in dim_turn() argument
24 switch (dim->tune_state) { in dim_turn()
29 dim->tune_state = DIM_GOING_LEFT; in dim_turn()
30 dim->steps_left = 0; in dim_turn()
33 dim->tune_state = DIM_GOING_RIGHT; in dim_turn()
34 dim->steps_right = 0; in dim_turn()
40 void dim_park_on_top(struct dim *dim) in dim_park_on_top() argument
42 dim->steps_right = 0; in dim_park_on_top()
43 dim->steps_left = 0; in dim_park_on_top()
44 dim->tired = 0; in dim_park_on_top()
45 dim->tune_state = DIM_PARKING_ON_TOP; in dim_park_on_top()
49 void dim_park_tired(struct dim *dim) in dim_park_tired() argument
51 dim->steps_right = 0; in dim_park_tired()
52 dim->steps_left = 0; in dim_park_tired()
53 dim->tune_state = DIM_PARKING_TIRED; in dim_park_tired()
86 MODULE_DESCRIPTION("Dynamic Interrupt Moderation (DIM) library");