Lines Matching refs:uchar
36 static int fact_match(unsigned char *eeprom_buf, uchar *s1, int i2) in fact_match()
51 static int get_factory_val(unsigned char *eeprom_buf, int size, uchar *name, in get_factory_val()
52 uchar *buf, int len) in get_factory_val()
64 val = fact_match(eeprom_buf, (uchar *)name, i); in get_factory_val()
87 int get_factory_record_val(unsigned char *eeprom_buf, int size, uchar *record, in get_factory_record_val()
88 uchar *name, uchar *buf, int len) in get_factory_record_val()
239 cp = (uchar *)eeprom_buf + sizeof(hdr); in factoryset_read_eeprom()
242 get_factory_record_val(cp, size, (uchar *)"ETH1", (uchar *)"mac", in factoryset_read_eeprom()
252 ret = get_factory_record_val(cp, size, (uchar *)"WLAN1", (uchar *)"mac", in factoryset_read_eeprom()
266 if (0 <= get_factory_record_val(cp, size, (uchar *)"USBD1", in factoryset_read_eeprom()
267 (uchar *)"vid", buf, in factoryset_read_eeprom()
273 if (0 <= get_factory_record_val(cp, size, (uchar *)"USBD1", in factoryset_read_eeprom()
274 (uchar *)"pid", buf, in factoryset_read_eeprom()
283 if (0 <= get_factory_record_val(cp, size, (uchar *)"DISP1", in factoryset_read_eeprom()
284 (uchar *)"name", factory_dat.disp_name, in factoryset_read_eeprom()
289 if (0 <= get_factory_record_val(cp, size, (uchar *)"DEV", in factoryset_read_eeprom()
290 (uchar *)"num", factory_dat.serial, in factoryset_read_eeprom()
294 if (0 <= get_factory_record_val(cp, size, (uchar *)"DEV", in factoryset_read_eeprom()
295 (uchar *)"ver", buf, in factoryset_read_eeprom()
302 if (0 <= get_factory_record_val(cp, size, (uchar *)"DEV", in factoryset_read_eeprom()
303 (uchar *)"id", factory_dat.asn, in factoryset_read_eeprom()
310 if (0 <= get_factory_record_val(cp, size, (uchar *)"COMP", in factoryset_read_eeprom()
311 (uchar *)"ver", in factoryset_read_eeprom()