smac 1094 arch/mips/include/asm/octeon/cvmx-agl-defs.h uint64_t smac:48; smac 1096 arch/mips/include/asm/octeon/cvmx-agl-defs.h uint64_t smac:48; smac 1328 drivers/infiniband/core/cache.c u16 *vlan_id, u8 *smac) smac 1338 drivers/infiniband/core/cache.c if (smac) smac 1339 drivers/infiniband/core/cache.c ether_addr_copy(smac, ndev->dev_addr); smac 954 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp->qplib_qp.smac, rdev->netdev->dev_addr); smac 1025 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp->qplib_qp.smac, rdev->netdev->dev_addr); smac 1637 drivers/infiniband/hw/bnxt_re/ib_verbs.c &qp->qplib_qp.smac[0]); smac 1900 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp->qp1_hdr.eth.smac_h, qp->qplib_qp.smac); smac 3042 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(wc->smac, orig_cqe->smac, ETH_ALEN); smac 3077 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(wc->smac, cqe->smac, ETH_ALEN); smac 3175 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(wc->smac, cqe->smac, ETH_ALEN); smac 1364 drivers/infiniband/hw/bnxt_re/qplib_fp.c memcpy(qp->smac, sb->src_mac, 6); smac 2436 drivers/infiniband/hw/bnxt_re/qplib_fp.c memcpy(cqe->smac, hwcqe->src_mac, ETH_ALEN); smac 2540 drivers/infiniband/hw/bnxt_re/qplib_fp.c memcpy(cqe->smac, qp->smac, 6); smac 281 drivers/infiniband/hw/bnxt_re/qplib_fp.h u8 smac[6]; smac 359 drivers/infiniband/hw/bnxt_re/qplib_fp.h u8 smac[6]; smac 281 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_gid *gid, u8 *smac, u16 vlan_id, smac 345 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); smac 346 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); smac 347 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); smac 373 drivers/infiniband/hw/bnxt_re/qplib_sp.c u8 *smac) smac 397 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); smac 398 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); smac 399 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); smac 234 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_gid *gid, u16 gid_idx, u8 *smac); smac 80 drivers/infiniband/hw/hns/hns_roce_hw_v1.c u8 *smac; smac 141 drivers/infiniband/hw/hns/hns_roce_hw_v1.c smac = (u8 *)hr_dev->dev_addr[qp->port]; smac 143 drivers/infiniband/hw/hns/hns_roce_hw_v1.c smac) ? 1 : 0; smac 2731 drivers/infiniband/hw/hns/hns_roce_hw_v1.c u8 *smac; smac 2928 drivers/infiniband/hw/hns/hns_roce_hw_v1.c smac = (u8 *)hr_dev->dev_addr[port]; smac 2930 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ether_addr_equal_unaligned(dmac, smac) || smac 257 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u8 *smac; smac 333 drivers/infiniband/hw/hns/hns_roce_hw_v2.c smac = (u8 *)hr_dev->dev_addr[qp->port]; smac 335 drivers/infiniband/hw/hns/hns_roce_hw_v2.c smac) ? 1 : 0; smac 2946 drivers/infiniband/hw/hns/hns_roce_hw_v2.c memcpy(wc->smac, cqe->smac, 4); smac 2947 drivers/infiniband/hw/hns/hns_roce_hw_v2.c wc->smac[4] = roce_get_field(cqe->byte_28, smac 2950 drivers/infiniband/hw/hns/hns_roce_hw_v2.c wc->smac[5] = roce_get_field(cqe->byte_28, smac 3685 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u8 *smac; smac 3827 drivers/infiniband/hw/hns/hns_roce_hw_v2.c smac = (u8 *)hr_dev->dev_addr[port]; smac 3829 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ether_addr_equal_unaligned(dmac, smac) || smac 904 drivers/infiniband/hw/hns/hns_roce_hw_v2.h u8 smac[4]; smac 603 drivers/infiniband/hw/mlx4/cq.c memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); smac 604 drivers/infiniband/hw/mlx4/cq.c memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); smac 869 drivers/infiniband/hw/mlx4/cq.c memcpy(wc->smac, cqe->smac, ETH_ALEN); smac 624 drivers/infiniband/hw/mlx4/mad.c memcpy((char *)&tun_mad->hdr.mac_31_0, &(wc->smac[0]), 4); smac 625 drivers/infiniband/hw/mlx4/mad.c memcpy((char *)&tun_mad->hdr.slid_mac_47_32, &(wc->smac[4]), 2); smac 1597 drivers/infiniband/hw/mlx4/mad.c &ah_attr, wc->smac, vlan_id, &tunnel->mad); smac 2298 drivers/infiniband/hw/mlx4/main.c old_smac = qp->pri.smac; smac 2316 drivers/infiniband/hw/mlx4/main.c qp->pri.smac = new_smac; smac 277 drivers/infiniband/hw/mlx4/mlx4_ib.h u64 smac; smac 1428 drivers/infiniband/hw/mlx4/qp.c if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { smac 1429 drivers/infiniband/hw/mlx4/qp.c mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); smac 1430 drivers/infiniband/hw/mlx4/qp.c qp->pri.smac = 0; smac 1433 drivers/infiniband/hw/mlx4/qp.c if (qp->alt.smac) { smac 1434 drivers/infiniband/hw/mlx4/qp.c mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); smac 1435 drivers/infiniband/hw/mlx4/qp.c qp->alt.smac = 0; smac 1797 drivers/infiniband/hw/mlx4/qp.c u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, smac 1887 drivers/infiniband/hw/mlx4/qp.c if ((!smac_info->smac && !smac_info->smac_port) || smac 1888 drivers/infiniband/hw/mlx4/qp.c smac_info->smac != smac) { smac 1890 drivers/infiniband/hw/mlx4/qp.c smac_index = mlx4_register_mac(dev->dev, port, smac); smac 1893 drivers/infiniband/hw/mlx4/qp.c smac_info->candidate_smac = smac; smac 1917 drivers/infiniband/hw/mlx4/qp.c u16 vlan_id, u8 *smac) smac 1920 drivers/infiniband/hw/mlx4/qp.c mlx4_mac_to_u64(smac), smac 1959 drivers/infiniband/hw/mlx4/qp.c if (!qp->pri.smac && !qp->pri.smac_port) { smac 2318 drivers/infiniband/hw/mlx4/qp.c u8 smac[ETH_ALEN]; smac 2326 drivers/infiniband/hw/mlx4/qp.c &smac[0]); smac 2332 drivers/infiniband/hw/mlx4/qp.c port_num, vlan, smac)) smac 2617 drivers/infiniband/hw/mlx4/qp.c if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { smac 2618 drivers/infiniband/hw/mlx4/qp.c mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); smac 2619 drivers/infiniband/hw/mlx4/qp.c qp->pri.smac = 0; smac 2622 drivers/infiniband/hw/mlx4/qp.c if (qp->alt.smac) { smac 2623 drivers/infiniband/hw/mlx4/qp.c mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); smac 2624 drivers/infiniband/hw/mlx4/qp.c qp->alt.smac = 0; smac 2651 drivers/infiniband/hw/mlx4/qp.c if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) smac 2652 drivers/infiniband/hw/mlx4/qp.c mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); smac 2653 drivers/infiniband/hw/mlx4/qp.c qp->pri.smac = qp->pri.candidate_smac; smac 2665 drivers/infiniband/hw/mlx4/qp.c if (qp->alt.smac) smac 2666 drivers/infiniband/hw/mlx4/qp.c mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); smac 2667 drivers/infiniband/hw/mlx4/qp.c qp->alt.smac = qp->alt.candidate_smac; smac 119 drivers/infiniband/hw/ocrdma/ocrdma_ah.c memcpy(ð.smac[0], &dev->nic_info.mac_addr[0], ETH_ALEN); smac 1895 drivers/infiniband/hw/ocrdma/ocrdma_sli.h u8 smac[6]; smac 1901 drivers/infiniband/hw/ocrdma/ocrdma_sli.h u8 smac[6]; smac 444 drivers/infiniband/hw/qedr/qedr.h u8 smac[ETH_ALEN]; smac 112 drivers/infiniband/hw/qedr/qedr_roce_cm.c *((u32 *)&qp->rqe_wr_id[qp->rq.gsi_cons].smac[0]) = smac 114 drivers/infiniband/hw/qedr/qedr_roce_cm.c *((u16 *)&qp->rqe_wr_id[qp->rq.gsi_cons].smac[4]) = smac 695 drivers/infiniband/hw/qedr/qedr_roce_cm.c ether_addr_copy(wc[i].smac, qp->rqe_wr_id[qp->rq.cons].smac); smac 6134 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h __be16 smac[3]; smac 208 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(flow->l2_key.smac, match.key->src); smac 209 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(flow->l2_mask.smac, match.mask->src); smac 416 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c memcpy(req.smac, flow->l2_key.smac, ETH_ALEN); smac 483 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c memcpy(&req.l2_rewrite_smac, &req.smac, ETH_ALEN); smac 491 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c memcpy(&req.l2_rewrite_smac, &req.smac, ETH_ALEN); smac 624 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(encap->src_mac_addr, l2_info->smac); smac 779 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c if (bits_set(&flow->l2_key.smac, sizeof(flow->l2_key.smac)) && smac 780 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c !is_exactmatch(flow->l2_mask.smac, sizeof(flow->l2_mask.smac))) { smac 1013 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(l2_info->smac, dst_dev->dev_addr); smac 1068 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(decap_l2_info->dmac, l2_info.smac); smac 21 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.h u8 smac[ETH_ALEN]; smac 1210 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h uint8_t smac[ETH_ALEN]; /* new source MAC address */ smac 572 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->smt = cxgb4_smt_alloc_switching(f->dev, f->fs.smac); smac 1140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->smt = cxgb4_smt_alloc_switching(f->dev, f->fs.smac); smac 49 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c PEDIT_FIELDS(ETH_, SMAC_15_0, 2, smac, 0), smac 50 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c PEDIT_FIELDS(ETH_, SMAC_47_16, 4, smac, 2), smac 65 drivers/net/ethernet/chelsio/cxgb4/smt.c static struct smt_entry *find_or_alloc_smte(struct smt_data *s, u8 *smac) smac 79 drivers/net/ethernet/chelsio/cxgb4/smt.c if (memcmp(e->src_mac, smac, ETH_ALEN) == 0) smac 209 drivers/net/ethernet/chelsio/cxgb4/smt.c u8 *smac) smac 215 drivers/net/ethernet/chelsio/cxgb4/smt.c e = find_or_alloc_smte(s, smac); smac 222 drivers/net/ethernet/chelsio/cxgb4/smt.c memcpy(e->src_mac, smac, ETH_ALEN); smac 240 drivers/net/ethernet/chelsio/cxgb4/smt.c struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac) smac 244 drivers/net/ethernet/chelsio/cxgb4/smt.c return t4_smt_alloc_switching(adap, 0x0, smac); smac 73 drivers/net/ethernet/chelsio/cxgb4/smt.h struct smt_entry *cxgb4_smt_alloc_switching(struct net_device *dev, u8 *smac); smac 68 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c DECLARE_MASK_VAL(u64, smac) = { smac 80 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c PRINT_MASKED_VALP(smac, u8 *, p, "%pM"); smac 156 drivers/net/ethernet/mellanox/mlxsw/core.c MLXSW_ITEM_BUF(emad, eth_hdr, smac, 0x06, 6); smac 8644 drivers/net/ethernet/mellanox/mlxsw/reg.h const char *smac, smac 8648 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_mpat_eth_rspan_smac_memcpy_to(payload, smac); smac 8657 drivers/net/ethernet/mellanox/mlxsw/reg.h const char *smac, smac 8661 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_mpat_eth_rspan_smac_memcpy_to(payload, smac); smac 282 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c memcpy(sparmsp->smac, edev->dev_addr, ETH_ALEN); smac 375 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c sparms.ttl, sparms.smac, smac 475 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c mlxsw_reg_mpat_eth_rspan_l3_ipv6_pack(mpat_pl, sparms.ttl, sparms.smac, smac 33 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h unsigned char smac[ETH_ALEN]; smac 372 drivers/net/ethernet/mscc/ocelot_ace.c VCAP_KEY_BYTES_SET(L2_SMAC, etype->smac.value, smac 373 drivers/net/ethernet/mscc/ocelot_ace.c etype->smac.mask); smac 386 drivers/net/ethernet/mscc/ocelot_ace.c VCAP_KEY_BYTES_SET(L2_SMAC, llc->smac.value, llc->smac.mask); smac 399 drivers/net/ethernet/mscc/ocelot_ace.c VCAP_KEY_BYTES_SET(L2_SMAC, snap->smac.value, snap->smac.mask); smac 409 drivers/net/ethernet/mscc/ocelot_ace.c VCAP_KEY_BYTES_SET(MAC_ARP_L2_SMAC, arp->smac.value, smac 410 drivers/net/ethernet/mscc/ocelot_ace.c arp->smac.mask); smac 97 drivers/net/ethernet/mscc/ocelot_ace.h struct ocelot_vcap_u48 smac; smac 104 drivers/net/ethernet/mscc/ocelot_ace.h struct ocelot_vcap_u48 smac; smac 112 drivers/net/ethernet/mscc/ocelot_ace.h struct ocelot_vcap_u48 smac; smac 119 drivers/net/ethernet/mscc/ocelot_ace.h struct ocelot_vcap_u48 smac; smac 90 drivers/net/ethernet/mscc/ocelot_flower.c ether_addr_copy(ocelot_rule->frame.etype.smac.value, smac 94 drivers/net/ethernet/mscc/ocelot_flower.c ether_addr_copy(ocelot_rule->frame.etype.smac.mask, smac 469 drivers/net/ethernet/sun/sungem.c u32 smac = readl(gp->regs + MAC_SMACHINE); smac 471 drivers/net/ethernet/sun/sungem.c netdev_err(dev, "RX MAC fifo overflow smac[%08x]\n", smac); smac 54 include/linux/mlx4/cq.h u8 smac[ETH_ALEN]; smac 58 include/rdma/ib_cache.h u16 *vlan_id, u8 *smac); smac 989 include/rdma/ib_verbs.h u8 smac[ETH_ALEN]; smac 3535 include/uapi/linux/bpf.h __u8 smac[6]; /* ETH_ALEN */ smac 293 include/uapi/rdma/vmw_pvrdma-abi.h __u8 smac[6]; smac 136 net/bridge/netfilter/ebt_among.c const char *dmac, *smac; smac 144 net/bridge/netfilter/ebt_among.c smac = eth_hdr(skb)->h_source; smac 149 net/bridge/netfilter/ebt_among.c if (!ebt_mac_wormhash_contains(wh_src, smac, sip)) smac 153 net/bridge/netfilter/ebt_among.c if (ebt_mac_wormhash_contains(wh_src, smac, sip)) smac 4604 net/core/filter.c memcpy(params->smac, dev->dev_addr, ETH_ALEN); smac 60 net/dsa/tag_sja1105.c u64 smac = ether_addr_to_u64(hdr->h_source); smac 63 net/dsa/tag_sja1105.c if (smac != SJA1105_META_SMAC) smac 170 samples/bpf/test_lwt_bpf.c uint64_t smac = SRC_MAC, dmac = DST_MAC; smac 180 samples/bpf/test_lwt_bpf.c memcpy(&ehdr.h_source, &smac, 6); smac 139 samples/bpf/xdp_fwd_kern.c memcpy(eth->h_source, fib_params.smac, ETH_ALEN); smac 3535 tools/include/uapi/linux/bpf.h __u8 smac[6]; /* ETH_ALEN */