Home
last modified time | relevance | path

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

/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-ipq806x.c105 static int get_clk_div_sgmii(struct ipq806x_gmac *gmac, unsigned int speed) in get_clk_div_sgmii() argument
107 struct device *dev = &gmac->pdev->dev; in get_clk_div_sgmii()
131 static int get_clk_div_rgmii(struct ipq806x_gmac *gmac, unsigned int speed) in get_clk_div_rgmii() argument
133 struct device *dev = &gmac->pdev->dev; in get_clk_div_rgmii()
157 static int ipq806x_gmac_set_speed(struct ipq806x_gmac *gmac, unsigned int speed) in ipq806x_gmac_set_speed() argument
162 switch (gmac->phy_mode) { in ipq806x_gmac_set_speed()
164 div = get_clk_div_rgmii(gmac, speed); in ipq806x_gmac_set_speed()
165 clk_bits = NSS_COMMON_CLK_GATE_RGMII_RX_EN(gmac->id) | in ipq806x_gmac_set_speed()
166 NSS_COMMON_CLK_GATE_RGMII_TX_EN(gmac->id); in ipq806x_gmac_set_speed()
170 div = get_clk_div_sgmii(gmac, speed); in ipq806x_gmac_set_speed()
[all …]
Ddwmac-sunxi.c41 struct sunxi_priv_data *gmac = priv; in sun7i_gmac_init() local
44 if (gmac->regulator) { in sun7i_gmac_init()
45 ret = regulator_enable(gmac->regulator); in sun7i_gmac_init()
56 if (phy_interface_mode_is_rgmii(gmac->interface)) { in sun7i_gmac_init()
57 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_GMII_RGMII_RATE); in sun7i_gmac_init()
58 clk_prepare_enable(gmac->tx_clk); in sun7i_gmac_init()
59 gmac->clk_enabled = 1; in sun7i_gmac_init()
61 clk_set_rate(gmac->tx_clk, SUN7I_GMAC_MII_RATE); in sun7i_gmac_init()
62 ret = clk_prepare(gmac->tx_clk); in sun7i_gmac_init()
63 if (ret && gmac->regulator) in sun7i_gmac_init()
[all …]
Ddwmac-rk.c550 struct rk_priv_data *gmac = priv; in rk_gmac_exit() local
552 phy_power_on(gmac, false); in rk_gmac_exit()
553 gmac_clk_enable(gmac, false); in rk_gmac_exit()
/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.c408 .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->reset(adapter); in t1_init_sw_modules()
1099 adapter->port[i].mac = mac = bi->gmac->create(adapter, i); in t1_init_sw_modules()
Dcommon.h266 struct gmac;
285 const struct gmac *gmac; member
Dvsc7326.c726 const struct gmac t1_vsc7326_ops = {
Dpm3393.c791 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.c100 .gmac_fmn_info = &xlr_board_fmn_config.gmac[1], in gmac_controller2_init()
142 .gmac_fmn_info = &xlr_board_fmn_config.gmac[0], in xls_gmac_init()
207 .gmac_fmn_info = &xlr_board_fmn_config.gmac[0], in xlr_gmac_init()
Dxlr_net.c530 struct xlr_fmn_info *gmac = priv->nd->gmac_fmn_info; in xlr_config_common() local
531 int start_stn_id = gmac->start_stn_id; in xlr_config_common()
532 int end_stn_id = gmac->end_stn_id; in xlr_config_common()
551 gmac->credit_config[(i * 8) + j]); in xlr_config_common()
/drivers/clk/sunxi/
DMakefile10 obj-y += clk-a20-gmac.o
/drivers/crypto/nx/
Dnx-aes-gcm.c180 static int gmac(struct aead_request *req, struct blkcipher_desc *desc, in gmac() function
343 rc = gmac(req, &desc, assoclen); in gcm_aes_nx_crypt()