| /drivers/net/ethernet/mediatek/ |
| A D | mtk_eth_soc.c | 999 eth->mii_bus->priv = eth; in mtk_mdio_init() 1000 eth->mii_bus->parent = eth->dev; in mtk_mdio_init() 2391 dim_update_sample(eth->rx_events, eth->rx_packets, eth->rx_bytes, in mtk_poll_rx() 2541 dim_update_sample(eth->tx_events, eth->tx_packets, eth->tx_bytes, in mtk_poll_tx() 2604 mtk_w32(eth, eth->soc->rx.irq_done_mask, in mtk_napi_rx() 4397 netif_alert(eth, ifup, eth->netdev[i], in mtk_pending_work() 5174 eth->clks[i] = devm_clk_get(eth->dev, in mtk_probe() 5218 dev_name(eth->dev), eth); in mtk_probe() 5222 dev_name(eth->dev), eth); in mtk_probe() 5228 dev_name(eth->dev), eth); in mtk_probe() [all …]
|
| A D | mtk_eth_path.c | 18 int (*set_path)(struct mtk_eth *eth, u64 path); 64 if (mtk_is_netsys_v3_or_greater(eth)) in set_mux_gdm1_to_gmac1_esw() 70 mtk_m32(eth, mask, set, reg); in set_mux_gdm1_to_gmac1_esw() 148 dev_dbg(eth->dev, "path %s in %s updated\n", in set_mux_gmac2_to_2p5gphy() 256 if (!MTK_HAS_CAPS(eth->soc->caps, path)) { in mtk_eth_mux_setup() 262 if (!MTK_HAS_CAPS(eth->soc->caps, MTK_MUX)) in mtk_eth_mux_setup() 268 err = mtk_eth_muxc[i].set_path(eth, path); in mtk_eth_mux_setup() 289 return mtk_eth_mux_setup(eth, path); in mtk_gmac_sgmii_path_setup() 303 return mtk_eth_mux_setup(eth, path); in mtk_gmac_2p5gphy_path_setup() 317 return mtk_eth_mux_setup(eth, path); in mtk_gmac_gephy_path_setup() [all …]
|
| A D | mtk_ppe_offload.c | 17 struct ethhdr eth; member 222 if (dev == eth->netdev[0]) in mtk_flow_set_output_device() 224 else if (dev == eth->netdev[1]) in mtk_flow_set_output_device() 226 else if (dev == eth->netdev[2]) in mtk_flow_set_output_device() 382 data.eth.h_source, data.eth.h_dest); in mtk_flow_offload_replace() 462 err = mtk_flow_set_output_device(eth, &foe, odev, data.eth.h_dest, in mtk_flow_offload_replace() 577 struct mtk_eth *eth; in mtk_eth_setup_tc_block_cb() local 580 eth = mac->hw; in mtk_eth_setup_tc_block_cb() 595 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block() local 600 if (!eth->soc->offload_version) in mtk_eth_setup_tc_block() [all …]
|
| A D | mtk_ppe.c | 63 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth); in mtk_eth_timestamp() 221 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_foe_entry_prepare() 285 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_foe_entry_set_pse_port() 434 switch (eth->soc->version) { in mtk_foe_entry_set_wdma() 545 u16 now = mtk_eth_timestamp(ppe->eth); in __mtk_foe_entry_idle_time() 620 struct mtk_eth *eth = ppe->eth; in __mtk_foe_entry_commit() local 641 if (mtk_is_netsys_v2_or_greater(eth)) in __mtk_foe_entry_commit() 645 *mtk_foe_entry_ib2(eth, hwe) |= val; in __mtk_foe_entry_commit() 882 struct device *dev = eth->dev; in mtk_ppe_init() 898 ppe->eth = eth; in mtk_ppe_init() [all …]
|
| A D | mtk_eth_soc.h | 342 #define TX_DMA_PLEN0(x) (((x) & eth->soc->tx.dma_max_len) << eth->soc->tx.dma_len_offset) 363 #define RX_DMA_PREP_PLEN0(x) (((x) & eth->soc->rx.dma_max_len) << eth->soc->rx.dma_len_offset) 364 #define RX_DMA_GET_PLEN0(x) (((x) >> eth->soc->rx.dma_len_offset) & eth->soc->rx.dma_max_len) 1388 return eth->soc->version == 1; in mtk_is_netsys_v1() 1393 return eth->soc->version > 1; in mtk_is_netsys_v2_or_greater() 1398 return eth->soc->version > 2; in mtk_is_netsys_v3_or_greater() 1411 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ts_mask() 1419 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ppoe_mask() 1427 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_tag_mask() 1435 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_layer_mask() [all …]
|
| A D | mtk_ppe.h | 325 struct mtk_eth *eth; member 348 void mtk_ppe_deinit(struct mtk_eth *eth); 375 int mtk_foe_entry_prepare(struct mtk_eth *eth, struct mtk_foe_entry *entry, 378 int mtk_foe_entry_set_pse_port(struct mtk_eth *eth, 380 int mtk_foe_entry_set_ipv4_tuple(struct mtk_eth *eth, 384 int mtk_foe_entry_set_ipv6_tuple(struct mtk_eth *eth, 388 int mtk_foe_entry_set_dsa(struct mtk_eth *eth, struct mtk_foe_entry *entry, 390 int mtk_foe_entry_set_vlan(struct mtk_eth *eth, struct mtk_foe_entry *entry, 392 int mtk_foe_entry_set_pppoe(struct mtk_eth *eth, struct mtk_foe_entry *entry, 394 int mtk_foe_entry_set_wdma(struct mtk_eth *eth, struct mtk_foe_entry *entry, [all …]
|
| /drivers/net/ethernet/airoha/ |
| A D | airoha_eth.c | 76 struct airoha_eth *eth = port->qdma->eth; in airoha_set_macaddr() local 107 struct airoha_eth *eth = port->qdma->eth; in airoha_set_vip_for_gdm_port() local 620 struct airoha_eth *eth = qdma->eth; in airoha_qdma_rx_process() local 761 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_rx_queue() local 808 struct airoha_eth *eth = q->qdma->eth; in airoha_qdma_cleanup_rx_queue() local 854 eth = qdma->eth; in airoha_qdma_tx_napi_poll() 955 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_tx_queue() local 998 struct airoha_eth *eth = qdma->eth; in airoha_qdma_tx_irq_init() local 1064 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_hfwd_queues() local 1317 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_irq_banks() local [all …]
|
| A D | airoha_ppe.c | 49 struct airoha_eth *eth = ppe->eth; in airoha_ppe_hw_init() local 518 struct airoha_eth *eth = ppe->eth; in airoha_ppe_foe_get_entry_locked() local 577 struct airoha_eth *eth = ppe->eth; in airoha_ppe_foe_commit_entry() local 899 struct airoha_eth *eth = port->qdma->eth; in airoha_ppe_flow_offload_replace() local 1099 struct airoha_eth *eth = port->qdma->eth; in airoha_ppe_flow_offload_destroy() local 1119 struct airoha_eth *eth = ppe->eth; in airoha_ppe_foe_entry_get_stats() local 1145 struct airoha_eth *eth = port->qdma->eth; in airoha_ppe_flow_offload_stats() local 1209 npu = airoha_npu_get(eth->dev, ð->ppe->foe_stats_dma); in airoha_ppe_npu_get() 1249 struct airoha_eth *eth = port->qdma->eth; in airoha_ppe_setup_tc_block_cb() local 1283 struct airoha_eth *eth = port->qdma->eth; in airoha_ppe_init_upd_mem() local [all …]
|
| A D | airoha_eth.h | 428 struct ethhdr eth; member 505 struct airoha_eth *eth; member 538 struct airoha_eth *eth; member 578 #define airoha_fe_rr(eth, offset) \ argument 579 airoha_rr((eth)->fe_regs, (offset)) 580 #define airoha_fe_wr(eth, offset, val) \ argument 581 airoha_wr((eth)->fe_regs, (offset), (val)) 584 #define airoha_fe_set(eth, offset, val) \ argument 585 airoha_rmw((eth)->fe_regs, (offset), 0, (val)) 586 #define airoha_fe_clear(eth, offset, val) \ argument [all …]
|
| A D | Makefile | 6 obj-$(CONFIG_NET_AIROHA) += airoha-eth.o 7 airoha-eth-y := airoha_eth.o airoha_ppe.o 8 airoha-eth-$(CONFIG_DEBUG_FS) += airoha_ppe_debugfs.o
|
| /drivers/infiniband/hw/mlx4/ |
| 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 …]
|
| /drivers/net/ethernet/freescale/dpaa2/ |
| 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)
|
| /drivers/net/ethernet/sgi/ |
| 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 …]
|
| /drivers/scsi/fnic/ |
| A D | fip.h | 51 struct ethhdr eth; member 62 struct ethhdr eth; member 69 struct ethhdr eth; member 94 struct ethhdr eth; member 107 struct ethhdr eth; member 138 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame() argument 141 struct fip_header *fiph = (struct fip_header *)(eth + 1); in fnic_debug_dump_fip_frame() 149 fnic_debug_dump(fnic, (uint8_t *)eth, len); in fnic_debug_dump_fip_frame() 155 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame() argument
|
| A D | fip.c | 67 .eth = {.h_dest = FCOE_ALL_FCFS_MAC, in fnic_fcoe_send_vlan_req() 77 memcpy(pvlan_req->eth.h_source, iport->hwmac, ETH_ALEN); in fnic_fcoe_send_vlan_req() 207 .eth = {.h_dest = FCOE_ALL_FCFS_MAC, in fnic_fcoe_start_fcf_discovery() 219 memcpy(pdisc_sol->eth.h_source, iport->hwmac, ETH_ALEN); in fnic_fcoe_start_fcf_discovery() 372 .eth = { in fnic_fcoe_start_flogi() 691 struct ethhdr *eth = (struct ethhdr *)frame; in fdls_fip_recv_frame() local 697 if (be16_to_cpu(eth->h_proto) == ETH_P_FIP) { in fdls_fip_recv_frame() 698 fiph = (struct fip_header *)(eth + 1); in fdls_fip_recv_frame() 702 fnic_debug_dump_fip_frame(fnic, eth, len, "Incoming"); in fdls_fip_recv_frame() 817 .eth = { in fnic_handle_enode_ka_timer() [all …]
|
| /drivers/net/wireless/marvell/mwifiex/ |
| A D | sta_rx.c | 27 struct ethhdr *eth; in mwifiex_discard_gratuitous_arp() local 31 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp() 32 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp() 78 struct ethhdr *eth; in mwifiex_process_rx_packet() local 115 eth = (struct ethhdr *) in mwifiex_process_rx_packet() 123 memcpy(eth->h_source, rx_pkt_hdr->eth803_hdr.h_source, in mwifiex_process_rx_packet() 124 sizeof(eth->h_source)); in mwifiex_process_rx_packet() 125 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet() 126 sizeof(eth->h_dest)); in mwifiex_process_rx_packet() 130 hdr_chop = (u8 *) eth - (u8 *) local_rx_pd; in mwifiex_process_rx_packet()
|
| /drivers/infiniband/hw/ocrdma/ |
| A D | ocrdma_ah.c | 78 struct ocrdma_eth_vlan eth; in set_av_attr() local 90 memset(ð, 0, sizeof(eth)); in set_av_attr() 108 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr() 109 eth.roce_eth_type = cpu_to_be16(proto_num); in set_av_attr() 111 eth.vlan_tag = cpu_to_be16(vlan_tag); in set_av_attr() 115 eth.eth_type = cpu_to_be16(proto_num); in set_av_attr() 119 memcpy(ð.smac[0], &dev->nic_info.mac_addr[0], ETH_ALEN); in set_av_attr() 120 status = ocrdma_resolve_dmac(dev, attr, ð.dmac[0]); in set_av_attr() 126 memcpy(&ah->av->eth_hdr, ð, eth_sz); in set_av_attr()
|
| /drivers/media/dvb-core/ |
| A D | dvb_net.c | 132 struct ethhdr *eth; in dvb_net_eth_type_trans() local 137 eth = eth_hdr(skb); in dvb_net_eth_type_trans() 895 u8 *eth; local 952 eth[0]=pkt[0x0b]; 953 eth[1]=pkt[0x0a]; 954 eth[2]=pkt[0x09]; 955 eth[3]=pkt[0x08]; 956 eth[4]=pkt[0x04]; 957 eth[5]=pkt[0x03]; 959 eth[6]=eth[7]=eth[8]=eth[9]=eth[10]=eth[11]=0; [all …]
|
| /drivers/net/ethernet/qlogic/qed/ |
| A D | qed_l2.c | 1817 port_stats.eth.u0.bb0.r1522; in __qed_get_vport_port_stats() 1819 port_stats.eth.u0.bb0.r2047; in __qed_get_vport_port_stats() 1821 port_stats.eth.u0.bb0.r4095; in __qed_get_vport_port_stats() 1823 port_stats.eth.u0.bb0.r9216; in __qed_get_vport_port_stats() 1825 port_stats.eth.u0.bb0.r16383; in __qed_get_vport_port_stats() 1827 port_stats.eth.u1.bb1.t2047; in __qed_get_vport_port_stats() 1829 port_stats.eth.u1.bb1.t4095; in __qed_get_vport_port_stats() 1831 port_stats.eth.u1.bb1.t9216; in __qed_get_vport_port_stats() 1833 port_stats.eth.u1.bb1.t16383; in __qed_get_vport_port_stats() 1840 port_stats.eth.u0.ah0.r1519_to_max; in __qed_get_vport_port_stats() [all …]
|
| /drivers/infiniband/core/ |
| A D | lag.c | 16 struct ethhdr *eth; in rdma_build_skb() local 71 eth = eth_hdr(skb); in rdma_build_skb() 72 skb->protocol = eth->h_proto = htons(is_ipv4 ? ETH_P_IP : ETH_P_IPV6); in rdma_build_skb() 74 memcpy(eth->h_source, smac, ETH_ALEN); in rdma_build_skb() 75 memcpy(eth->h_dest, ah_attr->roce.dmac, ETH_ALEN); in rdma_build_skb()
|
| A D | ud_header.c | 87 { STRUCT_FIELD(eth, dmac_h), 91 { STRUCT_FIELD(eth, dmac_l), 95 { STRUCT_FIELD(eth, smac_h), 99 { STRUCT_FIELD(eth, smac_l), 103 { STRUCT_FIELD(eth, type), 353 header->eth.type = cpu_to_be16(ETH_P_8021Q); in ib_ud_header_init() 425 &header->eth, buf + len); in ib_ud_header_pack()
|
| /drivers/net/ethernet/mellanox/mlx4/ |
| A D | mcg.c | 847 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); in parse_trans_rule() 848 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, in parse_trans_rule() 850 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); in parse_trans_rule() 851 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, in parse_trans_rule() 853 if (spec->eth.ether_type_enable) { in parse_trans_rule() 854 rule_hw->eth.ether_type_enable = 1; in parse_trans_rule() 855 rule_hw->eth.ether_type = spec->eth.ether_type; in parse_trans_rule() 857 rule_hw->eth.vlan_tag = spec->eth.vlan_id; in parse_trans_rule() 858 rule_hw->eth.vlan_tag_msk = spec->eth.vlan_id_msk; in parse_trans_rule() 918 if (cur->eth.ether_type) in mlx4_err_rule() [all …]
|
| /drivers/net/ethernet/pensando/ionic/ |
| A D | ionic_ethtool.c | 869 return le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); in ionic_get_rxfh_indir_size() 1040 if (ionic->ident.lif.eth.hwstamp_tx_modes & mask) in ionic_get_ts_info() 1044 if (ionic->ident.lif.eth.hwstamp_tx_modes & mask) in ionic_get_ts_info() 1053 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask) in ionic_get_ts_info() 1057 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask) in ionic_get_ts_info() 1061 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask) in ionic_get_ts_info() 1065 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask) in ionic_get_ts_info() 1069 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask) in ionic_get_ts_info() 1073 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask) in ionic_get_ts_info() 1077 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask) in ionic_get_ts_info() [all …]
|
| /drivers/net/ |
| A D | amt.c | 518 struct ethhdr *eth; in amt_build_igmp_gq() local 552 eth = eth_hdr(skb); in amt_build_igmp_gq() 814 struct ethhdr *eth; in amt_build_mld_gq() local 825 eth = eth_hdr(skb); in amt_build_mld_gq() 2285 struct ethhdr *eth; in amt_multicast_data_handler() local 2306 eth = eth_hdr(skb); in amt_multicast_data_handler() 2368 hdr_size -= sizeof(*eth); in amt_membership_query_handler() 2376 eth = eth_hdr(skb); in amt_membership_query_handler() 2453 struct ethhdr *eth; in amt_update_handler() local 2506 eth = eth_hdr(skb); in amt_update_handler() [all …]
|
| /drivers/net/netdevsim/ |
| A D | psample.c | 43 struct ethhdr *eth; in nsim_dev_psample_skb_build() local 52 eth = skb_put(skb, sizeof(struct ethhdr)); in nsim_dev_psample_skb_build() 53 eth_random_addr(eth->h_dest); in nsim_dev_psample_skb_build() 54 eth_random_addr(eth->h_source); in nsim_dev_psample_skb_build() 55 eth->h_proto = htons(ETH_P_IP); in nsim_dev_psample_skb_build()
|