Lines Matching defs:map
303 static int map_get_value(struct battery_property_map *map, const char *key,
318 while (map->key) {
319 if (strncasecmp(map->key, buf, MAX_KEYLENGTH) == 0)
320 return map->value;
321 map++;
328 static const char *map_get_key(struct battery_property_map *map, int value,
331 while (map->key) {
332 if (map->value == value)
333 return map->key;
334 map++;