Searched refs:gmac (Results 1 - 33 of 33) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-sunxi.c36 struct sunxi_priv_data *gmac; sun7i_gmac_setup() local
39 gmac = devm_kzalloc(dev, sizeof(*gmac), GFP_KERNEL); sun7i_gmac_setup()
40 if (!gmac) sun7i_gmac_setup()
43 gmac->interface = of_get_phy_mode(dev->of_node); sun7i_gmac_setup()
45 gmac->tx_clk = devm_clk_get(dev, "allwinner_gmac_tx"); sun7i_gmac_setup()
46 if (IS_ERR(gmac->tx_clk)) { sun7i_gmac_setup()
48 return gmac->tx_clk; sun7i_gmac_setup()
52 gmac->regulator = devm_regulator_get_optional(dev, "phy"); sun7i_gmac_setup()
53 if (IS_ERR(gmac->regulator)) { sun7i_gmac_setup()
54 if (PTR_ERR(gmac->regulator) == -EPROBE_DEFER) sun7i_gmac_setup()
57 gmac->regulator = NULL; sun7i_gmac_setup()
60 return gmac; sun7i_gmac_setup()
68 struct sunxi_priv_data *gmac = priv; sun7i_gmac_init() local
71 if (gmac->regulator) { sun7i_gmac_init()
72 ret = regulator_enable(gmac->regulator); sun7i_gmac_init()
83 if (gmac->interface == PHY_INTERFACE_MODE_RGMII) { sun7i_gmac_init()
84 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_GMII_RGMII_RATE); sun7i_gmac_init()
85 clk_prepare_enable(gmac->tx_clk); sun7i_gmac_init()
86 gmac->clk_enabled = 1; sun7i_gmac_init()
88 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE); sun7i_gmac_init()
89 clk_prepare(gmac->tx_clk); sun7i_gmac_init()
97 struct sunxi_priv_data *gmac = priv; sun7i_gmac_exit() local
99 if (gmac->clk_enabled) { sun7i_gmac_exit()
100 clk_disable(gmac->tx_clk); sun7i_gmac_exit()
101 gmac->clk_enabled = 0; sun7i_gmac_exit()
103 clk_unprepare(gmac->tx_clk); sun7i_gmac_exit()
105 if (gmac->regulator) sun7i_gmac_exit()
106 regulator_disable(gmac->regulator); sun7i_gmac_exit()
111 struct sunxi_priv_data *gmac = priv; sun7i_fix_speed() local
114 if (gmac->interface != PHY_INTERFACE_MODE_GMII) sun7i_fix_speed()
117 if (gmac->clk_enabled) { sun7i_fix_speed()
118 clk_disable(gmac->tx_clk); sun7i_fix_speed()
119 gmac->clk_enabled = 0; sun7i_fix_speed()
121 clk_unprepare(gmac->tx_clk); sun7i_fix_speed()
124 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_GMII_RGMII_RATE); sun7i_fix_speed()
125 clk_prepare_enable(gmac->tx_clk); sun7i_fix_speed()
126 gmac->clk_enabled = 1; sun7i_fix_speed()
128 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE); sun7i_fix_speed()
129 clk_prepare(gmac->tx_clk); sun7i_fix_speed()
H A Ddwmac-rk.c411 struct rk_priv_data *gmac = priv; rk_gmac_exit() local
413 phy_power_on(gmac, false); rk_gmac_exit()
414 gmac_clk_enable(gmac, false); rk_gmac_exit()
H A Dstmmac_platform.c37 { .compatible = "rockchip,rk3288-gmac", .data = &rk3288_gmac_data},
39 { .compatible = "allwinner,sun7i-a20-gmac", .data = &sun7i_gmac_data},
45 { .compatible = "st,spear600-gmac"},
202 if (of_device_is_compatible(np, "st,spear600-gmac") || stmmac_probe_config_dt()
H A Dstmmac_main.c2761 /* We can override some gmac/dma configuration fields: e.g. stmmac_hw_init()
2897 /* Both mac100 and gmac support receive VLAN tag detection */ stmmac_dvr_probe()
/linux-4.1.27/arch/mips/netlogic/xlr/
H A Dfmn-config.c91 total_credits += cfg->gmac[0].credit_config[bkt]; check_credit_distribution()
92 total_credits += cfg->gmac[1].credit_config[bkt]; check_credit_distribution()
183 struct xlr_fmn_info *gmac = xlr_board_fmn_config.gmac; xlr_board_info_setup() local
197 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, xlr_board_info_setup()
207 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, xlr_board_info_setup()
222 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, xlr_board_info_setup()
224 setup_fmn_cc(&gmac[1], FMN_STNID_GMAC1_FR_0, xlr_board_info_setup()
235 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, xlr_board_info_setup()
237 setup_fmn_cc(&gmac[1], FMN_STNID_GMAC1_FR_0, xlr_board_info_setup()
249 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, xlr_board_info_setup()
261 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, xlr_board_info_setup()
275 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, xlr_board_info_setup()
291 print_credit_config(&gmac[0]); xlr_board_info_setup()
/linux-4.1.27/drivers/pinctrl/sunxi/
H A Dpinctrl-sun6i-a31s.c26 SUNXI_FUNCTION(0x2, "gmac"), /* TXD0 */
32 SUNXI_FUNCTION(0x2, "gmac"), /* TXD1 */
38 SUNXI_FUNCTION(0x2, "gmac"), /* TXD2 */
44 SUNXI_FUNCTION(0x2, "gmac"), /* TXD3 */
50 SUNXI_FUNCTION(0x2, "gmac"), /* TXD4 */
56 SUNXI_FUNCTION(0x2, "gmac"), /* TXD5 */
62 SUNXI_FUNCTION(0x2, "gmac"), /* TXD6 */
68 SUNXI_FUNCTION(0x2, "gmac"), /* TXD7 */
74 SUNXI_FUNCTION(0x2, "gmac"), /* TXCLK */
79 SUNXI_FUNCTION(0x2, "gmac"), /* TXEN */
86 SUNXI_FUNCTION(0x2, "gmac"), /* GTXCLK */
93 SUNXI_FUNCTION(0x2, "gmac"), /* RXD0 */
100 SUNXI_FUNCTION(0x2, "gmac"), /* RXD1 */
107 SUNXI_FUNCTION(0x2, "gmac"), /* RXD2 */
114 SUNXI_FUNCTION(0x2, "gmac"), /* RXD3 */
121 SUNXI_FUNCTION(0x2, "gmac"), /* RXD4 */
127 SUNXI_FUNCTION(0x2, "gmac"), /* RXD5 */
133 SUNXI_FUNCTION(0x2, "gmac"), /* RXD6 */
139 SUNXI_FUNCTION(0x2, "gmac"), /* RXD7 */
145 SUNXI_FUNCTION(0x2, "gmac"), /* RXDV */
151 SUNXI_FUNCTION(0x2, "gmac"), /* RXCLK */
157 SUNXI_FUNCTION(0x2, "gmac"), /* TXERR */
163 SUNXI_FUNCTION(0x2, "gmac"), /* RXERR */
169 SUNXI_FUNCTION(0x2, "gmac"), /* COL */
175 SUNXI_FUNCTION(0x2, "gmac"), /* CRS */
181 SUNXI_FUNCTION(0x2, "gmac"), /* CLKIN */
187 SUNXI_FUNCTION(0x2, "gmac"), /* MDC */
193 SUNXI_FUNCTION(0x2, "gmac"), /* MDIO */
H A Dpinctrl-sun9i-a80.c25 SUNXI_FUNCTION(0x2, "gmac"), /* RXD3 */
31 SUNXI_FUNCTION(0x2, "gmac"), /* RXD2 */
37 SUNXI_FUNCTION(0x2, "gmac"), /* RXD1 */
43 SUNXI_FUNCTION(0x2, "gmac"), /* RXD0 */
49 SUNXI_FUNCTION(0x2, "gmac"), /* RXCK */
55 SUNXI_FUNCTION(0x2, "gmac"), /* RXCTL */
61 SUNXI_FUNCTION(0x2, "gmac"), /* RXERR */
67 SUNXI_FUNCTION(0x2, "gmac"), /* TXD3 */
73 SUNXI_FUNCTION(0x2, "gmac"), /* TXD2 */
79 SUNXI_FUNCTION(0x2, "gmac"), /* TXEN */
85 SUNXI_FUNCTION(0x2, "gmac"), /* TXD0 */
91 SUNXI_FUNCTION(0x2, "gmac"), /* MII-CRS */
97 SUNXI_FUNCTION(0x2, "gmac"), /* TXCK */
103 SUNXI_FUNCTION(0x2, "gmac"), /* RGMII-TXCK / GMII-TXEN */
109 SUNXI_FUNCTION(0x2, "gmac"), /* MII-TXERR */
115 SUNXI_FUNCTION(0x2, "gmac"), /* RGMII-CLKIN / MII-COL */
121 SUNXI_FUNCTION(0x2, "gmac"), /* EMDC */
127 SUNXI_FUNCTION(0x2, "gmac"), /* EMDIO */
H A Dpinctrl-sun6i-a31.c25 SUNXI_FUNCTION(0x2, "gmac"), /* TXD0 */
32 SUNXI_FUNCTION(0x2, "gmac"), /* TXD1 */
39 SUNXI_FUNCTION(0x2, "gmac"), /* TXD2 */
46 SUNXI_FUNCTION(0x2, "gmac"), /* TXD3 */
53 SUNXI_FUNCTION(0x2, "gmac"), /* TXD4 */
60 SUNXI_FUNCTION(0x2, "gmac"), /* TXD5 */
67 SUNXI_FUNCTION(0x2, "gmac"), /* TXD6 */
74 SUNXI_FUNCTION(0x2, "gmac"), /* TXD7 */
81 SUNXI_FUNCTION(0x2, "gmac"), /* TXCLK */
87 SUNXI_FUNCTION(0x2, "gmac"), /* TXEN */
95 SUNXI_FUNCTION(0x2, "gmac"), /* GTXCLK */
103 SUNXI_FUNCTION(0x2, "gmac"), /* RXD0 */
111 SUNXI_FUNCTION(0x2, "gmac"), /* RXD1 */
119 SUNXI_FUNCTION(0x2, "gmac"), /* RXD2 */
127 SUNXI_FUNCTION(0x2, "gmac"), /* RXD3 */
135 SUNXI_FUNCTION(0x2, "gmac"), /* RXD4 */
142 SUNXI_FUNCTION(0x2, "gmac"), /* RXD5 */
149 SUNXI_FUNCTION(0x2, "gmac"), /* RXD6 */
156 SUNXI_FUNCTION(0x2, "gmac"), /* RXD7 */
163 SUNXI_FUNCTION(0x2, "gmac"), /* RXDV */
170 SUNXI_FUNCTION(0x2, "gmac"), /* RXCLK */
177 SUNXI_FUNCTION(0x2, "gmac"), /* TXERR */
184 SUNXI_FUNCTION(0x2, "gmac"), /* RXERR */
191 SUNXI_FUNCTION(0x2, "gmac"), /* COL */
198 SUNXI_FUNCTION(0x2, "gmac"), /* CRS */
205 SUNXI_FUNCTION(0x2, "gmac"), /* CLKIN */
212 SUNXI_FUNCTION(0x2, "gmac"), /* MDC */
219 SUNXI_FUNCTION(0x2, "gmac"), /* MDIO */
H A Dpinctrl-sun7i-a20.c28 SUNXI_FUNCTION(0x5, "gmac")), /* GRXD3 */
35 SUNXI_FUNCTION(0x5, "gmac")), /* GRXD2 */
42 SUNXI_FUNCTION(0x5, "gmac")), /* GRXD1 */
49 SUNXI_FUNCTION(0x5, "gmac")), /* GRXD0 */
55 SUNXI_FUNCTION(0x5, "gmac")), /* GTXD3 */
61 SUNXI_FUNCTION(0x5, "gmac")), /* GTXD2 */
67 SUNXI_FUNCTION(0x5, "gmac")), /* GTXD1 */
73 SUNXI_FUNCTION(0x5, "gmac")), /* GTXD0 */
79 SUNXI_FUNCTION(0x5, "gmac")), /* GRXCK */
85 SUNXI_FUNCTION(0x5, "gmac"), /* GNULL / ERXERR */
92 SUNXI_FUNCTION(0x5, "gmac")), /* GRXCTL / ERXDV */
98 SUNXI_FUNCTION(0x5, "gmac")), /* EMDC */
105 SUNXI_FUNCTION(0x5, "gmac")), /* EMDIO */
112 SUNXI_FUNCTION(0x5, "gmac")), /* GTXCTL / ETXEN */
119 SUNXI_FUNCTION(0x5, "gmac"), /* GNULL / ETXCK */
127 SUNXI_FUNCTION(0x5, "gmac"), /* GTXCK / ECRS */
135 SUNXI_FUNCTION(0x5, "gmac"), /* GCLKIN / ECOL */
143 SUNXI_FUNCTION(0x5, "gmac"), /* GNULL / ETXERR */
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
H A Dgmac.h3 * File: gmac.h *
132 struct gmac { struct
138 extern const struct gmac t1_pm3393_ops;
139 extern const struct gmac t1_vsc7326_ops;
H A Dcommon.h266 struct gmac;
285 const struct gmac *gmac; member in struct:board_info
H A Dsubr.c42 #include "gmac.h"
408 .gmac = &t1_pm3393_ops,
428 .gmac = &t1_pm3393_ops,
448 .gmac = &t1_pm3393_ops,
470 .gmac = &t1_pm3393_ops,
492 .gmac = &t1_pm3393_ops,
516 .gmac = &t1_vsc7326_ops,
1057 adapter->params.stats_update_period = bi->gmac->stats_update_period; t1_init_sw_modules()
1083 if (bi->gmac->reset) t1_init_sw_modules()
1084 bi->gmac->reset(adapter); t1_init_sw_modules()
1099 adapter->port[i].mac = mac = bi->gmac->create(adapter, i); for_each_port()
H A Dvsc7326.c5 #include "gmac.h"
726 const struct gmac t1_vsc7326_ops = {
H A Dpm3393.c41 #include "gmac.h"
791 const struct gmac t1_pm3393_ops = {
H A Dcxgb2.c51 #include "gmac.h"
/linux-4.1.27/drivers/staging/netlogic/
H A Dplatform_net.c82 res->name = "gmac"; xlr_resource_init()
89 res->name = "gmac"; xlr_resource_init()
101 .gmac_fmn_info = &xlr_board_fmn_config.gmac[1], gmac_controller2_init()
143 .gmac_fmn_info = &xlr_board_fmn_config.gmac[0], xls_gmac_init()
208 .gmac_fmn_info = &xlr_board_fmn_config.gmac[0], xlr_gmac_init()
H A Dxlr_net.c530 struct xlr_fmn_info *gmac = priv->nd->gmac_fmn_info; xlr_config_common() local
531 int start_stn_id = gmac->start_stn_id; xlr_config_common()
532 int end_stn_id = gmac->end_stn_id; xlr_config_common()
551 gmac->credit_config[(i * 8) + j]); xlr_config_common()
810 pr_info("gmac%d : %dMbps\n", priv->port_id, priv->phy_speed); xlr_set_gmac_speed()
823 pr_info("gmac%d : Link up\n", priv->port_id); xlr_gmac_link_adjust()
827 pr_info("gmac%d : Link down\n", priv->port_id); xlr_gmac_link_adjust()
958 * Initialization of gmac
965 pr_info("Initializing the gmac%d\n", priv->port_id); xlr_gmac_init()
1023 * Each controller has 4 gmac ports, mapping each controller xlr_net_probe()
1024 * under one parent device, 4 gmac ports under one device. xlr_net_probe()
1088 if (strcmp(res->name, "gmac") == 0) { xlr_net_probe()
1091 pr_err("gmac%d init failed\n", priv->port_id); xlr_net_probe()
1104 pr_err("Registering netdev failed for gmac%d\n", xlr_net_probe()
H A Dxlr_net.h1084 int port_id; /* Port(gmac/xgmac) number, i.e 0-7 */
/linux-4.1.27/drivers/net/wireless/ath/
H A Dkey.c480 u8 gmac[ETH_ALEN]; ath_key_config() local
511 memcpy(gmac, vif->addr, ETH_ALEN); ath_key_config()
512 gmac[0] |= 0x01; ath_key_config()
513 mac = gmac; ath_key_config()
521 memcpy(gmac, sta->addr, ETH_ALEN); ath_key_config()
522 gmac[0] |= 0x01; ath_key_config()
523 mac = gmac; ath_key_config()
/linux-4.1.27/drivers/clk/sunxi/
H A Dclk-a20-gmac.c82 /* gmac clock requires exactly 2 parents */ sun7i_a20_gmac_clk_setup()
123 CLK_OF_DECLARE(sun7i_a20_gmac, "allwinner,sun7i-a20-gmac-clk",
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dbgmac.c783 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/chipphywr */ bgmac_phy_write()
826 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/chipphyinit */ bgmac_phy_init()
863 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/chipphyreset */ bgmac_phy_reset()
953 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/gmac_speed */ bgmac_mac_speed()
1007 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/chipreset */ bgmac_chip_reset()
1099 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/gmac_reset bgmac_chip_reset()
1149 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/gmac_enable */ bgmac_enable()
1203 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/chipinit */ bgmac_chip_init()
1545 /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/chipattach */ bgmac_probe()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dpmac_feature.h200 * enable/disable the gmac (ethernet) cell of an uninorth ASIC. This
206 * Perform a HW reset of the PHY connected to a gmac controller.
207 * Pass the gmac device node, not the PHY node.
/linux-4.1.27/drivers/clk/samsung/
H A Dclk-exynos5440.c87 GATE(CLK_GMAC0_O, "gmac0_o", "gmac", CLKEN_OV_VAL, 14, 0, 0),
/linux-4.1.27/drivers/crypto/nx/
H A Dnx-aes-gcm.c193 static int gmac(struct aead_request *req, struct blkcipher_desc *desc) gmac() function
351 rc = gmac(req, &desc); gcm_aes_nx_crypt()
/linux-4.1.27/arch/mips/include/asm/netlogic/xlr/
H A Dfmn.h352 struct xlr_fmn_info gmac[2]; member in struct:xlr_board_fmn_config
/linux-4.1.27/drivers/net/ethernet/hisilicon/
H A Dhix5hd2_gmac.c1047 {.compatible = "hisilicon,hix5hd2-gmac",},
1055 .name = "hix5hd2-gmac",
1066 MODULE_ALIAS("platform:hix5hd2-gmac");
/linux-4.1.27/drivers/clk/spear/
H A Dspear1310_clock.c264 /* gmac rate configuration table, in ascending order of rates */
266 /* For gmac phy input clk */
617 /* gmac */ spear1310_clk_init()
H A Dspear1340_clock.c293 /* gmac rate configuration table, in ascending order of rates */
295 /* For gmac phy input clk */
713 /* gmac */ spear1340_clk_init()
/linux-4.1.27/arch/arm/mach-omap2/
H A Domap_hwmod_7xx_data.c277 * 'gmac' class
278 * cpsw/gmac sub system
292 .name = "gmac",
297 .name = "gmac",
/linux-4.1.27/drivers/pinctrl/spear/
H A Dpinctrl-spear1340.c1287 /* pad multiplexing for gmac device */
1405 .name = "gmac",
/linux-4.1.27/arch/powerpc/platforms/powermac/
H A Dpci.c985 of_device_is_compatible(node, "gmac")) { pmac_pci_enable_device_hook()
1041 if (nd->parent && of_device_is_compatible(nd, "gmac") pmac_pcibios_after_init()
H A Dfeature.c2835 && of_device_is_compatible(np, "gmac")) set_initial_features()
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dsungem.c2836 /* Apple gmac note: during probe, the chip is powered up by gem_init_one()

Completed in 764 milliseconds