Home
last modified time | relevance | path

Searched refs:gmac (Results 1 – 16 of 16) sorted by relevance

/drivers/net/ethernet/stmicro/stmmac/
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, speed); in ipq806x_gmac_set_speed()
[all …]
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->regulator) in sun7i_gmac_init()
[all …]
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_REG, 0); in anarion_gmac_init()
[all …]
Ddwmac-sun8i.c571 struct sunxi_priv_data *gmac = priv; in sun8i_dwmac_init() local
574 if (gmac->regulator) { in sun8i_dwmac_init()
575 ret = regulator_enable(gmac->regulator); in sun8i_dwmac_init()
582 ret = clk_prepare_enable(gmac->tx_clk); in sun8i_dwmac_init()
588 if (gmac->use_internal_phy) { in sun8i_dwmac_init()
597 clk_disable_unprepare(gmac->tx_clk); in sun8i_dwmac_init()
599 if (gmac->regulator) in sun8i_dwmac_init()
600 regulator_disable(gmac->regulator); in sun8i_dwmac_init()
767 struct sunxi_priv_data *gmac = priv->plat->bsp_priv; in get_ephy_nodes() local
788 gmac->ephy_clk = of_clk_get(iphynode, 0); in get_ephy_nodes()
[all …]
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()
Ddwmac-rk.c1536 static void rk_gmac_powerdown(struct rk_priv_data *gmac) in rk_gmac_powerdown() argument
1538 if (gmac->integrated_phy) in rk_gmac_powerdown()
1539 rk_gmac_integrated_phy_powerdown(gmac); in rk_gmac_powerdown()
1541 pm_runtime_put_sync(&gmac->pdev->dev); in rk_gmac_powerdown()
1543 phy_power_on(gmac, false); in rk_gmac_powerdown()
1544 gmac_clk_enable(gmac, false); in rk_gmac_powerdown()
/drivers/net/ethernet/chelsio/cxgb/
Dgmac.h132 struct gmac { struct
138 extern const struct gmac t1_pm3393_ops; argument
139 extern const struct gmac t1_vsc7326_ops;
Dsubr.c420 .gmac = &t1_pm3393_ops,
440 .gmac = &t1_pm3393_ops,
460 .gmac = &t1_pm3393_ops,
482 .gmac = &t1_pm3393_ops,
504 .gmac = &t1_pm3393_ops,
528 .gmac = &t1_vsc7326_ops,
1083 adapter->params.stats_update_period = bi->gmac->stats_update_period; in t1_init_sw_modules()
1109 if (bi->gmac->reset) in t1_init_sw_modules()
1110 bi->gmac->reset(adapter); in t1_init_sw_modules()
1125 adapter->port[i].mac = mac = bi->gmac->create(adapter, i); in t1_init_sw_modules()
Dcommon.h269 struct gmac;
288 const struct gmac *gmac; member
Dvsc7326.c722 const struct gmac t1_vsc7326_ops = {
Dpm3393.c785 const struct gmac t1_pm3393_ops = {
/drivers/net/wireless/ath/
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()
/drivers/staging/netlogic/
Dplatform_net.c72 .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()
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()
/drivers/clk/sunxi/
DMakefile14 obj-$(CONFIG_CLK_SUNXI_CLOCKS) += clk-a20-gmac.o
/drivers/crypto/nx/
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()