Lines Matching refs:static_table
670 u32 static_table[4];
701 ksz9477_read_table(dev, static_table);
703 if (static_table[0] & ALU_V_STATIC_VALID) {
705 if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) &&
706 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) &&
707 static_table[3] == mac_lo) {
724 static_table[0] = ALU_V_STATIC_VALID;
725 static_table[1] |= BIT(port);
727 static_table[1] |= ALU_V_USE_FID;
728 static_table[2] = (mdb->vid << ALU_V_FID_S);
729 static_table[2] |= mac_hi;
730 static_table[3] = mac_lo;
732 ksz9477_write_table(dev, static_table);
749 u32 static_table[4];
780 ksz9477_read_table(dev, static_table);
782 if (static_table[0] & ALU_V_STATIC_VALID) {
785 if (((static_table[2] >> ALU_V_FID_S) == mdb->vid) &&
786 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) &&
787 static_table[3] == mac_lo) {
799 static_table[1] &= ~BIT(port);
801 if ((static_table[1] & ALU_V_PORT_MAP) == 0) {
803 static_table[0] = 0;
804 static_table[1] = 0;
805 static_table[2] = 0;
806 static_table[3] = 0;
809 ksz9477_write_table(dev, static_table);