Lines Matching refs:dat0
548 static int lan9303_alr_make_entry_raw(struct lan9303 *chip, u32 dat0, u32 dat1) in lan9303_alr_make_entry_raw() argument
550 lan9303_write_switch_reg(chip, LAN9303_SWE_ALR_WR_DAT_0, dat0); in lan9303_alr_make_entry_raw()
560 typedef void alr_loop_cb_t(struct lan9303 *chip, u32 dat0, u32 dat1,
573 u32 dat0, dat1; in lan9303_alr_loop() local
576 lan9303_read_switch_reg(chip, LAN9303_SWE_ALR_RD_DAT_0, &dat0); in lan9303_alr_loop()
585 cb(chip, dat0, dat1, portmap, ctx); in lan9303_alr_loop()
594 static void alr_reg_to_mac(u32 dat0, u32 dat1, u8 mac[6]) in alr_reg_to_mac() argument
596 mac[0] = (dat0 >> 0) & 0xff; in alr_reg_to_mac()
597 mac[1] = (dat0 >> 8) & 0xff; in alr_reg_to_mac()
598 mac[2] = (dat0 >> 16) & 0xff; in alr_reg_to_mac()
599 mac[3] = (dat0 >> 24) & 0xff; in alr_reg_to_mac()
609 static void alr_loop_cb_del_port_learned(struct lan9303 *chip, u32 dat0, in alr_loop_cb_del_port_learned() argument
620 lan9303_alr_make_entry_raw(chip, dat0, dat1); in alr_loop_cb_del_port_learned()
629 static void alr_loop_cb_fdb_port_dump(struct lan9303 *chip, u32 dat0, in alr_loop_cb_fdb_port_dump() argument
639 alr_reg_to_mac(dat0, dat1, mac); in alr_loop_cb_fdb_port_dump()
648 u32 dat0, dat1, alr_port; in lan9303_alr_set_entry() local
662 dat0 = 0; in lan9303_alr_set_entry()
663 dat0 |= (mac[0] << 0); in lan9303_alr_set_entry()
664 dat0 |= (mac[1] << 8); in lan9303_alr_set_entry()
665 dat0 |= (mac[2] << 16); in lan9303_alr_set_entry()
666 dat0 |= (mac[3] << 24); in lan9303_alr_set_entry()
671 lan9303_alr_make_entry_raw(chip, dat0, dat1); in lan9303_alr_set_entry()