/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_82598.c | 71 struct ixgbe_mac_info *mac = &hw->mac; local 76 mac->mcft_size = IXGBE_82598_MC_TBL_SIZE; 77 mac->vft_size = IXGBE_82598_VFT_TBL_SIZE; 78 mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES; 79 mac->rx_pb_size = IXGBE_82598_RX_PB_SIZE; 80 mac->max_rx_queues = IXGBE_82598_MAX_RX_QUEUES; 81 mac->max_tx_queues = IXGBE_82598_MAX_TX_QUEUES; 82 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); 98 struct ixgbe_mac_info *mac local [all...] |
/linux-master/drivers/net/wireless/realtek/rtlwifi/ |
H A D | rc.c | 118 struct rtl_mac *mac = rtl_mac(rtlpriv); local 136 if (mac->opmode == NL80211_IFTYPE_AP || 137 mac->opmode == NL80211_IFTYPE_ADHOC) { 144 if (mac->bw_80) 146 else if (mac->bw_40) 192 struct rtl_mac *mac = rtl_mac(rtlpriv); local 194 if (mac->act_scanning) 197 if (mac->opmode == NL80211_IFTYPE_STATION && 198 mac->cnt_after_linked < 3) 214 struct rtl_mac *mac local [all...] |
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_dmac_flt.c | 10 static int otx2_dmacflt_do_add(struct otx2_nic *pf, const u8 *mac, argument 25 ether_addr_copy(req->mac_addr, mac); 74 int otx2_dmacflt_add(struct otx2_nic *pf, const u8 *mac, u32 bit_pos) argument 83 if (ether_addr_equal(mac, pf->netdev->dev_addr)) 86 return otx2_dmacflt_do_add(pf, mac, dmacindex); 89 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, argument 129 int otx2_dmacflt_remove(struct otx2_nic *pf, const u8 *mac, argument 134 if (ether_addr_equal(mac, pf->netdev->dev_addr)) 137 return otx2_dmacflt_do_remove(pf, mac, dmacindex); 177 int otx2_dmacflt_update(struct otx2_nic *pf, u8 *mac, u3 argument [all...] |
/linux-master/drivers/net/wireless/purelifi/plfxlc/ |
H A D | mac.h | 68 #define plfxlc_mac_dev(mac) plfxlc_chip_dev(&(mac)->chip) 100 u8 mac[ETH_ALEN]; member in struct:tx_status 129 spinlock_t lock; /* lock for mac data */ 165 static inline u8 *plfxlc_mac_get_perm_addr(struct plfxlc_mac *mac) argument 167 return mac->hw->wiphy->perm_addr; 171 void plfxlc_mac_release(struct plfxlc_mac *mac); 182 int plfxlc_restore_settings(struct plfxlc_mac *mac);
|
/linux-master/drivers/net/ethernet/intel/e1000e/ |
H A D | ich8lan.c | 211 if (hw->mac.type < e1000_pch_lpt) { 222 if (hw->mac.type >= e1000_pch_lpt) { 275 if (hw->mac.type < e1000_pch_lpt) { 329 switch (hw->mac.type) { 362 if ((hw->mac.type == e1000_pchlan) && 374 if (hw->mac.type >= e1000_pch_lpt) { 428 if ((hw->mac.type == e1000_pch2lan) && 466 if (hw->mac.type == e1000_pch_mtp) { 476 switch (hw->mac.type) { 627 if (hw->mac 692 struct e1000_mac_info *mac = &hw->mac; local 1434 struct e1000_mac_info *mac = &hw->mac; local 4651 struct e1000_mac_info *mac = &hw->mac; local 4861 struct e1000_mac_info *mac = &hw->mac; local [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mdio.c | 127 struct hclge_mac *mac = &hdev->hw.mac; local 132 if (hdev->hw.mac.phy_addr == PHY_INEXISTENT) { 136 } else if (hdev->hw.mac.phy_addr >= PHY_MAX_ADDR) { 138 hdev->hw.mac.phy_addr); 154 mdio_bus->phy_mask = ~(1 << mac->phy_addr); 162 phydev = mdiobus_get_phy(mdio_bus, mac->phy_addr); 169 mac->phydev = phydev; 170 mac->mdio_bus = mdio_bus; 204 struct phy_device *phydev = hdev->hw.mac [all...] |
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_fltr.c | 222 * @mac: MAC address to add 227 const u8 *mac, enum ice_sw_fwd_act_type action) 237 ether_addr_copy(info.l_data.mac.mac_addr, mac); 301 * @mac: MAC address to add 306 ice_fltr_prepare_mac(struct ice_vsi *vsi, const u8 *mac, argument 313 if (ice_fltr_add_mac_to_list(vsi, &tmp_list, mac, action)) { 326 * @mac: MAC address to add 331 ice_fltr_prepare_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac, argument 341 if (ice_fltr_add_mac_to_list(vsi, &tmp_list, mac, actio 226 ice_fltr_add_mac_to_list(struct ice_vsi *vsi, struct list_head *list, const u8 *mac, enum ice_sw_fwd_act_type action) argument 403 ice_fltr_add_mac(struct ice_vsi *vsi, const u8 *mac, enum ice_sw_fwd_act_type action) argument 416 ice_fltr_add_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac, enum ice_sw_fwd_act_type action) argument 429 ice_fltr_remove_mac(struct ice_vsi *vsi, const u8 *mac, enum ice_sw_fwd_act_type action) argument [all...] |
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | hwif.h | 432 stmmac_do_void_callback(__priv, mac, core_init, __args) 434 stmmac_do_void_callback(__priv, mac, update_caps, __priv) 436 stmmac_do_void_callback(__priv, mac, set_mac, __args) 438 stmmac_do_callback(__priv, mac, rx_ipc, __args) 440 stmmac_do_void_callback(__priv, mac, rx_queue_enable, __args) 442 stmmac_do_void_callback(__priv, mac, rx_queue_prio, __args) 444 stmmac_do_void_callback(__priv, mac, tx_queue_prio, __args) 446 stmmac_do_void_callback(__priv, mac, rx_queue_routing, __args) 448 stmmac_do_void_callback(__priv, mac, prog_mtl_rx_algorithms, __args) 450 stmmac_do_void_callback(__priv, mac, prog_mtl_tx_algorithm [all...] |
H A D | stmmac_platform.h | 15 devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac);
|
/linux-master/drivers/staging/rtl8712/ |
H A D | usb_intf.c | 392 u8 mac[6]; local 441 if (!r8712_initmac || !mac_pton(r8712_initmac, mac)) { 442 /* Use the mac address stored in the Efuse 445 ether_addr_copy(mac, &pdata[0x12]); 540 ((mac[0] == 0xff) && (mac[1] == 0xff) && 541 (mac[2] == 0xff) && (mac[3] == 0xff) && 542 (mac[4] == 0xff) && (mac[ [all...] |
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1q.sh | 484 local mac=$1; shift 503 $MZ $h1 -Q $vid -c 10 -d 100msec -p 64 -b $mac -B $dst -t icmp -q 523 local mac=$1; shift 531 vxlan_flood_test $mac $dst $vid "${expects[@]}" 548 local mac=$1; shift 552 bridge fdb $add_del dev $dev $mac self static permanent \ 554 bridge fdb $add_del dev $dev $mac master static vlan $vid 2>/dev/null 559 local mac=$1; shift 570 vxlan_flood_test $mac $dst $vid "${expects[@]}" 617 local mac [all...] |
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pci.c | 269 err = hw->mac.ops.reset_hw(hw); 275 err = hw->mac.ops.init_hw(hw); 298 if (hw->mac.type == fm10k_mac_vf) { 299 if (is_valid_ether_addr(hw->mac.perm_addr)) { 300 ether_addr_copy(hw->mac.addr, hw->mac.perm_addr); 301 ether_addr_copy(netdev->perm_addr, hw->mac.perm_addr); 302 eth_hw_addr_set(netdev, hw->mac.perm_addr); 306 if (hw->mac.vlan_override) 432 if (hw->mac [all...] |
/linux-master/drivers/net/wireless/ath/wil6210/ |
H A D | txrx.h | 468 struct vring_tx_mac mac; member in struct:vring_tx_desc 478 struct vring_rx_mac mac; member in struct:vring_rx_desc 506 return WIL_GET_BITS(d->mac.d0, 0, 3); 511 return WIL_GET_BITS(d->mac.d0, 4, 6); 516 return (d->mac.d0 & RX_MAC_D0_MAC_ID_VALID) ? 517 WIL_GET_BITS(d->mac.d0, 8, 9) : 0; 522 return WIL_GET_BITS(d->mac.d0, 10, 11); 527 return WIL_GET_BITS(d->mac.d0, 12, 15); 533 return (u8)(WIL_GET_BITS(d->mac.d0, 10, 15) << 2); 538 return WIL_GET_BITS(d->mac [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb/ |
H A D | pm3393.c | 418 #define RMON_UPDATE(mac, name, stat_name) \ 420 t1_tpi_read((mac)->adapter, OFFSET(name), &val0); \ 421 t1_tpi_read((mac)->adapter, OFFSET((name)+1), &val1); \ 422 t1_tpi_read((mac)->adapter, OFFSET((name)+2), &val2); \ 423 (mac)->stats.stat_name = (u64)(val0 & 0xffff) | \ 426 ((mac)->stats.stat_name & \ 430 (mac)->stats.stat_name += 1ULL << 40; \ 433 static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac, argument 440 pmwrite(mac, SUNI1x10GEXP_REG_MSTAT_CONTROL, 444 pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_ [all...] |
/linux-master/samples/bpf/ |
H A D | xdp_router_ipv4.bpf.c | 31 __be64 mac; member in struct:arp_entry 38 __be64 mac; member in struct:direct_map 121 if (direct_entry && direct_entry->mac && 122 direct_entry->arp.mac) { 123 src_mac = &direct_entry->mac; 124 dest_mac = &direct_entry->arp.mac;
|
/linux-master/drivers/net/ethernet/ibm/ |
H A D | ibmveth.h | 40 #define h_register_logical_lan(ua, buflst, rxq, fltlst, mac) \ 41 plpar_hcall_norets(H_REGISTER_LOGICAL_LAN, ua, buflst, rxq, fltlst, mac) 87 #define h_multicast_ctrl(ua, cmd, mac) \ 88 plpar_hcall_norets(H_MULTICAST_CTRL, ua, cmd, mac) 90 #define h_change_logical_lan_mac(ua, mac) \ 91 plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac)
|
/linux-master/net/llc/ |
H A D | llc_s_ac.c | 60 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); 85 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); 141 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac);
|
/linux-master/net/batman-adv/ |
H A D | bridge_loop_avoidance.h | 20 * batadv_bla_is_loopdetect_mac() - check if the mac address is from a loop 22 * @mac: mac address to check 25 * (mac starts with BA:BE), false otherwise 27 static inline bool batadv_bla_is_loopdetect_mac(const uint8_t *mac) argument 29 if (mac[0] == 0xba && mac[1] == 0xbe)
|
/linux-master/drivers/net/ethernet/freescale/fman/ |
H A D | Makefile | 10 fsl_dpaa_mac-objs:= mac.o fman_dtsec.o fman_memac.o fman_tgec.o
|
/linux-master/include/linux/ |
H A D | if_link.h | 22 __u8 mac[32]; member in struct:ifla_vf_info
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | Makefile | 7 eeprom.o mac.o init.o phy.o mcu.o
|
/linux-master/include/linux/qed/ |
H A D | qed_iov_if.h | 16 int (*set_mac) (struct qed_dev *cdev, u8 *mac, int vfid);
|
/linux-master/drivers/vdpa/pds/ |
H A D | cmds.h | 11 int pds_vdpa_cmd_set_mac(struct pds_vdpa_device *pdsv, u8 *mac);
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | Makefile | 8 mt7921-common-y := mac.o mcu.o main.o init.o debugfs.o
|
/linux-master/net/ieee802154/ |
H A D | Makefile | 6 ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o core.o \
|