Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 44) sorted by relevance

12

/systemd-251/src/boot/efi/
Dsplash.c49 struct bmp_map *map; in bmp_parse_header() local
102 map = (struct bmp_map *)(bmp + sizeof(struct bmp_file) + dib->size); in bmp_parse_header()
131 *ret_map = map; in bmp_parse_header()
165 struct bmp_map *map, in bmp_to_blt() argument
172 assert(map); in bmp_to_blt()
186 out->Red = map[((*in) >> (7 - i)) & 1].red; in bmp_to_blt()
187 out->Green = map[((*in) >> (7 - i)) & 1].green; in bmp_to_blt()
188 out->Blue = map[((*in) >> (7 - i)) & 1].blue; in bmp_to_blt()
201 out->Red = map[i].red; in bmp_to_blt()
202 out->Green = map[i].green; in bmp_to_blt()
[all …]
/systemd-251/src/libsystemd/sd-bus/
Dbus-error.c66 const sd_bus_error_map **map, *m; in bus_error_name_to_errno() local
83 for (map = additional_error_maps; *map; map++) in bus_error_name_to_errno()
84 for (m = *map;; m++) { in bus_error_name_to_errno()
604 static bool map_ok(const sd_bus_error_map *map) { in map_ok() argument
605 for (; map->code != BUS_ERROR_MAP_END_MARKER; map++) in map_ok()
606 if (!map->name || map->code <=0) in map_ok()
611 _public_ int sd_bus_error_add_map(const sd_bus_error_map *map) { in sd_bus_error_add_map() argument
615 assert_return(map, -EINVAL); in sd_bus_error_add_map()
616 assert_return(map_ok(map), -EINVAL); in sd_bus_error_add_map()
620 if (additional_error_maps[n] == map) in sd_bus_error_add_map()
[all …]
/systemd-251/src/udev/
Dudev-builtin-keyboard.c62 } map; in map_keycode() local
78 map.scan = scancode; in map_keycode()
79 map.key = keycode_num; in map_keycode()
82 map.scan, map.scan, map.key, map.key); in map_keycode()
84 if (ioctl(fd, EVIOCSKEYCODE, &map) < 0) in map_keycode()
85 …errno, "Failed to call EVIOCSKEYCODE with scan code 0x%x, and key code %d: %m", map.scan, map.key); in map_keycode()
Dudev-event.c122 static const struct subst_map_entry map[] = { variable
144 for (size_t i = 0; i < ELEMENTSOF(map); i++) in format_type_to_string()
145 if (map[i].type == t) in format_type_to_string()
146 return map[i].name; in format_type_to_string()
151 for (size_t i = 0; i < ELEMENTSOF(map); i++) in format_type_to_char()
152 if (map[i].type == t) in format_type_to_char()
153 return map[i].fmt; in format_type_to_char()
172 for (i = 0; i < ELEMENTSOF(map); i++) in get_subst_type()
173 if ((q = startswith(p, map[i].name))) in get_subst_type()
182 for (i = 0; i < ELEMENTSOF(map); i++) in get_subst_type()
[all …]
/systemd-251/src/shared/
Dbus-map-properties.c140 const struct bus_properties_map *map, in bus_message_map_all_properties() argument
148 assert(map); in bus_message_map_all_properties()
165 for (i = 0, prop = NULL; map[i].member; i++) in bus_message_map_all_properties()
166 if (streq(map[i].member, member)) { in bus_message_map_all_properties()
167 prop = &map[i]; in bus_message_map_all_properties()
181 if (map[i].set) in bus_message_map_all_properties()
211 const struct bus_properties_map *map, in bus_map_all_properties() argument
223 assert(map); in bus_map_all_properties()
238 r = bus_message_map_all_properties(m, map, flags, error, userdata); in bus_map_all_properties()
Dmount-util.c598 } map[] = { in mount_flags_to_string() local
629 for (size_t i = 0; i < ELEMENTSOF(map); i++) in mount_flags_to_string()
630 if (flags & map[i].flag) { in mount_flags_to_string()
631 if (!strextend_with_separator(&str, "|", map[i].name)) in mount_flags_to_string()
633 flags &= ~map[i].flag; in mount_flags_to_string()
714 const struct libmnt_optmap *map; in mount_option_mangle() local
736 map = mnt_get_builtin_optmap(MNT_LINUX_MAP); in mount_option_mangle()
737 if (!map) in mount_option_mangle()
750 for (ent = map; ent->name; ent++) { in mount_option_mangle()
Dbus-map-properties.h23 int bus_message_map_all_properties(sd_bus_message *m, const struct bus_properties_map *map, unsigne…
24 …rties(sd_bus *bus, const char *destination, const char *path, const struct bus_properties_map *map,
Dbus-wait-for-units.c249 static const struct bus_properties_map map[] = { in wait_for_item_parse_properties() local
261 r = bus_message_map_all_properties(m, map, BUS_MAP_STRDUP, NULL, item); in wait_for_item_parse_properties()
Ddiscover-image.h69 int image_discover(ImageClass class, const char *root, Hashmap *map);
/systemd-251/src/locale/
Dmeson.build23 kbd_model_map = meson.current_source_dir() / 'kbd-model-map'
24 language_fallback_map = meson.current_source_dir() / 'language-fallback-map'
27 install_data('kbd-model-map',
28 'language-fallback-map',
Dkeymap-util.c464 const char *map; in vconsole_convert_to_x11() local
467 map = systemd_kbd_model_map(); in vconsole_convert_to_x11()
481 f = fopen(map, "re"); in vconsole_convert_to_x11()
489 r = read_next_mapping(map, 5, UINT_MAX, f, &n, &a); in vconsole_convert_to_x11()
565 const char *map; in find_legacy_keymap() local
574 map = systemd_kbd_model_map(); in find_legacy_keymap()
576 f = fopen(map, "re"); in find_legacy_keymap()
584 r = read_next_mapping(map, 5, UINT_MAX, f, &n, &a); in find_legacy_keymap()
662 const char *map; in find_language_fallback() local
669 map = systemd_language_fallback_map(); in find_language_fallback()
[all …]
Dlocalectl.c121 static const struct bus_properties_map map[] = { in show_status() local
142 map, in show_status()
202 const char *map, *toggle_map; in set_vconsole_keymap() local
210 map = argv[1]; in set_vconsole_keymap()
219 "ssbb", map, toggle_map, arg_convert, arg_ask_password); in set_vconsole_keymap()
Dtest-keymap-util.c183 _cleanup_free_ char *map = NULL; in intro() local
185 assert_se(get_testdata_dir("test-keymap-util/kbd-model-map", &map) >= 0); in intro()
186 assert_se(setenv("SYSTEMD_KBD_MODEL_MAP", map, 1) == 0); in intro()
/systemd-251/src/vconsole/
Dvconsole-setup.c119 static int keyboard_load_and_wait(const char *vc, const char *map, const char *map_toggle, bool utf… in keyboard_load_and_wait() argument
126 if (isempty(map)) in keyboard_load_and_wait()
135 args[i++] = map; in keyboard_load_and_wait()
158 static int font_load_and_wait(const char *vc, const char *font, const char *map, const char *unimap… in font_load_and_wait() argument
165 if (isempty(font) && isempty(map) && isempty(unimap)) in font_load_and_wait()
171 if (!isempty(map)) { in font_load_and_wait()
173 args[i++] = map; in font_load_and_wait()
/systemd-251/src/libsystemd/sd-hwdb/
Dsd-hwdb.c85 return (const struct trie_node_f *)(hwdb->map + le64toh(off)); in trie_node_from_off()
89 return hwdb->map + le64toh(off); in trie_string()
320 hwdb->map = mmap(0, hwdb->st.st_size, PROT_READ, MAP_SHARED, fileno(hwdb->f), 0); in sd_hwdb_new()
321 if (hwdb->map == MAP_FAILED) in sd_hwdb_new()
324 if (memcmp(hwdb->map, sig, sizeof(hwdb->head->signature)) != 0 || in sd_hwdb_new()
345 if (hwdb->map) in hwdb_free()
346 munmap((void *)hwdb->map, hwdb->st.st_size); in hwdb_free()
Dhwdb-internal.h19 const char *map; member
/systemd-251/src/network/
Dnetworkd-route-util.c352 static const char* map[] = { in route_flags_to_string_alloc() local
364 for (size_t i = 0; i < ELEMENTSOF(map); i++) in route_flags_to_string_alloc()
365 if (FLAGS_SET(flags, 1 << i) && map[i]) in route_flags_to_string_alloc()
366 if (!strextend_with_separator(&str, ",", map[i])) in route_flags_to_string_alloc()
/systemd-251/src/basic/
Dunit-def.c308 static const SpecialGlyph map[_UNIT_ACTIVE_STATE_MAX] = { in unit_active_state_to_glyph() local
322 return map[state]; in unit_active_state_to_glyph()
/systemd-251/src/test/
Dtest-hashmap.c50 static void compare_cache(Hashmap *map, IteratedCache *cache) { in compare_cache() argument
60 HASHMAP_FOREACH_KEY(v, k, map) { in compare_cache()
/systemd-251/src/login/
Dloginctl.c428 static const struct bus_properties_map map[] = { in print_session_status_info() local
456 …r = bus_map_all_properties(bus, "org.freedesktop.login1", path, map, BUS_MAP_BOOLEAN_AS_BOOL, &err… in print_session_status_info()
563 static const struct bus_properties_map map[] = { in print_user_status_info() local
581 …r = bus_map_all_properties(bus, "org.freedesktop.login1", path, map, BUS_MAP_BOOLEAN_AS_BOOL, &err… in print_user_status_info()
640 static const struct bus_properties_map map[] = { in print_seat_status_info() local
652 r = bus_map_all_properties(bus, "org.freedesktop.login1", path, map, 0, &error, &m, &i); in print_seat_status_info()
/systemd-251/src/core/bpf/
Dmeson.build17 # we're compiling for. By default we just map meson's cpu_family to __<cpu_family>__.
/systemd-251/src/journal/
Djournald-audit.c18 int (*map)(const char *field, const char **p, struct iovec *iovec, size_t *n); member
311 r = mf->map(mf->journal_field, &v, iovec, n); in map_all_fields()
/systemd-251/docs/
DUIDS-GIDS.md27 where various subsystems map unmappable users to, for example file systems
54 1. 1…999 → System users. These are users that do not map to actual "human"
237 mapping applied. It will map four UID ranges into that uidmap, and leave
245 then map them to a higher UID range for use in user namespacing via another
/systemd-251/src/machine/
Dmachinectl.c633 static const struct bus_properties_map map[] = { in show_machine_info() local
660 map, in show_machine_info()
880 static const struct bus_properties_map map[] = { in show_image_info() local
906 map, in show_image_info()
942 static const struct bus_properties_map map[] = { in show_pool_info() local
963 map, in show_pool_info()
/systemd-251/src/systemctl/
Dsystemctl-util.c708 static const struct bus_properties_map map[_DEPENDENCY_MAX][6] = { in unit_get_dependencies() local
750 map[arg_dependency], in unit_get_dependencies()

12