gmac 350 arch/mips/include/asm/netlogic/xlr/fmn.h struct xlr_fmn_info gmac[2]; gmac 91 arch/mips/netlogic/xlr/fmn-config.c total_credits += cfg->gmac[0].credit_config[bkt]; gmac 92 arch/mips/netlogic/xlr/fmn-config.c total_credits += cfg->gmac[1].credit_config[bkt]; gmac 183 arch/mips/netlogic/xlr/fmn-config.c struct xlr_fmn_info *gmac = xlr_board_fmn_config.gmac; gmac 197 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, gmac 207 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, gmac 222 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, gmac 224 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[1], FMN_STNID_GMAC1_FR_0, gmac 235 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, gmac 237 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[1], FMN_STNID_GMAC1_FR_0, gmac 249 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, gmac 261 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, gmac 275 arch/mips/netlogic/xlr/fmn-config.c setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, gmac 291 arch/mips/netlogic/xlr/fmn-config.c print_credit_config(&gmac[0]); gmac 332 drivers/crypto/nx/nx-aes-gcm.c rc = gmac(req, &desc, assoclen); gmac 270 drivers/net/ethernet/chelsio/cxgb/common.h struct gmac; gmac 289 drivers/net/ethernet/chelsio/cxgb/common.h const struct gmac *gmac; gmac 138 drivers/net/ethernet/chelsio/cxgb/gmac.h extern const struct gmac t1_pm3393_ops; gmac 139 drivers/net/ethernet/chelsio/cxgb/gmac.h extern const struct gmac t1_vsc7326_ops; gmac 785 drivers/net/ethernet/chelsio/cxgb/pm3393.c const struct gmac t1_pm3393_ops = { gmac 408 drivers/net/ethernet/chelsio/cxgb/subr.c .gmac = &t1_pm3393_ops, gmac 428 drivers/net/ethernet/chelsio/cxgb/subr.c .gmac = &t1_pm3393_ops, gmac 448 drivers/net/ethernet/chelsio/cxgb/subr.c .gmac = &t1_pm3393_ops, gmac 470 drivers/net/ethernet/chelsio/cxgb/subr.c .gmac = &t1_pm3393_ops, gmac 492 drivers/net/ethernet/chelsio/cxgb/subr.c .gmac = &t1_pm3393_ops, gmac 516 drivers/net/ethernet/chelsio/cxgb/subr.c .gmac = &t1_vsc7326_ops, gmac 1057 drivers/net/ethernet/chelsio/cxgb/subr.c adapter->params.stats_update_period = bi->gmac->stats_update_period; gmac 1083 drivers/net/ethernet/chelsio/cxgb/subr.c if (bi->gmac->reset) gmac 1084 drivers/net/ethernet/chelsio/cxgb/subr.c bi->gmac->reset(adapter); gmac 1099 drivers/net/ethernet/chelsio/cxgb/subr.c adapter->port[i].mac = mac = bi->gmac->create(adapter, i); gmac 722 drivers/net/ethernet/chelsio/cxgb/vsc7326.c const struct gmac t1_vsc7326_ops = { gmac 27 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c static uint32_t gmac_read_reg(struct anarion_gmac *gmac, uint8_t reg) gmac 29 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c return readl((void *)(gmac->ctl_block + reg)); gmac 32 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c static void gmac_write_reg(struct anarion_gmac *gmac, uint8_t reg, uint32_t val) gmac 34 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c writel(val, (void *)(gmac->ctl_block + reg)); gmac 40 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c struct anarion_gmac *gmac = priv; gmac 43 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c gmac_write_reg(gmac, GMAC_RESET_CONTROL_REG, 1); gmac 45 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c sw_config = gmac_read_reg(gmac, GMAC_SW_CONFIG_REG); gmac 47 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c sw_config |= (gmac->phy_intf_sel & GMAC_CONFIG_INTF_SEL_MASK); gmac 48 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c gmac_write_reg(gmac, GMAC_SW_CONFIG_REG, sw_config); gmac 50 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c gmac_write_reg(gmac, GMAC_RESET_CONTROL_REG, 0); gmac 57 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c struct anarion_gmac *gmac = priv; gmac 59 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c gmac_write_reg(gmac, GMAC_RESET_CONTROL_REG, 1); gmac 66 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c struct anarion_gmac *gmac; gmac 75 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c gmac = devm_kzalloc(&pdev->dev, sizeof(*gmac), GFP_KERNEL); gmac 76 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c if (!gmac) gmac 79 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c gmac->ctl_block = (uintptr_t)ctl_block; gmac 87 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c gmac->phy_intf_sel = GMAC_CONFIG_INTF_RGMII; gmac 95 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c return gmac; gmac 101 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c struct anarion_gmac *gmac; gmac 109 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c gmac = anarion_config_dt(pdev); gmac 110 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c if (IS_ERR(gmac)) gmac 111 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c return PTR_ERR(gmac); gmac 119 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c anarion_gmac_init(pdev, gmac); gmac 120 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c plat_dat->bsp_priv = gmac; gmac 93 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c static int get_clk_div_sgmii(struct ipq806x_gmac *gmac, unsigned int speed) gmac 95 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c struct device *dev = &gmac->pdev->dev; gmac 119 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c static int get_clk_div_rgmii(struct ipq806x_gmac *gmac, unsigned int speed) gmac 121 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c struct device *dev = &gmac->pdev->dev; gmac 145 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c static int ipq806x_gmac_set_speed(struct ipq806x_gmac *gmac, unsigned int speed) gmac 150 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c switch (gmac->phy_mode) { gmac 152 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c div = get_clk_div_rgmii(gmac, speed); gmac 153 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c clk_bits = NSS_COMMON_CLK_GATE_RGMII_RX_EN(gmac->id) | gmac 154 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c NSS_COMMON_CLK_GATE_RGMII_TX_EN(gmac->id); gmac 158 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c div = get_clk_div_sgmii(gmac, speed); gmac 159 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c clk_bits = NSS_COMMON_CLK_GATE_GMII_RX_EN(gmac->id) | gmac 160 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c NSS_COMMON_CLK_GATE_GMII_TX_EN(gmac->id); gmac 164 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c dev_err(&gmac->pdev->dev, "Unsupported PHY mode: \"%s\"\n", gmac 165 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c phy_modes(gmac->phy_mode)); gmac 170 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_read(gmac->nss_common, NSS_COMMON_CLK_GATE, &val); gmac 172 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_write(gmac->nss_common, NSS_COMMON_CLK_GATE, val); gmac 175 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_read(gmac->nss_common, NSS_COMMON_CLK_DIV0, &val); gmac 177 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c << NSS_COMMON_CLK_DIV_OFFSET(gmac->id)); gmac 178 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c val |= div << NSS_COMMON_CLK_DIV_OFFSET(gmac->id); gmac 179 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_write(gmac->nss_common, NSS_COMMON_CLK_DIV0, val); gmac 182 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_read(gmac->nss_common, NSS_COMMON_CLK_GATE, &val); gmac 184 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_write(gmac->nss_common, NSS_COMMON_CLK_GATE, val); gmac 189 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c static int ipq806x_gmac_of_parse(struct ipq806x_gmac *gmac) gmac 191 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c struct device *dev = &gmac->pdev->dev; gmac 193 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c gmac->phy_mode = of_get_phy_mode(dev->of_node); gmac 194 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c if ((int)gmac->phy_mode < 0) { gmac 199 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c if (of_property_read_u32(dev->of_node, "qcom,id", &gmac->id) < 0) { gmac 208 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c if (gmac->id > 3) { gmac 213 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c gmac->core_clk = devm_clk_get(dev, "stmmaceth"); gmac 214 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c if (IS_ERR(gmac->core_clk)) { gmac 216 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c return PTR_ERR(gmac->core_clk); gmac 218 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c clk_set_rate(gmac->core_clk, 266000000); gmac 221 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c gmac->nss_common = syscon_regmap_lookup_by_phandle(dev->of_node, gmac 223 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c if (IS_ERR(gmac->nss_common)) { gmac 225 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c return PTR_ERR(gmac->nss_common); gmac 229 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c gmac->qsgmii_csr = syscon_regmap_lookup_by_phandle(dev->of_node, gmac 231 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c if (IS_ERR(gmac->qsgmii_csr)) gmac 234 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c return PTR_ERR_OR_ZERO(gmac->qsgmii_csr); gmac 239 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c struct ipq806x_gmac *gmac = priv; gmac 241 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c ipq806x_gmac_set_speed(gmac, speed); gmac 249 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c struct ipq806x_gmac *gmac; gmac 261 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c gmac = devm_kzalloc(dev, sizeof(*gmac), GFP_KERNEL); gmac 262 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c if (!gmac) { gmac 267 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c gmac->pdev = pdev; gmac 269 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c err = ipq806x_gmac_of_parse(gmac); gmac 275 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_write(gmac->qsgmii_csr, QSGMII_PCS_CAL_LCKDT_CTL, gmac 283 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c switch (gmac->phy_mode) { gmac 292 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c phy_modes(gmac->phy_mode)); gmac 296 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_write(gmac->nss_common, NSS_COMMON_GMAC_CTL(gmac->id), val); gmac 299 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_read(gmac->nss_common, NSS_COMMON_CLK_SRC_CTRL, &val); gmac 300 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c val &= ~(1 << NSS_COMMON_CLK_SRC_CTRL_OFFSET(gmac->id)); gmac 301 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c switch (gmac->phy_mode) { gmac 303 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c val |= NSS_COMMON_CLK_SRC_CTRL_RGMII(gmac->id) << gmac 304 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c NSS_COMMON_CLK_SRC_CTRL_OFFSET(gmac->id); gmac 307 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c val |= NSS_COMMON_CLK_SRC_CTRL_SGMII(gmac->id) << gmac 308 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c NSS_COMMON_CLK_SRC_CTRL_OFFSET(gmac->id); gmac 312 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c phy_modes(gmac->phy_mode)); gmac 316 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_write(gmac->nss_common, NSS_COMMON_CLK_SRC_CTRL, val); gmac 319 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_read(gmac->nss_common, NSS_COMMON_CLK_GATE, &val); gmac 320 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c val |= NSS_COMMON_CLK_GATE_PTP_EN(gmac->id); gmac 321 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c switch (gmac->phy_mode) { gmac 323 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c val |= NSS_COMMON_CLK_GATE_RGMII_RX_EN(gmac->id) | gmac 324 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c NSS_COMMON_CLK_GATE_RGMII_TX_EN(gmac->id); gmac 327 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c val |= NSS_COMMON_CLK_GATE_GMII_RX_EN(gmac->id) | gmac 328 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c NSS_COMMON_CLK_GATE_GMII_TX_EN(gmac->id); gmac 334 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_write(gmac->nss_common, NSS_COMMON_CLK_GATE, val); gmac 336 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c if (gmac->phy_mode == PHY_INTERFACE_MODE_SGMII) { gmac 337 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c regmap_write(gmac->qsgmii_csr, QSGMII_PHY_SGMII_CTL(gmac->id), gmac 351 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c plat_dat->bsp_priv = gmac; gmac 1348 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c static void rk_gmac_powerdown(struct rk_priv_data *gmac) gmac 1350 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c struct device *dev = &gmac->pdev->dev; gmac 1352 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (gmac->integrated_phy) gmac 1353 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c rk_gmac_integrated_phy_powerdown(gmac); gmac 1358 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c phy_power_on(gmac, false); gmac 1359 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c gmac_clk_enable(gmac, false); gmac 528 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct sunxi_priv_data *gmac = priv; gmac 531 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->regulator) { gmac 532 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c ret = regulator_enable(gmac->regulator); gmac 539 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c ret = clk_prepare_enable(gmac->tx_clk); gmac 541 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->regulator) gmac 542 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c regulator_disable(gmac->regulator); gmac 712 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct sunxi_priv_data *gmac = priv->plat->bsp_priv; gmac 733 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->ephy_clk = of_clk_get(iphynode, 0); gmac 734 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (IS_ERR(gmac->ephy_clk)) gmac 736 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->rst_ephy = of_reset_control_get_exclusive(iphynode, NULL); gmac 737 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (IS_ERR(gmac->rst_ephy)) { gmac 738 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c ret = PTR_ERR(gmac->rst_ephy); gmac 758 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct sunxi_priv_data *gmac = priv->plat->bsp_priv; gmac 761 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->internal_phy_powered) { gmac 767 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c ret = clk_prepare_enable(gmac->ephy_clk); gmac 776 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c reset_control_assert(gmac->rst_ephy); gmac 778 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c ret = reset_control_deassert(gmac->rst_ephy); gmac 781 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c clk_disable_unprepare(gmac->ephy_clk); gmac 785 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->internal_phy_powered = true; gmac 790 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c static int sun8i_dwmac_unpower_internal_phy(struct sunxi_priv_data *gmac) gmac 792 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (!gmac->internal_phy_powered) gmac 795 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c clk_disable_unprepare(gmac->ephy_clk); gmac 796 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c reset_control_assert(gmac->rst_ephy); gmac 797 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->internal_phy_powered = false; gmac 815 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct sunxi_priv_data *gmac = priv->plat->bsp_priv; gmac 821 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c regmap_field_read(gmac->regmap_field, ®); gmac 839 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c regmap_field_write(gmac->regmap_field, val); gmac 845 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c sun8i_dwmac_unpower_internal_phy(gmac); gmac 859 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct sunxi_priv_data *gmac = priv->plat->bsp_priv; gmac 866 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c &gmac->mux_handle, priv, priv->mii); gmac 872 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct sunxi_priv_data *gmac = priv->plat->bsp_priv; gmac 877 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c ret = regmap_field_read(gmac->regmap_field, &val); gmac 883 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c reg = gmac->variant->default_syscon_value; gmac 889 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->variant->soc_has_internal_phy) { gmac 921 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (val <= gmac->variant->tx_delay_max) { gmac 922 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c reg &= ~(gmac->variant->tx_delay_max << gmac 939 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (val <= gmac->variant->rx_delay_max) { gmac 940 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c reg &= ~(gmac->variant->rx_delay_max << gmac 952 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->variant->support_rmii) gmac 974 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c regmap_field_write(gmac->regmap_field, reg); gmac 979 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c static void sun8i_dwmac_unset_syscon(struct sunxi_priv_data *gmac) gmac 981 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c u32 reg = gmac->variant->default_syscon_value; gmac 983 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c regmap_field_write(gmac->regmap_field, reg); gmac 988 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct sunxi_priv_data *gmac = priv; gmac 990 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->variant->soc_has_internal_phy) { gmac 992 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->mux_handle) gmac 993 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c mdio_mux_uninit(gmac->mux_handle); gmac 994 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->internal_phy_powered) gmac 995 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c sun8i_dwmac_unpower_internal_phy(gmac); gmac 998 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c sun8i_dwmac_unset_syscon(gmac); gmac 1000 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c reset_control_put(gmac->rst_ephy); gmac 1002 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c clk_disable_unprepare(gmac->tx_clk); gmac 1004 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->regulator) gmac 1005 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c regulator_disable(gmac->regulator); gmac 1109 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct sunxi_priv_data *gmac; gmac 1124 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac = devm_kzalloc(dev, sizeof(*gmac), GFP_KERNEL); gmac 1125 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (!gmac) gmac 1128 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->variant = of_device_get_match_data(&pdev->dev); gmac 1129 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (!gmac->variant) { gmac 1134 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->tx_clk = devm_clk_get(dev, "stmmaceth"); gmac 1135 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (IS_ERR(gmac->tx_clk)) { gmac 1137 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c return PTR_ERR(gmac->tx_clk); gmac 1141 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->regulator = devm_regulator_get_optional(dev, "phy"); gmac 1142 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (IS_ERR(gmac->regulator)) { gmac 1143 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (PTR_ERR(gmac->regulator) == -EPROBE_DEFER) gmac 1146 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->regulator = NULL; gmac 1176 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c gmac->regmap_field = devm_regmap_field_alloc(dev, regmap, gmac 1177 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c *gmac->variant->syscon_field); gmac 1178 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (IS_ERR(gmac->regmap_field)) { gmac 1179 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c ret = PTR_ERR(gmac->regmap_field); gmac 1195 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c plat_dat->bsp_priv = gmac; gmac 1213 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (gmac->variant->soc_has_internal_phy) { gmac 1230 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c sun8i_dwmac_unset_syscon(gmac); gmac 32 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c struct sunxi_priv_data *gmac = priv; gmac 35 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (gmac->regulator) { gmac 36 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c ret = regulator_enable(gmac->regulator); gmac 47 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (phy_interface_mode_is_rgmii(gmac->interface)) { gmac 48 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_set_rate(gmac->tx_clk, SUN7I_GMAC_GMII_RGMII_RATE); gmac 49 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_prepare_enable(gmac->tx_clk); gmac 50 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac->clk_enabled = 1; gmac 52 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE); gmac 53 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c ret = clk_prepare(gmac->tx_clk); gmac 63 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c struct sunxi_priv_data *gmac = priv; gmac 65 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (gmac->clk_enabled) { gmac 66 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_disable(gmac->tx_clk); gmac 67 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac->clk_enabled = 0; gmac 69 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_unprepare(gmac->tx_clk); gmac 71 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (gmac->regulator) gmac 72 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c regulator_disable(gmac->regulator); gmac 77 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c struct sunxi_priv_data *gmac = priv; gmac 80 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (gmac->interface != PHY_INTERFACE_MODE_GMII) gmac 83 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (gmac->clk_enabled) { gmac 84 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_disable(gmac->tx_clk); gmac 85 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac->clk_enabled = 0; gmac 87 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_unprepare(gmac->tx_clk); gmac 90 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_set_rate(gmac->tx_clk, SUN7I_GMAC_GMII_RGMII_RATE); gmac 91 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_prepare_enable(gmac->tx_clk); gmac 92 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac->clk_enabled = 1; gmac 94 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE); gmac 95 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c clk_prepare(gmac->tx_clk); gmac 103 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c struct sunxi_priv_data *gmac; gmac 115 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac = devm_kzalloc(dev, sizeof(*gmac), GFP_KERNEL); gmac 116 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (!gmac) { gmac 121 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac->interface = of_get_phy_mode(dev->of_node); gmac 123 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac->tx_clk = devm_clk_get(dev, "allwinner_gmac_tx"); gmac 124 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (IS_ERR(gmac->tx_clk)) { gmac 126 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c ret = PTR_ERR(gmac->tx_clk); gmac 131 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac->regulator = devm_regulator_get_optional(dev, "phy"); gmac 132 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (IS_ERR(gmac->regulator)) { gmac 133 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c if (PTR_ERR(gmac->regulator) == -EPROBE_DEFER) { gmac 138 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c gmac->regulator = NULL; gmac 145 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c plat_dat->bsp_priv = gmac; gmac 73 drivers/net/ethernet/stmicro/stmmac/hwif.c bool gmac; gmac 90 drivers/net/ethernet/stmicro/stmmac/hwif.c .gmac = false, gmac 108 drivers/net/ethernet/stmicro/stmmac/hwif.c .gmac = true, gmac 126 drivers/net/ethernet/stmicro/stmmac/hwif.c .gmac = false, gmac 144 drivers/net/ethernet/stmicro/stmmac/hwif.c .gmac = false, gmac 162 drivers/net/ethernet/stmicro/stmmac/hwif.c .gmac = false, gmac 180 drivers/net/ethernet/stmicro/stmmac/hwif.c .gmac = false, gmac 198 drivers/net/ethernet/stmicro/stmmac/hwif.c .gmac = false, gmac 261 drivers/net/ethernet/stmicro/stmmac/hwif.c if (needs_gmac ^ entry->gmac) gmac 480 drivers/net/wireless/ath/key.c u8 gmac[ETH_ALEN]; gmac 511 drivers/net/wireless/ath/key.c memcpy(gmac, vif->addr, ETH_ALEN); gmac 512 drivers/net/wireless/ath/key.c gmac[0] |= 0x01; gmac 513 drivers/net/wireless/ath/key.c mac = gmac; gmac 521 drivers/net/wireless/ath/key.c memcpy(gmac, sta->addr, ETH_ALEN); gmac 522 drivers/net/wireless/ath/key.c gmac[0] |= 0x01; gmac 523 drivers/net/wireless/ath/key.c mac = gmac; gmac 72 drivers/staging/netlogic/platform_net.c .gmac_fmn_info = &xlr_board_fmn_config.gmac[1], gmac 116 drivers/staging/netlogic/platform_net.c .gmac_fmn_info = &xlr_board_fmn_config.gmac[0], gmac 182 drivers/staging/netlogic/platform_net.c .gmac_fmn_info = &xlr_board_fmn_config.gmac[0], gmac 479 drivers/staging/netlogic/xlr_net.c struct xlr_fmn_info *gmac = priv->nd->gmac_fmn_info; gmac 480 drivers/staging/netlogic/xlr_net.c int start_stn_id = gmac->start_stn_id; gmac 481 drivers/staging/netlogic/xlr_net.c int end_stn_id = gmac->end_stn_id; gmac 500 drivers/staging/netlogic/xlr_net.c gmac->credit_config[(i * 8) + j]);