Lines Matching refs:switches
39 struct iqs62x_switch_desc switches[ARRAY_SIZE(iqs62x_switch_names)];
70 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) {
82 iqs62x_keys->switches[i].code = val;
83 iqs62x_keys->switches[i].enabled = true;
86 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ?
90 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ?
133 * Hall UI flags represent switches and are unmasked if their
136 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) {
137 if (!(iqs62x_keys->switches[i].enabled))
140 flag = iqs62x_keys->switches[i].flag;
148 iqs62x_keys->switches[i].code,
214 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++)
215 if (iqs62x_keys->switches[i].enabled)
217 iqs62x_keys->switches[i].code,
219 BIT(iqs62x_keys->switches[i].flag));
281 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++)
282 if (iqs62x_keys->switches[i].enabled)
284 iqs62x_keys->switches[i].code);