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++) {
83 iqs62x_keys->switches[i].code = val;
84 iqs62x_keys->switches[i].enabled = true;
87 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ?
91 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ?
136 * Hall UI flags represent switches and are unmasked if their
139 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) {
140 if (!(iqs62x_keys->switches[i].enabled))
143 flag = iqs62x_keys->switches[i].flag;
151 iqs62x_keys->switches[i].code,
217 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++)
218 if (iqs62x_keys->switches[i].enabled)
220 iqs62x_keys->switches[i].code,
222 BIT(iqs62x_keys->switches[i].flag));
284 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++)
285 if (iqs62x_keys->switches[i].enabled)
287 iqs62x_keys->switches[i].code);