Lines Matching refs:mtable

121 		tp->mtable = kmalloc(sizeof(struct mediatable) +  in tulip_build_fake_mediatable()
124 if (tp->mtable == NULL) in tulip_build_fake_mediatable()
127 tp->mtable->defaultmedia = 0x800; in tulip_build_fake_mediatable()
128 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable()
129 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */ in tulip_build_fake_mediatable()
130 tp->mtable->has_nonmii = 0; in tulip_build_fake_mediatable()
131 tp->mtable->has_reset = 0; in tulip_build_fake_mediatable()
132 tp->mtable->has_mii = 1; in tulip_build_fake_mediatable()
133 tp->mtable->csr15dir = tp->mtable->csr15val = 0; in tulip_build_fake_mediatable()
134 tp->mtable->mleaf[0].type = 1; in tulip_build_fake_mediatable()
135 tp->mtable->mleaf[0].media = 11; in tulip_build_fake_mediatable()
136 tp->mtable->mleaf[0].leafdata = &leafdata[0]; in tulip_build_fake_mediatable()
159 tp->mtable = NULL; in tulip_parse_eeprom()
171 tp->mtable = last_mediatable; in tulip_parse_eeprom()
212 struct mediatable *mtable; in tulip_parse_eeprom() local
228 mtable = kmalloc(sizeof(struct mediatable) + in tulip_parse_eeprom()
231 if (mtable == NULL) in tulip_parse_eeprom()
233 last_mediatable = tp->mtable = mtable; in tulip_parse_eeprom()
234 mtable->defaultmedia = media; in tulip_parse_eeprom()
235 mtable->leafcount = count; in tulip_parse_eeprom()
236 mtable->csr12dir = csr12dir; in tulip_parse_eeprom()
237 mtable->has_nonmii = mtable->has_mii = mtable->has_reset = 0; in tulip_parse_eeprom()
238 mtable->csr15dir = mtable->csr15val = 0; in tulip_parse_eeprom()
245 struct medialeaf *leaf = &mtable->mleaf[i]; in tulip_parse_eeprom()
252 mtable->has_mii = 1; in tulip_parse_eeprom()
257 mtable->has_reset = i; in tulip_parse_eeprom()
261 mtable->leafcount--; in tulip_parse_eeprom()
270 mtable->has_mii = 1; in tulip_parse_eeprom()
276 mtable->has_nonmii = 1; in tulip_parse_eeprom()
291 mtable->csr15dir = in tulip_parse_eeprom()
293 mtable->csr15val = in tulip_parse_eeprom()
296 mtable->csr15dir = get_unaligned((u16*)&p[3])<<16; in tulip_parse_eeprom()
297 mtable->csr15val = get_unaligned((u16*)&p[5])<<16; in tulip_parse_eeprom()