Lines Matching refs:static_table

876 	u32 static_table[4];  in ksz_port_mdb_add()  local
900 read_table(ds, static_table); in ksz_port_mdb_add()
902 if (static_table[0] & ALU_V_STATIC_VALID) { in ksz_port_mdb_add()
904 if (((static_table[2] >> ALU_V_FID_S) == (mdb->vid)) && in ksz_port_mdb_add()
905 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && in ksz_port_mdb_add()
906 (static_table[3] == mac_lo)) { in ksz_port_mdb_add()
921 static_table[0] = ALU_V_STATIC_VALID; in ksz_port_mdb_add()
922 static_table[1] |= BIT(port); in ksz_port_mdb_add()
924 static_table[1] |= ALU_V_USE_FID; in ksz_port_mdb_add()
925 static_table[2] = (mdb->vid << ALU_V_FID_S); in ksz_port_mdb_add()
926 static_table[2] |= mac_hi; in ksz_port_mdb_add()
927 static_table[3] = mac_lo; in ksz_port_mdb_add()
929 write_table(ds, static_table); in ksz_port_mdb_add()
946 u32 static_table[4]; in ksz_port_mdb_del() local
972 read_table(ds, static_table); in ksz_port_mdb_del()
974 if (static_table[0] & ALU_V_STATIC_VALID) { in ksz_port_mdb_del()
977 if (((static_table[2] >> ALU_V_FID_S) == (mdb->vid)) && in ksz_port_mdb_del()
978 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && in ksz_port_mdb_del()
979 (static_table[3] == mac_lo)) { in ksz_port_mdb_del()
993 static_table[1] &= ~BIT(port); in ksz_port_mdb_del()
995 if ((static_table[1] & ALU_V_PORT_MAP) == 0) { in ksz_port_mdb_del()
997 static_table[0] = 0; in ksz_port_mdb_del()
998 static_table[1] = 0; in ksz_port_mdb_del()
999 static_table[2] = 0; in ksz_port_mdb_del()
1000 static_table[3] = 0; in ksz_port_mdb_del()
1003 write_table(ds, static_table); in ksz_port_mdb_del()