Lines Matching refs:pdesc
108 const MII_field_desc_t *pdesc; member
128 const MII_field_desc_t *pdesc,
152 const MII_field_desc_t *pdesc; in dump_reg() local
158 pdesc = &pdl->pdesc[i]; in dump_reg()
160 mask_in_place = pdesc->mask << pdesc->lo; in dump_reg()
167 if (special_field(prd->regno, pdesc, regval)) { in dump_reg()
170 if (pdesc->hi == pdesc->lo) in dump_reg()
171 printf("%2u ", pdesc->lo); in dump_reg()
173 printf("%2u-%2u", pdesc->hi, pdesc->lo); in dump_reg()
175 (regval & mask_in_place) >> pdesc->lo, in dump_reg()
176 pdesc->name); in dump_reg()
195 const MII_field_desc_t *pdesc, in special_field() argument
198 if ((regno == MII_BMCR) && (pdesc->lo == 6)) { in special_field()
210 else if ((regno == MII_BMCR) && (pdesc->lo == 8)) { in special_field()
212 pdesc->lo, in special_field()
213 (regval >> pdesc->lo) & 1, in special_field()
214 ((regval >> pdesc->lo) & 1) ? "full" : "half"); in special_field()
218 else if ((regno == MII_ADVERTISE) && (pdesc->lo == 0)) { in special_field()
219 ushort sel_bits = (regval >> pdesc->lo) & pdesc->mask; in special_field()
221 pdesc->hi, pdesc->lo, sel_bits, in special_field()
230 else if ((regno == MII_LPA) && (pdesc->lo == 0)) { in special_field()
231 ushort sel_bits = (regval >> pdesc->lo) & pdesc->mask; in special_field()
233 pdesc->hi, pdesc->lo, sel_bits, in special_field()