Lines Matching refs:dat0
568 static int lan9303_alr_make_entry_raw(struct lan9303 *chip, u32 dat0, u32 dat1) in lan9303_alr_make_entry_raw() argument
570 lan9303_write_switch_reg(chip, LAN9303_SWE_ALR_WR_DAT_0, dat0); in lan9303_alr_make_entry_raw()
580 typedef int alr_loop_cb_t(struct lan9303 *chip, u32 dat0, u32 dat1,
593 u32 dat0, dat1; in lan9303_alr_loop() local
596 lan9303_read_switch_reg(chip, LAN9303_SWE_ALR_RD_DAT_0, &dat0); in lan9303_alr_loop()
605 ret = cb(chip, dat0, dat1, portmap, ctx); in lan9303_alr_loop()
618 static void alr_reg_to_mac(u32 dat0, u32 dat1, u8 mac[6]) in alr_reg_to_mac() argument
620 mac[0] = (dat0 >> 0) & 0xff; in alr_reg_to_mac()
621 mac[1] = (dat0 >> 8) & 0xff; in alr_reg_to_mac()
622 mac[2] = (dat0 >> 16) & 0xff; in alr_reg_to_mac()
623 mac[3] = (dat0 >> 24) & 0xff; in alr_reg_to_mac()
633 static int alr_loop_cb_del_port_learned(struct lan9303 *chip, u32 dat0, in alr_loop_cb_del_port_learned() argument
644 lan9303_alr_make_entry_raw(chip, dat0, dat1); in alr_loop_cb_del_port_learned()
655 static int alr_loop_cb_fdb_port_dump(struct lan9303 *chip, u32 dat0, in alr_loop_cb_fdb_port_dump() argument
665 alr_reg_to_mac(dat0, dat1, mac); in alr_loop_cb_fdb_port_dump()
674 u32 dat0, dat1, alr_port; in lan9303_alr_set_entry() local
688 dat0 = 0; in lan9303_alr_set_entry()
689 dat0 |= (mac[0] << 0); in lan9303_alr_set_entry()
690 dat0 |= (mac[1] << 8); in lan9303_alr_set_entry()
691 dat0 |= (mac[2] << 16); in lan9303_alr_set_entry()
692 dat0 |= (mac[3] << 24); in lan9303_alr_set_entry()
697 lan9303_alr_make_entry_raw(chip, dat0, dat1); in lan9303_alr_set_entry()