Lines Matching refs:static_table
794 u32 static_table[4]; in ksz9477_port_mdb_add() local
818 ksz9477_read_table(dev, static_table); in ksz9477_port_mdb_add()
820 if (static_table[0] & ALU_V_STATIC_VALID) { in ksz9477_port_mdb_add()
822 if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) && in ksz9477_port_mdb_add()
823 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && in ksz9477_port_mdb_add()
824 static_table[3] == mac_lo) { in ksz9477_port_mdb_add()
839 static_table[0] = ALU_V_STATIC_VALID; in ksz9477_port_mdb_add()
840 static_table[1] |= BIT(port); in ksz9477_port_mdb_add()
842 static_table[1] |= ALU_V_USE_FID; in ksz9477_port_mdb_add()
843 static_table[2] = (mdb->vid << ALU_V_FID_S); in ksz9477_port_mdb_add()
844 static_table[2] |= mac_hi; in ksz9477_port_mdb_add()
845 static_table[3] = mac_lo; in ksz9477_port_mdb_add()
847 ksz9477_write_table(dev, static_table); in ksz9477_port_mdb_add()
864 u32 static_table[4]; in ksz9477_port_mdb_del() local
890 ksz9477_read_table(dev, static_table); in ksz9477_port_mdb_del()
892 if (static_table[0] & ALU_V_STATIC_VALID) { in ksz9477_port_mdb_del()
895 if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) && in ksz9477_port_mdb_del()
896 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && in ksz9477_port_mdb_del()
897 static_table[3] == mac_lo) { in ksz9477_port_mdb_del()
909 static_table[1] &= ~BIT(port); in ksz9477_port_mdb_del()
911 if ((static_table[1] & ALU_V_PORT_MAP) == 0) { in ksz9477_port_mdb_del()
913 static_table[0] = 0; in ksz9477_port_mdb_del()
914 static_table[1] = 0; in ksz9477_port_mdb_del()
915 static_table[2] = 0; in ksz9477_port_mdb_del()
916 static_table[3] = 0; in ksz9477_port_mdb_del()
919 ksz9477_write_table(dev, static_table); in ksz9477_port_mdb_del()