alu_table 596 drivers/net/dsa/microchip/ksz9477.c u32 alu_table[4]; alu_table 622 drivers/net/dsa/microchip/ksz9477.c ksz9477_read_table(dev, alu_table); alu_table 625 drivers/net/dsa/microchip/ksz9477.c alu_table[0] = ALU_V_STATIC_VALID; alu_table 626 drivers/net/dsa/microchip/ksz9477.c alu_table[1] |= BIT(port); alu_table 628 drivers/net/dsa/microchip/ksz9477.c alu_table[1] |= ALU_V_USE_FID; alu_table 629 drivers/net/dsa/microchip/ksz9477.c alu_table[2] = (vid << ALU_V_FID_S); alu_table 630 drivers/net/dsa/microchip/ksz9477.c alu_table[2] |= ((addr[0] << 8) | addr[1]); alu_table 631 drivers/net/dsa/microchip/ksz9477.c alu_table[3] = ((addr[2] << 24) | (addr[3] << 16)); alu_table 632 drivers/net/dsa/microchip/ksz9477.c alu_table[3] |= ((addr[4] << 8) | addr[5]); alu_table 634 drivers/net/dsa/microchip/ksz9477.c ksz9477_write_table(dev, alu_table); alu_table 653 drivers/net/dsa/microchip/ksz9477.c u32 alu_table[4]; alu_table 678 drivers/net/dsa/microchip/ksz9477.c ksz_read32(dev, REG_SW_ALU_VAL_A, &alu_table[0]); alu_table 679 drivers/net/dsa/microchip/ksz9477.c if (alu_table[0] & ALU_V_STATIC_VALID) { alu_table 680 drivers/net/dsa/microchip/ksz9477.c ksz_read32(dev, REG_SW_ALU_VAL_B, &alu_table[1]); alu_table 681 drivers/net/dsa/microchip/ksz9477.c ksz_read32(dev, REG_SW_ALU_VAL_C, &alu_table[2]); alu_table 682 drivers/net/dsa/microchip/ksz9477.c ksz_read32(dev, REG_SW_ALU_VAL_D, &alu_table[3]); alu_table 685 drivers/net/dsa/microchip/ksz9477.c alu_table[2] &= ~BIT(port); alu_table 688 drivers/net/dsa/microchip/ksz9477.c if ((alu_table[2] & ALU_V_PORT_MAP) == 0) { alu_table 689 drivers/net/dsa/microchip/ksz9477.c alu_table[0] = 0; alu_table 690 drivers/net/dsa/microchip/ksz9477.c alu_table[1] = 0; alu_table 691 drivers/net/dsa/microchip/ksz9477.c alu_table[2] = 0; alu_table 692 drivers/net/dsa/microchip/ksz9477.c alu_table[3] = 0; alu_table 695 drivers/net/dsa/microchip/ksz9477.c alu_table[0] = 0; alu_table 696 drivers/net/dsa/microchip/ksz9477.c alu_table[1] = 0; alu_table 697 drivers/net/dsa/microchip/ksz9477.c alu_table[2] = 0; alu_table 698 drivers/net/dsa/microchip/ksz9477.c alu_table[3] = 0; alu_table 701 drivers/net/dsa/microchip/ksz9477.c ksz9477_write_table(dev, alu_table); alu_table 716 drivers/net/dsa/microchip/ksz9477.c static void ksz9477_convert_alu(struct alu_struct *alu, u32 *alu_table) alu_table 718 drivers/net/dsa/microchip/ksz9477.c alu->is_static = !!(alu_table[0] & ALU_V_STATIC_VALID); alu_table 719 drivers/net/dsa/microchip/ksz9477.c alu->is_src_filter = !!(alu_table[0] & ALU_V_SRC_FILTER); alu_table 720 drivers/net/dsa/microchip/ksz9477.c alu->is_dst_filter = !!(alu_table[0] & ALU_V_DST_FILTER); alu_table 721 drivers/net/dsa/microchip/ksz9477.c alu->prio_age = (alu_table[0] >> ALU_V_PRIO_AGE_CNT_S) & alu_table 723 drivers/net/dsa/microchip/ksz9477.c alu->mstp = alu_table[0] & ALU_V_MSTP_M; alu_table 725 drivers/net/dsa/microchip/ksz9477.c alu->is_override = !!(alu_table[1] & ALU_V_OVERRIDE); alu_table 726 drivers/net/dsa/microchip/ksz9477.c alu->is_use_fid = !!(alu_table[1] & ALU_V_USE_FID); alu_table 727 drivers/net/dsa/microchip/ksz9477.c alu->port_forward = alu_table[1] & ALU_V_PORT_MAP; alu_table 729 drivers/net/dsa/microchip/ksz9477.c alu->fid = (alu_table[2] >> ALU_V_FID_S) & ALU_V_FID_M; alu_table 731 drivers/net/dsa/microchip/ksz9477.c alu->mac[0] = (alu_table[2] >> 8) & 0xFF; alu_table 732 drivers/net/dsa/microchip/ksz9477.c alu->mac[1] = alu_table[2] & 0xFF; alu_table 733 drivers/net/dsa/microchip/ksz9477.c alu->mac[2] = (alu_table[3] >> 24) & 0xFF; alu_table 734 drivers/net/dsa/microchip/ksz9477.c alu->mac[3] = (alu_table[3] >> 16) & 0xFF; alu_table 735 drivers/net/dsa/microchip/ksz9477.c alu->mac[4] = (alu_table[3] >> 8) & 0xFF; alu_table 736 drivers/net/dsa/microchip/ksz9477.c alu->mac[5] = alu_table[3] & 0xFF; alu_table 745 drivers/net/dsa/microchip/ksz9477.c u32 alu_table[4]; alu_table 770 drivers/net/dsa/microchip/ksz9477.c ksz9477_read_table(dev, alu_table); alu_table 772 drivers/net/dsa/microchip/ksz9477.c ksz9477_convert_alu(&alu, alu_table);