/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 282 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32() argument 284 __raw_writel(val, eth->base + reg); in mtk_w32() 287 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32() argument 289 return __raw_readl(eth->base + reg); in mtk_r32() 292 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned int reg) in mtk_m32() argument 296 val = mtk_r32(eth, reg); in mtk_m32() 299 mtk_w32(eth, val, reg); in mtk_m32() 303 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait() argument 308 if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS)) in mtk_mdio_busy_wait() 315 dev_err(eth->dev, "mdio: MDIO timeout\n"); in mtk_mdio_busy_wait() [all …]
|
H A D | mtk_eth_path.c | 18 int (*set_path)(struct mtk_eth *eth, u64 path); 43 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, u64 path) in set_mux_gdm1_to_gmac1_esw() argument 62 if (mtk_is_netsys_v3_or_greater(eth)) in set_mux_gdm1_to_gmac1_esw() 68 mtk_m32(eth, mask, set, reg); in set_mux_gdm1_to_gmac1_esw() 70 dev_dbg(eth->dev, "path %s in %s updated = %d\n", in set_mux_gdm1_to_gmac1_esw() 76 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, u64 path) in set_mux_gmac2_gmac0_to_gephy() argument 91 regmap_update_bits(eth->infra, INFRA_MISC2, GEPHY_MAC_SEL, val); in set_mux_gmac2_gmac0_to_gephy() 93 dev_dbg(eth->dev, "path %s in %s updated = %d\n", in set_mux_gmac2_gmac0_to_gephy() 99 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, u64 path) in set_mux_u3_gmac2_to_qphy() argument 106 if (MTK_HAS_CAPS(eth->soc->caps, MTK_U3_COPHY_V2)) { in set_mux_u3_gmac2_to_qphy() [all …]
|
H A D | mtk_ppe_offload.c | 17 struct ethhdr eth; member 55 mtk_flow_set_ipv4_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv4_addr() argument 58 return mtk_foe_entry_set_ipv4_tuple(eth, foe, egress, in mtk_flow_set_ipv4_addr() 64 mtk_flow_set_ipv6_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv6_addr() argument 67 return mtk_foe_entry_set_ipv6_tuple(eth, foe, in mtk_flow_set_ipv6_addr() 73 mtk_flow_offload_mangle_eth(const struct flow_action_entry *act, void *eth) in mtk_flow_offload_mangle_eth() argument 75 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth() 186 mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_output_device() argument 194 mtk_foe_entry_set_wdma(eth, foe, info.wdma_idx, info.queue, in mtk_flow_set_output_device() 196 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_flow_set_output_device() [all …]
|
H A D | mtk_ppe.c | 58 static u32 mtk_eth_timestamp(struct mtk_eth *eth) in mtk_eth_timestamp() argument 60 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth); in mtk_eth_timestamp() 109 if (mtk_is_netsys_v3_or_greater(ppe->eth)) { in mtk_mib_entry_read() 141 static u32 mtk_ppe_hash_entry(struct mtk_eth *eth, struct mtk_foe_entry *e) in mtk_ppe_hash_entry() argument 146 switch (mtk_get_ib1_pkt_type(eth, e->ib1)) { in mtk_ppe_hash_entry() 175 hash <<= (ffs(eth->soc->hash_offset) - 1); in mtk_ppe_hash_entry() 182 mtk_foe_entry_l2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_l2() argument 184 int type = mtk_get_ib1_pkt_type(eth, entry->ib1); in mtk_foe_entry_l2() 196 mtk_foe_entry_ib2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_ib2() argument 198 int type = mtk_get_ib1_pkt_type(eth, entry->ib1); in mtk_foe_entry_ib2() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ravb.c | 142 struct ravb_priv *eth = dev_get_priv(dev); in ravb_send() local 143 struct ravb_desc *desc = ð->tx_desc[eth->tx_desc_idx]; in ravb_send() 154 if (!(readl(eth->iobase + RAVB_REG_TCCR) & TCCR_TSRQ0)) in ravb_send() 155 setbits_le32(eth->iobase + RAVB_REG_TCCR, TCCR_TSRQ0); in ravb_send() 169 eth->tx_desc_idx = (eth->tx_desc_idx + 1) % (RAVB_NUM_TX_DESC - 1); in ravb_send() 175 struct ravb_priv *eth = dev_get_priv(dev); in ravb_recv() local 176 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_recv() 201 struct ravb_priv *eth = dev_get_priv(dev); in ravb_free_pkt() local 202 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 209 eth->rx_desc_idx = (eth->rx_desc_idx + 1) % RAVB_NUM_RX_DESC; in ravb_free_pkt() [all …]
|
H A D | sh_eth.c | 64 static int sh_eth_send_common(struct sh_eth_dev *eth, void *packet, int len) in sh_eth_send_common() argument 67 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_send_common() 121 static int sh_eth_recv_start(struct sh_eth_dev *eth) in sh_eth_recv_start() argument 123 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_recv_start() 137 static void sh_eth_recv_finish(struct sh_eth_dev *eth) in sh_eth_recv_finish() argument 139 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_recv_finish() 157 static int sh_eth_reset(struct sh_eth_dev *eth) in sh_eth_reset() argument 159 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_reset() 190 static int sh_eth_tx_desc_init(struct sh_eth_dev *eth) in sh_eth_tx_desc_init() argument 194 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_tx_desc_init() [all …]
|
H A D | bcm-sf2-eth.c | 17 #include "bcm-sf2-eth.h" 20 #include "bcm-sf2-eth-gmac.h" 34 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_init() local 35 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_init() 40 rc = eth->mac_init(dev); in bcm_sf2_eth_init() 50 eth->port_num = 0; in bcm_sf2_eth_init() 53 0, dev, eth->phy_interface); in bcm_sf2_eth_init() 55 eth->port[0] = phydev; in bcm_sf2_eth_init() 56 eth->port_num += 1; in bcm_sf2_eth_init() 61 for (i = 0; i < eth->port_num; i++) in bcm_sf2_eth_init() [all …]
|
H A D | fec_mxc.c | 88 static int fec_mdio_read(struct ethernet_regs *eth, uint8_t phyaddr, in fec_mdio_read() argument 100 writel(FEC_IEVENT_MII, ð->ievent); in fec_mdio_read() 105 phy | reg, ð->mii_data); in fec_mdio_read() 109 while (!(readl(ð->ievent) & FEC_IEVENT_MII)) { in fec_mdio_read() 117 writel(FEC_IEVENT_MII, ð->ievent); in fec_mdio_read() 120 val = (unsigned short)readl(ð->mii_data); in fec_mdio_read() 152 static void fec_mii_setspeed(struct ethernet_regs *eth) in fec_mii_setspeed() argument 186 writel(speed << 1 | hold << 8, ð->mii_speed); in fec_mii_setspeed() 187 debug("%s: mii_speed %08x\n", __func__, readl(ð->mii_speed)); in fec_mii_setspeed() 190 static int fec_mdio_write(struct ethernet_regs *eth, uint8_t phyaddr, in fec_mdio_write() argument [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | tc_l2_redirect_kern.c | 63 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_forward() local 69 if (data + sizeof(*eth) > data_end) in _l2_to_iptun_ingress_forward() 76 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward() 78 struct iphdr *iph = data + sizeof(*eth); in _l2_to_iptun_ingress_forward() 80 if (data + sizeof(*eth) + sizeof(*iph) > data_end) in _l2_to_iptun_ingress_forward() 89 } else if (eth->h_proto == htons(ETH_P_IPV6)) { in _l2_to_iptun_ingress_forward() 91 struct ipv6hdr *ip6h = data + sizeof(*eth); in _l2_to_iptun_ingress_forward() 93 if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) in _l2_to_iptun_ingress_forward() 114 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_redirect() local 120 if (data + sizeof(*eth) > data_end) in _l2_to_iptun_ingress_redirect() [all …]
|
/openbmc/u-boot/test/dm/ |
H A D | eth.c | 17 #include <asm/eth.h> 26 env_set("ethact", "eth@10002000"); in dm_test_eth() 28 ut_asserteq_str("eth@10002000", env_get("ethact")); in dm_test_eth() 30 env_set("ethact", "eth@10003000"); in dm_test_eth() 32 ut_asserteq_str("eth@10003000", env_get("ethact")); in dm_test_eth() 34 env_set("ethact", "eth@10004000"); in dm_test_eth() 36 ut_asserteq_str("eth@10004000", env_get("ethact")); in dm_test_eth() 47 ut_asserteq_str("eth@10002000", env_get("ethact")); in dm_test_eth_alias() 51 ut_asserteq_str("eth@10004000", env_get("ethact")); in dm_test_eth_alias() 56 ut_asserteq_str("eth@10002000", env_get("ethact")); in dm_test_eth_alias() [all …]
|
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ |
H A D | taprio.json | 15 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2… 17 "verifyCmd": "$TC qdisc show dev $ETH", 37 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2… 39 "verifyCmd": "$TC qdisc show dev $ETH", 59 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2… 61 "verifyCmd": "$TC qdisc show dev $ETH", 80 …"$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 queues … 82 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:", 84 "verifyCmd": "$TC qdisc show dev $ETH", 104 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2… [all …]
|
H A D | mq.json | 15 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq", 17 "verifyCmd": "$TC qdisc show dev $ETH", 37 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq", 39 "verifyCmd": "$TC qdisc show dev $ETH", 58 "$TC qdisc add dev $ETH root handle 1: mq" 60 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq", 62 "verifyCmd": "$TC qdisc show dev $ETH", 82 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: mq", 84 "verifyCmd": "$TC qdisc show dev $ETH", 103 "$TC qdisc add dev $ETH root handle 1: mq", [all …]
|
H A D | multiq.json | 15 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq", 17 "verifyCmd": "$TC qdisc show dev $ETH", 37 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq", 39 "verifyCmd": "$TC class show dev $ETH", 59 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: multiq", 61 "verifyCmd": "$TC qdisc show dev $ETH", 80 "$TC qdisc add dev $ETH root handle 1: multiq", 81 "$TC qdisc del dev $ETH root handle 1:" 83 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:", 85 "verifyCmd": "$TC qdisc show dev $ETH", [all …]
|
H A D | mqprio.json | 15 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues … 17 "verifyCmd": "$TC qdisc show dev $ETH", 37 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: mqprio", 39 "verifyCmd": "$TC qdisc show dev $ETH", 58 …"$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 … 59 "$TC qdisc del dev $ETH root handle 1:" 61 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:", 63 "verifyCmd": "$TC qdisc show dev $ETH", 83 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues … 85 "verifyCmd": "$TC qdisc show dev $ETH", [all …]
|
/openbmc/bmcweb/test/redfish-core/lib/ |
H A D | ethernet_test.cpp | 40 nlohmann::json::object_t eth; in TEST() local 41 eth["Address"] = "1.1.1.2"; in TEST() 42 eth["Gateway"] = "1.1.1.1"; in TEST() 43 eth["SubnetMask"] = "255.255.255.0"; in TEST() 44 addr.emplace_back(eth); in TEST() 66 nlohmann::json::object_t eth; in TEST() local 67 eth["Address"] = "1.1.1.2"; in TEST() 68 eth["SubnetMask"] = "255.255.255.0"; in TEST() 69 addr.emplace_back(eth); in TEST() 91 nlohmann::json::object_t eth; in TEST() local [all …]
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_of_dpa.c | 18 #include "net/eth.h" 59 } eth; member 234 if (key->eth.vlan_id || (mask && mask->eth.vlan_id)) { in of_dpa_flow_key_dump() 235 b += sprintf(b, " vlan %4d", ntohs(key->eth.vlan_id)); in of_dpa_flow_key_dump() 236 if (mask && mask->eth.vlan_id != 0xffff) { in of_dpa_flow_key_dump() 237 b += sprintf(b, "/0x%04x", ntohs(key->eth.vlan_id)); in of_dpa_flow_key_dump() 241 if (memcmp(key->eth.src.a, zero_mac.a, ETH_ALEN) || in of_dpa_flow_key_dump() 242 (mask && memcmp(mask->eth.src.a, zero_mac.a, ETH_ALEN))) { in of_dpa_flow_key_dump() 243 mac = qemu_mac_strdup_printf(key->eth.src.a); in of_dpa_flow_key_dump() 246 if (mask && memcmp(mask->eth.src.a, ff_mac.a, ETH_ALEN)) { in of_dpa_flow_key_dump() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | qca,ar71xx.yaml | 20 - qca,ar7100-eth # Atheros AR7100 21 - qca,ar7240-eth # Atheros AR7240 22 - qca,ar7241-eth # Atheros AR7241 23 - qca,ar7242-eth # Atheros AR7242 24 - qca,ar9130-eth # Atheros AR9130 25 - qca,ar9330-eth # Atheros AR9330 26 - qca,ar9340-eth # Atheros AR9340 27 - qca,qca9530-eth # Qualcomm Atheros QCA9530 28 - qca,qca9550-eth # Qualcomm Atheros QCA9550 29 - qca,qca9560-eth # Qualcomm Atheros QCA9560 [all …]
|
H A D | mediatek,net.yaml | 20 - mediatek,mt2701-eth 21 - mediatek,mt7623-eth 22 - mediatek,mt7621-eth 23 - mediatek,mt7622-eth 24 - mediatek,mt7629-eth 25 - mediatek,mt7981-eth 26 - mediatek,mt7986-eth 27 - mediatek,mt7988-eth 28 - ralink,rt5350-eth 114 - mediatek,mt2701-eth [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | Makefile | 6 obj-$(CONFIG_FSL_DPAA2_ETH) += fsl-dpaa2-eth.o 10 fsl-dpaa2-eth-objs := dpaa2-eth.o dpaa2-ethtool.o dpni.o dpaa2-mac.o dpmac.o dpaa2-eth-devlink.o dp… 11 fsl-dpaa2-eth-${CONFIG_FSL_DPAA2_ETH_DCB} += dpaa2-eth-dcb.o 12 fsl-dpaa2-eth-${CONFIG_DEBUG_FS} += dpaa2-eth-debugfs.o 17 CFLAGS_dpaa2-eth.o := -I$(src)
|
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
H A D | pedit.json | 603 "name": "Add pedit action with LAYERED_OP eth set src", 617 "cmdUnderTest": "$TC actions add action pedit ex munge eth src set 11:22:33:44:55:66", 620 …rder [0-9]+: pedit action pass keys 2.*key #0 at eth\\+4: val 00001122 mask ffff0000.*key #1 at… 628 "name": "Add pedit action with LAYERED_OP eth set src & dst", 642 …"cmdUnderTest": "$TC actions add action pedit ex munge eth src set 11:22:33:44:55:66 munge eth dst… 645 …"matchPattern": "eth\\+4: val 00001122 mask ffff0000.*eth\\+8: val 33445566 mask 00000000.*eth\\+0… 653 "name": "Add pedit action with LAYERED_OP eth set dst", 667 "cmdUnderTest": "$TC actions add action pedit ex munge eth dst set 11:22:33:44:55:66", 670 …rder [0-9]+: pedit action pass keys 2.*key #0 at eth\\+0: val 11223344 mask 00000000.*key #1 at… 678 "name": "Add pedit action with LAYERED_OP eth set src (INVALID)", [all …]
|
/openbmc/linux/drivers/infiniband/hw/mlx4/ |
H A D | ah.c | 93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); in create_iboe_ah() 94 eth_zero_addr(ah->av.eth.s_mac); in create_iboe_ah() 103 &ah->av.eth.s_mac[0]); in create_iboe_ah() 110 ah->av.eth.gid_index = ret; in create_iboe_ah() 113 ah->av.eth.gid_index = ah_attr->grh.sgid_index; in create_iboe_ah() 118 ah->av.eth.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | in create_iboe_ah() 120 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah() 121 ah->av.eth.hop_limit = grh->hop_limit; in create_iboe_ah() 123 ah->av.eth.stat_rate = rdma_ah_get_static_rate(ah_attr) + in create_iboe_ah() 125 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | meson-gxbb-odroidc2.dts | 202 "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk", 203 "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2", 204 "Eth RX D3", "Eth RGMII TX Clk", "Eth TX En", 205 "Eth TX D0", "Eth TX D1", "Eth TX D2", "Eth TX D3", 206 "Eth PHY nRESET", "Eth PHY Intc",
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/ |
H A D | python3-eth-account_0.12.1.bb | 2 HOMEPAGE = "https://github.com/ethereum/eth-account" 13 python3-eth-abi \ 14 python3-eth-keyfile \ 15 python3-eth-keys \ 16 python3-eth-rlp \ 17 python3-eth-utils \
|
/openbmc/linux/arch/mips/pci/ |
H A D | fixup-sni.c | 23 #define ETH PCIMT_IRQ_ETHERNET macro 47 { ETH, ETH, ETH, ETH, ETH }, /* Ethernet */ 81 #undef ETH 93 #define ETH PCIT_IRQ_ETHERNET macro 104 { ETH, ETH, ETH, ETH, ETH }, /* Ethernet */
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | xdping_kern.c | 63 struct ethhdr *eth = data; in icmp_check() local 67 if (data + sizeof(*eth) + sizeof(*iph) + ICMP_ECHO_LEN > data_end) in icmp_check() 70 if (eth->h_proto != bpf_htons(ETH_P_IP)) in icmp_check() 73 iph = data + sizeof(*eth); in icmp_check() 81 icmph = data + sizeof(*eth) + sizeof(*iph); in icmp_check() 94 struct ethhdr *eth = data; in xdping_client() local 108 iph = data + sizeof(*eth); in xdping_client() 109 icmph = data + sizeof(*eth) + sizeof(*iph); in xdping_client() 156 struct ethhdr *eth = data; in xdping_server() local 167 iph = data + sizeof(*eth); in xdping_server() [all …]
|