/drivers/net/ethernet/ti/ |
D | cpsw-common.c | 16 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 …]
|
D | davinci_emac.c | 314 char mac_addr[6]; member 593 static int emac_hash_add(struct emac_priv *priv, u8 *mac_addr) in emac_hash_add() argument 598 u32 hash_value = hash_get(mac_addr); in emac_hash_add() 635 static int emac_hash_del(struct emac_priv *priv, u8 *mac_addr) in emac_hash_del() argument 640 hash_value = hash_get(mac_addr); in emac_hash_del() 678 static void emac_add_mcast(struct emac_priv *priv, u32 action, u8 *mac_addr) in emac_add_mcast() argument 685 update = emac_hash_add(priv, mac_addr); in emac_add_mcast() 688 update = emac_hash_del(priv, mac_addr); in emac_add_mcast() 1011 static void emac_set_type0addr(struct emac_priv *priv, u32 ch, char *mac_addr) in emac_set_type0addr() argument 1014 val = ((mac_addr[5] << 8) | (mac_addr[4])); in emac_set_type0addr() [all …]
|
/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_encap.c | 178 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 …]
|
/drivers/staging/vt6655/ |
D | key.c | 20 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()
|
/drivers/staging/vt6656/ |
D | key.c | 36 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() 114 u8 *mac_addr = NULL; in vnt_set_keys() local 119 mac_addr = &sta->addr[0]; in vnt_set_keys() 132 vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, in vnt_set_keys() 155 vnt_set_keymode(hw, mac_addr, key, VNT_KEY_PAIRWISE, in vnt_set_keys() 158 vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, in vnt_set_keys()
|
/drivers/net/usb/ |
D | ch9200.c | 309 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 …]
|
/drivers/net/ethernet/marvell/ |
D | pxa168_eth.c | 368 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 …]
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | cam.c | 21 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 …]
|
/drivers/staging/uwb/ |
D | address.c | 116 const struct uwb_mac_addr *mac_addr = _addr; in uwb_rc_addr_set() local 126 baAddr = mac_addr->data; in uwb_rc_addr_set() 155 struct uwb_mac_addr *mac_addr = _addr; in uwb_rc_addr_get() local 165 baAddr = mac_addr->data; in uwb_rc_addr_get() 178 memcpy(&mac_addr->data, evt.baAddr, in uwb_rc_addr_get() 179 sizeof(mac_addr->data)); in uwb_rc_addr_get() 234 if (!uwb_mac_addr_cmp(addr, &uwb_dev->mac_addr)) in __uwb_mac_addr_assigned_check() 334 rc->uwb_dev.mac_addr = addr; in uwb_rc_mac_addr_store()
|
/drivers/net/ethernet/cisco/enic/ |
D | enic_pp.c | 97 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()
|
/drivers/net/wireless/ti/wlcore/ |
D | testmode.c | 310 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()
|
/drivers/net/wireless/realtek/rtw88/ |
D | mac80211.c | 85 .mac_addr = {.addr = 0x0610}, 92 .mac_addr = {.addr = 0x0700}, 99 .mac_addr = {.addr = 0x1620}, 106 .mac_addr = {.addr = 0x1630}, 113 .mac_addr = {.addr = 0x1640}, 159 ether_addr_copy(rtwvif->mac_addr, vif->addr); in rtw_ops_add_interface() 184 eth_zero_addr(rtwvif->mac_addr); in rtw_ops_remove_interface() 461 const u8 *mac_addr) in rtw_ops_sw_scan_start() argument 471 ether_addr_copy(rtwvif->mac_addr, mac_addr); in rtw_ops_sw_scan_start() 495 ether_addr_copy(rtwvif->mac_addr, vif->addr); in rtw_ops_sw_scan_complete()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_main.c | 67 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()
|
/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_utils_fw2x.c | 250 u32 mac_addr[2] = { 0 }; in aq_fw2x_get_mac_permanent() local 256 mac_addr, in aq_fw2x_get_mac_permanent() 257 ARRAY_SIZE(mac_addr)); in aq_fw2x_get_mac_permanent() 260 mac_addr[0] = __swab32(mac_addr[0]); in aq_fw2x_get_mac_permanent() 261 mac_addr[1] = __swab32(mac_addr[1]); in aq_fw2x_get_mac_permanent() 264 ether_addr_copy(mac, (u8 *)mac_addr); in aq_fw2x_get_mac_permanent() 363 memcpy(cfg->mac_addr, mac, ETH_ALEN); in aq_fw2x_set_sleep_proxy()
|
D | hw_atl_utils.c | 645 u32 mac_addr[2]; in hw_atl_utils_get_mac_permanent() local 660 mac_addr, in hw_atl_utils_get_mac_permanent() 661 ARRAY_SIZE(mac_addr)); in hw_atl_utils_get_mac_permanent() 663 mac_addr[0] = 0U; in hw_atl_utils_get_mac_permanent() 664 mac_addr[1] = 0U; in hw_atl_utils_get_mac_permanent() 667 mac_addr[0] = __swab32(mac_addr[0]); in hw_atl_utils_get_mac_permanent() 668 mac_addr[1] = __swab32(mac_addr[1]); in hw_atl_utils_get_mac_permanent() 671 ether_addr_copy(mac, (u8 *)mac_addr); in hw_atl_utils_get_mac_permanent()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mbx.c | 219 const u8 *mac_addr = (const u8 *)(&mbx_req->msg[2]); in hclge_set_vf_uc_mac_addr() local 227 status = hclge_add_uc_addr_common(vport, mac_addr); in hclge_set_vf_uc_mac_addr() 231 hclge_rm_vport_mac_table(vport, mac_addr, in hclge_set_vf_uc_mac_addr() 233 hclge_add_vport_mac_table(vport, mac_addr, in hclge_set_vf_uc_mac_addr() 237 status = hclge_add_uc_addr_common(vport, mac_addr); in hclge_set_vf_uc_mac_addr() 239 hclge_add_vport_mac_table(vport, mac_addr, in hclge_set_vf_uc_mac_addr() 242 status = hclge_rm_uc_addr_common(vport, mac_addr); in hclge_set_vf_uc_mac_addr() 244 hclge_rm_vport_mac_table(vport, mac_addr, in hclge_set_vf_uc_mac_addr() 263 const u8 *mac_addr = (const u8 *)(&mbx_req->msg[2]); in hclge_set_vf_mc_mac_addr() local 270 status = hclge_add_mc_addr_common(vport, mac_addr); in hclge_set_vf_mc_mac_addr() [all …]
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | commands.h | 17 int use4addr, u8 *mac_addr); 21 u8 *mac_addr); 39 const u8 *mac_addr, struct key_params *params); 41 const u8 *mac_addr);
|
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_netvf_main.c | 51 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()
|
/drivers/net/ethernet/netronome/nfp/abm/ |
D | main.c | 261 u8 mac_addr[ETH_ALEN]; in nfp_abm_vnic_set_mac() local 299 &mac_addr[0], &mac_addr[1], &mac_addr[2], in nfp_abm_vnic_set_mac() 300 &mac_addr[3], &mac_addr[4], &mac_addr[5]) != 6) { in nfp_abm_vnic_set_mac() 307 ether_addr_copy(nn->dp.netdev->dev_addr, mac_addr); in nfp_abm_vnic_set_mac() 308 ether_addr_copy(nn->dp.netdev->perm_addr, mac_addr); in nfp_abm_vnic_set_mac()
|
/drivers/net/fddi/skfp/ |
D | smtinit.c | 26 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()
|
D | drvfbi.c | 281 void read_address(struct s_smc *smc, u_char *mac_addr) in read_address() argument 302 if (mac_addr) { in read_address() 304 smc->hw.fddi_canon_addr.a[i] = mac_addr[i] ; in read_address() 305 smc->hw.fddi_home_addr.a[i] = bitrev8(mac_addr[i]); in read_address() 320 void init_board(struct s_smc *smc, u_char *mac_addr) in init_board() argument 323 read_address(smc,mac_addr) ; in init_board()
|
/drivers/media/pci/mantis/ |
D | mantis_ioc.c | 51 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()
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_hw.c | 40 value = (((u32)hw->mac_addr[2]) << 24) | in atl1e_hw_set_mac_addr() 41 (((u32)hw->mac_addr[3]) << 16) | in atl1e_hw_set_mac_addr() 42 (((u32)hw->mac_addr[4]) << 8) | in atl1e_hw_set_mac_addr() 43 (((u32)hw->mac_addr[5])) ; in atl1e_hw_set_mac_addr() 46 value = (((u32)hw->mac_addr[0]) << 8) | in atl1e_hw_set_mac_addr() 47 (((u32)hw->mac_addr[1])) ; in atl1e_hw_set_mac_addr() 145 memcpy(hw->mac_addr, hw->perm_mac_addr, sizeof(hw->perm_mac_addr)); in atl1e_read_mac_addr()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-pci.c | 315 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()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_tlv.c | 113 const u8 *mac_addr, u16 vlan) in fm10k_tlv_attr_put_mac_vlan() argument 119 if (!msg || !mac_addr) in fm10k_tlv_attr_put_mac_vlan() 128 attr[1] = le32_to_cpu(*(const __le32 *)&mac_addr[0]); in fm10k_tlv_attr_put_mac_vlan() 129 attr[2] = le16_to_cpu(*(const __le16 *)&mac_addr[4]); in fm10k_tlv_attr_put_mac_vlan() 149 s32 fm10k_tlv_attr_get_mac_vlan(u32 *attr, u8 *mac_addr, u16 *vlan) in fm10k_tlv_attr_get_mac_vlan() argument 152 if (!mac_addr || !attr) in fm10k_tlv_attr_get_mac_vlan() 155 *(__le32 *)&mac_addr[0] = cpu_to_le32(attr[1]); in fm10k_tlv_attr_get_mac_vlan() 156 *(__le16 *)&mac_addr[4] = cpu_to_le16((u16)(attr[2])); in fm10k_tlv_attr_get_mac_vlan()
|