Lines Matching refs:uec_regs
62 uec_t *uec_regs; in uec_mac_enable() local
69 uec_regs = uec->uec_regs; in uec_mac_enable()
71 maccfg1 = in_be32(&uec_regs->maccfg1); in uec_mac_enable()
75 out_be32(&uec_regs->maccfg1, maccfg1); in uec_mac_enable()
81 out_be32(&uec_regs->maccfg1, maccfg1); in uec_mac_enable()
90 uec_t *uec_regs; in uec_mac_disable() local
97 uec_regs = uec->uec_regs; in uec_mac_disable()
99 maccfg1 = in_be32(&uec_regs->maccfg1); in uec_mac_disable()
103 out_be32(&uec_regs->maccfg1, maccfg1); in uec_mac_disable()
109 out_be32(&uec_regs->maccfg1, maccfg1); in uec_mac_disable()
283 uec_t *uec_regs; in uec_set_mac_duplex() local
290 uec_regs = uec->uec_regs; in uec_set_mac_duplex()
293 maccfg2 = in_be32(&uec_regs->maccfg2); in uec_set_mac_duplex()
295 out_be32(&uec_regs->maccfg2, maccfg2); in uec_set_mac_duplex()
299 maccfg2 = in_be32(&uec_regs->maccfg2); in uec_set_mac_duplex()
301 out_be32(&uec_regs->maccfg2, maccfg2); in uec_set_mac_duplex()
311 uec_t *uec_regs; in uec_set_mac_if_mode() local
320 uec_regs = uec->uec_regs; in uec_set_mac_if_mode()
323 maccfg2 = in_be32(&uec_regs->maccfg2); in uec_set_mac_if_mode()
388 out_be32(&uec_regs->maccfg2, maccfg2); in uec_set_mac_if_mode()
659 uec_t *uec_regs; in uec_set_mac_address() local
668 uec_regs = uec->uec_regs; in uec_set_mac_address()
678 out_be32(&uec_regs->macstnaddr1, mac_addr1); in uec_set_mac_address()
681 out_be32(&uec_regs->macstnaddr2, mac_addr2); in uec_set_mac_address()
988 uec_t *uec_regs; in uec_startup() local
1056 uec_regs = (uec_t *)(&uf_regs->ucc_eth); in uec_startup()
1059 uec->uec_regs = uec_regs; in uec_startup()
1065 out_be32(&uec_regs->maccfg1, MACCFG1_INIT_VALUE); in uec_startup()
1068 out_be32(&uec_regs->maccfg2, MACCFG2_INIT_VALUE); in uec_startup()
1076 uec->uec_mii_regs = (uec_mii_t *)(&uec_regs->miimcfg); in uec_startup()
1085 utbipar = in_be32(&uec_regs->utbipar); in uec_startup()
1092 out_be32(&uec_regs->utbipar, utbipar); in uec_startup()
1097 uec_write_phy_reg(uec->dev, uec_regs->utbipar, in uec_startup()
1100 uec_write_phy_reg(uec->dev, uec_regs->utbipar, in uec_startup()
1103 uec_write_phy_reg(uec->dev, uec_regs->utbipar, in uec_startup()