Home
last modified time | relevance | path

Searched refs:mac_addr (Results 1 – 25 of 576) sorted by relevance

12345678910>>...24

/linux/drivers/net/ethernet/ti/
A Dcpsw-common.c16 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument
32 mac_addr[0] = (macid_msb >> 16) & 0xff; in davinci_emac_3517_get_macid()
33 mac_addr[1] = (macid_msb >> 8) & 0xff; in davinci_emac_3517_get_macid()
34 mac_addr[2] = macid_msb & 0xff; in davinci_emac_3517_get_macid()
35 mac_addr[3] = (macid_lsb >> 16) & 0xff; in davinci_emac_3517_get_macid()
37 mac_addr[5] = macid_lsb & 0xff; in davinci_emac_3517_get_macid()
43 u8 *mac_addr) in cpsw_am33xx_cm_get_macid() argument
59 mac_addr[5] = (macid_lo >> 8) & 0xff; in cpsw_am33xx_cm_get_macid()
60 mac_addr[4] = macid_lo & 0xff; in cpsw_am33xx_cm_get_macid()
63 mac_addr[1] = (macid_hi >> 8) & 0xff; in cpsw_am33xx_cm_get_macid()
[all …]
A Ddavinci_emac.c314 char mac_addr[6]; member
1036 val = ((mac_addr[5] << 8) | (mac_addr[4])); in emac_set_type0addr()
1039 val = ((mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in emac_set_type0addr()
1040 (mac_addr[1] << 8) | (mac_addr[0])); in emac_set_type0addr()
1064 val = ((mac_addr[5] << 8) | mac_addr[4]); in emac_set_type1addr()
1066 val = ((mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in emac_set_type1addr()
1067 (mac_addr[1] << 8) | (mac_addr[0])); in emac_set_type1addr()
1089 val = ((mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in emac_set_type2addr()
1090 (mac_addr[1] << 8) | (mac_addr[0])); in emac_set_type2addr()
1092 val = ((mac_addr[5] << 8) | mac_addr[4] | ((ch & 0x7) << 16) | \ in emac_set_type2addr()
[all …]
A Dcpsw.c555 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_dual_emac_def_ale_entries()
988 eth_hw_addr_set(ndev, priv->mac_addr); in cpsw_ndo_set_mac_address()
1373 slave_data->mac_addr); in cpsw_probe_dt()
1454 memcpy(priv_sl2->mac_addr, data->slave_data[1].mac_addr, in cpsw_probe_dual_emac()
1457 priv_sl2->mac_addr); in cpsw_probe_dual_emac()
1459 eth_random_addr(priv_sl2->mac_addr); in cpsw_probe_dual_emac()
1461 priv_sl2->mac_addr); in cpsw_probe_dual_emac()
1463 eth_hw_addr_set(ndev, priv_sl2->mac_addr); in cpsw_probe_dual_emac()
1635 memcpy(priv->mac_addr, data->slave_data[0].mac_addr, ETH_ALEN); in cpsw_probe()
1638 eth_random_addr(priv->mac_addr); in cpsw_probe()
[all …]
/linux/drivers/staging/vt6656/
A Dkey.c34 static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr, in vnt_set_keymode() argument
46 if (mac_addr) in vnt_set_keymode()
47 bssid = mac_addr; in vnt_set_keymode()
100 u8 *mac_addr = NULL; in vnt_set_keys() local
104 mac_addr = &sta->addr[0]; in vnt_set_keys()
109 vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, in vnt_set_keys()
114 return vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, in vnt_set_keys()
137 return vnt_set_keymode(hw, mac_addr, key, VNT_KEY_PAIRWISE, in vnt_set_keys()
140 return vnt_set_keymode(hw, mac_addr, key, in vnt_set_keys()
/linux/drivers/infiniband/ulp/opa_vnic/
A Dopa_vnic_encap.c178 memcpy(entry->mac_addr, nentry->mac_addr, in opa_vnic_query_mac_tbl()
179 ARRAY_SIZE(entry->mac_addr)); in opa_vnic_query_mac_tbl()
229 u8 *mac_addr = entry->mac_addr; in opa_vnic_update_mac_tbl() local
233 loffset + i, mac_addr[0], mac_addr[1], mac_addr[2], in opa_vnic_update_mac_tbl()
234 mac_addr[3], mac_addr[4], mac_addr[5], in opa_vnic_update_mac_tbl()
249 memcpy(nentry->mac_addr, entry->mac_addr, in opa_vnic_update_mac_tbl()
250 ARRAY_SIZE(nentry->mac_addr)); in opa_vnic_update_mac_tbl()
254 key = node->entry.mac_addr[OPA_VNIC_MAC_HASH_IDX]; in opa_vnic_update_mac_tbl()
276 key = new_node->entry.mac_addr[OPA_VNIC_MAC_HASH_IDX]; in opa_vnic_update_mac_tbl()
319 if (!memcmp(node->entry.mac_addr, mac_hdr->h_dest, in opa_vnic_chk_mac_tbl()
[all …]
/linux/drivers/staging/vt6655/
A Dkey.c18 static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr, in vnt_set_keymode() argument
30 if (mac_addr) in vnt_set_keymode()
31 bssid = mac_addr; in vnt_set_keymode()
94 u8 *mac_addr = NULL; in vnt_set_keys() local
100 mac_addr = &sta->addr[0]; in vnt_set_keys()
113 vnt_set_keymode(hw, mac_addr, in vnt_set_keys()
133 vnt_set_keymode(hw, mac_addr, in vnt_set_keys()
136 vnt_set_keymode(hw, mac_addr, in vnt_set_keys()
/linux/drivers/net/usb/
A Dch9200.c307 unsigned char mac_addr[0x06]; in get_mac_address() local
314 memset(mac_addr, 0, sizeof(mac_addr)); in get_mac_address()
316 MAC_REG_STATION_L, mac_addr, 0x02, in get_mac_address()
319 mac_addr + 2, 0x02, CONTROL_TIMEOUT_MS); in get_mac_address()
321 mac_addr + 4, 0x02, CONTROL_TIMEOUT_MS); in get_mac_address()
325 data[0] = mac_addr[5]; in get_mac_address()
326 data[1] = mac_addr[4]; in get_mac_address()
327 data[2] = mac_addr[3]; in get_mac_address()
328 data[3] = mac_addr[2]; in get_mac_address()
329 data[4] = mac_addr[1]; in get_mac_address()
[all …]
/linux/include/net/
A Dbond_3ad.h23 typedef struct mac_addr { struct
105 struct mac_addr actor_system;
114 struct mac_addr partner_system;
142 struct mac_addr requester_system; /* The requester's system id */
181 struct mac_addr aggregator_mac_address;
186 struct mac_addr partner_system;
199 struct mac_addr system;
211 …struct mac_addr actor_system; /* This parameter is added here although it is not specified in the …
251 struct mac_addr sys_mac_addr;
/linux/drivers/net/ethernet/marvell/
A Dpxa168_eth.c372 mac_addr[i] = ((mac_addr[i] & 0x0f) << 4) | in nibble_swap_every_byte()
373 ((mac_addr[i] & 0xf0) >> 4); in nibble_swap_every_byte()
381 mac_addr[i] = flip_8_bits(mac_addr[i]); in inverse_every_nibble()
399 unsigned char mac_addr[ETH_ALEN]; in hash_function() local
406 nibble_swap_every_byte(mac_addr); in hash_function()
407 inverse_every_nibble(mac_addr); in hash_function()
409 addr0 = (mac_addr[5] >> 2) & 0x3f; in hash_function()
410 addr1 = (mac_addr[5] & 0x03) | (((mac_addr[4] & 0x7f)) << 2); in hash_function()
411 addr2 = ((mac_addr[4] & 0x80) >> 7) | mac_addr[3] << 1; in hash_function()
412 addr3 = (mac_addr[2] & 0xff) | ((mac_addr[1] & 1) << 8); in hash_function()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/
A Dcam.c21 u8 *mac_addr, u8 *key_cont_128, u16 us_config) in rtl_cam_program_entry() argument
38 target_content = (u32) (*(mac_addr + 0)) << 16 | in rtl_cam_program_entry()
39 (u32) (*(mac_addr + 1)) << 24 | (u32) us_config; in rtl_cam_program_entry()
57 target_content = (u32) (*(mac_addr + 5)) << 24 | in rtl_cam_program_entry()
58 (u32) (*(mac_addr + 4)) << 16 | in rtl_cam_program_entry()
59 (u32) (*(mac_addr + 3)) << 8 | in rtl_cam_program_entry()
60 (u32) (*(mac_addr + 2)); in rtl_cam_program_entry()
97 u8 rtl_cam_add_one_entry(struct ieee80211_hw *hw, u8 *mac_addr, in rtl_cam_add_one_entry() argument
107 ul_default_key, mac_addr); in rtl_cam_add_one_entry()
120 rtl_cam_program_entry(hw, ul_entry_idx, mac_addr, in rtl_cam_add_one_entry()
[all …]
/linux/net/atm/
A Dlec.c68 const unsigned char *mac_addr);
526 if (mac_addr) in send_to_lecd()
527 ether_addr_copy(mesg->content.normal.mac_addr, mac_addr); in send_to_lecd()
1364 rulla->mac_addr); in dump_arp_table()
1520 pr_debug("%pM\n", mac_addr); in lec_arp_find()
1524 if (ether_addr_equal(mac_addr, entry->mac_addr)) in lec_arp_find()
1538 ether_addr_copy(to_return->mac_addr, mac_addr); in make_entry()
1622 entry->mac_addr, in __lec_arp_check_expire()
1860 mac_addr); in lec_arp_update()
2041 eth_zero_addr(entry->mac_addr); in lec_vcc_added()
[all …]
/linux/drivers/infiniband/hw/ocrdma/
A Docrdma_main.c67 u8 mac_addr[6]; in ocrdma_get_guid() local
69 memcpy(&mac_addr[0], &dev->nic_info.mac_addr[0], ETH_ALEN); in ocrdma_get_guid()
70 guid[0] = mac_addr[0] ^ 2; in ocrdma_get_guid()
71 guid[1] = mac_addr[1]; in ocrdma_get_guid()
72 guid[2] = mac_addr[2]; in ocrdma_get_guid()
75 guid[5] = mac_addr[3]; in ocrdma_get_guid()
76 guid[6] = mac_addr[4]; in ocrdma_get_guid()
77 guid[7] = mac_addr[5]; in ocrdma_get_guid()
/linux/drivers/net/ethernet/cisco/enic/
A Denic_pp.c97 if (!is_zero_ether_addr(pp->mac_addr)) { in enic_set_port_profile()
98 client_mac = pp->mac_addr; in enic_set_port_profile()
165 !ether_addr_equal(pp1->mac_addr, pp2->mac_addr); in enic_are_pp_different()
207 if (!is_zero_ether_addr(pp->mac_addr)) in enic_pp_disassociate()
209 pp->mac_addr); in enic_pp_disassociate()
294 if (!is_zero_ether_addr(pp->mac_addr)) in enic_pp_associate()
296 pp->mac_addr); in enic_pp_associate()
/linux/drivers/net/wireless/ti/wlcore/
A Dtestmode.c310 u8 mac_addr[ETH_ALEN]; in wl12xx_tm_cmd_get_mac() local
325 mac_addr[0] = (u8)(wl->fuse_oui_addr >> 16); in wl12xx_tm_cmd_get_mac()
326 mac_addr[1] = (u8)(wl->fuse_oui_addr >> 8); in wl12xx_tm_cmd_get_mac()
327 mac_addr[2] = (u8) wl->fuse_oui_addr; in wl12xx_tm_cmd_get_mac()
328 mac_addr[3] = (u8)(wl->fuse_nic_addr >> 16); in wl12xx_tm_cmd_get_mac()
329 mac_addr[4] = (u8)(wl->fuse_nic_addr >> 8); in wl12xx_tm_cmd_get_mac()
330 mac_addr[5] = (u8) wl->fuse_nic_addr; in wl12xx_tm_cmd_get_mac()
338 if (nla_put(skb, WL1271_TM_ATTR_DATA, ETH_ALEN, mac_addr)) { in wl12xx_tm_cmd_get_mac()
/linux/arch/powerpc/boot/
A Dtreeboot-akebono.c48 static long long unsigned mac_addr; variable
87 if (mac_addr) in ibm_akebono_fixups()
89 ((u8 *) &mac_addr) + 2 , 6); in ibm_akebono_fixups()
113 mac_addr = strtoull(&userdata[i + 15], &end, 16); in platform_init()
/linux/tools/testing/selftests/bpf/
A Dxdp_redirect_multi.c46 static int get_mac_addr(unsigned int ifindex, void *mac_addr) in get_mac_addr() argument
64 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()
94 unsigned char mac_addr[6]; in main() local
190 ret = get_mac_addr(ifindex, mac_addr); in main()
195 ret = bpf_map_update_elem(mac_map, &ifindex, mac_addr, 0); in main()
/linux/drivers/net/wireless/quantenna/qtnfmac/
A Dcommands.h17 int use4addr, u8 *mac_addr);
21 u8 *mac_addr);
39 const u8 *mac_addr, struct key_params *params);
41 const u8 *mac_addr);
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_netvf_main.c51 u8 mac_addr[ETH_ALEN]; in nfp_netvf_get_mac_addr() local
53 put_unaligned_be32(nn_readl(nn, NFP_NET_CFG_MACADDR + 0), &mac_addr[0]); in nfp_netvf_get_mac_addr()
54 put_unaligned_be16(nn_readw(nn, NFP_NET_CFG_MACADDR + 6), &mac_addr[4]); in nfp_netvf_get_mac_addr()
56 if (!is_valid_ether_addr(mac_addr)) { in nfp_netvf_get_mac_addr()
61 eth_hw_addr_set(nn->dp.netdev, mac_addr); in nfp_netvf_get_mac_addr()
62 ether_addr_copy(nn->dp.netdev->perm_addr, mac_addr); in nfp_netvf_get_mac_addr()
/linux/drivers/net/ethernet/netronome/nfp/abm/
A Dmain.c261 u8 mac_addr[ETH_ALEN]; in nfp_abm_vnic_set_mac() local
300 &mac_addr[0], &mac_addr[1], &mac_addr[2], in nfp_abm_vnic_set_mac()
301 &mac_addr[3], &mac_addr[4], &mac_addr[5]) != 6) { in nfp_abm_vnic_set_mac()
308 eth_hw_addr_set(nn->dp.netdev, mac_addr); in nfp_abm_vnic_set_mac()
309 ether_addr_copy(nn->dp.netdev->perm_addr, mac_addr); in nfp_abm_vnic_set_mac()
/linux/arch/mips/ath25/
A Dboard.c111 u8 *mac_addr; in ath25_find_config() local
173 mac_addr = &radio_data[0x1d * 2]; in ath25_find_config()
174 if (is_broadcast_ether_addr(mac_addr)) { in ath25_find_config()
176 ether_addr_copy(mac_addr, ath25_board.config->wlan0_mac); in ath25_find_config()
/linux/drivers/net/fddi/skfp/
A Dsmtinit.c22 void init_fddi_driver(struct s_smc *smc, const u_char *mac_addr);
60 int init_smt(struct s_smc *smc, const u_char *mac_addr) in init_smt() argument
89 init_fddi_driver(smc,mac_addr) ; /* HW driver */ in init_smt()
/linux/net/batman-adv/
A Ddistributed-arp-table.c368 u8 *mac_addr, unsigned short vid) in batadv_dat_entry_add() argument
376 if (!batadv_compare_eth(dat_entry->mac_addr, mac_addr)) in batadv_dat_entry_add()
377 ether_addr_copy(dat_entry->mac_addr, mac_addr); in batadv_dat_entry_add()
381 &dat_entry->ip, dat_entry->mac_addr, in batadv_dat_entry_add()
392 ether_addr_copy(dat_entry->mac_addr, mac_addr); in batadv_dat_entry_add()
876 dat_entry->mac_addr) || in batadv_dat_cache_dump_entry()
1191 dat_entry->mac_addr, vid)) { in batadv_dat_snoop_outgoing_arp_request()
1194 dat_entry->mac_addr); in batadv_dat_snoop_outgoing_arp_request()
1200 dat_entry->mac_addr, in batadv_dat_snoop_outgoing_arp_request()
1267 dat_entry->mac_addr, hw_src, vid); in batadv_dat_snoop_incoming_arp_request()
[all …]
/linux/drivers/net/wireless/microchip/wilc1000/
A Dhif.h161 const u8 *mac_addr, const u8 *rx_mic, const u8 *tx_mic,
170 int wilc_get_mac_address(struct wilc_vif *vif, u8 *mac_addr);
171 int wilc_set_mac_address(struct wilc_vif *vif, u8 *mac_addr);
191 int wilc_del_allstation(struct wilc_vif *vif, u8 mac_addr[][ETH_ALEN]);
192 int wilc_del_station(struct wilc_vif *vif, const u8 *mac_addr);
/linux/drivers/media/pci/mantis/
A Dmantis_ioc.c51 u8 mac_addr[6] = {0}; in mantis_get_mac() local
53 err = read_eeprom_bytes(mantis, 0x08, mac_addr, 6); in mantis_get_mac()
60 dprintk(MANTIS_ERROR, 0, " MAC Address=[%pM]\n", mac_addr); in mantis_get_mac()
/linux/drivers/net/ethernet/amd/xgbe/
A Dxgbe-pci.c315 pdata->mac_addr[0] = ma_lo & 0xff; in xgbe_pci_probe()
316 pdata->mac_addr[1] = (ma_lo >> 8) & 0xff; in xgbe_pci_probe()
317 pdata->mac_addr[2] = (ma_lo >> 16) & 0xff; in xgbe_pci_probe()
318 pdata->mac_addr[3] = (ma_lo >> 24) & 0xff; in xgbe_pci_probe()
319 pdata->mac_addr[4] = ma_hi & 0xff; in xgbe_pci_probe()
320 pdata->mac_addr[5] = (ma_hi >> 8) & 0xff; in xgbe_pci_probe()
322 !is_valid_ether_addr(pdata->mac_addr)) { in xgbe_pci_probe()

Completed in 50 milliseconds

12345678910>>...24