Lines Matching refs:reg_val
138 unsigned int reg_val; in amd8111e_init_hw_default() local
170 reg_val = readl(mmio + INT0); in amd8111e_init_hw_default()
171 writel(reg_val, mmio + INT0); in amd8111e_init_hw_default()
205 reg_val = readl(mmio + SRAM_SIZE); in amd8111e_init_hw_default()
221 int i, reg_val; in amd8111e_start() local
234 reg_val = readl(mmio + CTRL1); in amd8111e_start()
235 reg_val &= ~XMTSP_MASK; in amd8111e_start()
236 writel(reg_val | XMTSP_128 | CACHE_ALIGN, mmio + CTRL1); in amd8111e_start()
274 unsigned int reg_val; in amd8111e_read_phy() local
277 reg_val = readl(mmio + PHY_ACCESS); in amd8111e_read_phy()
278 while (reg_val & PHY_CMD_ACTIVE) in amd8111e_read_phy()
279 reg_val = readl(mmio + PHY_ACCESS); in amd8111e_read_phy()
284 reg_val = readl(mmio + PHY_ACCESS); in amd8111e_read_phy()
286 } while (--retry && (reg_val & PHY_CMD_ACTIVE)); in amd8111e_read_phy()
288 if (reg_val & PHY_RD_ERR) { in amd8111e_read_phy()
293 *val = reg_val & 0xffff; in amd8111e_read_phy()
304 unsigned int reg_val;
307 reg_val = readl(mmio + PHY_ACCESS);
308 while (reg_val & PHY_CMD_ACTIVE)
309 reg_val = readl(mmio + PHY_ACCESS);
314 reg_val = readl(mmio + PHY_ACCESS);
316 } while (--retry && (reg_val & PHY_CMD_ACTIVE));
318 if(reg_val & PHY_RD_ERR)
453 u32 reg_val; in amd8111e_wait_link() local
457 amd8111e_read_phy(lp, lp->ext_phy_addr, MII_BMCR, ®_val); in amd8111e_wait_link()
458 amd8111e_read_phy(lp, lp->ext_phy_addr, MII_BMSR, ®_val); in amd8111e_wait_link()
459 amd8111e_read_phy(lp, lp->ext_phy_addr, MII_ADVERTISE, ®_val); in amd8111e_wait_link()
460 amd8111e_read_phy(lp, lp->ext_phy_addr, MII_LPA, ®_val); in amd8111e_wait_link()
468 u32 reg_val; in amd8111e_poll_link() local
472 amd8111e_read_phy(lp, lp->ext_phy_addr, MII_BMCR, ®_val); in amd8111e_poll_link()
473 amd8111e_read_phy(lp, lp->ext_phy_addr, MII_BMSR, ®_val); in amd8111e_poll_link()
474 amd8111e_read_phy(lp, lp->ext_phy_addr, MII_ADVERTISE, ®_val); in amd8111e_poll_link()
475 amd8111e_read_phy(lp, lp->ext_phy_addr, MII_LPA, ®_val); in amd8111e_poll_link()