Home
last modified time | relevance | path

Searched refs:emac (Results 1 – 25 of 196) sorted by relevance

12345678

/linux-6.6.21/drivers/net/ethernet/ti/icssg/
Dicssg_prueth.c61 static void prueth_cleanup_rx_chns(struct prueth_emac *emac, in prueth_cleanup_rx_chns() argument
72 static void prueth_cleanup_tx_chns(struct prueth_emac *emac) in prueth_cleanup_tx_chns() argument
76 for (i = 0; i < emac->tx_ch_num; i++) { in prueth_cleanup_tx_chns()
77 struct prueth_tx_chn *tx_chn = &emac->tx_chns[i]; in prueth_cleanup_tx_chns()
92 static void prueth_ndev_del_tx_napi(struct prueth_emac *emac, int num) in prueth_ndev_del_tx_napi() argument
97 struct prueth_tx_chn *tx_chn = &emac->tx_chns[i]; in prueth_ndev_del_tx_napi()
141 static int emac_tx_complete_packets(struct prueth_emac *emac, int chn, in emac_tx_complete_packets() argument
144 struct net_device *ndev = emac->ndev; in emac_tx_complete_packets()
154 tx_chn = &emac->tx_chns[chn]; in emac_tx_complete_packets()
163 if (atomic_dec_and_test(&emac->tdown_cnt)) in emac_tx_complete_packets()
[all …]
Dicssg_ethtool.c14 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_drvinfo() local
15 struct prueth *prueth = emac->prueth; in emac_get_drvinfo()
24 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_msglevel() local
26 return emac->msg_enable; in emac_get_msglevel()
31 struct prueth_emac *emac = netdev_priv(ndev); in emac_set_msglevel() local
33 emac->msg_enable = value; in emac_set_msglevel()
102 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_ethtool_stats() local
105 emac_update_hardware_stats(emac); in emac_get_ethtool_stats()
109 *(data++) = emac->stats[i]; in emac_get_ethtool_stats()
115 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_ts_info() local
[all …]
Dicssg_config.c108 static void icssg_config_mii_init(struct prueth_emac *emac) in icssg_config_mii_init() argument
111 struct prueth *prueth = emac->prueth; in icssg_config_mii_init()
112 int slice = prueth_emac_slice(emac); in icssg_config_mii_init()
133 if (emac->phy_if == PHY_INTERFACE_MODE_MII && slice == ICSS_MII0) in icssg_config_mii_init()
135 else if (emac->phy_if != PHY_INTERFACE_MODE_MII && slice == ICSS_MII1) in icssg_config_mii_init()
201 void icssg_config_ipg(struct prueth_emac *emac) in icssg_config_ipg() argument
203 struct prueth *prueth = emac->prueth; in icssg_config_ipg()
204 int slice = prueth_emac_slice(emac); in icssg_config_ipg()
206 switch (emac->speed) { in icssg_config_ipg()
219 netdev_err(emac->ndev, "Unsupported link speed\n"); in icssg_config_ipg()
[all …]
Dicssg_stats.c19 void emac_update_hardware_stats(struct prueth_emac *emac) in emac_update_hardware_stats() argument
21 struct prueth *prueth = emac->prueth; in emac_update_hardware_stats()
22 int slice = prueth_emac_slice(emac); in emac_update_hardware_stats()
39 emac->stats[i] += val; in emac_update_hardware_stats()
41 emac->stats[i] -= tx_pkt_cnt * 8; in emac_update_hardware_stats()
47 struct prueth_emac *emac = container_of(work, struct prueth_emac, in emac_stats_work_handler() local
49 emac_update_hardware_stats(emac); in emac_stats_work_handler()
51 queue_delayed_work(system_long_wq, &emac->stats_work, in emac_stats_work_handler()
52 msecs_to_jiffies((STATS_TIME_LIMIT_1G_MS * 1000) / emac->speed)); in emac_stats_work_handler()
55 int emac_get_stat_by_name(struct prueth_emac *emac, char *stat_name) in emac_get_stat_by_name() argument
[all …]
Dicssg_prueth.h104 struct prueth_emac *emac; member
224 struct prueth_emac *emac[PRUETH_NUM_MACS]; member
246 static inline int prueth_emac_slice(struct prueth_emac *emac) in prueth_emac_slice() argument
248 switch (emac->port_id) { in prueth_emac_slice()
268 void icssg_config_ipg(struct prueth_emac *emac);
269 int icssg_config(struct prueth *prueth, struct prueth_emac *emac,
271 int emac_set_port_state(struct prueth_emac *emac,
273 void icssg_config_set_speed(struct prueth_emac *emac);
284 void emac_update_hardware_stats(struct prueth_emac *emac);
285 int emac_get_stat_by_name(struct prueth_emac *emac, char *stat_name);
Dicssg_mii_cfg.c44 void icssg_update_rgmii_cfg(struct regmap *miig_rt, struct prueth_emac *emac) in icssg_update_rgmii_cfg() argument
47 int slice = prueth_emac_slice(emac); in icssg_update_rgmii_cfg()
52 if (emac->speed == SPEED_1000) in icssg_update_rgmii_cfg()
58 if (emac->speed == SPEED_10 && phy_interface_mode_is_rgmii(emac->phy_if)) in icssg_update_rgmii_cfg()
64 if (emac->duplex == DUPLEX_FULL) in icssg_update_rgmii_cfg()
/linux-6.6.21/drivers/net/ethernet/qualcomm/emac/
DMakefile6 obj-$(CONFIG_QCOM_EMAC) += qcom-emac.o
8 qcom-emac-objs := emac.o emac-mac.o emac-phy.o emac-sgmii.o emac-ethtool.o \
9 emac-sgmii-fsm9900.o emac-sgmii-qdf2432.o \
10 emac-sgmii-qdf2400.o
/linux-6.6.21/net/ethtool/
Dstats.c473 struct ethtool_eth_mac_stats pmac, emac; in ethtool_aggregate_mac_stats() local
475 memset(&emac, 0xff, sizeof(emac)); in ethtool_aggregate_mac_stats()
477 emac.src = ETHTOOL_MAC_STATS_SRC_EMAC; in ethtool_aggregate_mac_stats()
480 ops->get_eth_mac_stats(dev, &emac); in ethtool_aggregate_mac_stats()
483 ethtool_aggregate_stats(mac_stats, &emac, &pmac, in ethtool_aggregate_mac_stats()
493 struct ethtool_eth_phy_stats pmac, emac; in ethtool_aggregate_phy_stats() local
495 memset(&emac, 0xff, sizeof(emac)); in ethtool_aggregate_phy_stats()
497 emac.src = ETHTOOL_MAC_STATS_SRC_EMAC; in ethtool_aggregate_phy_stats()
500 ops->get_eth_phy_stats(dev, &emac); in ethtool_aggregate_phy_stats()
503 ethtool_aggregate_stats(phy_stats, &emac, &pmac, in ethtool_aggregate_phy_stats()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/net/
Dallwinner,sun8i-a83t-emac.yaml4 $id: http://devicetree.org/schemas/net/allwinner,sun8i-a83t-emac.yaml#
16 - const: allwinner,sun8i-a83t-emac
17 - const: allwinner,sun8i-h3-emac
19 - const: allwinner,sun8i-v3s-emac
20 - const: allwinner,sun50i-a64-emac
23 - allwinner,sun20i-d1-emac
24 - allwinner,sun50i-h6-emac
26 - const: allwinner,sun50i-a64-emac
72 - allwinner,sun8i-a83t-emac
73 - allwinner,sun8i-h3-emac
[all …]
Ddavinci_emac.txt7 - compatible: "ti,davinci-dm6467-emac", "ti,am3517-emac" or
8 "ti,dm816-emac"
14 - interrupts: interrupt mapping for the davinci emac interrupts sources:
30 eth0: emac@1e20000 {
31 compatible = "ti,davinci-dm6467-emac";
Didt,3243x-emac.yaml4 $id: http://devicetree.org/schemas/net/idt,3243x-emac.yaml#
19 const: idt,3243x-emac
26 - const: emac
60 compatible = "idt,3243x-emac";
65 reg-names = "emac", "dma_rx", "dma_tx";
Dqcom-emac.txt11 - compatible : Should be "qcom,fsm9900-emac".
20 - compatible : Should be "qcom,fsm9900-emac-sgmii" or "qcom,qdf2432-emac-sgmii".
36 compatible = "qcom,fsm9900-emac";
61 compatible = "qcom,fsm9900-emac-sgmii";
85 compatible = "qcom,fsm9900-emac";
107 compatible = "qcom,qdf2432-emac-sgmii";
Drockchip,emac.yaml4 $id: http://devicetree.org/schemas/net/rockchip,emac.yaml#
15 - rockchip,rk3036-emac
16 - rockchip,rk3066-emac
17 - rockchip,rk3188-emac
69 const: rockchip,rk3036-emac
95 compatible = "rockchip,rk3188-emac";
Dactions,owl-emac.yaml4 $id: http://devicetree.org/schemas/net/actions,owl-emac.yaml#
24 - const: actions,owl-emac
27 - actions,s500-emac
28 - const: actions,owl-emac
77 compatible = "actions,s500-emac", "actions,owl-emac";
Dallwinner,sun4i-a10-emac.yaml4 $id: http://devicetree.org/schemas/net/allwinner,sun4i-a10-emac.yaml#
18 const: allwinner,sun4i-a10-emac
49 emac: ethernet@1c0b000 {
50 compatible = "allwinner,sun4i-a10-emac";
Dsocfpga-dwmac.txt18 bit for each emac to enable/disable signals from the FPGA fabric to the
24 altr,emac-splitter: Should be the phandle to the emac splitter soft IP node if
25 DWMAC controller is connected emac splitter.
Dsunplus,sp7021-emac.yaml5 $id: http://devicetree.org/schemas/net/sunplus,sp7021-emac.yaml#
19 const: sunplus,sp7021-emac
100 compatible = "sunplus,sp7021-emac";
/linux-6.6.21/drivers/net/ethernet/arc/
Demac_rockchip.c28 struct arc_emac_priv emac; member
38 struct rockchip_priv_data *emac = priv; in emac_rockchip_set_mac_speed() local
39 u32 speed_offset = emac->soc_data->grf_speed_offset; in emac_rockchip_set_mac_speed()
55 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed()
113 priv->emac.drv_name = DRV_NAME; in emac_rockchip_probe()
114 priv->emac.set_mac_speed = emac_rockchip_set_mac_speed; in emac_rockchip_probe()
139 priv->emac.clk = devm_clk_get(dev, "hclk"); in emac_rockchip_probe()
140 if (IS_ERR(priv->emac.clk)) { in emac_rockchip_probe()
142 PTR_ERR(priv->emac.clk)); in emac_rockchip_probe()
143 err = PTR_ERR(priv->emac.clk); in emac_rockchip_probe()
/linux-6.6.21/arch/powerpc/boot/
Dtreeboot-akebono.c72 void *emac; in ibm_akebono_fixups() local
85 emac = finddevice("/plb/opb/ethernet"); in ibm_akebono_fixups()
86 if (emac > 0) { in ibm_akebono_fixups()
88 setprop(emac, "local-mac-address", in ibm_akebono_fixups()
/linux-6.6.21/arch/powerpc/boot/dts/
Dsam440ep.dts212 ZMII0: emac-zmii@ef600d00 {
220 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
241 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
Dyosemite.dts246 ZMII0: emac-zmii@ef600d00 {
253 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
273 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
Dbamboo.dts203 ZMII0: emac-zmii@ef600d00 {
210 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
230 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
Dtaishan.dts264 ZMII0: emac-zmii@40000780 {
269 RGMII0: emac-rgmii@40000790 {
274 TAH0: emac-tah@40000b50 {
279 TAH1: emac-tah@40000d50 {
287 compatible = "ibm,emac-440gx", "ibm,emac4";
307 compatible = "ibm,emac-440gx", "ibm,emac4";
327 compatible = "ibm,emac-440gx", "ibm,emac4";
351 compatible = "ibm,emac-440gx", "ibm,emac4";
Deiger.dts278 RGMII0: emac-rgmii@ef600900 {
284 RGMII1: emac-rgmii@ef600920 {
290 TAH0: emac-tah@ef600e50 {
295 TAH1: emac-tah@ef600f50 {
302 compatible = "ibm,emac-460sx", "ibm,emac4";
332 compatible = "ibm,emac-460sx", "ibm,emac4";
363 compatible = "ibm,emac-460sx", "ibm,emac4";
393 compatible = "ibm,emac-460sx", "ibm,emac4";
/linux-6.6.21/arch/arm64/boot/dts/allwinner/
Dsun50i-h6-orangepi-one-plus.dts12 ethernet0 = &emac;
27 &emac {

12345678