Lines Matching refs:p
118 u8 *p = e.mac[i]; in show_eeprom() local
121 p[0], p[1], p[2], p[3], p[4], p[5]); in show_eeprom()
199 void *p; in prog_eeprom() local
223 for (i = 0, p = &e; i < sizeof(e); i += 8, p += 8) { in prog_eeprom()
225 p, min((int)(sizeof(e) - i), 8)); in prog_eeprom()
261 static inline u8 h2i(char p) in h2i() argument
263 if ((p >= '0') && (p <= '9')) in h2i()
264 return p - '0'; in h2i()
266 if ((p >= 'A') && (p <= 'F')) in h2i()
267 return (p - 'A') + 10; in h2i()
269 if ((p >= 'a') && (p <= 'f')) in h2i()
270 return (p - 'a') + 10; in h2i()
306 char *p = (char *) string; in set_mac_address() local
314 for (i = 0; *p && (i < 6); i++) { in set_mac_address()
315 e.mac[index][i] = simple_strtoul(p, &p, 16); in set_mac_address()
316 if (*p == ':') in set_mac_address()
317 p++; in set_mac_address()