• Home
  • Raw
  • Download

Lines Matching refs:key

260 	char const *key;  member
303 static int map_get_value(struct battery_property_map *map, const char *key, in map_get_value() argument
309 strncpy(buf, key, MAX_KEYLENGTH); in map_get_value()
318 while (map->key) { in map_get_value()
319 if (strncasecmp(map->key, buf, MAX_KEYLENGTH) == 0) in map_get_value()
331 while (map->key) { in map_get_key()
333 return map->key; in map_get_key()
346 static int param_set_ac_online(const char *key, const struct kernel_param *kp) in param_set_ac_online() argument
348 ac_online = map_get_value(map_ac_online, key, ac_online); in param_set_ac_online()
359 static int param_set_usb_online(const char *key, const struct kernel_param *kp) in param_set_usb_online() argument
361 usb_online = map_get_value(map_ac_online, key, usb_online); in param_set_usb_online()
372 static int param_set_battery_status(const char *key, in param_set_battery_status() argument
375 battery_status = map_get_value(map_status, key, battery_status); in param_set_battery_status()
386 static int param_set_battery_health(const char *key, in param_set_battery_health() argument
389 battery_health = map_get_value(map_health, key, battery_health); in param_set_battery_health()
400 static int param_set_battery_present(const char *key, in param_set_battery_present() argument
403 battery_present = map_get_value(map_present, key, battery_present); in param_set_battery_present()
415 static int param_set_battery_technology(const char *key, in param_set_battery_technology() argument
418 battery_technology = map_get_value(map_technology, key, in param_set_battery_technology()
432 static int param_set_battery_capacity(const char *key, in param_set_battery_capacity() argument
437 if (1 != sscanf(key, "%d", &tmp)) in param_set_battery_capacity()
447 static int param_set_battery_voltage(const char *key, in param_set_battery_voltage() argument
452 if (1 != sscanf(key, "%d", &tmp)) in param_set_battery_voltage()
462 static int param_set_battery_charge_counter(const char *key, in param_set_battery_charge_counter() argument
467 if (1 != sscanf(key, "%d", &tmp)) in param_set_battery_charge_counter()
477 static int param_set_battery_current(const char *key, in param_set_battery_current() argument
482 if (1 != sscanf(key, "%d", &tmp)) in param_set_battery_current()