Home
last modified time | relevance | path

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

12345678910>>...14

/OK3568_Linux_fs/kernel/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, speed); in ipq806x_gmac_set_speed()
[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->regulator) in sun7i_gmac_init()
[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_REG, 0); in anarion_gmac_init()
[all …]
H A Ddwmac-sun8i.c549 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 = priv->plat->bsp_priv; in get_ephy_nodes() local
766 gmac->ephy_clk = of_clk_get(iphynode, 0); in get_ephy_nodes()
[all …]
H A Dhwif.c93 bool gmac; member
112 .gmac = false,
130 .gmac = true,
148 .gmac = false,
166 .gmac = false,
186 .gmac = false,
208 .gmac = false,
226 .gmac = false,
245 .gmac = false,
312 if (needs_gmac ^ entry->gmac) in stmmac_hwif_init()
/OK3568_Linux_fs/kernel/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[1], FMN_STNID_GMAC1_FR_0, in xlr_board_info_setup()
249 setup_fmn_cc(&gmac[0], FMN_STNID_GMAC0, in xlr_board_info_setup()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/
H A Dhisilicon-hix5hd2-gmac.txt1 Hisilicon hix5hd2 gmac controller
5 * "hisilicon,hix5hd2-gmac"
6 * "hisilicon,hi3798cv200-gmac"
7 * "hisilicon,hi3516a-gmac"
9 * "hisilicon,hisi-gmac-v1"
10 * "hisilicon,hisi-gmac-v2"
43 compatible = "hisilicon,hi3798cv200-gmac", "hisilicon,hisi-gmac-v2";
H A Dipq806x-dwmac.txt8 - compatible: should be "qcom,ipq806x-gmac" along with "snps,dwmac"
20 gmac: ethernet@37000000 {
22 compatible = "qcom,ipq806x-gmac";
H A Danarion-gmac.txt7 - compatible: Should be "adaptrum,anarion-gmac", "snps,dwmac"
14 compatible = "adaptrum,anarion-gmac", "snps,dwmac";
H A Doxnas-dwmac.txt16 - "gmac" for the peripheral gate clock
32 clock-names = "gmac", "stmmaceth";
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/net/
H A Dallwinner,sun7i-a20-gmac.txt7 - compatible: Should be "allwinner,sun7i-a20-gmac"
9 The tx clock type should be "allwinner,sun7i-a20-gmac-clk"
18 gmac: ethernet@01c50000 {
19 compatible = "allwinner,sun7i-a20-gmac";
/OK3568_Linux_fs/external/dpdk/gmac/kernel5.10/
H A Dkernel_dts.diff31 + compatible = "rockchip,uio-gmac";
38 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
45 + compatible = "rockchip,uio-gmac";
52 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
/OK3568_Linux_fs/external/dpdk/gmac/kernel4.19/
H A Dkernel_dts.diff31 + compatible = "rockchip,uio-gmac";
38 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
45 + compatible = "rockchip,uio-gmac";
52 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
/OK3568_Linux_fs/kernel/drivers/net/ethernet/chelsio/cxgb/
H A Dgmac.h132 struct gmac { struct
138 extern const struct gmac t1_pm3393_ops; argument
139 extern const struct gmac t1_vsc7326_ops;
H A 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()
H A Dcommon.h269 struct gmac;
288 const struct gmac *gmac; member
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/staging/netlogic/
H A 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()
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h6-orangepi-one-plus.dts15 reg_gmac_3v3: gmac-3v3 {
17 regulator-name = "vcc-gmac-3v3";
H A Dsun50i-h5-libretech-all-h5-cc.dts14 reg_gmac_3v3: gmac-3v3 {
16 regulator-name = "gmac-3v3";
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3399-ficus.dts20 clkin_gmac: external-gmac-clock {
75 &gmac {
96 gmac {
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dsun7i-a20-lamobo-r1.dts84 reg_gmac_3v3: gmac-3v3 {
86 regulator-name = "gmac-3v3";
120 &gmac {
173 ethernet = <&gmac>;
H A Dspear1310.dtsi138 compatible = "st,spear600-gmac";
147 compatible = "st,spear600-gmac";
156 compatible = "st,spear600-gmac";
165 compatible = "st,spear600-gmac";
H A Drockchip-radxa-dalang-carrier.dtsi11 clkin_gmac: external-gmac-clock {
56 &gmac {
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dsun7i-a20-lamobo-r1.dts76 reg_gmac_3v3: gmac-3v3 {
80 regulator-name = "gmac-3v3";
114 &gmac {
169 ethernet = <&gmac>;

12345678910>>...14