Lines Matching refs:mac
808 struct mac_regs __iomem *macregs = &adapter->regs->mac; in et1310_config_mac_regs1()
867 struct mac_regs __iomem *mac = &adapter->regs->mac; in et1310_config_mac_regs2() local
875 cfg1 = readl(&mac->cfg1); in et1310_config_mac_regs2()
876 cfg2 = readl(&mac->cfg2); in et1310_config_mac_regs2()
877 ifctrl = readl(&mac->if_ctrl); in et1310_config_mac_regs2()
895 writel(cfg1, &mac->cfg1); in et1310_config_mac_regs2()
915 writel(ifctrl, &mac->if_ctrl); in et1310_config_mac_regs2()
916 writel(cfg2, &mac->cfg2); in et1310_config_mac_regs2()
921 cfg1 = readl(&mac->cfg1); in et1310_config_mac_regs2()
1172 struct mac_regs __iomem *mac = &adapter->regs->mac; in et131x_phy_mii_read() local
1182 mii_addr = readl(&mac->mii_mgmt_addr); in et131x_phy_mii_read()
1183 mii_cmd = readl(&mac->mii_mgmt_cmd); in et131x_phy_mii_read()
1186 writel(0, &mac->mii_mgmt_cmd); in et131x_phy_mii_read()
1189 writel(ET_MAC_MII_ADDR(addr, reg), &mac->mii_mgmt_addr); in et131x_phy_mii_read()
1191 writel(0x1, &mac->mii_mgmt_cmd); in et131x_phy_mii_read()
1196 mii_indicator = readl(&mac->mii_mgmt_indicator); in et131x_phy_mii_read()
1213 *value = readl(&mac->mii_mgmt_stat) & ET_MAC_MIIMGMT_STAT_PHYCRTL_MASK; in et131x_phy_mii_read()
1217 writel(0, &mac->mii_mgmt_cmd); in et131x_phy_mii_read()
1222 writel(mii_addr, &mac->mii_mgmt_addr); in et131x_phy_mii_read()
1223 writel(mii_cmd, &mac->mii_mgmt_cmd); in et131x_phy_mii_read()
1241 struct mac_regs __iomem *mac = &adapter->regs->mac; in et131x_mii_write() local
1251 mii_addr = readl(&mac->mii_mgmt_addr); in et131x_mii_write()
1252 mii_cmd = readl(&mac->mii_mgmt_cmd); in et131x_mii_write()
1255 writel(0, &mac->mii_mgmt_cmd); in et131x_mii_write()
1258 writel(ET_MAC_MII_ADDR(addr, reg), &mac->mii_mgmt_addr); in et131x_mii_write()
1261 writel(value, &mac->mii_mgmt_ctrl); in et131x_mii_write()
1266 mii_indicator = readl(&mac->mii_mgmt_indicator); in et131x_mii_write()
1278 readl(&mac->mii_mgmt_cmd)); in et131x_mii_write()
1285 writel(0, &mac->mii_mgmt_cmd); in et131x_mii_write()
1290 writel(mii_addr, &mac->mii_mgmt_addr); in et131x_mii_write()
1291 writel(mii_cmd, &mac->mii_mgmt_cmd); in et131x_mii_write()
1689 writel(reg, &adapter->regs->mac.cfg1); in et131x_soft_reset()
1696 writel(reg, &adapter->regs->mac.cfg1); in et131x_soft_reset()
1697 writel(0, &adapter->regs->mac.cfg1); in et131x_soft_reset()