Lines Matching refs:static_table

788 	u32 static_table[4];  in ksz9477_port_mdb_add()  local
814 ksz9477_read_table(dev, static_table); in ksz9477_port_mdb_add()
816 if (static_table[0] & ALU_V_STATIC_VALID) { in ksz9477_port_mdb_add()
818 if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) && in ksz9477_port_mdb_add()
819 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && in ksz9477_port_mdb_add()
820 static_table[3] == mac_lo) { in ksz9477_port_mdb_add()
837 static_table[0] = ALU_V_STATIC_VALID; in ksz9477_port_mdb_add()
838 static_table[1] |= BIT(port); in ksz9477_port_mdb_add()
840 static_table[1] |= ALU_V_USE_FID; in ksz9477_port_mdb_add()
841 static_table[2] = (mdb->vid << ALU_V_FID_S); in ksz9477_port_mdb_add()
842 static_table[2] |= mac_hi; in ksz9477_port_mdb_add()
843 static_table[3] = mac_lo; in ksz9477_port_mdb_add()
845 ksz9477_write_table(dev, static_table); in ksz9477_port_mdb_add()
863 u32 static_table[4]; in ksz9477_port_mdb_del() local
889 ksz9477_read_table(dev, static_table); in ksz9477_port_mdb_del()
891 if (static_table[0] & ALU_V_STATIC_VALID) { in ksz9477_port_mdb_del()
894 if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) && in ksz9477_port_mdb_del()
895 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && in ksz9477_port_mdb_del()
896 static_table[3] == mac_lo) { in ksz9477_port_mdb_del()
908 static_table[1] &= ~BIT(port); in ksz9477_port_mdb_del()
910 if ((static_table[1] & ALU_V_PORT_MAP) == 0) { in ksz9477_port_mdb_del()
912 static_table[0] = 0; in ksz9477_port_mdb_del()
913 static_table[1] = 0; in ksz9477_port_mdb_del()
914 static_table[2] = 0; in ksz9477_port_mdb_del()
915 static_table[3] = 0; in ksz9477_port_mdb_del()
918 ksz9477_write_table(dev, static_table); in ksz9477_port_mdb_del()