Lines Matching defs:mtable
123 tp->mtable = kmalloc(sizeof(struct mediatable) +
126 if (tp->mtable == NULL)
129 tp->mtable->defaultmedia = 0x800;
130 tp->mtable->leafcount = 1;
131 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */
132 tp->mtable->has_nonmii = 0;
133 tp->mtable->has_reset = 0;
134 tp->mtable->has_mii = 1;
135 tp->mtable->csr15dir = tp->mtable->csr15val = 0;
136 tp->mtable->mleaf[0].type = 1;
137 tp->mtable->mleaf[0].media = 11;
138 tp->mtable->mleaf[0].leafdata = &leafdata[0];
161 tp->mtable = NULL;
173 tp->mtable = last_mediatable;
214 struct mediatable *mtable;
222 /* there is no phy information, don't even try to build mtable */
225 pr_warning("%s: no phy info, aborting mtable build\n",
230 mtable = kmalloc(sizeof(struct mediatable) +
233 if (mtable == NULL)
235 last_mediatable = tp->mtable = mtable;
236 mtable->defaultmedia = media;
237 mtable->leafcount = count;
238 mtable->csr12dir = csr12dir;
239 mtable->has_nonmii = mtable->has_mii = mtable->has_reset = 0;
240 mtable->csr15dir = mtable->csr15val = 0;
247 struct medialeaf *leaf = &mtable->mleaf[i];
254 mtable->has_mii = 1;
259 mtable->has_reset = i;
263 mtable->leafcount--;
272 mtable->has_mii = 1;
278 mtable->has_nonmii = 1;
293 mtable->csr15dir =
295 mtable->csr15val =
298 mtable->csr15dir = get_unaligned((u16*)&p[3])<<16;
299 mtable->csr15val = get_unaligned((u16*)&p[5])<<16;