Lines Matching refs:table
29 void planetcore_prepare_table(char *table) in planetcore_prepare_table() argument
32 if (*table == '\n') in planetcore_prepare_table()
33 *table = 0; in planetcore_prepare_table()
35 table++; in planetcore_prepare_table()
36 } while (*(table - 1) || *table != '\n'); in planetcore_prepare_table()
38 *table = 0; in planetcore_prepare_table()
41 const char *planetcore_get_key(const char *table, const char *key) in planetcore_get_key() argument
46 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key()
47 return table + keylen + 1; in planetcore_get_key()
49 table += strlen(table) + 1; in planetcore_get_key()
50 } while (strlen(table) != 0); in planetcore_get_key()
55 int planetcore_get_decimal(const char *table, const char *key, u64 *val) in planetcore_get_decimal() argument
57 const char *str = planetcore_get_key(table, key); in planetcore_get_decimal()
65 int planetcore_get_hex(const char *table, const char *key, u64 *val) in planetcore_get_hex() argument
67 const char *str = planetcore_get_key(table, key); in planetcore_get_hex()
82 void planetcore_set_mac_addrs(const char *table) in planetcore_set_mac_addrs() argument
89 if (!planetcore_get_hex(table, PLANETCORE_KEY_MAC_ADDR, &int_addr)) in planetcore_set_mac_addrs()
107 void planetcore_set_stdout_path(const char *table) in planetcore_set_stdout_path() argument
113 label = planetcore_get_key(table, PLANETCORE_KEY_SERIAL_PORT); in planetcore_set_stdout_path()
135 void planetcore_set_serial_speed(const char *table) in planetcore_set_serial_speed() argument
158 if (!planetcore_get_decimal(table, PLANETCORE_KEY_SERIAL_BAUD, in planetcore_set_serial_speed()