Searched refs:mac (Results 26 - 50 of 1076) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/intel/e1000e/
H A Dmac.c19 struct e1000_mac_info *mac = &hw->mac; local
31 mac->ops.set_lan_id(hw);
118 hw->mac.ops.rar_set(hw, hw->mac.addr, 0);
123 hw->mac.ops.rar_set(hw, mac_addr, i);
150 if (hw->mac.type == e1000_82573)
189 hw->mac.ops.rar_set(hw, alt_mac_addr, 0);
196 return hw->mac.rar_entry_count;
250 hash_mask = (hw->mac
396 struct e1000_mac_info *mac = &hw->mac; local
459 struct e1000_mac_info *mac = &hw->mac; local
524 struct e1000_mac_info *mac = &hw->mac; local
721 struct e1000_mac_info *mac = &hw->mac; local
787 struct e1000_mac_info *mac = &hw->mac; local
1001 struct e1000_mac_info *mac = &hw->mac; local
1466 struct e1000_mac_info *mac = &hw->mac; local
1727 struct e1000_mac_info *mac = &hw->mac; local
1753 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A D82571.c62 switch (hw->mac.type) {
90 switch (hw->mac.type) {
143 switch (hw->mac.type) {
174 switch (hw->mac.type) {
193 struct e1000_mac_info *mac = &hw->mac; local
204 mac->ops.setup_physical_interface =
206 mac->ops.check_for_link = e1000e_check_for_fiber_link;
207 mac->ops.get_link_up_info =
215 mac
1067 struct e1000_mac_info *mac = &hw->mac; local
1497 struct e1000_mac_info *mac = &hw->mac; local
1800 struct e1000_mac_info *mac = &hw->mac; local
[all...]
/linux-master/drivers/net/wireless/quantenna/qtnfmac/
H A Dutil.c17 const u8 *mac)
21 if (unlikely(!mac))
25 if (ether_addr_equal(node->mac_addr, mac))
49 const u8 *mac)
54 if (unlikely(!mac))
57 node = qtnf_sta_list_lookup(list, mac);
66 ether_addr_copy(node->mac_addr, mac);
75 bool qtnf_sta_list_del(struct qtnf_vif *vif, const u8 *mac) argument
81 node = qtnf_sta_list_lookup(list, mac);
16 qtnf_sta_list_lookup(struct qtnf_sta_list *list, const u8 *mac) argument
48 qtnf_sta_list_add(struct qtnf_vif *vif, const u8 *mac) argument
H A Dutil.h15 const u8 *mac);
19 const u8 *mac);
20 bool qtnf_sta_list_del(struct qtnf_vif *vif, const u8 *mac);
H A Dcfg80211.c78 struct qtnf_wmac *mac; local
86 mac = wiphy_priv(wiphy);
87 if (!mac)
91 vif = &mac->iflist[i];
112 vif = qtnf_mac_get_base_vif(mac);
117 mac->macid);
137 vif->mac->macid, vif->vifid, type);
146 qtnf_scan_done(vif->mac, true);
151 vif->mac->macid, vif->vifid, type);
170 qtnf_scan_done(vif->mac, tru
202 struct qtnf_wmac *mac; local
375 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
485 qtnf_get_station(struct wiphy *wiphy, struct net_device *dev, const u8 *mac, struct station_info *sinfo) argument
495 qtnf_dump_station(struct wiphy *wiphy, struct net_device *dev, int idx, u8 *mac, struct station_info *sinfo) argument
604 qtnf_change_station(struct wiphy *wiphy, struct net_device *dev, const u8 *mac, struct station_parameters *params) argument
642 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
716 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
747 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
905 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
942 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
974 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
994 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
1043 struct qtnf_wmac *mac = wiphy_priv(wiphy); local
1121 qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac) argument
1255 struct qtnf_wmac *mac = wiphy_priv(vif->wdev.wiphy); local
[all...]
/linux-master/drivers/net/ethernet/sunplus/
H A Dspl2sw_driver.c27 struct spl2sw_mac *mac = netdev_priv(ndev); local
28 struct spl2sw_common *comm = mac->comm;
31 netdev_dbg(ndev, "Open port = %x\n", mac->lan_port);
33 comm->enable |= mac->lan_port;
51 struct spl2sw_mac *mac = netdev_priv(ndev); local
52 struct spl2sw_common *comm = mac->comm;
56 comm->enable &= ~mac->lan_port;
68 struct spl2sw_mac *mac = netdev_priv(ndev); local
69 struct spl2sw_common *comm = mac->comm;
110 cmd1 = TXD_OWN | TXD_SOP | TXD_EOP | (mac
141 struct spl2sw_mac *mac = netdev_priv(ndev); local
148 struct spl2sw_mac *mac = netdev_priv(ndev); local
170 struct spl2sw_mac *mac = netdev_priv(ndev); local
226 u8 *mac; local
266 struct spl2sw_mac *mac; local
328 struct spl2sw_mac *mac; local
[all...]
H A Dspl2sw_mac.c53 int spl2sw_mac_addr_add(struct spl2sw_mac *mac) argument
55 struct spl2sw_common *comm = mac->comm;
60 writel((mac->mac_addr[0] << 0) + (mac->mac_addr[1] << 8),
62 writel((mac->mac_addr[2] << 0) + (mac->mac_addr[3] << 8) +
63 (mac->mac_addr[4] << 16) + (mac->mac_addr[5] << 24),
67 reg = MAC_W_CPU_PORT_0 | FIELD_PREP(MAC_W_VID, mac->vlan_id) |
75 netdev_err(mac
88 spl2sw_mac_addr_del(struct spl2sw_mac *mac) argument
218 spl2sw_mac_rx_mode_set(struct spl2sw_mac *mac) argument
[all...]
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc_hw.h306 #define ENETC_PM_REOCT(mac) (0x8100 + ENETC_PMAC_OFFSET * (mac))
307 #define ENETC_PM_RALN(mac) (0x8110 + ENETC_PMAC_OFFSET * (mac))
308 #define ENETC_PM_RXPF(mac) (0x8118 + ENETC_PMAC_OFFSET * (mac))
309 #define ENETC_PM_RFRM(mac) (0x8120 + ENETC_PMAC_OFFSET * (mac))
310 #define ENETC_PM_RFCS(mac) (0x8128 + ENETC_PMAC_OFFSET * (mac))
[all...]
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_mactable.c35 unsigned char mac[ETH_ALEN]; member in struct:sparx5_mact_entry
60 const unsigned char mac[ETH_ALEN],
69 mach |= mac[0] << 8;
70 mach |= mac[1] << 0;
71 macl |= mac[2] << 24;
72 macl |= mac[3] << 16;
73 macl |= mac[4] << 8;
74 macl |= mac[5] << 0;
81 const unsigned char mac[ETH_ALEN], u16 vid)
96 sparx5_mact_select(sparx5, mac, vi
59 sparx5_mact_select(struct sparx5 *sparx5, const unsigned char mac[ETH_ALEN], u16 vid) argument
80 sparx5_mact_learn(struct sparx5 *sparx5, int pgid, const unsigned char mac[ETH_ALEN], u16 vid) argument
134 sparx5_mact_get(struct sparx5 *sparx5, unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2) argument
159 sparx5_mact_getnext(struct sparx5 *sparx5, unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2) argument
189 sparx5_mact_find(struct sparx5 *sparx5, const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2) argument
218 sparx5_mact_forget(struct sparx5 *sparx5, const unsigned char mac[ETH_ALEN], u16 vid) argument
239 alloc_mact_entry(struct sparx5 *sparx5, const unsigned char *mac, u16 vid, u16 port_index) argument
256 find_mact_entry(struct sparx5 *sparx5, const unsigned char *mac, u16 vid, u16 port_index) argument
277 sparx5_fdb_call_notifiers(enum switchdev_notifier_type type, const char *mac, u16 vid, struct net_device *dev, bool offloaded) argument
361 sparx5_mact_handle_entry(struct sparx5 *sparx5, unsigned char mac[ETH_ALEN], u16 vid, u32 cfg2) argument
426 unsigned char mac[ETH_ALEN]; local
[all...]
/linux-master/arch/mips/include/asm/mach-au1x00/
H A Dau1xxx_eth.h13 char mac[6]; member in struct:au1000_eth_platform_data
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_mdb.c16 unsigned char mac[ETH_ALEN]; member in struct:lan966x_mdb_entry
57 const unsigned char *mac,
63 if (ether_addr_equal(mdb_entry->mac, mac) &&
81 ether_addr_copy(mdb_entry->mac, mdb->addr);
89 static void lan966x_mdb_encode_mac(unsigned char *mac, argument
93 ether_addr_copy(mac, mdb_entry->mac);
96 mac[0] = 0;
97 mac[
56 lan966x_mdb_entry_get(struct lan966x *lan966x, const unsigned char *mac, u16 vid) argument
112 unsigned char mac[ETH_ALEN]; local
147 unsigned char mac[ETH_ALEN]; local
256 unsigned char mac[ETH_ALEN]; local
305 unsigned char mac[ETH_ALEN]; local
355 lan966x_mdb_classify(const unsigned char *mac) argument
402 unsigned char mac[ETH_ALEN]; local
414 unsigned char mac[ETH_ALEN]; local
457 unsigned char mac[ETH_ALEN]; local
469 unsigned char mac[ETH_ALEN]; local
512 unsigned char mac[ETH_ALEN]; local
529 unsigned char mac[ETH_ALEN]; local
[all...]
H A Dlan966x_mac.c21 unsigned char mac[ETH_ALEN] __aligned(2);
53 const unsigned char mac[ETH_ALEN],
62 mach |= mac[0] << 8;
63 mach |= mac[1] << 0;
64 macl |= mac[2] << 24;
65 macl |= mac[3] << 16;
66 macl |= mac[4] << 8;
67 macl |= mac[5] << 0;
75 const unsigned char mac[ETH_ALEN],
81 lan966x_mac_select(lan966x, mac, vi
52 lan966x_mac_select(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid) argument
73 __lan966x_mac_learn_locked(struct lan966x *lan966x, int pgid, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
95 __lan966x_mac_learn(struct lan966x *lan966x, int pgid, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
113 lan966x_mac_ip_learn(struct lan966x *lan966x, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
124 lan966x_mac_learn(struct lan966x *lan966x, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
134 lan966x_mac_learn_locked(struct lan966x *lan966x, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
144 lan966x_mac_forget_locked(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
161 lan966x_mac_forget(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
203 lan966x_mac_alloc_entry(struct lan966x_port *port, const unsigned char *mac, u16 vid) argument
221 lan966x_mac_find_entry(struct lan966x *lan966x, const unsigned char *mac, u16 vid, u16 port_index) argument
240 lan966x_mac_lookup(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
261 lan966x_fdb_call_notifiers(enum switchdev_notifier_type type, const char *mac, u16 vid, struct net_device *dev) argument
397 lan966x_mac_notifiers(enum switchdev_notifier_type type, unsigned char *mac, u32 vid, struct net_device *dev) argument
406 lan966x_mac_process_raw_entry(struct lan966x_mac_raw_entry *raw_entry, u8 *mac, u16 *vid, u32 *dest_idx) argument
[all...]
/linux-master/include/linux/
H A Dof_net.h16 extern int of_get_mac_address(struct device_node *np, u8 *mac);
17 extern int of_get_mac_address_nvmem(struct device_node *np, u8 *mac);
27 static inline int of_get_mac_address(struct device_node *np, u8 *mac) argument
32 static inline int of_get_mac_address_nvmem(struct device_node *np, u8 *mac) argument
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmpfs.h39 /* L2 -mac address based- hash helpers */
52 #define l2addr_hash_find(hash, mac, type) ({ \
53 int ix = MLX5_L2_ADDR_HASH(mac); \
58 if (ether_addr_equal(ptr->node.addr, mac)) {\
67 #define l2addr_hash_add(hash, mac, type, gfp) ({ \
68 int ix = MLX5_L2_ADDR_HASH(mac); \
73 ether_addr_copy(ptr->node.addr, mac); \
/linux-master/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_param.c324 hw->mac.autoneg = hw->mac.fc_autoneg = 1;
328 hw->mac.link_speed = SPEED_10;
329 hw->mac.link_duplex = DUPLEX_HALF;
336 hw->mac.autoneg = hw->mac.fc_autoneg = 1;
339 hw->mac.link_speed = SPEED_10;
340 hw->mac.link_duplex = DUPLEX_HALF;
347 hw->mac.autoneg = hw->mac
[all...]
/linux-master/drivers/net/wireless/realtek/rtlwifi/
H A Dcore.c150 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
171 mac->link_state = MAC80211_NOLINK;
172 eth_zero_addr(mac->bssid);
173 mac->vendor = PEER_UNKNOWN;
214 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
218 if (mac->vif) {
220 "vif has been set!! mac->vif = 0x%p\n", mac->vif);
231 mac->p2p = P2P_ROLE_CLIENT;
234 if (mac
323 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
423 struct rtl_mac *mac = &rtlpriv->mac80211; local
559 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
584 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
781 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
874 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
968 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
1026 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
1350 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
1426 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
1459 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local
[all...]
/linux-master/fs/nls/
H A DMakefile46 obj-$(CONFIG_NLS_MAC_CELTIC) += mac-celtic.o
47 obj-$(CONFIG_NLS_MAC_CENTEURO) += mac-centeuro.o
48 obj-$(CONFIG_NLS_MAC_CROATIAN) += mac-croatian.o
49 obj-$(CONFIG_NLS_MAC_CYRILLIC) += mac-cyrillic.o
50 obj-$(CONFIG_NLS_MAC_GAELIC) += mac-gaelic.o
51 obj-$(CONFIG_NLS_MAC_GREEK) += mac-greek.o
52 obj-$(CONFIG_NLS_MAC_ICELAND) += mac-iceland.o
53 obj-$(CONFIG_NLS_MAC_INUIT) += mac-inuit.o
54 obj-$(CONFIG_NLS_MAC_ROMANIAN) += mac-romanian.o
55 obj-$(CONFIG_NLS_MAC_ROMAN) += mac
[all...]
/linux-master/arch/arm64/crypto/
H A Dsm4-ce-ccm-glue.c21 asmlinkage void sm4_ce_cbcmac_update(const u32 *rkey_enc, u8 *mac,
24 u8 *iv, unsigned int nbytes, u8 *mac);
26 u8 *iv, unsigned int nbytes, u8 *mac);
27 asmlinkage void sm4_ce_ccm_final(const u32 *rkey_enc, u8 *iv, u8 *mac);
91 static void ccm_calculate_auth_mac(struct aead_request *req, u8 mac[]) argument
109 sm4_ce_crypt_block(ctx->rkey_enc, mac, mac);
110 crypto_xor(mac, (const u8 *)&aadlen, len);
133 mac, mac);
162 ccm_crypt(struct aead_request *req, struct skcipher_walk *walk, u32 *rkey_enc, u8 mac[], void (*sm4_ce_ccm_crypt)(const u32 *rkey_enc, u8 *dst, const u8 *src, u8 *iv, unsigned int nbytes, u8 *mac)) argument
[all...]
/linux-master/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_vf.c14 u8 *perm_addr = hw->mac.perm_addr;
36 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT;
41 for (i = 0; i < hw->mac.max_queues; i++) {
71 hw->mac.reset_while_pending++;
127 hw->mac.max_queues = i;
130 hw->mac.default_vid = FIELD_GET(FM10K_TXQCTL_VID_MASK,
136 hw->mac.itr_scale = FIELD_GET(FM10K_TDLEN_ITR_SCALE_MASK,
142 hw->mac.max_queues = 0;
214 ether_addr_copy(hw->mac.perm_addr, perm_addr);
215 hw->mac
270 fm10k_update_uc_addr_vf(struct fm10k_hw *hw, u16 __always_unused glort, const u8 *mac, u16 vid, bool add, u8 __always_unused flags) argument
314 fm10k_update_mc_addr_vf(struct fm10k_hw *hw, u16 __always_unused glort, const u8 *mac, u16 vid, bool add) argument
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dtest_tc_tunnel.sh127 for mac in none mpls eth ; do
128 echo "ip gre $mac"
129 $0 ipv4 gre $mac 100
131 echo "ip6 gre $mac"
132 $0 ipv6 ip6gre $mac 100
134 echo "ip gre $mac gso"
135 $0 ipv4 gre $mac 2000
137 echo "ip6 gre $mac gso"
138 $0 ipv6 ip6gre $mac 2000
140 echo "ip udp $mac"
[all...]
/linux-master/drivers/media/common/b2c2/
H A Dflexcop-eeprom.c62 static char eeprom_set_mac_addr(struct adapter *adapter, char type, u8 *mac)
67 tmp[0] = mac[0];
68 tmp[1] = mac[1];
69 tmp[2] = mac[2];
70 tmp[3] = mac[5];
71 tmp[4] = mac[6];
72 tmp[5] = mac[7];
74 tmp[0] = mac[0];
75 tmp[1] = mac[1];
76 tmp[2] = mac[
[all...]
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_base.c129 struct igc_mac_info *mac = &hw->mac; local
132 mac->mta_reg_count = 128;
133 mac->rar_entry_count = IGC_RAR_ENTRIES;
136 mac->ops.reset_hw = igc_reset_hw_base;
138 mac->ops.acquire_swfw_sync = igc_acquire_swfw_sync_i225;
139 mac->ops.release_swfw_sync = igc_release_swfw_sync_i225;
142 if (mac->type == igc_i225)
146 mac->ops.setup_physical_interface = igc_setup_copper_link_base;
189 struct igc_mac_info *mac local
277 struct igc_mac_info *mac = &hw->mac; local
[all...]
/linux-master/drivers/net/ethernet/intel/ixgbevf/
H A Dvf.c50 s32 status = hw->mac.ops.start_hw(hw);
52 hw->mac.ops.get_mac_addr(hw, hw->mac.addr);
73 hw->mac.ops.stop_adapter(hw);
103 * on the mac address in word 3
118 ether_addr_copy(hw->mac.perm_addr, addr);
120 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD];
141 &hw->mac.perm_addr[i]);
170 number_of_queues = hw->mac.max_rx_queues;
188 number_of_queues = hw->mac
706 struct ixgbe_mac_info *mac = &hw->mac; local
797 struct ixgbe_mac_info *mac = &hw->mac; local
[all...]
/linux-master/drivers/net/ethernet/intel/igbvf/
H A Dvf.c27 struct e1000_mac_info *mac = &hw->mac; local
30 mac->mta_reg_count = 128;
32 mac->rar_entry_count = 1;
36 mac->ops.reset_hw = e1000_reset_hw_vf;
38 mac->ops.init_hw = e1000_init_hw_vf;
40 mac->ops.check_for_link = e1000_check_for_link_vf;
42 mac->ops.get_link_up_info = e1000_get_link_up_info_vf;
44 mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_vf;
45 /* set mac addres
382 struct e1000_mac_info *mac = &hw->mac; local
[all...]
/linux-master/drivers/net/wireless/intel/iwlegacy/
H A DMakefile10 iwl4965-objs := 4965.o 4965-mac.o 4965-rs.o 4965-calib.o
15 iwl3945-objs := 3945-mac.o 3945.o 3945-rs.o

Completed in 183 milliseconds

1234567891011>>