Lines Matching refs:mac_addr

1045 	u8 mac_addr[ETH_ALEN];  member
1734 static void sw_w_sta_mac_table(struct ksz_hw *hw, u16 addr, u8 *mac_addr, in sw_w_sta_mac_table() argument
1740 data_lo = ((u32) mac_addr[2] << 24) | in sw_w_sta_mac_table()
1741 ((u32) mac_addr[3] << 16) | in sw_w_sta_mac_table()
1742 ((u32) mac_addr[4] << 8) | mac_addr[5]; in sw_w_sta_mac_table()
1743 data_hi = ((u32) mac_addr[0] << 8) | mac_addr[1]; in sw_w_sta_mac_table()
2697 static inline void sw_get_addr(struct ksz_hw *hw, u8 *mac_addr) in sw_get_addr() argument
2702 mac_addr[i] = readb(hw->io + KS8842_MAC_ADDR_0_OFFSET + i); in sw_get_addr()
2703 mac_addr[1 + i] = readb(hw->io + KS8842_MAC_ADDR_1_OFFSET + i); in sw_get_addr()
2714 static void sw_set_addr(struct ksz_hw *hw, u8 *mac_addr) in sw_set_addr() argument
2719 writeb(mac_addr[i], hw->io + KS8842_MAC_ADDR_0_OFFSET + i); in sw_set_addr()
2720 writeb(mac_addr[1 + i], hw->io + KS8842_MAC_ADDR_1_OFFSET + i); in sw_set_addr()
2842 entry->mac_addr, entry->ports, in sw_clr_sta_mac_table()
2859 entry->mac_addr[0] = 0x01; in sw_init_stp()
2860 entry->mac_addr[1] = 0x80; in sw_init_stp()
2861 entry->mac_addr[2] = 0xC2; in sw_init_stp()
2862 entry->mac_addr[3] = 0x00; in sw_init_stp()
2863 entry->mac_addr[4] = 0x00; in sw_init_stp()
2864 entry->mac_addr[5] = 0x00; in sw_init_stp()
2869 entry->mac_addr, entry->ports, in sw_init_stp()
2889 entry->mac_addr, entry->ports, in sw_block_addr()
4084 static void hw_ena_add_addr(struct ksz_hw *hw, int index, u8 *mac_addr) in hw_ena_add_addr() argument
4093 mac_addr_hi |= mac_addr[i]; in hw_ena_add_addr()
4099 mac_addr_lo |= mac_addr[i]; in hw_ena_add_addr()
4120 static int hw_add_addr(struct ksz_hw *hw, u8 *mac_addr) in hw_add_addr() argument
4125 if (ether_addr_equal(hw->override_addr, mac_addr)) in hw_add_addr()
4128 if (ether_addr_equal(hw->address[i], mac_addr)) in hw_add_addr()
4134 memcpy(hw->address[j], mac_addr, ETH_ALEN); in hw_add_addr()
4141 static int hw_del_addr(struct ksz_hw *hw, u8 *mac_addr) in hw_del_addr() argument
4146 if (ether_addr_equal(hw->address[i], mac_addr)) { in hw_del_addr()