/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 845 eth->mii_bus->priv = eth; in mtk_mdio_init() 846 eth->mii_bus->parent = eth->dev; in mtk_mdio_init() 1138 eth->scratch_ring = eth->sram_base; in mtk_init_fq_dma() 2207 dim_update_sample(eth->rx_events, eth->rx_packets, eth->rx_bytes, in mtk_poll_rx() 2357 dim_update_sample(eth->tx_events, eth->tx_packets, eth->tx_bytes, in mtk_poll_tx() 4637 eth->netdev[id]->irq = eth->irq[0]; in mtk_add_mac() 4869 eth->irq[i] = eth->irq[0]; in mtk_probe() 4923 dev_name(eth->dev), eth); in mtk_probe() 4927 dev_name(eth->dev), eth); in mtk_probe() 4933 dev_name(eth->dev), eth); in mtk_probe() [all …]
|
H A D | mtk_eth_path.c | 18 int (*set_path)(struct mtk_eth *eth, u64 path); 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() 173 regmap_read(eth->ethsys, ETHSYS_SYSCFG0, &val); in set_mux_gmac12_to_gephy_sgmii() 227 if (!MTK_HAS_CAPS(eth->soc->caps, path)) { in mtk_eth_mux_setup() 233 if (!MTK_HAS_CAPS(eth->soc->caps, MTK_MUX)) in mtk_eth_mux_setup() 239 err = mtk_eth_muxc[i].set_path(eth, path); in mtk_eth_mux_setup() 260 return mtk_eth_mux_setup(eth, path); in mtk_gmac_sgmii_path_setup() 274 return mtk_eth_mux_setup(eth, path); in mtk_gmac_gephy_path_setup() [all …]
|
H A D | mtk_ppe_offload.c | 17 struct ethhdr eth; member 75 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth() 216 if (dev == eth->netdev[0]) in mtk_flow_set_output_device() 218 else if (dev == eth->netdev[1]) in mtk_flow_set_output_device() 220 else if (dev == eth->netdev[2]) in mtk_flow_set_output_device() 360 data.eth.h_source, data.eth.h_dest); in mtk_flow_offload_replace() 443 err = mtk_flow_set_output_device(eth, &foe, odev, data.eth.h_dest, in mtk_flow_offload_replace() 558 struct mtk_eth *eth; in mtk_eth_setup_tc_block_cb() local 561 eth = mac->hw; in mtk_eth_setup_tc_block_cb() 576 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block() local [all …]
|
H A D | mtk_ppe.c | 60 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth); in mtk_eth_timestamp() 218 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_foe_entry_prepare() 282 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_foe_entry_set_pse_port() 433 switch (eth->soc->version) { in mtk_foe_entry_set_wdma() 543 u16 now = mtk_eth_timestamp(ppe->eth); in __mtk_foe_entry_idle_time() 618 struct mtk_eth *eth = ppe->eth; in __mtk_foe_entry_commit() local 639 if (mtk_is_netsys_v2_or_greater(eth)) in __mtk_foe_entry_commit() 643 *mtk_foe_entry_ib2(eth, hwe) |= val; in __mtk_foe_entry_commit() 880 struct device *dev = eth->dev; in mtk_ppe_init() 896 ppe->eth = eth; in mtk_ppe_init() [all …]
|
H A D | mtk_eth_soc.h | 330 #define TX_DMA_PLEN0(x) (((x) & eth->soc->txrx.dma_max_len) << eth->soc->txrx.dma_len_offset) 351 #define RX_DMA_PREP_PLEN0(x) (((x) & eth->soc->txrx.dma_max_len) << eth->soc->txrx.dma_len_offset) 352 #define RX_DMA_GET_PLEN0(x) (((x) >> eth->soc->txrx.dma_len_offset) & eth->soc->txrx.dma_max_len) 1331 return eth->soc->version == 1; in mtk_is_netsys_v1() 1336 return eth->soc->version > 1; in mtk_is_netsys_v2_or_greater() 1341 return eth->soc->version > 2; in mtk_is_netsys_v3_or_greater() 1354 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ts_mask() 1362 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ppoe_mask() 1370 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_tag_mask() 1378 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_layer_mask() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ravb.c | 143 struct ravb_desc *desc = ð->tx_desc[eth->tx_desc_idx]; in ravb_send() 169 eth->tx_desc_idx = (eth->tx_desc_idx + 1) % (RAVB_NUM_TX_DESC - 1); in ravb_send() 176 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_recv() 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() 210 desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 242 writel((uintptr_t)eth->base_desc, eth->iobase + RAVB_REG_DBAT); in ravb_base_desc_init() 259 eth->tx_desc[RAVB_NUM_TX_DESC - 1].dptr = (uintptr_t)eth->tx_desc; in ravb_tx_desc_init() 264 eth->base_desc[RAVB_TX_QUEUE_OFFSET].dptr = (uintptr_t)eth->tx_desc; in ravb_tx_desc_init() 281 eth->rx_desc[i].data.dptr = (uintptr_t)eth->rx_desc[i].packet; in ravb_rx_desc_init() [all …]
|
H A D | sh_eth.c | 67 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_send_common() 123 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_recv_start() 139 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_recv_finish() 159 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_reset() 194 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_tx_desc_init() 611 if (!eth) { in sh_eth_initialize() 628 eth->port_info[eth->port].iobase = in sh_eth_initialize() 637 eth->port_info[eth->port].dev = dev; in sh_eth_initialize() 665 if (eth) in sh_eth_initialize() 666 free(eth); in sh_eth_initialize() [all …]
|
H A D | bcm-sf2-eth.c | 40 rc = eth->mac_init(dev); in bcm_sf2_eth_init() 50 eth->port_num = 0; 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() 156 eth->enable_mac(); in bcm_sf2_eth_open() 179 eth->port[i]->speed, eth->port[i]->duplex, eth->port[i]->link); in bcm_sf2_eth_open() 180 eth->set_mac_speed(eth->port[i]->speed, eth->port[i]->duplex); in bcm_sf2_eth_open() 196 eth->disable_mac(); in bcm_sf2_eth_close() 202 struct eth_info *eth; in bcm_sf2_eth_register() local 212 if (eth == NULL) { in bcm_sf2_eth_register() [all …]
|
H A D | fec_mxc.c | 105 phy | reg, ð->mii_data); in fec_mdio_read() 419 &fec->eth->paddr1); in fecmxc_set_hwaddr() 488 &fec->eth->ecntrl); in fec_open() 491 &fec->eth->x_wmrk); in fec_open() 495 &fec->eth->ecntrl); in fec_open() 652 &fec->eth->x_cntrl); in fecmxc_halt() 668 &fec->eth->ecntrl); in fecmxc_halt() 1067 bus->priv = eth; in fec_get_miibus() 1076 fec_mii_setspeed(eth); in fec_get_miibus() 1131 writel(readl(&fec->eth->ecntrl) | FEC_ECNTRL_RESET, &fec->eth->ecntrl); in fec_probe() [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() 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() 127 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect() 155 struct eth_hdr *eth = data; in _l2_to_ip6tun_ingress_redirect() local 159 if (data + sizeof(*eth) > data_end) in _l2_to_ip6tun_ingress_redirect() 166 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect() 210 struct eth_hdr *eth = data; in _drop_non_tun_vip() local [all …]
|
H A D | parse_simple.c | 30 struct eth_hdr *eth = data; in handle_ingress() local 31 struct iphdr *iph = data + sizeof(*eth); in handle_ingress() 32 struct udphdr *udp = data + sizeof(*eth) + sizeof(*iph); in handle_ingress() 36 if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*udp) > data_end) in handle_ingress() 39 if (eth->h_proto != htons(ETH_P_IP)) in handle_ingress()
|
/openbmc/qemu/hw/net/ |
H A D | etraxfs_eth.c | 359 phy = eth->mdio_bus.devs[eth->phyaddr]; in eth_validate_duplex() 412 eth->macaddr[ma][i++] = eth->regs[reg]; in eth_update_ma() 413 eth->macaddr[ma][i++] = eth->regs[reg] >> 8; in eth_update_ma() 414 eth->macaddr[ma][i++] = eth->regs[reg] >> 16; in eth_update_ma() 415 eth->macaddr[ma][i++] = eth->regs[reg] >> 24; in eth_update_ma() 416 eth->macaddr[ma][i++] = eth->regs[reg + 1]; in eth_update_ma() 417 eth->macaddr[ma][i] = eth->regs[reg + 1] >> 8; in eth_update_ma() 420 eth->macaddr[ma][0], eth->macaddr[ma][1], in eth_update_ma() 421 eth->macaddr[ma][2], eth->macaddr[ma][3], in eth_update_ma() 422 eth->macaddr[ma][4], eth->macaddr[ma][5])); in eth_update_ma() [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/net/ethernet/ |
H A D | eth.c | 86 eth->h_proto = htons(type); in eth_header() 88 eth->h_proto = htons(len); in eth_header() 108 eth_zero_addr(eth->h_dest); in eth_header() 132 if (unlikely(len < sizeof(*eth))) in eth_get_headlen() 137 eth->h_proto, sizeof(*eth), in eth_get_headlen() 159 const struct ethhdr *eth; in eth_type_trans() local 179 return eth->h_proto; in eth_type_trans() 221 struct ethhdr *eth; in eth_header_cache() local 224 eth = (struct ethhdr *) in eth_header_cache() 230 eth->h_proto = type; in eth_header_cache() [all …]
|
/openbmc/linux/drivers/infiniband/hw/mlx4/ |
H A D | ah.c | 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() 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() 127 --ah->av.eth.stat_rate; in create_iboe_ah() 129 ah->av.eth.sl_tclass_flowlabel |= in create_iboe_ah() 138 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); in create_iboe_ah() 188 memcpy(mah->av.eth.s_mac, s_mac, 6); in mlx4_ib_create_ah_slave() [all …]
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_of_dpa.c | 59 } eth; member 234 if (key->eth.vlan_id || (mask && mask->eth.vlan_id)) { in of_dpa_flow_key_dump() 265 if (key->eth.type || (mask && mask->eth.type)) { in of_dpa_flow_key_dump() 609 memcpy(match.value.eth.dst.a, addr, sizeof(match.value.eth.dst.a)); in of_dpa_bridging_learn() 1197 if (key->eth.type != htons(0x0800) && key->eth.type != htons(0x86dd)) { in of_dpa_cmd_add_term_mac() 1214 if (memcmp(key->eth.dst.a, ipv4_mcast.a, sizeof(key->eth.dst.a)) == 0 && in of_dpa_cmd_add_term_mac() 1215 memcmp(mask->eth.dst.a, ipv4_mask.a, sizeof(mask->eth.dst.a)) == 0) { in of_dpa_cmd_add_term_mac() 1218 if (memcmp(key->eth.dst.a, ipv6_mcast.a, sizeof(key->eth.dst.a)) == 0 && in of_dpa_cmd_add_term_mac() 1228 mask->eth.vlan_id = in of_dpa_cmd_add_term_mac() 1315 memcpy(mask->eth.dst.a, ff_mac.a, sizeof(mask->eth.dst.a)); in of_dpa_cmd_add_bridging() [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 44 - const: eth 77 compatible = "qca,ar9330-eth"; 83 clock-names = "eth", "mdio"; 89 compatible = "qca,ar9330-eth"; [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 380 const: mediatek,eth-mac [all …]
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/ |
H A D | python3-eth-account_0.11.0.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 \
|
H A D | python3-web3_6.16.0.bb | 13 python3-eth-abi \ 14 python3-eth-account \ 15 python3-eth-hash \ 16 python3-eth-typing \ 17 python3-eth-utils \
|
/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 …]
|
H A D | xdp_hw_metadata.c | 29 struct ethhdr *eth = NULL; in rx() local 37 eth = data; in rx() 38 if (eth + 1 < data_end) { in rx() 39 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx() 40 iph = (void *)(eth + 1); in rx() 44 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in rx() 45 ip6h = (void *)(eth + 1); in rx()
|
/openbmc/linux/drivers/net/ethernet/sgi/ |
H A D | meth.c | 109 mace->eth.mac_addr = macaddr; in load_eaddr() 126 mace->eth.phy_trans_go = 1; in mdio_read() 195 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link() 204 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link() 276 mace->eth.mac_ctrl = SGI_MAC_RESET; in meth_reset() 278 mace->eth.mac_ctrl = 0; in meth_reset() 295 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_reset() 303 mace->eth.dma_ctrl = priv->dma_ctrl; in meth_reset() 342 mace->eth.dma_ctrl = priv->dma_ctrl; in meth_open() 579 status = mace->eth.int_stat; in meth_interrupt() [all …]
|
/openbmc/u-boot/test/dm/ |
H A D | eth.c | 266 struct ethernet_hdr *eth = packet; in sb_check_arp_reply() local 271 if (ntohs(eth->et_protlen) != PROT_ARP) in sb_check_arp_reply() 283 ut_assert(memcmp(eth->et_src, net_ethaddr, ARP_HLEN) == 0); in sb_check_arp_reply() 285 ut_assert(eth->et_protlen == htons(PROT_ARP)); in sb_check_arp_reply() 304 struct ethernet_hdr *eth = packet; in sb_with_async_arp_handler() local 312 if (ntohs(eth->et_protlen) == PROT_ARP && in sb_with_async_arp_handler() 351 struct ethernet_hdr *eth = packet; in sb_check_ping_reply() local 357 if (ntohs(eth->et_protlen) != PROT_IP) in sb_check_ping_reply() 376 ut_assert(eth->et_protlen == htons(PROT_IP)); in sb_check_ping_reply() 389 struct ethernet_hdr *eth = packet; in sb_with_async_ping_handler() local [all …]
|
/openbmc/u-boot/drivers/usb/eth/ |
H A D | mcs7830.c | 588 struct ueth_data *dev = eth->priv; in mcs7830_init() 604 struct ueth_data *dev = eth->priv; in mcs7830_send() 818 struct eth_device *eth) in mcs7830_eth_get_info() argument 821 if (!eth) { in mcs7830_eth_get_info() 826 snprintf(eth->name, sizeof(eth->name), "%s%d", in mcs7830_eth_get_info() 828 eth->init = mcs7830_init; in mcs7830_eth_get_info() 829 eth->send = mcs7830_send; in mcs7830_eth_get_info() 830 eth->recv = mcs7830_recv; in mcs7830_eth_get_info() 831 eth->halt = mcs7830_halt; in mcs7830_eth_get_info() 833 eth->priv = ss; in mcs7830_eth_get_info() [all …]
|