Lines Matching refs:led
152 const struct xkb_led *led; in write_keycodes() local
175 xkb_leds_enumerate(idx, led, keymap) in write_keycodes()
176 if (led->name != XKB_ATOM_NONE) in write_keycodes()
178 idx + 1, xkb_atom_text(keymap->ctx, led->name)); in write_keycodes()
245 const struct xkb_led *led) in write_led_map() argument
248 xkb_atom_text(keymap->ctx, led->name)); in write_led_map()
250 if (led->which_groups) { in write_led_map()
251 if (led->which_groups != XKB_STATE_LAYOUT_EFFECTIVE) { in write_led_map()
253 LedStateMaskText(keymap->ctx, led->which_groups)); in write_led_map()
256 led->groups); in write_led_map()
259 if (led->which_mods) { in write_led_map()
260 if (led->which_mods != XKB_STATE_MODS_EFFECTIVE) { in write_led_map()
262 LedStateMaskText(keymap->ctx, led->which_mods)); in write_led_map()
265 ModMaskText(keymap->ctx, &keymap->mods, led->mods.mods)); in write_led_map()
268 if (led->ctrls) { in write_led_map()
270 ControlMaskText(keymap->ctx, led->ctrls)); in write_led_map()
408 const struct xkb_led *led; in write_compat() local
444 xkb_leds_foreach(led, keymap) in write_compat()
445 if (led->which_groups || led->groups || led->which_mods || in write_compat()
446 led->mods.mods || led->ctrls) in write_compat()
447 write_led_map(keymap, buf, led); in write_compat()