Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-ipq806x.c93 static int get_clk_div_sgmii(struct ipq806x_gmac *gmac, unsigned int speed) in get_clk_div_sgmii() argument
95 struct device *dev = &gmac->pdev->dev; in get_clk_div_sgmii()
119 static int get_clk_div_rgmii(struct ipq806x_gmac *gmac, unsigned int speed) in get_clk_div_rgmii() argument
121 struct device *dev = &gmac->pdev->dev; in get_clk_div_rgmii()
145 static int ipq806x_gmac_set_speed(struct ipq806x_gmac *gmac, unsigned int speed) in ipq806x_gmac_set_speed() argument
150 switch (gmac->phy_mode) { in ipq806x_gmac_set_speed()
152 div = get_clk_div_rgmii(gmac, speed); in ipq806x_gmac_set_speed()
153 clk_bits = NSS_COMMON_CLK_GATE_RGMII_RX_EN(gmac->id) | in ipq806x_gmac_set_speed()
154 NSS_COMMON_CLK_GATE_RGMII_TX_EN(gmac->id); in ipq806x_gmac_set_speed()
158 div = get_clk_div_sgmii(gmac, spee in ipq806x_gmac_set_speed()
189 ipq806x_gmac_of_parse(struct ipq806x_gmac *gmac) ipq806x_gmac_of_parse() argument
240 struct ipq806x_gmac *gmac = priv; ipq806x_gmac_fix_mac_speed() local
250 struct ipq806x_gmac *gmac; ipq806x_gmac_probe() local
[all...]
H A Ddwmac-sunxi.c32 struct sunxi_priv_data *gmac = priv; in sun7i_gmac_init() local
35 if (gmac->regulator) { in sun7i_gmac_init()
36 ret = regulator_enable(gmac->regulator); in sun7i_gmac_init()
47 if (phy_interface_mode_is_rgmii(gmac->interface)) { in sun7i_gmac_init()
48 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_GMII_RGMII_RATE); in sun7i_gmac_init()
49 clk_prepare_enable(gmac->tx_clk); in sun7i_gmac_init()
50 gmac->clk_enabled = 1; in sun7i_gmac_init()
52 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE); in sun7i_gmac_init()
53 ret = clk_prepare(gmac->tx_clk); in sun7i_gmac_init()
54 if (ret && gmac in sun7i_gmac_init()
63 struct sunxi_priv_data *gmac = priv; sun7i_gmac_exit() local
77 struct sunxi_priv_data *gmac = priv; sun7i_fix_speed() local
103 struct sunxi_priv_data *gmac; sun7i_gmac_probe() local
[all...]
H A Ddwmac-anarion.c27 static uint32_t gmac_read_reg(struct anarion_gmac *gmac, uint8_t reg) in gmac_read_reg() argument
29 return readl((void *)(gmac->ctl_block + reg)); in gmac_read_reg()
32 static void gmac_write_reg(struct anarion_gmac *gmac, uint8_t reg, uint32_t val) in gmac_write_reg() argument
34 writel(val, (void *)(gmac->ctl_block + reg)); in gmac_write_reg()
40 struct anarion_gmac *gmac = priv; in anarion_gmac_init() local
43 gmac_write_reg(gmac, GMAC_RESET_CONTROL_REG, 1); in anarion_gmac_init()
45 sw_config = gmac_read_reg(gmac, GMAC_SW_CONFIG_REG); in anarion_gmac_init()
47 sw_config |= (gmac->phy_intf_sel & GMAC_CONFIG_INTF_SEL_MASK); in anarion_gmac_init()
48 gmac_write_reg(gmac, GMAC_SW_CONFIG_REG, sw_config); in anarion_gmac_init()
50 gmac_write_reg(gmac, GMAC_RESET_CONTROL_RE in anarion_gmac_init()
57 struct anarion_gmac *gmac = priv; anarion_gmac_exit() local
64 struct anarion_gmac *gmac; anarion_config_dt() local
106 struct anarion_gmac *gmac; anarion_dwmac_probe() local
[all...]
H A Ddwmac-sun8i.c36 * @syscon_field reg_field for the syscon's gmac register
549 struct sunxi_priv_data *gmac = priv; in sun8i_dwmac_init() local
552 if (gmac->regulator) { in sun8i_dwmac_init()
553 ret = regulator_enable(gmac->regulator); in sun8i_dwmac_init()
560 ret = clk_prepare_enable(gmac->tx_clk); in sun8i_dwmac_init()
566 if (gmac->use_internal_phy) { in sun8i_dwmac_init()
575 clk_disable_unprepare(gmac->tx_clk); in sun8i_dwmac_init()
577 if (gmac->regulator) in sun8i_dwmac_init()
578 regulator_disable(gmac->regulator); in sun8i_dwmac_init()
745 struct sunxi_priv_data *gmac in get_ephy_nodes() local
791 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; sun8i_dwmac_power_internal_phy() local
823 sun8i_dwmac_unpower_internal_phy(struct sunxi_priv_data *gmac) sun8i_dwmac_unpower_internal_phy() argument
848 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; mdio_mux_syscon_switch_fn() local
890 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; sun8i_dwmac_register_mdio_mux() local
905 struct sunxi_priv_data *gmac = plat->bsp_priv; sun8i_dwmac_set_syscon() local
1012 sun8i_dwmac_unset_syscon(struct sunxi_priv_data *gmac) sun8i_dwmac_unset_syscon() argument
1021 struct sunxi_priv_data *gmac = priv; sun8i_dwmac_exit() local
1130 struct sunxi_priv_data *gmac; sun8i_dwmac_probe() local
1276 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; sun8i_dwmac_remove() local
[all...]
H A Dhwif.c91 bool gmac; member
109 .gmac = false,
127 .gmac = true,
145 .gmac = false,
163 .gmac = false,
181 .gmac = false,
199 .gmac = false,
217 .gmac = false,
236 .gmac = false,
302 if (needs_gmac ^ entry->gmac) in stmmac_hwif_init()
[all...]
H A Ddwmac-rk.c1341 static void rk_gmac_powerdown(struct rk_priv_data *gmac) in rk_gmac_powerdown() argument
1343 if (gmac->integrated_phy) in rk_gmac_powerdown()
1344 rk_gmac_integrated_phy_powerdown(gmac); in rk_gmac_powerdown()
1346 pm_runtime_put_sync(&gmac->pdev->dev); in rk_gmac_powerdown()
1348 phy_power_on(gmac, false); in rk_gmac_powerdown()
1349 gmac_clk_enable(gmac, false); in rk_gmac_powerdown()
1466 { .compatible = "rockchip,px30-gmac", .data = &px30_ops },
1467 { .compatible = "rockchip,rk3128-gmac", .data = &rk3128_ops },
1468 { .compatible = "rockchip,rk3228-gmac", .data = &rk3228_ops },
1469 { .compatible = "rockchip,rk3288-gmac",
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-sunxi.c32 struct sunxi_priv_data *gmac = priv; in sun7i_gmac_init() local
35 if (gmac->regulator) { in sun7i_gmac_init()
36 ret = regulator_enable(gmac->regulator); in sun7i_gmac_init()
47 if (phy_interface_mode_is_rgmii(gmac->interface)) { in sun7i_gmac_init()
48 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_GMII_RGMII_RATE); in sun7i_gmac_init()
49 clk_prepare_enable(gmac->tx_clk); in sun7i_gmac_init()
50 gmac->clk_enabled = 1; in sun7i_gmac_init()
52 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE); in sun7i_gmac_init()
53 ret = clk_prepare(gmac->tx_clk); in sun7i_gmac_init()
54 if (ret && gmac in sun7i_gmac_init()
63 struct sunxi_priv_data *gmac = priv; sun7i_gmac_exit() local
77 struct sunxi_priv_data *gmac = priv; sun7i_fix_speed() local
103 struct sunxi_priv_data *gmac; sun7i_gmac_probe() local
[all...]
H A Ddwmac-ipq806x.c115 static int get_clk_div_sgmii(struct ipq806x_gmac *gmac, unsigned int speed) in get_clk_div_sgmii() argument
117 struct device *dev = &gmac->pdev->dev; in get_clk_div_sgmii()
141 static int get_clk_div_rgmii(struct ipq806x_gmac *gmac, unsigned int speed) in get_clk_div_rgmii() argument
143 struct device *dev = &gmac->pdev->dev; in get_clk_div_rgmii()
167 static int ipq806x_gmac_set_speed(struct ipq806x_gmac *gmac, unsigned int speed) in ipq806x_gmac_set_speed() argument
172 switch (gmac->phy_mode) { in ipq806x_gmac_set_speed()
174 div = get_clk_div_rgmii(gmac, speed); in ipq806x_gmac_set_speed()
175 clk_bits = NSS_COMMON_CLK_GATE_RGMII_RX_EN(gmac->id) | in ipq806x_gmac_set_speed()
176 NSS_COMMON_CLK_GATE_RGMII_TX_EN(gmac->id); in ipq806x_gmac_set_speed()
180 div = get_clk_div_sgmii(gmac, spee in ipq806x_gmac_set_speed()
211 ipq806x_gmac_of_parse(struct ipq806x_gmac *gmac) ipq806x_gmac_of_parse() argument
262 struct ipq806x_gmac *gmac = priv; ipq806x_gmac_fix_mac_speed() local
268 ipq806x_gmac_configure_qsgmii_pcs_speed(struct ipq806x_gmac *gmac) ipq806x_gmac_configure_qsgmii_pcs_speed() argument
326 ipq806x_gmac_configure_qsgmii_params(struct ipq806x_gmac *gmac) ipq806x_gmac_configure_qsgmii_params() argument
379 struct ipq806x_gmac *gmac; ipq806x_gmac_probe() local
[all...]
H A Ddwmac-anarion.c27 static uint32_t gmac_read_reg(struct anarion_gmac *gmac, uint8_t reg) in gmac_read_reg() argument
29 return readl(gmac->ctl_block + reg); in gmac_read_reg()
32 static void gmac_write_reg(struct anarion_gmac *gmac, uint8_t reg, uint32_t val) in gmac_write_reg() argument
34 writel(val, gmac->ctl_block + reg); in gmac_write_reg()
40 struct anarion_gmac *gmac = priv; in anarion_gmac_init() local
43 gmac_write_reg(gmac, GMAC_RESET_CONTROL_REG, 1); in anarion_gmac_init()
45 sw_config = gmac_read_reg(gmac, GMAC_SW_CONFIG_REG); in anarion_gmac_init()
47 sw_config |= (gmac->phy_intf_sel & GMAC_CONFIG_INTF_SEL_MASK); in anarion_gmac_init()
48 gmac_write_reg(gmac, GMAC_SW_CONFIG_REG, sw_config); in anarion_gmac_init()
50 gmac_write_reg(gmac, GMAC_RESET_CONTROL_RE in anarion_gmac_init()
57 struct anarion_gmac *gmac = priv; anarion_gmac_exit() local
64 struct anarion_gmac *gmac; anarion_config_dt() local
106 struct anarion_gmac *gmac; anarion_dwmac_probe() local
[all...]
H A Ddwmac-sun8i.c38 * @syscon_field reg_field for the syscon's gmac register
588 struct sunxi_priv_data *gmac = priv; in sun8i_dwmac_init() local
591 if (gmac->regulator) { in sun8i_dwmac_init()
592 ret = regulator_enable(gmac->regulator); in sun8i_dwmac_init()
599 if (gmac->use_internal_phy) { in sun8i_dwmac_init()
608 if (gmac->regulator) in sun8i_dwmac_init()
609 regulator_disable(gmac->regulator); in sun8i_dwmac_init()
776 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; in get_ephy_nodes() local
797 gmac->ephy_clk = of_clk_get(iphynode, 0); in get_ephy_nodes()
798 if (IS_ERR(gmac in get_ephy_nodes()
822 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; sun8i_dwmac_power_internal_phy() local
854 sun8i_dwmac_unpower_internal_phy(struct sunxi_priv_data *gmac) sun8i_dwmac_unpower_internal_phy() argument
878 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; mdio_mux_syscon_switch_fn() local
920 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; sun8i_dwmac_register_mdio_mux() local
935 struct sunxi_priv_data *gmac = plat->bsp_priv; sun8i_dwmac_set_syscon() local
1042 sun8i_dwmac_unset_syscon(struct sunxi_priv_data *gmac) sun8i_dwmac_unset_syscon() argument
1051 struct sunxi_priv_data *gmac = priv; sun8i_dwmac_exit() local
1156 struct sunxi_priv_data *gmac; sun8i_dwmac_probe() local
1307 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; sun8i_dwmac_remove() local
1324 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; sun8i_dwmac_shutdown() local
[all...]
H A Dhwif.c104 bool gmac; member
122 .gmac = false,
140 .gmac = true,
158 .gmac = false,
176 .gmac = false,
194 .gmac = false,
212 .gmac = false,
230 .gmac = false,
249 .gmac = false,
315 if (needs_gmac ^ entry->gmac) in stmmac_hwif_init()
[all...]
/kernel/linux/linux-5.10/arch/mips/netlogic/xlr/
H A Dfmn-config.c91 total_credits += cfg->gmac[0].credit_config[bkt]; in check_credit_distribution()
92 total_credits += cfg->gmac[1].credit_config[bkt]; in check_credit_distribution()
183 struct xlr_fmn_info *gmac = xlr_board_fmn_config.gmac; in xlr_board_info_setup() local
197 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, in xlr_board_info_setup()
207 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, in xlr_board_info_setup()
222 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, in xlr_board_info_setup()
224 setup_fmn_cc(&gmac[1], FMN_STNID_GMAC1_FR_0, in xlr_board_info_setup()
235 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, in xlr_board_info_setup()
237 setup_fmn_cc(&gmac[ in xlr_board_info_setup()
[all...]
/kernel/linux/linux-5.10/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 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; in t1_init_sw_modules()
1083 if (bi->gmac->reset) in t1_init_sw_modules()
1084 bi->gmac in t1_init_sw_modules()
[all...]
H A Dcommon.h269 struct gmac;
288 const struct gmac *gmac; member
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb/
H A Dgmac.h4 * File: gmac.h *
123 struct gmac { struct
129 extern const struct gmac t1_pm3393_ops;
130 extern const struct gmac t1_vsc7326_ops;
H A Dcommon.h260 struct gmac;
279 const struct gmac *gmac; member
H A Dsubr.c33 #include "gmac.h"
411 .gmac = &t1_pm3393_ops,
431 .gmac = &t1_pm3393_ops,
451 .gmac = &t1_pm3393_ops,
473 .gmac = &t1_pm3393_ops,
495 .gmac = &t1_pm3393_ops,
519 .gmac = &t1_vsc7326_ops,
1074 adapter->params.stats_update_period = bi->gmac->stats_update_period; in t1_init_sw_modules()
1100 if (bi->gmac->reset) in t1_init_sw_modules()
1101 bi->gmac in t1_init_sw_modules()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/
H A Dkey.c480 u8 gmac[ETH_ALEN]; in ath_key_config() local
511 memcpy(gmac, vif->addr, ETH_ALEN); in ath_key_config()
512 gmac[0] |= 0x01; in ath_key_config()
513 mac = gmac; in ath_key_config()
521 memcpy(gmac, sta->addr, ETH_ALEN); in ath_key_config()
522 gmac[0] |= 0x01; in ath_key_config()
523 mac = gmac; in ath_key_config()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/
H A Dkey.c480 u8 gmac[ETH_ALEN]; in ath_key_config() local
511 memcpy(gmac, vif->addr, ETH_ALEN); in ath_key_config()
512 gmac[0] |= 0x01; in ath_key_config()
513 mac = gmac; in ath_key_config()
521 memcpy(gmac, sta->addr, ETH_ALEN); in ath_key_config()
522 gmac[0] |= 0x01; in ath_key_config()
523 mac = gmac; in ath_key_config()
/kernel/linux/linux-5.10/drivers/staging/netlogic/
H A Dplatform_net.c52 res->name = "gmac"; in xlr_resource_init()
59 res->name = "gmac"; in xlr_resource_init()
72 .gmac_fmn_info = &xlr_board_fmn_config.gmac[1], in gmac_controller2_init()
116 .gmac_fmn_info = &xlr_board_fmn_config.gmac[0], in xls_gmac_init()
182 .gmac_fmn_info = &xlr_board_fmn_config.gmac[0], in xlr_gmac_init()
H A Dxlr_net.c479 struct xlr_fmn_info *gmac = priv->nd->gmac_fmn_info; in xlr_config_common() local
480 int start_stn_id = gmac->start_stn_id; in xlr_config_common()
481 int end_stn_id = gmac->end_stn_id; in xlr_config_common()
500 gmac->credit_config[(i * 8) + j]); in xlr_config_common()
762 pr_info("gmac%d : %dMbps\n", priv->port_id, priv->phy_speed); in xlr_set_gmac_speed()
775 pr_info("gmac%d : Link up\n", priv->port_id); in xlr_gmac_link_adjust()
779 pr_info("gmac%d : Link down\n", priv->port_id); in xlr_gmac_link_adjust()
908 * Initialization of gmac
915 pr_info("Initializing the gmac%d\n", priv->port_id); in xlr_gmac_init()
963 * Each controller has 4 gmac port in xlr_net_probe()
[all...]
/kernel/linux/linux-6.6/arch/arm/mach-at91/
H A Dpm.c1219 struct at91_pm_quirk_eth *gmac = &soc_pm.quirks.eth[AT91_PM_G_ETH]; in at91_pm_modes_init() local
1269 gmac->np = np; in at91_pm_modes_init()
1270 at91_pm_get_eth_clks(np, gmac->clks); in at91_pm_modes_init()
1275 if (at91_pm_eth_clks_empty(gmac->clks)) in at91_pm_modes_init()
1281 if (ret && at91_pm_eth_clks_empty(gmac->clks)) { in at91_pm_modes_init()
1282 of_node_put(gmac->np); in at91_pm_modes_init()
1284 gmac->np = NULL; in at91_pm_modes_init()
/kernel/linux/linux-5.10/drivers/crypto/nx/
H A Dnx-aes-gcm.c169 static int gmac(struct aead_request *req, const u8 *iv, unsigned int assoclen) in gmac() function
328 rc = gmac(req, rctx->iv, assoclen); in gcm_aes_nx_crypt()
/kernel/linux/linux-6.6/drivers/crypto/nx/
H A Dnx-aes-gcm.c169 static int gmac(struct aead_request *req, const u8 *iv, unsigned int assoclen) in gmac() function
328 rc = gmac(req, rctx->iv, assoclen); in gcm_aes_nx_crypt()

Completed in 20 milliseconds

12