Home
last modified time | relevance | path

Searched +full:eth +full:- +full:mac (Results 1 – 25 of 266) sorted by relevance

1234567891011

/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2009-2016 John Crispin <blogic@openwrt.org>
5 * Copyright (C) 2009-2016 Felix Fietkau <nbd@openwrt.org>
6 * Copyright (C) 2013-2016 Michael Lee <igvtee@gmail.com>
24 #include <linux/pcs/pcs-mtk-lynxi.h>
36 static int mtk_msg_level = -
290 mtk_w32(struct mtk_eth * eth,u32 val,unsigned reg) mtk_w32() argument
295 mtk_r32(struct mtk_eth * eth,unsigned reg) mtk_r32() argument
300 mtk_m32(struct mtk_eth * eth,u32 mask,u32 set,unsigned int reg) mtk_m32() argument
311 mtk_mdio_busy_wait(struct mtk_eth * eth) mtk_mdio_busy_wait() argument
327 _mtk_mdio_write_c22(struct mtk_eth * eth,u32 phy_addr,u32 phy_reg,u32 write_data) _mtk_mdio_write_c22() argument
351 _mtk_mdio_write_c45(struct mtk_eth * eth,u32 phy_addr,u32 devad,u32 phy_reg,u32 write_data) _mtk_mdio_write_c45() argument
387 _mtk_mdio_read_c22(struct mtk_eth * eth,u32 phy_addr,u32 phy_reg) _mtk_mdio_read_c22() argument
409 _mtk_mdio_read_c45(struct mtk_eth * eth,u32 phy_addr,u32 devad,u32 phy_reg) _mtk_mdio_read_c45() argument
447 struct mtk_eth *eth = bus->priv; mtk_mdio_write_c22() local
455 struct mtk_eth *eth = bus->priv; mtk_mdio_write_c45() local
462 struct mtk_eth *eth = bus->priv; mtk_mdio_read_c22() local
470 struct mtk_eth *eth = bus->priv; mtk_mdio_read_c45() local
475 mt7621_gmac0_rgmii_adjust(struct mtk_eth * eth,phy_interface_t interface) mt7621_gmac0_rgmii_adjust() argument
489 mtk_gmac0_rgmii_adjust(struct mtk_eth * eth,phy_interface_t interface) mtk_gmac0_rgmii_adjust() argument
505 mtk_setup_bridge_switch(struct mtk_eth * eth) mtk_setup_bridge_switch() argument
521 struct mtk_mac *mac = container_of(config, struct mtk_mac, mtk_mac_select_pcs() local
523 struct mtk_eth *eth = mac->hw; mtk_mac_select_pcs() local
540 struct mtk_mac *mac = container_of(config, struct mtk_mac, mtk_mac_prepare() local
542 struct mtk_eth *eth = mac->hw; mtk_mac_prepare() local
560 struct mtk_mac *mac = container_of(config, struct mtk_mac, mtk_mac_config() local
562 struct mtk_eth *eth = mac->hw; mtk_mac_config() local
696 struct mtk_mac *mac = container_of(config, struct mtk_mac, mtk_mac_finish() local
698 struct mtk_eth *eth = mac->hw; mtk_mac_finish() local
723 struct mtk_mac *mac = container_of(config, struct mtk_mac, mtk_mac_link_down() local
740 mtk_set_queue_speed(struct mtk_eth * eth,unsigned int idx,int speed) mtk_set_queue_speed() argument
809 mtk_gdm_mac_link_up(struct mtk_mac * mac,struct phy_device * phy,unsigned int mode,phy_interface_t interface,int speed,int duplex,bool tx_pause,bool rx_pause) mtk_gdm_mac_link_up() argument
848 mtk_xgdm_mac_link_up(struct mtk_mac * mac,struct phy_device * phy,unsigned int mode,phy_interface_t interface,int speed,int duplex,bool tx_pause,bool rx_pause) mtk_xgdm_mac_link_up() argument
887 struct mtk_mac *mac = container_of(config, struct mtk_mac, mtk_mac_link_up() local
900 struct mtk_mac *mac = container_of(config, struct mtk_mac, mtk_mac_disable_tx_lpi() local
902 struct mtk_eth *eth = mac->hw; mtk_mac_disable_tx_lpi() local
910 struct mtk_mac *mac = container_of(config, struct mtk_mac, mtk_mac_enable_tx_lpi() local
912 struct mtk_eth *eth = mac->hw; mtk_mac_enable_tx_lpi() local
982 mtk_mdio_config(struct mtk_eth * eth) mtk_mdio_config() argument
998 mtk_mdio_init(struct mtk_eth * eth) mtk_mdio_init() argument
1045 mtk_mdio_cleanup(struct mtk_eth * eth) mtk_mdio_cleanup() argument
1053 mtk_tx_irq_disable(struct mtk_eth * eth,u32 mask) mtk_tx_irq_disable() argument
1064 mtk_tx_irq_enable(struct mtk_eth * eth,u32 mask) mtk_tx_irq_enable() argument
1075 mtk_rx_irq_disable(struct mtk_eth * eth,u32 mask) mtk_rx_irq_disable() argument
1086 mtk_rx_irq_enable(struct mtk_eth * eth,u32 mask) mtk_rx_irq_enable() argument
1100 struct mtk_mac *mac = netdev_priv(dev); mtk_set_mac_address() local
1101 struct mtk_eth *eth = mac->hw; mtk_set_mac_address() local
1129 mtk_stats_update_mac(struct mtk_mac * mac) mtk_stats_update_mac() argument
1132 struct mtk_eth *eth = mac->hw; mtk_stats_update_mac() local
1197 mtk_stats_update(struct mtk_eth * eth) mtk_stats_update() argument
1214 struct mtk_mac *mac = netdev_priv(dev); mtk_get_stats64() local
1265 mtk_rx_get_desc(struct mtk_eth * eth,struct mtk_rx_dma_v2 * rxd,struct mtk_rx_dma_v2 * dma_rxd) mtk_rx_get_desc() argument
1294 mtk_dma_ring_alloc(struct mtk_eth * eth,size_t size,dma_addr_t * dma_handle,bool use_sram) mtk_dma_ring_alloc() argument
1313 mtk_dma_ring_free(struct mtk_eth * eth,size_t size,void * dma_ring,dma_addr_t dma_handle,bool in_sram) mtk_dma_ring_free() argument
1323 mtk_init_fq_dma(struct mtk_eth * eth) mtk_init_fq_dma() argument
1408 mtk_tx_unmap(struct mtk_eth * eth,struct mtk_tx_buf * tx_buf,struct xdp_frame_bulk * bq,bool napi) mtk_tx_unmap() argument
1462 setup_tx_buf(struct mtk_eth * eth,struct mtk_tx_buf * tx_buf,struct mtk_tx_dma * txd,dma_addr_t mapped_addr,size_t size,int idx) setup_tx_buf() argument
1488 struct mtk_mac *mac = netdev_priv(dev); mtk_tx_set_dma_desc_v1() local
1489 struct mtk_eth *eth = mac->hw; mtk_tx_set_dma_desc_v1() local
1518 struct mtk_mac *mac = netdev_priv(dev); mtk_tx_set_dma_desc_v2() local
1520 struct mtk_eth *eth = mac->hw; mtk_tx_set_dma_desc_v2() local
1574 struct mtk_mac *mac = netdev_priv(dev); mtk_tx_set_dma_desc() local
1575 struct mtk_eth *eth = mac->hw; mtk_tx_set_dma_desc() local
1597 struct mtk_mac *mac = netdev_priv(dev); mtk_tx_map() local
1598 struct mtk_eth *eth = mac->hw; mtk_tx_map() local
1735 mtk_cal_txd_req(struct mtk_eth * eth,struct sk_buff * skb) mtk_cal_txd_req() argument
1753 mtk_queue_stopped(struct mtk_eth * eth) mtk_queue_stopped() argument
1767 mtk_wake_queue(struct mtk_eth * eth) mtk_wake_queue() argument
1780 struct mtk_mac *mac = netdev_priv(dev); mtk_start_xmit() local
1781 struct mtk_eth *eth = mac->hw; mtk_start_xmit() local
1845 mtk_get_rx_ring(struct mtk_eth * eth) mtk_get_rx_ring() argument
1869 mtk_update_rx_cpu_idx(struct mtk_eth * eth) mtk_update_rx_cpu_idx() argument
1888 mtk_page_pool_enabled(struct mtk_eth * eth) mtk_page_pool_enabled() argument
1893 mtk_create_page_pool(struct mtk_eth * eth,struct xdp_rxq_info * xdp_q,int id,int size) mtk_create_page_pool() argument
1956 mtk_xdp_frame_map(struct mtk_eth * eth,struct net_device * dev,struct mtk_tx_dma_desc_info * txd_info,struct mtk_tx_dma * txd,struct mtk_tx_buf * tx_buf,void * data,u16 headroom,int index,bool dma_map) mtk_xdp_frame_map() argument
1962 struct mtk_mac *mac = netdev_priv(dev); mtk_xdp_frame_map() local
1993 mtk_xdp_submit_frame(struct mtk_eth * eth,struct xdp_frame * xdpf,struct net_device * dev,bool dma_map) mtk_xdp_submit_frame() argument
1999 struct mtk_mac *mac = netdev_priv(dev); mtk_xdp_submit_frame() local
2116 struct mtk_mac *mac = netdev_priv(dev); mtk_xdp_xmit() local
2118 struct mtk_eth *eth = mac->hw; mtk_xdp_xmit() local
2138 mtk_xdp_run(struct mtk_eth * eth,struct mtk_rx_ring * ring,struct xdp_buff * xdp,struct net_device * dev) mtk_xdp_run() argument
2141 struct mtk_mac *mac = netdev_priv(dev); mtk_xdp_run() local
2202 mtk_poll_rx(struct napi_struct * napi,int budget,struct mtk_eth * eth) mtk_poll_rx() argument
2220 int mac = 0; mtk_poll_rx() local
2440 mtk_poll_tx_done(struct mtk_eth * eth,struct mtk_poll_state * state,u8 mac,struct sk_buff * skb) mtk_poll_tx_done() argument
2470 mtk_poll_tx_qdma(struct mtk_eth * eth,int budget,struct mtk_poll_state * state) mtk_poll_tx_qdma() argument
2520 mtk_poll_tx_pdma(struct mtk_eth * eth,int budget,struct mtk_poll_state * state) mtk_poll_tx_pdma() argument
2558 mtk_poll_tx(struct mtk_eth * eth,int budget) mtk_poll_tx() argument
2583 mtk_handle_status_irq(struct mtk_eth * eth) mtk_handle_status_irq() argument
2596 struct mtk_eth *eth = container_of(napi, struct mtk_eth, tx_napi); mtk_napi_tx() local
2626 struct mtk_eth *eth = container_of(napi, struct mtk_eth, rx_napi); mtk_napi_rx() local
2659 mtk_tx_alloc(struct mtk_eth * eth) mtk_tx_alloc() argument
2764 mtk_tx_clean(struct mtk_eth * eth) mtk_tx_clean() argument
2791 mtk_rx_alloc(struct mtk_eth * eth,int ring_no,int rx_flag) mtk_rx_alloc() argument
2924 mtk_rx_clean(struct mtk_eth * eth,struct mtk_rx_ring * ring,bool in_sram) mtk_rx_clean() argument
2965 mtk_hwlro_rx_init(struct mtk_eth * eth) mtk_hwlro_rx_init() argument
3025 mtk_hwlro_rx_uninit(struct mtk_eth * eth) mtk_hwlro_rx_uninit() argument
3051 mtk_hwlro_val_ipaddr(struct mtk_eth * eth,int idx,__be32 ip) mtk_hwlro_val_ipaddr() argument
3066 mtk_hwlro_inval_ipaddr(struct mtk_eth * eth,int idx) mtk_hwlro_inval_ipaddr() argument
3078 mtk_hwlro_get_ip_cnt(struct mtk_mac * mac) mtk_hwlro_get_ip_cnt() argument
3096 struct mtk_mac *mac = netdev_priv(dev); mtk_hwlro_add_ipaddr() local
3097 struct mtk_eth *eth = mac->hw; mtk_hwlro_add_ipaddr() local
3120 struct mtk_mac *mac = netdev_priv(dev); mtk_hwlro_del_ipaddr() local
3121 struct mtk_eth *eth = mac->hw; mtk_hwlro_del_ipaddr() local
3139 struct mtk_mac *mac = netdev_priv(dev); mtk_hwlro_netdev_disable() local
3140 struct mtk_eth *eth = mac->hw; mtk_hwlro_netdev_disable() local
3156 struct mtk_mac *mac = netdev_priv(dev); mtk_hwlro_get_fdir_entry() local
3184 struct mtk_mac *mac = netdev_priv(dev); mtk_hwlro_get_fdir_all() local
3207 struct mtk_mac *mac = netdev_priv(dev); mtk_fix_features() local
3231 mtk_dma_busy_wait(struct mtk_eth * eth) mtk_dma_busy_wait() argument
3251 mtk_dma_init(struct mtk_eth * eth) mtk_dma_init() argument
3305 mtk_dma_free(struct mtk_eth * eth) mtk_dma_free() argument
3345 mtk_hw_reset_check(struct mtk_eth * eth) mtk_hw_reset_check() argument
3356 struct mtk_mac *mac = netdev_priv(dev); mtk_tx_timeout() local
3357 struct mtk_eth *eth = mac->hw; mtk_tx_timeout() local
3371 mtk_get_irqs(struct platform_device * pdev,struct mtk_eth * eth) mtk_get_irqs() argument
3420 struct mtk_eth *eth = _eth; mtk_handle_irq_rx() local
3433 struct mtk_eth *eth = _eth; mtk_handle_irq_tx() local
3446 struct mtk_eth *eth = _eth; mtk_handle_irq() local
3466 struct mtk_mac *mac = netdev_priv(dev); mtk_poll_controller() local
3467 struct mtk_eth *eth = mac->hw; mtk_poll_controller() local
3477 mtk_start_dma(struct mtk_eth * eth) mtk_start_dma() argument
3516 mtk_gdm_config(struct mtk_eth * eth,u32 id,u32 config) mtk_gdm_config() argument
3552 struct mtk_mac *mac = container_of(n, struct mtk_mac, device_notifier); mtk_device_event() local
3553 struct mtk_eth *eth = mac->hw; mtk_device_event() local
3592 mtk_max_gmac_mtu(struct mtk_eth * eth) mtk_max_gmac_mtu() argument
3605 struct mtk_mac *mac = netdev_priv(dev); mtk_open() local
3606 struct mtk_eth *eth = mac->hw; mtk_open() local
3704 mtk_stop_dma(struct mtk_eth * eth,u32 glo_cfg) mtk_stop_dma() argument
3729 struct mtk_mac *mac = netdev_priv(dev); mtk_stop() local
3730 struct mtk_eth *eth = mac->hw; mtk_stop() local
3769 struct mtk_mac *mac = netdev_priv(dev); mtk_xdp_setup() local
3770 struct mtk_eth *eth = mac->hw; mtk_xdp_setup() local
3817 ethsys_reset(struct mtk_eth * eth,u32 reset_bits) ethsys_reset() argument
3830 mtk_clk_disable(struct mtk_eth * eth) mtk_clk_disable() argument
3838 mtk_clk_enable(struct mtk_eth * eth) mtk_clk_enable() argument
3860 struct mtk_eth *eth = container_of(dim, struct mtk_eth, rx_dim); mtk_dim_rx() local
3891 struct mtk_eth *eth = container_of(dim, struct mtk_eth, tx_dim); mtk_dim_tx() local
3919 mtk_set_mcr_max_rx(struct mtk_mac * mac,u32 val) mtk_set_mcr_max_rx() argument
3921 struct mtk_eth *eth = mac->hw; mtk_set_mcr_max_rx() local
3943 mtk_hw_reset(struct mtk_eth * eth) mtk_hw_reset() argument
3979 mtk_hw_reset_read(struct mtk_eth * eth) mtk_hw_reset_read() argument
3987 mtk_hw_warm_reset(struct mtk_eth * eth) mtk_hw_warm_reset() argument
4034 mtk_hw_check_dma_hang(struct mtk_eth * eth) mtk_hw_check_dma_hang() argument
4115 struct mtk_eth *eth = container_of(del_work, struct mtk_eth, mtk_hw_reset_monitor_work() local
4130 mtk_hw_init(struct mtk_eth * eth,bool reset) mtk_hw_init() argument
4324 mtk_hw_deinit(struct mtk_eth * eth) mtk_hw_deinit() argument
4339 struct mtk_mac *mac = netdev_priv(dev); mtk_uninit() local
4340 struct mtk_eth *eth = mac->hw; mtk_uninit() local
4350 struct mtk_mac *mac = netdev_priv(dev); mtk_change_mtu() local
4351 struct mtk_eth *eth = mac->hw; mtk_change_mtu() local
4372 struct mtk_mac *mac = netdev_priv(dev); mtk_do_ioctl() local
4386 mtk_prepare_for_reset(struct mtk_eth * eth) mtk_prepare_for_reset() argument
4419 struct mtk_eth *eth = container_of(work, struct mtk_eth, pending_work); mtk_pending_work() local
4482 mtk_free_dev(struct mtk_eth * eth) mtk_free_dev() argument
4501 mtk_unreg_dev(struct mtk_eth * eth) mtk_unreg_dev() argument
4506 struct mtk_mac *mac; mtk_unreg_dev() local
4518 mtk_sgmii_destroy(struct mtk_eth * eth) mtk_sgmii_destroy() argument
4526 mtk_cleanup(struct mtk_eth * eth) mtk_cleanup() argument
4540 struct mtk_mac *mac = netdev_priv(ndev); mtk_get_link_ksettings() local
4551 struct mtk_mac *mac = netdev_priv(ndev); mtk_set_link_ksettings() local
4562 struct mtk_mac *mac = netdev_priv(dev); mtk_get_drvinfo() local
4571 struct mtk_mac *mac = netdev_priv(dev); mtk_get_msglevel() local
4578 struct mtk_mac *mac = netdev_priv(dev); mtk_set_msglevel() local
4585 struct mtk_mac *mac = netdev_priv(dev); mtk_nway_reset() local
4602 struct mtk_mac *mac = netdev_priv(dev); mtk_get_strings() local
4620 struct mtk_mac *mac = netdev_priv(dev); mtk_get_sset_count() local
4631 mtk_ethtool_pp_stats(struct mtk_eth * eth,u64 * data) mtk_ethtool_pp_stats() argument
4650 struct mtk_mac *mac = netdev_priv(dev); mtk_get_ethtool_stats() local
4695 struct mtk_mac *mac = netdev_priv(dev); mtk_get_rxnfc() local
4739 struct mtk_mac *mac = netdev_priv(dev); mtk_get_pauseparam() local
4746 struct mtk_mac *mac = netdev_priv(dev); mtk_set_pauseparam() local
4753 struct mtk_mac *mac = netdev_priv(dev); mtk_get_eee() local
4760 struct mtk_mac *mac = netdev_priv(dev); mtk_set_eee() local
4768 struct mtk_mac *mac = netdev_priv(dev); mtk_select_queue() local
4824 mtk_add_mac(struct mtk_eth * eth,struct device_node * np) mtk_add_mac() argument
4830 struct mtk_mac *mac; mtk_add_mac() local
5031 mtk_eth_set_dma_device(struct mtk_eth * eth,struct device * dma_dev) mtk_eth_set_dma_device() argument
5064 mtk_sgmii_init(struct mtk_eth * eth) mtk_sgmii_init() argument
5091 mtk_setup_legacy_sram(struct mtk_eth * eth,struct resource * res) mtk_setup_legacy_sram() argument
5116 struct mtk_eth *eth; mtk_probe() local
5391 struct mtk_eth *eth = platform_get_drvdata(pdev); mtk_remove() local
5392 struct mtk_mac *mac; mtk_remove() local
[all...]
H A Dmtk_ppe_offload.c1 // SPDX-License-Identifier: GPL-2.0-only
17 struct ethhdr eth; member
57 mtk_flow_set_ipv4_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv4_addr() argument
60 return mtk_foe_entry_set_ipv4_tuple(eth, foe, egress, in mtk_flow_set_ipv4_addr()
61 data->v4.src_addr, data->src_port, in mtk_flow_set_ipv4_addr()
62 data->v4.dst_addr, data->dst_port); in mtk_flow_set_ipv4_addr()
66 mtk_flow_set_ipv6_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv6_addr() argument
69 return mtk_foe_entry_set_ipv6_tuple(eth, foe, in mtk_flow_set_ipv6_addr()
70 data->v6.src_addr.s6_addr32, data->src_port, in mtk_flow_set_ipv6_addr()
71 data->v6.dst_addr.s6_addr32, data->dst_port); in mtk_flow_set_ipv6_addr()
[all …]
H A Dmtk_eth_soc.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (C) 2009-2016 John Crispin <blogic@openwrt.org>
5 * Copyright (C) 2009-2016 Felix Fietkau <nbd@openwrt.org>
6 * Copyright (C) 2013-2016 Michael Lee <igvtee@gmail.com>
12 #include <linux/dma-mapping.h>
57 #define NEXT_DESP_IDX(X, Y) (((X) + 1) & ((Y) - 1))
62 #define MTK_PP_MAX_BUF_SIZE (PAGE_SIZE - MTK_PP_PAD)
136 /* Unicast Filter MAC Address Register - Low */
140 /* Unicast Filter MAC Address Register - High */
167 #define PSE_IQ_REV(x) (0x140 + (((x) - 1) << 2))
[all …]
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_std_stats.sh2 # SPDX-License-Identifier: GPL-2.0
20 UINT32_MAX=$((2**32 - 1))
30 local -a counters=("$@")
39 read -r int grp cnt target exact_check xfail_message \
46 run_on "$iface" "$MZ" "$iface" -q -d 10usec -c "$num_tx" $pkt_format
49 run_on "$neigh" "$MZ" "$neigh" -q -d 10usec -c "$num_rx" $pkt_format
54 read -r int grp cnt target exact_check xfail_message \
59 ktap_test_skip "$TEST_NAME.$grp-$cnt"
63 delta=$((after[i] - before[i]))
65 if [ "$exact_check" -ne 0 ]; then
[all …]
/linux/net/ethernet/
H A Deth.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Ethernet-type device handling.
9 * Version: @(#)eth.c 1.0.7 05/25/93
14 * Florian La Roche, <rzsfl@rz.uni-sb.de>
29 * Alan Cox : MAC layer pointers/new format.
34 * Andrew Morton : 26Feb01: kill ether_setup() - use netdev_boot_setup().
46 #include <linux/nvmem-consumer.h>
67 * eth_header - create the Ethernet header
73 * @len: packet length (<= skb->len)
83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() local
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dqca,ar71xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: QCA AR71XX MAC
10 - $ref: ethernet-controller.yaml#
13 - Oleksij Rempel <o.rempel@pengutronix.de>
18 - items:
19 - enum:
20 - qca,ar7100-eth # Atheros AR7100
21 - qca,ar7240-eth # Atheros AR7240
[all …]
H A Dstm32-dwmac.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/net/stm32-dwmac.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Alexandre Torgue <alexandre.torgue@foss.st.com>
12 - Christophe Roullier <christophe.roullier@foss.st.com>
23 - st,stm32-dwmac
24 - st,stm32mp1-dwmac
25 - st,stm32mp13-dwmac
26 - st,stm32mp25-dwmac
[all …]
H A Dmarvell-orion-net.txt12 set of controller registers. Each port node describes port-specific properties.
16 only one port associated. Multiple ports are implemented as multiple single-port
23 - #address-cells: shall be 1.
24 - #size-cells: shall be 0.
25 - compatible: shall be one of "marvell,orion-eth", "marvell,kirkwood-eth".
26 - reg: address and length of the controller registers.
29 - clocks: phandle reference to the controller clock.
30 - marvell,tx-checksum-limit: max tx packet size for hardware checksum.
35 - compatible: shall be one of "marvell,orion-eth-port",
36 "marvell,kirkwood-eth-port".
[all …]
H A Dmediatek,star-emac.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/mediatek,star-emac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek STAR Ethernet MAC Controller
10 - Bartosz Golaszewski <bgolaszewski@baylibre.com>
13 This Ethernet MAC is used on the MT8* family of SoCs from MediaTek.
14 It's compliant with 802.3 standards and supports half- and full-duplex
15 modes with flow-control as well as CRC offloading and VLAN tags.
18 - $ref: ethernet-controller.yaml#
[all …]
/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
H A Dmac-phy-support.rst1 .. SPDX-License-Identifier: GPL-2.0
5 DPAA2 MAC / PHY support
11 --------
13 The DPAA2 MAC / PHY support consists of a set of APIs that help DPAA2 network
14 drivers (dpaa2-eth, dpaa2-ethsw) interact with the PHY library.
17 ---------------------------
19 Among other DPAA2 objects, the fsl-mc bus exports DPNI objects (abstracting a
20 network interface) and DPMAC objects (abstracting a MAC). The dpaa2-eth driver
26 directly by the dpaa2-eth driver or by phylink.
28 .. code-block:: none
[all …]
/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond_options.sh2 # SPDX-License-Identifier: GPL-2.0
24 ip -n ${s_ns} link set eth0 type bond_slave prio 10
25 [[ $? -ne 0 ]] && skip=0
28 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10"
29 [[ $? -ne 0 ]] && skip=0
39 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6}
40 [[ $? -ne 0 ]] && skip=0
43 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}"
44 [[ $? -ne 0 ]] && skip=0
46 ip -n ${s_ns} link del bond1
[all …]
H A Dbond_topo_2d1c.sh2 # SPDX-License-Identifier: GPL-2.0
6 # +-------------------------+
10 # | +---+---+ |
12 # +-------------------------+
14 # +-------------------------+
16 # | +---+-------+---+ | Gateway
18 # | +-------+-------+ | 2001:db8::254/24
20 # +-------------------------+
22 # +-------------------------+
26 # +-------------------------+
[all …]
H A Dbond_topo_3d1c.sh2 # SPDX-License-Identifier: GPL-2.0
6 # +-------------------------------------+
10 # | +-------------------+ | 2001:db8::1/24
12 # +-------------------------------------+
14 # +-------------------------------------+
16 # | +---+---------+---------+---+ | Gateway
18 # | +-------------+-------------+ | 2001:db8::254/24
20 # +-------------------------------------+
22 # +-------------------------------------+
26 # +-------------------------------------+
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_tc_tunnel.sh
/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_redirect_multi_kern.c1 // SPDX-License-Identifier: GPL-2.0
29 /* map to store egress interfaces mac addresses */
48 void *data_end = (void *)(long)ctx->data_end; in xdp_redirect_map_multi_prog()
49 void *data = (void *)(long)ctx->data; in xdp_redirect_map_multi_prog()
50 int if_index = ctx->ingress_ifindex; in xdp_redirect_map_multi_prog()
51 struct ethhdr *eth = data; in xdp_redirect_map_multi_prog()
57 nh_off = sizeof(*eth); in xdp_redirect_map_multi_prog()
61 h_proto = bpf_htons(eth in xdp_redirect_map_multi_prog()
43 struct ethhdr *eth = data; xdp_redirect_map_multi_prog() local
79 struct ethhdr *eth = data; xdp_devmap_prog() local
81 __be64 *mac; xdp_devmap_prog() local
[all...]
H A Dtest_xdp_vlan.c1 /* SPDX-License-Identifier: GPL-2.0
9 * # ethtool -K ixgbe2 rxvlan off
12 * # ethtool -k ixgbe2 | grep rx-vlan-offload
13 * rx-vlan-offload: off
30 * struct vlan_hdr - vla
57 parse_eth_frame(struct ethhdr * eth,void * data_end,struct parse_pkt * pkt) parse_eth_frame() argument
[all...]
/linux/samples/bpf/
H A Dxdp_router_ipv4.bpf.c31 __be64 mac; member
38 __be64 mac; member
76 void *data_end = (void *)(long)ctx->data_end; in xdp_router_ipv4_prog()
77 void *data = (void *)(long)ctx->data; in xdp_router_ipv4_prog()
78 struct ethhdr *eth = data; in xdp_router_ipv4_prog() local
79 u64 nh_off = sizeof(*eth); in xdp_router_ipv4_prog()
86 NO_TEAR_INC(rec->processed); in xdp_router_ipv4_prog()
91 h_proto = eth->h_proto; in xdp_router_ipv4_prog()
101 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_router_ipv4_prog()
107 NO_TEAR_INC(rec->xdp_pass); in xdp_router_ipv4_prog()
[all …]
/linux/arch/mips/cavium-octeon/
H A Docteon-platform.c6 * Copyright (C) 2004-2017 Cavium, Inc.
19 #include <asm/octeon/cvmx-helper-board.h>
25 #include <asm/octeon/cvmx-uctlx-defs.h>
79 if (dev->of_node) { in octeon2_usb_clocks_start()
83 uctl_node = of_get_parent(dev->of_node); in octeon2_usb_clocks_start()
89 "refclk-frequency", &clock_rate); in octeon2_usb_clocks_start()
91 dev_err(dev, "No UCTL \"refclk-frequency\"\n"); in octeon2_usb_clocks_start()
96 "refclk-type", &clock_type); in octeon2_usb_clocks_start()
204 * Step 4: Program the power-on reset field in the UCTL in octeon2_usb_clocks_start()
205 * clock-reset-control register. in octeon2_usb_clocks_start()
[all …]
/linux/drivers/net/ethernet/ezchip/
H A Dnps_enet.h1 /* SPDX-License-Identifier: GPL-2.0-only */
59 /* Gbps Eth MAC Configuration 0 register masks and shifts */
93 /* Gbps Eth MAC Configuration 1 register masks and shifts */
103 /* Gbps Eth MAC Configuration 2 register masks and shifts */
119 /* Gbps Eth MAC Configuration 3 register masks and shifts */
141 /* GE MAC, PCS reset control register masks and shifts */
154 * struct nps_enet_priv - Storage of ENET's private information.
155 * @regs_base: Base address of ENET memory-mapped control registers.
170 * nps_enet_reg_set - Sets ENET register with provided value.
178 iowrite32be(value, priv->regs_base + reg); in nps_enet_reg_set()
[all …]
/linux/arch/arm/boot/dts/mediatek/
H A Dmt7629-rfb.dts1 // SPDX-License-Identifier: GPL-2.0
7 /dts-v1/;
8 #include <dt-bindings/input/input.h>
13 compatible = "mediatek,mt7629-rfb", "mediatek,mt7629";
20 stdout-path = "serial0:115200n8";
23 gpio-keys {
24 compatible = "gpio-keys";
26 button-reset {
32 button-wps {
44 reg_3p3v: regulator-3p3v {
[all …]
/linux/drivers/media/dvb-core/
H A Ddvb_net.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * Copyright (C) 2003, 2004 gcs - Global Communication & Services GmbH.
21 * Feb 2004: hl/ws v1: Implementing draft-fair-ipdvb-ule-01.txt
23 * Dec 2004: hl/ws v2: Implementing draft-ietf-ipdvb-ule-03.txt:
29 * Filtering on dest MAC addresses, if present (D-Bit = 0)
30 * DVB_ULE_DEBUG compile-time option.
109 unsigned short ule_sndu_len; /* ULE SNDU length in bytes, w/o D-Bit. */
126 * stolen from eth.c out of the linux kernel, hacked for dvb-device
132 struct ethhdr *eth; in dvb_net_eth_type_trans() local
136 skb_pull(skb,dev->hard_header_len); in dvb_net_eth_type_trans()
[all …]
/linux/Documentation/networking/devlink/
H A Ddevlink-port.rst1 .. SPDX-License-Identifier: GPL-2.0
9 ``devlink-port`` is a port that exists on the device. It has a logically
19 .. list-table:: List of devlink port flavours
22 * - Flavour
23 - Description
24 * - ``DEVLINK_PORT_FLAVOUR_PHYSICAL``
25 - Any kind of physical port. This can be an eswitch physical port or any
27 * - ``DEVLINK_PORT_FLAVOUR_DSA``
28 - This indicates a DSA interconnect port.
29 * - ``DEVLINK_PORT_FLAVOUR_CPU``
[all …]
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt7986b-rfb.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 /dts-v1/;
12 chassis-type = "embedded";
13 compatible = "mediatek,mt7986b-rfb", "mediatek,mt7986b";
20 stdout-path = "serial0:115200n8";
33 &eth {
36 gmac0: mac@0 {
37 compatible = "mediatek,eth-mac";
39 phy-mode = "2500base-x";
41 fixed-link {
[all …]
/linux/drivers/net/ethernet/airoha/
H A Dairoha_eth.c1 // SPDX-License-Identifier: GPL-2.0-only
41 struct airoha_qdma *qdma = irq_bank->qdma; in airoha_qdma_set_irqmask()
42 int bank = irq_bank - &qdma->irq_banks[0]; in airoha_qdma_set_irqmask()
45 if (WARN_ON_ONCE(index >= ARRAY_SIZE(irq_bank->irqmask))) in airoha_qdma_set_irqmask()
48 spin_lock_irqsave(&irq_bank->irq_lock, flags); in airoha_qdma_set_irqmask()
50 irq_bank->irqmask[index] &= ~clear; in airoha_qdma_set_irqmask()
51 irq_bank->irqmask[index] |= set; in airoha_qdma_set_irqmask()
53 irq_bank->irqmask[index]); in airoha_qdma_set_irqmask()
59 spin_unlock_irqrestore(&irq_bank->irq_lock, flags); in airoha_qdma_set_irqmask()
77 struct airoha_eth *eth = dev->eth; in airoha_set_macaddr() local
[all …]
/linux/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
6 * Maintained at www.Open-FCoE.org
82 * fcoe_ctlr_set_state() - Set and do debug printing for the new FIP state.
88 if (state == fip->state) in fcoe_ctlr_set_state()
90 if (fip->lp) in fcoe_ctlr_set_state()
91 LIBFCOE_FIP_DBG(fip, "state %s -> %s\n", in fcoe_ctlr_set_state()
92 fcoe_ctlr_state(fip->state), fcoe_ctlr_state(state)); in fcoe_ctlr_set_state()
93 fip->state = state; in fcoe_ctlr_set_state()
97 * fcoe_ctlr_mtu_valid() - Check if a FCF's MTU is valid
[all …]

1234567891011