Lines Matching refs:mtable
124 tp->mtable = (struct mediatable *)
127 if (tp->mtable == NULL)
130 tp->mtable->defaultmedia = 0x800;
131 tp->mtable->leafcount = 1;
132 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */
133 tp->mtable->has_nonmii = 0;
134 tp->mtable->has_reset = 0;
135 tp->mtable->has_mii = 1;
136 tp->mtable->csr15dir = tp->mtable->csr15val = 0;
137 tp->mtable->mleaf[0].type = 1;
138 tp->mtable->mleaf[0].media = 11;
139 tp->mtable->mleaf[0].leafdata = &leafdata[0];
156 tp->mtable = NULL;
168 tp->mtable = last_mediatable;
212 struct mediatable *mtable;
220 /* there is no phy information, don't even try to build mtable */
223 printk(KERN_WARNING "%s: no phy info, aborting mtable build\n", dev->name);
227 mtable = (struct mediatable *)
230 if (mtable == NULL)
232 last_mediatable = tp->mtable = mtable;
233 mtable->defaultmedia = media;
234 mtable->leafcount = count;
235 mtable->csr12dir = csr12dir;
236 mtable->has_nonmii = mtable->has_mii = mtable->has_reset = 0;
237 mtable->csr15dir = mtable->csr15val = 0;
242 struct medialeaf *leaf = &mtable->mleaf[i];
249 mtable->has_mii = 1;
254 mtable->has_reset = i;
258 mtable->leafcount--;
267 mtable->has_mii = 1;
273 mtable->has_nonmii = 1;
288 mtable->csr15dir =
290 mtable->csr15val =
293 mtable->csr15dir = get_unaligned((u16*)&p[3])<<16;
294 mtable->csr15val = get_unaligned((u16*)&p[5])<<16;