Lines Matching refs:ledi
130 ReportLedBadType(CompatInfo *info, LedInfo *ledi, const char *field, in ReportLedBadType() argument
134 xkb_atom_text(info->ctx, ledi->led.name), in ReportLedBadType()
139 ReportLedNotArray(CompatInfo *info, LedInfo *ledi, const char *field) in ReportLedNotArray() argument
142 xkb_atom_text(info->ctx, ledi->led.name)); in ReportLedNotArray()
413 LedInfo *ledi = &from->leds[i]; in MergeIncludedCompatMaps() local
414 ledi->merge = (merge == MERGE_DEFAULT ? ledi->merge : merge); in MergeIncludedCompatMaps()
415 if (!AddLedMap(into, ledi, false)) in MergeIncludedCompatMaps()
531 SetLedMapField(CompatInfo *info, LedInfo *ledi, const char *field, in SetLedMapField() argument
538 return ReportLedNotArray(info, ledi, field); in SetLedMapField()
541 &info->mods, &ledi->led.mods.mods)) in SetLedMapField()
542 return ReportLedBadType(info, ledi, field, "modifier mask"); in SetLedMapField()
544 ledi->defined |= LED_FIELD_MODS; in SetLedMapField()
550 return ReportLedNotArray(info, ledi, field); in SetLedMapField()
553 return ReportLedBadType(info, ledi, field, "group mask"); in SetLedMapField()
555 ledi->led.groups = mask; in SetLedMapField()
556 ledi->defined |= LED_FIELD_GROUPS; in SetLedMapField()
562 return ReportLedNotArray(info, ledi, field); in SetLedMapField()
565 return ReportLedBadType(info, ledi, field, "controls mask"); in SetLedMapField()
567 ledi->led.ctrls = mask; in SetLedMapField()
568 ledi->defined |= LED_FIELD_CTRLS; in SetLedMapField()
580 return ReportLedNotArray(info, ledi, field); in SetLedMapField()
584 return ReportLedBadType(info, ledi, field, in SetLedMapField()
587 ledi->led.which_mods = mask; in SetLedMapField()
593 return ReportLedNotArray(info, ledi, field); in SetLedMapField()
597 return ReportLedBadType(info, ledi, field, in SetLedMapField()
600 ledi->led.which_groups = mask; in SetLedMapField()
622 field, xkb_atom_text(info->ctx, ledi->led.name)); in SetLedMapField()
712 LedInfo ledi; in HandleLedMapDef() local
719 ledi = info->default_led; in HandleLedMapDef()
720 ledi.merge = merge; in HandleLedMapDef()
721 ledi.led.name = def->name; in HandleLedMapDef()
739 ok = SetLedMapField(info, &ledi, field, arrayNdx, var->value) && ok; in HandleLedMapDef()
744 return AddLedMap(info, &ledi, true); in HandleLedMapDef()
822 LedInfo *ledi = &info->leds[idx]; in CopyLedMapDefsToKeymap() local
831 if (led->name == ledi->led.name) in CopyLedMapDefsToKeymap()
839 xkb_atom_text(keymap->ctx, ledi->led.name)); in CopyLedMapDefsToKeymap()
852 xkb_atom_text(keymap->ctx, ledi->led.name)); in CopyLedMapDefsToKeymap()
861 *led = ledi->led; in CopyLedMapDefsToKeymap()