Lines Matching refs:p

208 		unsigned char *p = (void *)ee_data + ee_data[27];  in tulip_parse_eeprom()  local
212 u16 media = get_u16(p); in tulip_parse_eeprom()
214 p += 2; in tulip_parse_eeprom()
216 csr12dir = *p++; in tulip_parse_eeprom()
217 count = *p++; in tulip_parse_eeprom()
245 if ((p[0] & 0x80) == 0) { /* 21140 Compact block. */ in tulip_parse_eeprom()
247 leaf->media = p[0] & 0x3f; in tulip_parse_eeprom()
248 leaf->leafdata = p; in tulip_parse_eeprom()
249 if ((p[2] & 0x61) == 0x01) /* Bogus, but Znyx boards do it. */ in tulip_parse_eeprom()
251 p += 4; in tulip_parse_eeprom()
253 leaf->type = p[1]; in tulip_parse_eeprom()
254 if (p[1] == 0x05) { in tulip_parse_eeprom()
256 leaf->media = p[2] & 0x0f; in tulip_parse_eeprom()
257 } else if (tp->chip_id == DM910X && p[1] == 0x80) { in tulip_parse_eeprom()
262 leaf->leafdata = p + 2; in tulip_parse_eeprom()
263 p += (p[0] & 0x3f) + 1; in tulip_parse_eeprom()
265 } else if (p[1] & 1) { in tulip_parse_eeprom()
270 gpr_len=p[3]*2; in tulip_parse_eeprom()
271 reset_len=p[4+gpr_len]*2; in tulip_parse_eeprom()
272 new_advertise |= get_u16(&p[7+gpr_len+reset_len]); in tulip_parse_eeprom()
275 leaf->media = p[2] & MEDIA_MASK; in tulip_parse_eeprom()
286 if (p[1] == 2 && leaf->media == 0) { in tulip_parse_eeprom()
287 if (p[2] & 0x40) { in tulip_parse_eeprom()
288 u32 base15 = get_unaligned((u16*)&p[7]); in tulip_parse_eeprom()
290 (get_unaligned((u16*)&p[9])<<16) + base15; in tulip_parse_eeprom()
292 (get_unaligned((u16*)&p[11])<<16) + base15; in tulip_parse_eeprom()
294 mtable->csr15dir = get_unaligned((u16*)&p[3])<<16; in tulip_parse_eeprom()
295 mtable->csr15val = get_unaligned((u16*)&p[5])<<16; in tulip_parse_eeprom()
299 leaf->leafdata = p + 2; in tulip_parse_eeprom()
300 p += (p[0] & 0x3f) + 1; in tulip_parse_eeprom()