Home
last modified time | relevance | path

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

12345678910>>...23

/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
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()
36 mac_addr[4] = (macid_lsb >> 8) & 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()
[all …]
Ddavinci_emac.c314 char mac_addr[6]; member
606 static int emac_hash_add(struct emac_priv *priv, u8 *mac_addr) in emac_hash_add() argument
611 u32 hash_value = hash_get(mac_addr); in emac_hash_add()
648 static int emac_hash_del(struct emac_priv *priv, u8 *mac_addr) in emac_hash_del() argument
653 hash_value = hash_get(mac_addr); in emac_hash_del()
691 static void emac_add_mcast(struct emac_priv *priv, u32 action, u8 *mac_addr) in emac_add_mcast() argument
698 update = emac_hash_add(priv, mac_addr); in emac_add_mcast()
701 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 …]
Dcpsw.c563 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_dual_emac_def_ale_entries()
712 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, HOST_PORT_NUM, in cpsw_init_host_port()
992 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, HOST_PORT_NUM, in cpsw_ndo_set_mac_address()
997 memcpy(priv->mac_addr, addr->sa_data, ETH_ALEN); in cpsw_ndo_set_mac_address()
998 memcpy(ndev->dev_addr, priv->mac_addr, ETH_ALEN); in cpsw_ndo_set_mac_address()
1036 ret = cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
1048 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
1120 ret |= cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_ndo_vlan_rx_kill_vid()
1311 const void *mac_addr = NULL; in cpsw_probe_dt() local
1383 mac_addr = of_get_mac_address(slave_node); in cpsw_probe_dt()
[all …]
/kernel/linux/linux-5.10/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()
102 u8 *mac_addr = NULL; in vnt_set_keys() local
106 mac_addr = &sta->addr[0]; in vnt_set_keys()
111 vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, in vnt_set_keys()
116 return vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, in vnt_set_keys()
139 return vnt_set_keymode(hw, mac_addr, key, VNT_KEY_PAIRWISE, in vnt_set_keys()
142 return vnt_set_keymode(hw, mac_addr, key, in vnt_set_keys()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/
Dnet_resolv_test_002.cpp43 char mac_addr[buffer_size], *tmp = mac_addr; in EtherAtonTest() local
50 …(void)sprintf_s(mac_addr, sizeof(mac_addr), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3… in EtherAtonTest()
51 eaddr = ether_aton(mac_addr); in EtherAtonTest()
Dnet_resolv_test_003.cpp44 char mac_addr[buffer_size], *tmp = mac_addr; in EtherAtonrTest() local
51 …(void)sprintf_s(mac_addr, sizeof(mac_addr), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3… in EtherAtonrTest()
52 eaddr = ether_aton_r(mac_addr, &addr); in EtherAtonrTest()
/kernel/linux/linux-5.10/drivers/net/usb/
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 …]
/kernel/linux/linux-5.10/include/net/
Dbond_3ad.h21 typedef struct mac_addr { struct
103 struct mac_addr actor_system;
112 struct mac_addr partner_system;
140 struct mac_addr requester_system; /* The requester's system id */
179 struct mac_addr aggregator_mac_address;
184 struct mac_addr partner_system;
197 struct mac_addr system;
209 …struct mac_addr actor_system; /* This parameter is added here although it is not specified in the …
249 struct mac_addr sys_mac_addr;
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dpxa168_eth.c368 static void nibble_swap_every_byte(unsigned char *mac_addr) in nibble_swap_every_byte() argument
372 mac_addr[i] = ((mac_addr[i] & 0x0f) << 4) | in nibble_swap_every_byte()
373 ((mac_addr[i] & 0xf0) >> 4); in nibble_swap_every_byte()
377 static void inverse_every_nibble(unsigned char *mac_addr) in inverse_every_nibble() argument
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
404 memcpy(mac_addr, mac_addr_orig, ETH_ALEN); in hash_function()
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()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/
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 …]
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
Dtsi108_dev.c76 const void *mac_addr; in tsi108_eth_of_init() local
104 mac_addr = of_get_mac_address(np); in tsi108_eth_of_init()
105 if (!IS_ERR(mac_addr)) in tsi108_eth_of_init()
106 ether_addr_copy(tsi_eth_data.mac_addr, mac_addr); in tsi108_eth_of_init()
/kernel/linux/linux-5.10/net/atm/
Dlec.c68 const unsigned char *mac_addr);
89 static void lec_arp_update(struct lec_priv *priv, const unsigned char *mac_addr,
359 dev->dev_addr[i] = mesg->content.normal.mac_addr[i]; in lec_atm_send()
377 entry = lec_arp_find(priv, mesg->content.normal.mac_addr); in lec_atm_send()
385 lec_arp_update(priv, mesg->content.normal.mac_addr, in lec_atm_send()
393 lane2_associate_ind(dev, mesg->content.normal.mac_addr, in lec_atm_send()
435 dev->name, mesg->content.proxy.mac_addr); in lec_atm_send()
440 if (br_fdb_test_addr_hook(dev, mesg->content.proxy.mac_addr)) { in lec_atm_send()
510 const unsigned char *mac_addr, const unsigned char *atm_addr, in send_to_lecd() argument
528 if (mac_addr) in send_to_lecd()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/boot/
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/
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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
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()
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/
Ddpsw.c976 cmd_params->mac_addr[i] = cfg->mac_addr[5 - i]; in dpsw_fdb_add_unicast()
1061 cmd_params->mac_addr[i] = cfg->mac_addr[5 - i]; in dpsw_fdb_remove_unicast()
1106 cmd_params->mac_addr[i] = cfg->mac_addr[5 - i]; in dpsw_fdb_add_multicast()
1148 cmd_params->mac_addr[i] = cfg->mac_addr[5 - i]; in dpsw_fdb_remove_multicast()
1229 u16 if_id, u8 mac_addr[6]) in dpsw_if_get_port_mac_addr()
1251 mac_addr[5 - i] = rsp_params->mac_addr[i]; in dpsw_if_get_port_mac_addr()
1267 u16 token, u16 if_id, u8 mac_addr[6]) in dpsw_if_get_primary_mac_addr()
1289 mac_addr[5 - i] = rsp_params->mac_addr[i]; in dpsw_if_get_primary_mac_addr()
1305 u16 token, u16 if_id, u8 mac_addr[6]) in dpsw_if_set_primary_mac_addr()
1318 cmd_params->mac_addr[i] = mac_addr[5 - i]; in dpsw_if_set_primary_mac_addr()
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/
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);
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/
Dsmtinit.c26 void init_fddi_driver(struct s_smc *smc, u_char *mac_addr);
64 int init_smt(struct s_smc *smc, u_char *mac_addr) in init_smt() argument
93 init_fddi_driver(smc,mac_addr) ; /* HW driver */ in init_smt()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
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 ether_addr_copy(nn->dp.netdev->dev_addr, 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/pci/mantis/
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()
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/
Dfw.h51 u8 mac_addr[ETH_ALEN]; member
57 u8 mac_addr[ETH_ALEN]; member
64 u8 mac_addr[ETH_ALEN]; member

12345678910>>...23