Home
last modified time | relevance | path

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

12345678910>>...21

/Linux-v4.19/drivers/net/ethernet/ti/
Dcpsw-common.c26 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument
42 mac_addr[0] = (macid_msb >> 16) & 0xff; in davinci_emac_3517_get_macid()
43 mac_addr[1] = (macid_msb >> 8) & 0xff; in davinci_emac_3517_get_macid()
44 mac_addr[2] = macid_msb & 0xff; in davinci_emac_3517_get_macid()
45 mac_addr[3] = (macid_lsb >> 16) & 0xff; in davinci_emac_3517_get_macid()
46 mac_addr[4] = (macid_lsb >> 8) & 0xff; in davinci_emac_3517_get_macid()
47 mac_addr[5] = macid_lsb & 0xff; in davinci_emac_3517_get_macid()
53 u8 *mac_addr) in cpsw_am33xx_cm_get_macid() argument
69 mac_addr[5] = (macid_lo >> 8) & 0xff; in cpsw_am33xx_cm_get_macid()
70 mac_addr[4] = macid_lo & 0xff; in cpsw_am33xx_cm_get_macid()
[all …]
Ddavinci_emac.c328 char mac_addr[6]; member
607 static int emac_hash_add(struct emac_priv *priv, u8 *mac_addr) in emac_hash_add() argument
612 u32 hash_value = hash_get(mac_addr); in emac_hash_add()
649 static int emac_hash_del(struct emac_priv *priv, u8 *mac_addr) in emac_hash_del() argument
654 hash_value = hash_get(mac_addr); in emac_hash_del()
692 static void emac_add_mcast(struct emac_priv *priv, u32 action, u8 *mac_addr) in emac_add_mcast() argument
699 update = emac_hash_add(priv, mac_addr); in emac_add_mcast()
702 update = emac_hash_del(priv, mac_addr); in emac_add_mcast()
1025 static void emac_set_type0addr(struct emac_priv *priv, u32 ch, char *mac_addr) in emac_set_type0addr() argument
1028 val = ((mac_addr[5] << 8) | (mac_addr[4])); in emac_set_type0addr()
[all …]
/Linux-v4.19/drivers/staging/vt6655/
Dkey.c20 static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr, in vnt_set_keymode() argument
32 if (mac_addr) in vnt_set_keymode()
33 bssid = mac_addr; in vnt_set_keymode()
96 u8 *mac_addr = NULL; in vnt_set_keys() local
102 mac_addr = &sta->addr[0]; in vnt_set_keys()
115 vnt_set_keymode(hw, mac_addr, in vnt_set_keys()
135 vnt_set_keymode(hw, mac_addr, in vnt_set_keys()
138 vnt_set_keymode(hw, mac_addr, in vnt_set_keys()
/Linux-v4.19/drivers/infiniband/ulp/opa_vnic/
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()
238 if (!memcmp(mac_addr, empty_mac, ARRAY_SIZE(empty_mac))) 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()
[all …]
/Linux-v4.19/drivers/staging/vt6656/
Dkey.c36 static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr, in vnt_set_keymode() argument
48 if (mac_addr) in vnt_set_keymode()
49 bssid = mac_addr; in vnt_set_keymode()
112 u8 *mac_addr = NULL; in vnt_set_keys() local
117 mac_addr = &sta->addr[0]; in vnt_set_keys()
130 vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, in vnt_set_keys()
153 vnt_set_keymode(hw, mac_addr, key, VNT_KEY_PAIRWISE, in vnt_set_keys()
156 vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, in vnt_set_keys()
/Linux-v4.19/include/net/
Dbond_3ad.h40 typedef struct mac_addr { struct
122 struct mac_addr actor_system;
131 struct mac_addr partner_system;
159 struct mac_addr requester_system; /* The requester's system id */
185 struct mac_addr aggregator_mac_address;
190 struct mac_addr partner_system;
203 struct mac_addr system;
215 …struct mac_addr actor_system; /* This parameter is added here although it is not specified in the …
255 struct mac_addr sys_mac_addr;
/Linux-v4.19/drivers/net/usb/
Dch9200.c309 unsigned char mac_addr[0x06]; in get_mac_address() local
316 memset(mac_addr, 0, sizeof(mac_addr)); in get_mac_address()
318 MAC_REG_STATION_L, mac_addr, 0x02, in get_mac_address()
321 mac_addr + 2, 0x02, CONTROL_TIMEOUT_MS); in get_mac_address()
323 mac_addr + 4, 0x02, CONTROL_TIMEOUT_MS); in get_mac_address()
327 data[0] = mac_addr[5]; in get_mac_address()
328 data[1] = mac_addr[4]; in get_mac_address()
329 data[2] = mac_addr[3]; in get_mac_address()
330 data[3] = mac_addr[2]; in get_mac_address()
331 data[4] = mac_addr[1]; in get_mac_address()
[all …]
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_utils_fw2x.c157 u32 mac_addr[2] = { 0 }; in aq_fw2x_get_mac_permanent() local
163 mac_addr, in aq_fw2x_get_mac_permanent()
164 ARRAY_SIZE(mac_addr)); in aq_fw2x_get_mac_permanent()
167 mac_addr[0] = __swab32(mac_addr[0]); in aq_fw2x_get_mac_permanent()
168 mac_addr[1] = __swab32(mac_addr[1]); in aq_fw2x_get_mac_permanent()
171 ether_addr_copy(mac, (u8 *)mac_addr); in aq_fw2x_get_mac_permanent()
/Linux-v4.19/drivers/net/ethernet/marvell/
Dpxa168_eth.c379 static void nibble_swap_every_byte(unsigned char *mac_addr) in nibble_swap_every_byte() argument
383 mac_addr[i] = ((mac_addr[i] & 0x0f) << 4) | in nibble_swap_every_byte()
384 ((mac_addr[i] & 0xf0) >> 4); in nibble_swap_every_byte()
388 static void inverse_every_nibble(unsigned char *mac_addr) in inverse_every_nibble() argument
392 mac_addr[i] = flip_8_bits(mac_addr[i]); in inverse_every_nibble()
410 unsigned char mac_addr[ETH_ALEN]; in hash_function() local
415 memcpy(mac_addr, mac_addr_orig, ETH_ALEN); in hash_function()
417 nibble_swap_every_byte(mac_addr); in hash_function()
418 inverse_every_nibble(mac_addr); in hash_function()
420 addr0 = (mac_addr[5] >> 2) & 0x3f; in hash_function()
[all …]
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/
Dcam.c42 u8 *mac_addr, u8 *key_cont_128, u16 us_config) in rtl_cam_program_entry() argument
59 target_content = (u32) (*(mac_addr + 0)) << 16 | in rtl_cam_program_entry()
60 (u32) (*(mac_addr + 1)) << 24 | (u32) us_config; in rtl_cam_program_entry()
78 target_content = (u32) (*(mac_addr + 5)) << 24 | in rtl_cam_program_entry()
79 (u32) (*(mac_addr + 4)) << 16 | in rtl_cam_program_entry()
80 (u32) (*(mac_addr + 3)) << 8 | in rtl_cam_program_entry()
81 (u32) (*(mac_addr + 2)); in rtl_cam_program_entry()
118 u8 rtl_cam_add_one_entry(struct ieee80211_hw *hw, u8 *mac_addr, in rtl_cam_add_one_entry() argument
128 ul_default_key, mac_addr); in rtl_cam_add_one_entry()
141 rtl_cam_program_entry(hw, ul_entry_idx, mac_addr, in rtl_cam_add_one_entry()
[all …]
/Linux-v4.19/drivers/staging/rtlwifi/
Dcam.c31 u8 *mac_addr, u8 *key_cont_128, u16 us_config) in rtl_cam_program_entry() argument
48 target_content = (u32)(*(mac_addr + 0)) << 16 | in rtl_cam_program_entry()
49 (u32)(*(mac_addr + 1)) << 24 | in rtl_cam_program_entry()
67 target_content = (u32)(*(mac_addr + 5)) << 24 | in rtl_cam_program_entry()
68 (u32)(*(mac_addr + 4)) << 16 | in rtl_cam_program_entry()
69 (u32)(*(mac_addr + 3)) << 8 | in rtl_cam_program_entry()
70 (u32)(*(mac_addr + 2)); in rtl_cam_program_entry()
105 u8 rtl_cam_add_one_entry(struct ieee80211_hw *hw, u8 *mac_addr, in rtl_cam_add_one_entry() argument
115 ul_default_key, mac_addr); in rtl_cam_add_one_entry()
128 rtl_cam_program_entry(hw, ul_entry_idx, mac_addr, in rtl_cam_add_one_entry()
[all …]
/Linux-v4.19/arch/powerpc/sysdev/
Dtsi108_dev.c79 const void *mac_addr; in tsi108_eth_of_init() local
107 mac_addr = of_get_mac_address(np); in tsi108_eth_of_init()
108 if (mac_addr) in tsi108_eth_of_init()
109 memcpy(tsi_eth_data.mac_addr, mac_addr, 6); in tsi108_eth_of_init()
/Linux-v4.19/drivers/uwb/
Daddress.c130 const struct uwb_mac_addr *mac_addr = _addr; in uwb_rc_addr_set() local
140 baAddr = mac_addr->data; in uwb_rc_addr_set()
169 struct uwb_mac_addr *mac_addr = _addr; in uwb_rc_addr_get() local
179 baAddr = mac_addr->data; in uwb_rc_addr_get()
192 memcpy(&mac_addr->data, evt.baAddr, in uwb_rc_addr_get()
193 sizeof(mac_addr->data)); in uwb_rc_addr_get()
248 if (!uwb_mac_addr_cmp(addr, &uwb_dev->mac_addr)) in __uwb_mac_addr_assigned_check()
348 rc->uwb_dev.mac_addr = addr; in uwb_rc_mac_addr_store()
/Linux-v4.19/arch/arm/mach-davinci/
Dcommon.c31 char *mac_addr = davinci_soc_info.emac_pdata->mac_addr; in davinci_get_mac_addr() local
40 if (nvmem_device_read(nvmem, offset, ETH_ALEN, mac_addr) == ETH_ALEN) in davinci_get_mac_addr()
41 pr_info("Read MAC addr from EEPROM: %pM\n", mac_addr); in davinci_get_mac_addr()
/Linux-v4.19/net/atm/
Dlec.c67 const unsigned char *mac_addr);
88 static void lec_arp_update(struct lec_priv *priv, const unsigned char *mac_addr,
358 dev->dev_addr[i] = mesg->content.normal.mac_addr[i]; in lec_atm_send()
376 entry = lec_arp_find(priv, mesg->content.normal.mac_addr); in lec_atm_send()
384 lec_arp_update(priv, mesg->content.normal.mac_addr, in lec_atm_send()
392 lane2_associate_ind(dev, mesg->content.normal.mac_addr, in lec_atm_send()
434 dev->name, mesg->content.proxy.mac_addr); in lec_atm_send()
439 if (br_fdb_test_addr_hook(dev, mesg->content.proxy.mac_addr)) { in lec_atm_send()
509 const unsigned char *mac_addr, const unsigned char *atm_addr, in send_to_lecd() argument
527 if (mac_addr) in send_to_lecd()
[all …]
/Linux-v4.19/arch/powerpc/boot/
Dtreeboot-akebono.c52 static long long unsigned mac_addr; variable
91 if (mac_addr) in ibm_akebono_fixups()
93 ((u8 *) &mac_addr) + 2 , 6); in ibm_akebono_fixups()
117 mac_addr = strtoull(&userdata[i + 15], &end, 16); in platform_init()
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
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-v4.19/drivers/net/wireless/ti/wlcore/
Dtestmode.c324 u8 mac_addr[ETH_ALEN]; in wl12xx_tm_cmd_get_mac() local
339 mac_addr[0] = (u8)(wl->fuse_oui_addr >> 16); in wl12xx_tm_cmd_get_mac()
340 mac_addr[1] = (u8)(wl->fuse_oui_addr >> 8); in wl12xx_tm_cmd_get_mac()
341 mac_addr[2] = (u8) wl->fuse_oui_addr; in wl12xx_tm_cmd_get_mac()
342 mac_addr[3] = (u8)(wl->fuse_nic_addr >> 16); in wl12xx_tm_cmd_get_mac()
343 mac_addr[4] = (u8)(wl->fuse_nic_addr >> 8); in wl12xx_tm_cmd_get_mac()
344 mac_addr[5] = (u8) wl->fuse_nic_addr; in wl12xx_tm_cmd_get_mac()
352 if (nla_put(skb, WL1271_TM_ATTR_DATA, ETH_ALEN, mac_addr)) { in wl12xx_tm_cmd_get_mac()
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/
Dcommands.h29 u8 *mac_addr);
31 enum nl80211_iftype iftype, u8 *mac_addr);
49 const u8 *mac_addr, struct key_params *params);
51 const u8 *mac_addr);
/Linux-v4.19/drivers/infiniband/hw/ocrdma/
Docrdma_main.c69 u8 mac_addr[6]; in ocrdma_get_guid() local
71 memcpy(&mac_addr[0], &dev->nic_info.mac_addr[0], ETH_ALEN); in ocrdma_get_guid()
72 guid[0] = mac_addr[0] ^ 2; in ocrdma_get_guid()
73 guid[1] = mac_addr[1]; in ocrdma_get_guid()
74 guid[2] = mac_addr[2]; in ocrdma_get_guid()
77 guid[5] = mac_addr[3]; in ocrdma_get_guid()
78 guid[6] = mac_addr[4]; in ocrdma_get_guid()
79 guid[7] = mac_addr[5]; in ocrdma_get_guid()
/Linux-v4.19/net/batman-adv/
Ddistributed-arp-table.c328 u8 *mac_addr, unsigned short vid) in batadv_dat_entry_add() argument
336 if (!batadv_compare_eth(dat_entry->mac_addr, mac_addr)) in batadv_dat_entry_add()
337 ether_addr_copy(dat_entry->mac_addr, mac_addr); in batadv_dat_entry_add()
341 &dat_entry->ip, dat_entry->mac_addr, in batadv_dat_entry_add()
352 ether_addr_copy(dat_entry->mac_addr, mac_addr); in batadv_dat_entry_add()
368 &dat_entry->ip, dat_entry->mac_addr, batadv_print_vid(vid)); in batadv_dat_entry_add()
847 &dat_entry->ip, dat_entry->mac_addr, in batadv_dat_cache_seq_print_text()
888 dat_entry->mac_addr) || in batadv_dat_cache_dump_entry()
1194 if (batadv_is_my_client(bat_priv, dat_entry->mac_addr, vid)) { in batadv_dat_snoop_outgoing_arp_request()
1205 dat_entry->mac_addr, vid)) { in batadv_dat_snoop_outgoing_arp_request()
[all …]
/Linux-v4.19/drivers/net/fddi/skfp/
Dsmtinit.c30 void init_fddi_driver(struct s_smc *smc, u_char *mac_addr);
68 int init_smt(struct s_smc *smc, u_char *mac_addr) in init_smt() argument
97 init_fddi_driver(smc,mac_addr) ; /* HW driver */ in init_smt()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_netvf_main.c81 u8 mac_addr[ETH_ALEN]; in nfp_netvf_get_mac_addr() local
83 put_unaligned_be32(nn_readl(nn, NFP_NET_CFG_MACADDR + 0), &mac_addr[0]); in nfp_netvf_get_mac_addr()
84 put_unaligned_be16(nn_readw(nn, NFP_NET_CFG_MACADDR + 6), &mac_addr[4]); in nfp_netvf_get_mac_addr()
86 if (!is_valid_ether_addr(mac_addr)) { in nfp_netvf_get_mac_addr()
91 ether_addr_copy(nn->dp.netdev->dev_addr, mac_addr); in nfp_netvf_get_mac_addr()
92 ether_addr_copy(nn->dp.netdev->perm_addr, mac_addr); in nfp_netvf_get_mac_addr()
/Linux-v4.19/arch/mips/ath25/
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-v4.19/drivers/media/pci/mantis/
Dmantis_ioc.c63 u8 mac_addr[6] = {0}; in mantis_get_mac() local
65 err = read_eeprom_bytes(mantis, 0x08, mac_addr, 6); in mantis_get_mac()
72 dprintk(MANTIS_ERROR, 0, " MAC Address=[%pM]\n", mac_addr); in mantis_get_mac()

12345678910>>...21