dat1 548 drivers/net/dsa/lan9303-core.c static int lan9303_alr_make_entry_raw(struct lan9303 *chip, u32 dat0, u32 dat1) dat1 551 drivers/net/dsa/lan9303-core.c lan9303_write_switch_reg(chip, LAN9303_SWE_ALR_WR_DAT_1, dat1); dat1 560 drivers/net/dsa/lan9303-core.c typedef void alr_loop_cb_t(struct lan9303 *chip, u32 dat0, u32 dat1, dat1 573 drivers/net/dsa/lan9303-core.c u32 dat0, dat1; dat1 577 drivers/net/dsa/lan9303-core.c lan9303_read_switch_reg(chip, LAN9303_SWE_ALR_RD_DAT_1, &dat1); dat1 578 drivers/net/dsa/lan9303-core.c if (dat1 & LAN9303_ALR_DAT1_END_OF_TABL) dat1 581 drivers/net/dsa/lan9303-core.c alrport = (dat1 & LAN9303_ALR_DAT1_PORT_MASK) >> dat1 585 drivers/net/dsa/lan9303-core.c cb(chip, dat0, dat1, portmap, ctx); dat1 594 drivers/net/dsa/lan9303-core.c static void alr_reg_to_mac(u32 dat0, u32 dat1, u8 mac[6]) dat1 600 drivers/net/dsa/lan9303-core.c mac[4] = (dat1 >> 0) & 0xff; dat1 601 drivers/net/dsa/lan9303-core.c mac[5] = (dat1 >> 8) & 0xff; dat1 610 drivers/net/dsa/lan9303-core.c u32 dat1, int portmap, void *ctx) dat1 615 drivers/net/dsa/lan9303-core.c if (((BIT(port) & portmap) == 0) || (dat1 & LAN9303_ALR_DAT1_STATIC)) dat1 619 drivers/net/dsa/lan9303-core.c dat1 &= ~LAN9303_ALR_DAT1_VALID; /* delete entry */ dat1 620 drivers/net/dsa/lan9303-core.c lan9303_alr_make_entry_raw(chip, dat0, dat1); dat1 630 drivers/net/dsa/lan9303-core.c u32 dat1, int portmap, void *ctx) dat1 639 drivers/net/dsa/lan9303-core.c alr_reg_to_mac(dat0, dat1, mac); dat1 640 drivers/net/dsa/lan9303-core.c is_static = !!(dat1 & LAN9303_ALR_DAT1_STATIC); dat1 648 drivers/net/dsa/lan9303-core.c u32 dat0, dat1, alr_port; dat1 651 drivers/net/dsa/lan9303-core.c dat1 = LAN9303_ALR_DAT1_STATIC; dat1 653 drivers/net/dsa/lan9303-core.c dat1 |= LAN9303_ALR_DAT1_VALID; dat1 656 drivers/net/dsa/lan9303-core.c dat1 |= LAN9303_ALR_DAT1_AGE_OVERRID; dat1 659 drivers/net/dsa/lan9303-core.c dat1 &= ~LAN9303_ALR_DAT1_PORT_MASK; dat1 660 drivers/net/dsa/lan9303-core.c dat1 |= alr_port << LAN9303_ALR_DAT1_PORT_BITOFFS; dat1 668 drivers/net/dsa/lan9303-core.c dat1 |= (mac[4] << 0); dat1 669 drivers/net/dsa/lan9303-core.c dat1 |= (mac[5] << 8); dat1 671 drivers/net/dsa/lan9303-core.c lan9303_alr_make_entry_raw(chip, dat0, dat1);