/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-ipq806x.c | 115 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, speed); in ipq806x_gmac_set_speed() [all …]
|
H A D | dwmac-sunxi.c | 32 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 D | dwmac-anarion.c | 27 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_REG, 0); in anarion_gmac_init() [all …]
|
H A D | dwmac-sun8i.c | 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->ephy_clk)) in get_ephy_nodes() 800 gmac->rst_ephy = of_reset_control_get_exclusive(iphynode, NULL); in get_ephy_nodes() [all …]
|
H A D | hwif.c | 104 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()
|
/openbmc/qemu/hw/net/ |
H A D | npcm_gmac.c | 136 static void npcm_gmac_soft_reset(NPCMGMACState *gmac) in npcm_gmac_soft_reset() argument 138 memcpy(gmac->regs, npcm_gmac_cold_reset_values, in npcm_gmac_soft_reset() 141 gmac->regs[R_NPCM_DMA_BUS_MODE] &= ~NPCM_DMA_BUS_MODE_SWR; in npcm_gmac_soft_reset() 144 static void gmac_phy_set_link(NPCMGMACState *gmac, bool active) in gmac_phy_set_link() argument 148 gmac->phy_regs[0][MII_BMSR] |= (MII_BMSR_LINK_ST | MII_BMSR_AN_COMP); in gmac_phy_set_link() 150 gmac->phy_regs[0][MII_BMSR] &= ~(MII_BMSR_LINK_ST | MII_BMSR_AN_COMP); in gmac_phy_set_link() 156 NPCMGMACState *gmac = NPCM_GMAC(qemu_get_nic_opaque(nc)); in gmac_can_receive() local 159 if (!(gmac->regs[R_NPCM_GMAC_MAC_CONFIG] & NPCM_GMAC_MAC_CONFIG_RX_EN)) { in gmac_can_receive() 164 if (!(gmac->regs[R_NPCM_DMA_CONTROL] & NPCM_DMA_CONTROL_START_STOP_RX)) { in gmac_can_receive() 175 static void gmac_update_irq(NPCMGMACState *gmac) in gmac_update_irq() argument [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | hisilicon-hix5hd2-gmac.txt | 1 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 D | ipq806x-dwmac.txt | 8 - compatible: should be "qcom,ipq806x-gmac" along with "snps,dwmac" 20 gmac: ethernet@37000000 { 22 compatible = "qcom,ipq806x-gmac";
|
H A D | anarion-gmac.txt | 7 - compatible: Should be "adaptrum,anarion-gmac", "snps,dwmac" 14 compatible = "adaptrum,anarion-gmac", "snps,dwmac";
|
/openbmc/u-boot/doc/device-tree-bindings/net/ |
H A D | allwinner,sun7i-a20-gmac.txt | 7 - 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";
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | rk3399-ficus.dts | 21 clkin_gmac: external-gmac-clock { 29 &gmac { 50 gmac {
|
H A D | sun7i-a20-lamobo-r1.dts | 86 reg_gmac_3v3: gmac-3v3 { 90 regulator-name = "gmac-3v3"; 124 &gmac { 179 ethernet = <&gmac>;
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | gmac.h | 123 struct gmac { struct 129 extern const struct gmac t1_pm3393_ops; argument 130 extern const struct gmac t1_vsc7326_ops;
|
H A D | common.h | 260 struct gmac; 279 const struct gmac *gmac; member
|
H A D | subr.c | 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->reset(adapter); in t1_init_sw_modules() 1116 adapter->port[i].mac = mac = bi->gmac->create(adapter, i); in t1_init_sw_modules()
|
/openbmc/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun7i-a20-haoyu-marsboard.dts | 63 &gmac { 117 gmac_txerr: gmac-txerr-pin { 119 function = "gmac";
|
H A D | sun7i-a20-lamobo-r1.dts | 84 reg_gmac_3v3: gmac-3v3 { 86 regulator-name = "gmac-3v3"; 120 &gmac { 173 ethernet = <&gmac>;
|
/openbmc/qemu/hw/arm/ |
H A D | allwinner-r40.c | 305 object_initialize_child(obj, "gmac", &s->gmac, TYPE_AW_SUN8I_EMAC); in allwinner_r40_init() 307 OBJECT(&s->gmac), "phy-addr"); in allwinner_r40_init() 514 qemu_configure_nic_device(DEVICE(&s->gmac), true, "gmac"); in allwinner_r40_realize() 515 object_property_set_link(OBJECT(&s->gmac), "dma-memory", in allwinner_r40_realize() 517 sysbus_realize(SYS_BUS_DEVICE(&s->gmac), &error_fatal); in allwinner_r40_realize() 518 sysbus_mmio_map(SYS_BUS_DEVICE(&s->gmac), 0, s->memmap[AW_R40_DEV_GMAC]); in allwinner_r40_realize() 519 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gmac), 0, in allwinner_r40_realize()
|
/openbmc/linux/arch/arm64/boot/dts/allwinner/ |
H A D | sun50i-h6-orangepi-one-plus.dts | 15 reg_gmac_3v3: gmac-3v3 { 17 regulator-name = "vcc-gmac-3v3";
|
H A D | sun50i-h5-libretech-all-h5-cc.dts | 14 reg_gmac_3v3: gmac-3v3 { 16 regulator-name = "gmac-3v3";
|
H A D | sun50i-h5-nanopi-neo2.dts | 37 reg_gmac_3v3: gmac-3v3 { 39 regulator-name = "gmac-3v3";
|
H A D | sun50i-h5-orangepi-zero-plus.dts | 48 reg_gmac_3v3: gmac-3v3 { 50 regulator-name = "gmac-3v3";
|
/openbmc/linux/drivers/net/wireless/ath/ |
H A D | key.c | 480 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()
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-ficus.dts | 20 clkin_gmac: external-gmac-clock { 75 &gmac { 96 gmac {
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | spear1310.dtsi | 132 compatible = "st,spear600-gmac"; 141 compatible = "st,spear600-gmac"; 150 compatible = "st,spear600-gmac"; 159 compatible = "st,spear600-gmac";
|