Home
last modified time | relevance | path

Searched refs:macaddr (Results 1 – 25 of 96) sorted by relevance

1234

/drivers/net/wireless/mediatek/mt7601u/
Deeprom.c142 ether_addr_copy(dev->macaddr, src); in mt7601u_set_macaddr()
144 if (!is_valid_ether_addr(dev->macaddr)) { in mt7601u_set_macaddr()
145 eth_random_addr(dev->macaddr); in mt7601u_set_macaddr()
148 dev->macaddr); in mt7601u_set_macaddr()
151 mt76_wr(dev, MT_MAC_ADDR_DW0, get_unaligned_le32(dev->macaddr)); in mt7601u_set_macaddr()
152 mt76_wr(dev, MT_MAC_ADDR_DW1, get_unaligned_le16(dev->macaddr + 4) | in mt7601u_set_macaddr()
/drivers/staging/wlan-ng/
Dp80211netdev.c618 p80211item_pstr6_t *macaddr; in p80211knetdev_set_mac_address() local
628 macaddr = (p80211item_pstr6_t *) &mibattr->data; in p80211knetdev_set_mac_address()
643 macaddr->did = DIDmib_dot11mac_dot11OperationTable_dot11MACAddress; in p80211knetdev_set_mac_address()
644 macaddr->status = P80211ENUM_msgitem_status_data_ok; in p80211knetdev_set_mac_address()
645 macaddr->len = sizeof(macaddr->data); in p80211knetdev_set_mac_address()
646 macaddr->data.len = ETH_ALEN; in p80211knetdev_set_mac_address()
647 memcpy(&macaddr->data.data, new_addr->sa_data, ETH_ALEN); in p80211knetdev_set_mac_address()
/drivers/staging/rtl8723au/include/
Drtw_event.h52 unsigned char macaddr[6]; member
58 unsigned char macaddr[6]; member
/drivers/net/wireless/cw1200/
Dmain.c49 module_param_array_named(macaddr, cw1200_mac_template, byte, NULL, S_IRUGO);
50 MODULE_PARM_DESC(macaddr, "Override platform_data MAC address");
255 static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr, in cw1200_init_common() argument
333 if (macaddr) in cw1200_init_common()
334 SET_IEEE80211_PERM_ADDR(hw, (u8 *)macaddr); in cw1200_init_common()
523 int ref_clk, const u8 *macaddr, in cw1200_core_probe() argument
534 dev = cw1200_init_common(macaddr, have_5ghz); in cw1200_core_probe()
/drivers/staging/rtl8188eu/include/
Drtw_event.h68 unsigned char macaddr[6]; member
74 unsigned char macaddr[6]; member
/drivers/staging/rtl8712/
Drtl871x_event.h67 unsigned char macaddr[6]; member
73 unsigned char macaddr[6]; member
/drivers/net/ethernet/neterion/vxge/
Dvxge-main.c660 if (((struct vxge_mac_addrs *)entry)->macaddr == del_mac) in vxge_search_mac_addr_in_list()
685 mac_address = (u8 *)&new_mac_entry->macaddr; in vxge_mac_list_add()
686 memcpy(mac_address, mac->macaddr, ETH_ALEN); in vxge_mac_list_add()
691 if (is_multicast_ether_addr(mac->macaddr)) in vxge_mac_list_add()
705 if (is_multicast_ether_addr(mac->macaddr)) in vxge_add_mac_addr()
711 status = vxge_hw_vpath_mac_addr_add(vpath->handle, mac->macaddr, in vxge_add_mac_addr()
744 memcpy(mac_info.macaddr, mac_header, ETH_ALEN); in vxge_learn_mac()
1073 memcpy(mac_address, mac->macaddr, ETH_ALEN); in vxge_mac_list_del()
1076 if (((struct vxge_mac_addrs *)entry)->macaddr == del_mac) { in vxge_mac_list_del()
1081 if (is_multicast_ether_addr(mac->macaddr)) in vxge_mac_list_del()
[all …]
Dvxge-main.h161 unsigned char macaddr[ETH_ALEN]; member
218 u64 macaddr; member
311 u8 macaddr[ETH_ALEN]; member
Dvxge-traffic.c1748 u8 (macaddr)[ETH_ALEN], in vxge_hw_vpath_mac_addr_add()
1764 data1 |= (u8)macaddr[i]; in vxge_hw_vpath_mac_addr_add()
1811 u8 (macaddr)[ETH_ALEN], in vxge_hw_vpath_mac_addr_get()
1837 macaddr[i-1] = (u8)(data1 & 0xFF); in vxge_hw_vpath_mac_addr_get()
1863 u8 (macaddr)[ETH_ALEN], in vxge_hw_vpath_mac_addr_get_next()
1889 macaddr[i-1] = (u8)(data1 & 0xFF); in vxge_hw_vpath_mac_addr_get_next()
1916 u8 (macaddr)[ETH_ALEN], in vxge_hw_vpath_mac_addr_delete()
1931 data1 |= (u8)macaddr[i]; in vxge_hw_vpath_mac_addr_delete()
Dvxge-traffic.h2158 u8 *macaddr,
2165 u8 *macaddr,
2171 u8 *macaddr,
2177 u8 *macaddr,
/drivers/net/wireless/ath/
Dhw.c123 REG_WRITE(ah, AR_STA_ID0, get_unaligned_le32(common->macaddr)); in ath_hw_setbssidmask()
125 id1 |= get_unaligned_le16(common->macaddr + 4); in ath_hw_setbssidmask()
/drivers/uwb/
Duwb-debug.c88 struct uwb_mac_addr macaddr; in cmd_rsv_establish() local
93 memcpy(&macaddr, cmd->target, sizeof(macaddr)); in cmd_rsv_establish()
94 target = uwb_dev_get_by_macaddr(rc, &macaddr); in cmd_rsv_establish()
/drivers/net/ethernet/intel/i40e/
Di40e.h426 u8 macaddr[ETH_ALEN]; member
690 u8 *macaddr, s16 vlan,
692 void i40e_del_filter(struct i40e_vsi *vsi, u8 *macaddr, s16 vlan,
768 struct i40e_mac_filter *i40e_put_mac_in_vlan(struct i40e_vsi *vsi, u8 *macaddr,
770 int i40e_del_mac_all_vlan(struct i40e_vsi *vsi, u8 *macaddr,
773 struct i40e_mac_filter *i40e_find_mac(struct i40e_vsi *vsi, u8 *macaddr,
Di40e_main.c1221 u8 *macaddr, s16 vlan, in i40e_find_filter() argument
1226 if (!vsi || !macaddr) in i40e_find_filter()
1230 if ((ether_addr_equal(macaddr, f->macaddr)) && in i40e_find_filter()
1249 struct i40e_mac_filter *i40e_find_mac(struct i40e_vsi *vsi, u8 *macaddr, in i40e_find_mac() argument
1254 if (!vsi || !macaddr) in i40e_find_mac()
1258 if ((ether_addr_equal(macaddr, f->macaddr)) && in i40e_find_mac()
1299 struct i40e_mac_filter *i40e_put_mac_in_vlan(struct i40e_vsi *vsi, u8 *macaddr, in i40e_put_mac_in_vlan() argument
1307 if (!i40e_find_filter(vsi, macaddr, f->vlan, in i40e_put_mac_in_vlan()
1309 if (!i40e_add_filter(vsi, macaddr, f->vlan, in i40e_put_mac_in_vlan()
1330 int i40e_del_mac_all_vlan(struct i40e_vsi *vsi, u8 *macaddr, in i40e_del_mac_all_vlan() argument
[all …]
/drivers/staging/unisys/include/
Diochannel.h417 u8 macaddr[MAX_MACADDR_LEN]; /* 6 bytes */ member
433 struct net_pkt_macaddr macaddr; member
548 u8 macaddr[6]; /* 6 bytes */ member
/drivers/net/bonding/
Dbond_options.c1395 u8 macaddr[ETH_ALEN]; in bond_option_ad_actor_system_set() local
1401 &macaddr[0], &macaddr[1], &macaddr[2], in bond_option_ad_actor_system_set()
1402 &macaddr[3], &macaddr[4], &macaddr[5]); in bond_option_ad_actor_system_set()
1405 mac = macaddr; in bond_option_ad_actor_system_set()
/drivers/net/ethernet/intel/i40evf/
Di40evf_main.c791 u8 *macaddr) in i40evf_find_filter() argument
795 if (!macaddr) in i40evf_find_filter()
799 if (ether_addr_equal(macaddr, f->macaddr)) in i40evf_find_filter()
814 u8 *macaddr) in i40evf_add_filter() argument
819 if (!macaddr) in i40evf_add_filter()
829 f = i40evf_find_filter(adapter, macaddr); in i40evf_add_filter()
838 ether_addr_copy(f->macaddr, macaddr); in i40evf_add_filter()
920 if (ether_addr_equal(mca->addr, f->macaddr)) in i40evf_set_rx_mode()
924 if (ether_addr_equal(uca->addr, f->macaddr)) in i40evf_set_rx_mode()
928 if (ether_addr_equal(ha->addr, f->macaddr)) in i40evf_set_rx_mode()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dmac.c226 u8 *macaddr = p_macaddr; in rtl92c_set_key() local
275 macaddr = cam_const_addr[key_index]; in rtl92c_set_key()
279 macaddr = cam_const_broad; in rtl92c_set_key()
326 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92c_set_key()
344 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92c_set_key()
/drivers/net/ethernet/aeroflex/
Dgreth.c62 static int macaddr[6]; variable
63 module_param_array(macaddr, int, NULL, 0);
64 MODULE_PARM_DESC(macaddr, "GRETH Ethernet MAC address");
1487 if (macaddr[i] != 0) in greth_of_probe()
1497 macaddr[i] = (unsigned int) addr[i]; in greth_of_probe()
1501 macaddr[i] = (unsigned int) idprom->id_ethaddr[i]; in greth_of_probe()
1507 dev->dev_addr[i] = macaddr[i]; in greth_of_probe()
1509 macaddr[5]++; in greth_of_probe()
/drivers/net/wireless/ath/ath5k/
Dpcu.c377 memcpy(common->macaddr, mac, ETH_ALEN); in ath5k_hw_set_lladdr()
929 low_id = get_unaligned_le32(common->macaddr); in ath5k_hw_set_opmode()
930 high_id = get_unaligned_le16(common->macaddr + 4); in ath5k_hw_set_opmode()
/drivers/net/ethernet/ibm/ehea/
Dehea.h408 u64 macaddr; member
427 u64 macaddr; member
Dehea_main.c289 arr[i++].macaddr = port->mac_addr; in ehea_update_bcmc_registrations()
295 arr[i++].macaddr = port->mac_addr; in ehea_update_bcmc_registrations()
307 if (mc_entry->macaddr == 0) in ehea_update_bcmc_registrations()
309 arr[i++].macaddr = mc_entry->macaddr; in ehea_update_bcmc_registrations()
315 if (mc_entry->macaddr == 0) in ehea_update_bcmc_registrations()
317 arr[i++].macaddr = mc_entry->macaddr; in ehea_update_bcmc_registrations()
1882 hret = ehea_multicast_reg_helper(port, mc_entry->macaddr, in ehea_drop_multicast_list()
1935 memcpy(&ehea_mcl_entry->macaddr, mc_mac_addr, ETH_ALEN); in ehea_add_multicast_entry()
1937 hret = ehea_multicast_reg_helper(port, ehea_mcl_entry->macaddr, in ehea_add_multicast_entry()
3340 ehea_bcmc_regs.arr[i].macaddr, in ehea_crash_handler()
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dhw.h73 u32 key_index, u8 *macaddr, bool is_group,
/drivers/net/ethernet/sgi/
Dmeth.c104 u64 macaddr; in load_eaddr() local
107 macaddr = 0; in load_eaddr()
109 macaddr |= (u64)dev->dev_addr[i] << ((5 - i) * 8); in load_eaddr()
111 mace->eth.mac_addr = macaddr; in load_eaddr()
/drivers/net/wireless/ath/carl9170/
Dmac.c318 mac_addr = common->macaddr; in carl9170_set_operating_mode()
363 mac_addr = common->macaddr; in carl9170_set_operating_mode()

1234