Home
last modified time | relevance | path

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

12345678

/linux/drivers/net/ethernet/ti/icssg/
A Dicssg_prueth.c515 icssg_vtbl_modify(emac, emac->port_vlan, BIT(emac->port_id), in icssg_prueth_hsr_add_mcast()
654 free_irq(emac->tx_ts_irq, emac); in emac_ndo_open()
658 free_irq(emac->rx_chns.irq[rx_flow], emac); in emac_ndo_open()
699 atomic_set(&emac->tdown_cnt, emac->tx_ch_num); in emac_ndo_stop()
737 free_irq(emac->tx_ts_irq, emac); in emac_ndo_stop()
739 free_irq(emac->rx_chns.irq[rx_flow], emac); in emac_ndo_stop()
794 queue_work(emac->cmd_wq, &emac->rx_mode_work); in emac_ndo_set_rx_mode()
966 prueth->emac[mac] = emac; in prueth_netdev_init()
1004 struct prueth_emac *emac = prueth->emac[i]; in prueth_offload_fwd_mark_update() local
1006 if (!emac || !emac->ndev) in prueth_offload_fwd_mark_update()
[all …]
A Dicssg_prueth_sr1.c98 tx_chn = &emac->tx_chns[emac->tx_ch_num - 1]; in emac_send_command_sr1()
603 emac); in emac_ndo_open()
606 emac); in emac_ndo_open()
608 free_irq(emac->rx_chns.irq[rx_flow], emac); in emac_ndo_open()
610 prueth_ndev_del_tx_napi(emac, emac->tx_ch_num); in emac_ndo_open()
612 prueth_cleanup_rx_chns(emac, &emac->rx_mgm_chn, in emac_ndo_open()
649 atomic_set(&emac->tdown_cnt, emac->tx_ch_num); in emac_ndo_stop()
662 prueth_reset_tx_chan(emac, emac->tx_ch_num, true); in emac_ndo_stop()
685 free_irq(emac->rx_chns.irq[rx_flow], emac); in emac_ndo_stop()
686 prueth_ndev_del_tx_napi(emac, emac->tx_ch_num); in emac_ndo_stop()
[all …]
A Dicssg_ethtool.c26 return emac->msg_enable; in emac_get_msglevel()
33 emac->msg_enable = value; in emac_set_msglevel()
74 if (emac->prueth->pa_stats) in emac_get_sset_count()
94 if (emac->prueth->pa_stats) in emac_get_strings()
115 if (emac->prueth->pa_stats) in emac_get_ethtool_stats()
151 if (emac->is_sr1) in emac_set_channels()
152 emac->tx_ch_num++; in emac_set_channels()
167 if (emac->is_sr1) in emac_get_channels()
173 if (emac->is_sr1) in emac_get_channels()
218 tx_chn = &emac->tx_chns[0]; in emac_get_coalesce()
[all …]
A Dicssg_switchdev.c22 struct prueth_emac *emac; member
65 emac_state, emac->port_id); in prueth_switchdev_attr_br_flags_set()
129 struct prueth_emac *emac = switchdev_work->emac; in prueth_switchdev_event_work() local
131 int port_id = emac->port_id; in prueth_switchdev_event_work()
174 dev_put(emac->ndev); in prueth_switchdev_event_work()
201 switchdev_work->emac = emac; in prueth_switchdev_event()
241 port_mask = BIT(emac->port_id); in prueth_switchdev_vlan_add()
254 icssg_set_pvid(emac->prueth, vid, emac->port_id); in prueth_switchdev_vlan_add()
274 icssg_fdb_add_del(emac, emac->mac_addr, vid, in prueth_switchdev_vlan_del()
278 icssg_set_pvid(emac->prueth, 0, emac->port_id); in prueth_switchdev_vlan_del()
[all …]
A Dicssg_common.c161 if (emac->is_sr1 && *(swdata) == emac->cmd_data) { in emac_tx_complete_packets()
210 struct prueth_emac *emac = tx_chn->emac; in emac_napi_tx_poll() local
307 tx_chn->emac = emac; in prueth_init_tx_chns()
524 if (emac->is_sr1) { in emac_rx_timestamp()
567 if (emac->rx_ts_enabled) in emac_rx_packet()
600 ret = prueth_dma_rx_push(emac, new_skb, &emac->rx_chns); in emac_rx_packet()
863 switch (emac->port_id) { in prueth_emac_stop()
875 emac->fw_running = 0; in prueth_emac_stop()
876 if (!emac->is_sr1) in prueth_emac_stop()
1156 emac = prueth->emac[mac]; in prueth_netdev_exit()
[all …]
A Dicssg_config.c229 switch (emac->speed) { in icssg_config_ipg()
238 if (emac->is_sr1) in icssg_config_ipg()
466 emac->speed = SPEED_1000; in icssg_config()
467 emac->duplex = DUPLEX_FULL; in icssg_config()
469 emac->speed = SPEED_100; in icssg_config()
470 emac->duplex = DUPLEX_FULL; in icssg_config()
479 icssg_config_ipg(emac); in icssg_config()
508 emac_r30_cmd_init(emac); in icssg_config()
555 mutex_lock(&emac->cmd_lock); in icssg_set_port_state()
577 if (!emac->half_duplex) in icssg_config_half_duplex()
[all …]
A Dicssg_stats.c20 void emac_update_hardware_stats(struct prueth_emac *emac) in emac_update_hardware_stats() argument
22 struct prueth *prueth = emac->prueth; in emac_update_hardware_stats()
23 int slice = prueth_emac_slice(emac); in emac_update_hardware_stats()
40 emac->stats[i] += val; in emac_update_hardware_stats()
42 emac->stats[i] -= tx_pkt_cnt * 8; in emac_update_hardware_stats()
51 emac->pa_stats[i] += val; in emac_update_hardware_stats()
58 struct prueth_emac *emac = container_of(work, struct prueth_emac, in icssg_stats_work_handler() local
60 emac_update_hardware_stats(emac); in icssg_stats_work_handler()
62 queue_delayed_work(system_long_wq, &emac->stats_work, in icssg_stats_work_handler()
76 if (emac->prueth->pa_stats) { in emac_get_stat_by_name()
[all …]
A Dicssg_prueth.h111 struct prueth_emac *emac; member
272 struct prueth_emac *emac[PRUETH_NUM_MACS]; member
320 switch (emac->port_id) { in prueth_emac_slice()
357 void icssg_config_ipg(struct prueth_emac *emac);
360 int icssg_set_port_state(struct prueth_emac *emac,
378 u16 icssg_get_pvid(struct prueth_emac *emac);
398 int prueth_init_tx_chns(struct prueth_emac *emac);
399 int prueth_init_rx_chns(struct prueth_emac *emac,
403 int prueth_dma_rx_push(struct prueth_emac *emac,
406 void emac_rx_timestamp(struct prueth_emac *emac,
[all …]
A Dicssg_mii_cfg.c45 void icssg_update_rgmii_cfg(struct regmap *miig_rt, struct prueth_emac *emac) in icssg_update_rgmii_cfg() argument
48 int slice = prueth_emac_slice(emac); in icssg_update_rgmii_cfg()
53 if (emac->speed == SPEED_1000) in icssg_update_rgmii_cfg()
59 if (emac->speed == SPEED_10 && phy_interface_mode_is_rgmii(emac->phy_if)) in icssg_update_rgmii_cfg()
65 if (emac->duplex == DUPLEX_FULL) in icssg_update_rgmii_cfg()
/linux/drivers/net/ethernet/qualcomm/emac/
A 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/net/ethtool/
A Dstats.c475 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()
495 memset(&emac, 0xff, sizeof(emac)); in ethtool_aggregate_phy_stats()
500 ops->get_eth_phy_stats(dev, &emac); in ethtool_aggregate_phy_stats()
515 memset(&emac, 0xff, sizeof(emac)); in ethtool_aggregate_ctrl_stats()
520 ops->get_eth_ctrl_stats(dev, &emac); in ethtool_aggregate_ctrl_stats()
535 memset(&emac, 0xff, sizeof(emac)); in ethtool_aggregate_pause_stats()
540 ops->get_pause_stats(dev, &emac); in ethtool_aggregate_pause_stats()
554 struct ethtool_rmon_stats pmac, emac; in ethtool_aggregate_rmon_stats() local
[all …]
/linux/Documentation/devicetree/bindings/net/
A Dallwinner,sun8i-a83t-emac.yaml16 - 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
72 - allwinner,sun8i-a83t-emac
73 - allwinner,sun8i-h3-emac
74 - allwinner,sun8i-v3s-emac
75 - allwinner,sun50i-a64-emac
[all …]
A 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";
A 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";
A 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";
A 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";
A 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";
A 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";
A Dloongson,ls1c-emac.yaml4 $id: http://devicetree.org/schemas/net/loongson,ls1c-emac.yaml#
29 - loongson,ls1c-emac
37 - loongson,ls1c-emac
87 emac: ethernet@1fe10000 {
88 compatible = "loongson,ls1c-emac", "snps,dwmac-3.50a";
A 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.
/linux/drivers/net/ethernet/arc/
A 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/arch/powerpc/boot/
A 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/arch/powerpc/boot/dts/
A 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";
A 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";
A 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";

Completed in 52 milliseconds

12345678