Lines Matching full:mode
12 * Fixes the mode button which cycles through three constantly pressed
33 int mode; member
50 ssc->mode = -1; in saitek_probe()
99 /* R.A.T.7 uses bits 13, 14, 15 for the mode */ in saitek_raw_event()
100 int mode = -1; in saitek_raw_event() local
102 mode = 0; in saitek_raw_event()
104 mode = 1; in saitek_raw_event()
106 mode = 2; in saitek_raw_event()
108 /* clear mode bits */ in saitek_raw_event()
111 if (mode != ssc->mode) { in saitek_raw_event()
112 hid_dbg(hdev, "entered mode %d\n", mode); in saitek_raw_event()
113 if (ssc->mode != -1) { in saitek_raw_event()
114 /* use bit 13 as the mode button */ in saitek_raw_event()
117 ssc->mode = mode; in saitek_raw_event()
121 /* M.M.O.7 uses bits 8, 22, 23 for the mode */ in saitek_raw_event()
122 int mode = -1; in saitek_raw_event() local
124 mode = 0; in saitek_raw_event()
126 mode = 1; in saitek_raw_event()
128 mode = 2; in saitek_raw_event()
130 /* clear mode bits */ in saitek_raw_event()
134 if (mode != ssc->mode) { in saitek_raw_event()
135 hid_dbg(hdev, "entered mode %d\n", mode); in saitek_raw_event()
136 if (ssc->mode != -1) { in saitek_raw_event()
137 /* use bit 8 as the mode button, bits 22 in saitek_raw_event()
143 ssc->mode = mode; in saitek_raw_event()