Lines Matching refs:mtable
120 tp->mtable = devm_kmalloc(&tp->pdev->dev, sizeof(struct mediatable) + in tulip_build_fake_mediatable()
123 if (tp->mtable == NULL) in tulip_build_fake_mediatable()
126 tp->mtable->defaultmedia = 0x800; in tulip_build_fake_mediatable()
127 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable()
128 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */ in tulip_build_fake_mediatable()
129 tp->mtable->has_nonmii = 0; in tulip_build_fake_mediatable()
130 tp->mtable->has_reset = 0; in tulip_build_fake_mediatable()
131 tp->mtable->has_mii = 1; in tulip_build_fake_mediatable()
132 tp->mtable->csr15dir = tp->mtable->csr15val = 0; in tulip_build_fake_mediatable()
133 tp->mtable->mleaf[0].type = 1; in tulip_build_fake_mediatable()
134 tp->mtable->mleaf[0].media = 11; in tulip_build_fake_mediatable()
135 tp->mtable->mleaf[0].leafdata = &leafdata[0]; in tulip_build_fake_mediatable()
158 tp->mtable = NULL; in tulip_parse_eeprom()
170 tp->mtable = last_mediatable; in tulip_parse_eeprom()
211 struct mediatable *mtable; in tulip_parse_eeprom() local
227 mtable = devm_kmalloc(&tp->pdev->dev, struct_size(mtable, mleaf, count), in tulip_parse_eeprom()
229 if (mtable == NULL) in tulip_parse_eeprom()
231 last_mediatable = tp->mtable = mtable; in tulip_parse_eeprom()
232 mtable->defaultmedia = media; in tulip_parse_eeprom()
233 mtable->leafcount = count; in tulip_parse_eeprom()
234 mtable->csr12dir = csr12dir; in tulip_parse_eeprom()
235 mtable->has_nonmii = mtable->has_mii = mtable->has_reset = 0; in tulip_parse_eeprom()
236 mtable->csr15dir = mtable->csr15val = 0; in tulip_parse_eeprom()
243 struct medialeaf *leaf = &mtable->mleaf[i]; in tulip_parse_eeprom()
250 mtable->has_mii = 1; in tulip_parse_eeprom()
255 mtable->has_reset = i; in tulip_parse_eeprom()
259 mtable->leafcount--; in tulip_parse_eeprom()
268 mtable->has_mii = 1; in tulip_parse_eeprom()
274 mtable->has_nonmii = 1; in tulip_parse_eeprom()
289 mtable->csr15dir = in tulip_parse_eeprom()
291 mtable->csr15val = 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()