• Home
  • Raw
  • Download

Lines Matching refs:valbuf

61 	unsigned char	valbuf[30];  in ivm_get_value()  local
72 sprintf((char *)valbuf, "%x", val); in ivm_get_value()
73 ivm_set_value(name, (char *)valbuf); in ivm_get_value()
168 if (ivm_findinventorystring(which, valbuf, len, buf) == 0) { \
169 ivm_set_value(name, (char *)valbuf); \
190 static int process_mac(unsigned char *valbuf, unsigned char *buf, in process_mac() argument
215 sprintf((char *)valbuf, "%pM", mac); in process_mac()
221 unsigned char valbuf[MAC_STR_SZ]; in ivm_analyze_block2() local
225 sprintf((char *)valbuf, "%pM", buf + 1); in ivm_analyze_block2()
226 ivm_set_value("IVM_MacAddress", (char *)valbuf); in ivm_analyze_block2()
234 sprintf((char *)valbuf, "%lx", count); in ivm_analyze_block2()
235 ivm_set_value("IVM_MacCount", (char *)valbuf); in ivm_analyze_block2()
242 unsigned char valbuf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN]; in ivm_analyze_eeprom() local
253 sprintf((char *)valbuf, "%x", ((val / 100) % 10)); in ivm_analyze_eeprom()
254 ivm_set_value("IVM_HWVariant", (char *)valbuf); in ivm_analyze_eeprom()
255 sprintf((char *)valbuf, "%x", (val % 100)); in ivm_analyze_eeprom()
256 ivm_set_value("IVM_HWVersion", (char *)valbuf); in ivm_analyze_eeprom()
302 unsigned char valbuf[MAC_STR_SZ]; in ivm_populate_env() local
311 process_mac(valbuf, page2, CONFIG_PIGGY_MAC_ADRESS_OFFSET, true); in ivm_populate_env()
312 env_set((char *)"ethaddr", (char *)valbuf); in ivm_populate_env()
315 process_mac(valbuf, page2, 1, true); in ivm_populate_env()
316 env_set((char *)"eth1addr", (char *)valbuf); in ivm_populate_env()
323 process_mac(valbuf, page2, CONFIG_PIGGY_MAC_ADRESS_OFFSET, false); in ivm_populate_env()
324 env_set((char *)"ethaddr", (char *)valbuf); in ivm_populate_env()
325 process_mac(valbuf, page2, CONFIG_PIGGY_MAC_ADRESS_OFFSET, true); in ivm_populate_env()
326 env_set((char *)"eth1addr", (char *)valbuf); in ivm_populate_env()