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