target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/rtl930x.c
static void rtl930x_set_l3_egress_mac(u32 idx, u64 mac)
{
	// Access L3_EGR_INTF_MAC table (2) via register RTL9300_TBL_2
	struct table_reg *r = rtl_table_get(RTL9300_TBL_2, 2);

	// The table has a size of 2 registers
	sw_w32(mac >> 32, rtl_table_data(r, 0));
	sw_w32(mac, rtl_table_data(r, 1));

	pr_debug("%s: setting index %d to %016llx\n", __func__, idx, mac);
	rtl_table_write(r, idx);
	rtl_table_release(r);
}
/*
 * Set the Destination-MAC of a route or the Source MAC of an L3 egress interface
 * in the SoC's L3_EGR_INTF_MAC table
 * Indexes 0-2047 are DMACs, 2048+ are SMACs
 */
Set the Destination-MAC of a route or the Source MAC of an L3 egress interface
in the SoC's L3_EGR_INTF_MAC table
Indexes 0-2047 are DMACs, 2048+ are SMACs
Set the Destination - MAC of a route or the Source MAC of an L3 egress interface in the SoC ' s L3_EGR_INTF_MAC table Indexes 0 - 2047 are DMACs 2048 + are SMACs
static void rtl930x_set_l3_egress_mac(u32 idx, u64 mac)
{
	struct table_reg *r = rtl_table_get(RTL9300_TBL_2, 2);
	sw_w32(mac >> 32, rtl_table_data(r, 0));
	sw_w32(mac, rtl_table_data(r, 1));
	pr_debug("%s: setting index %d to %016llx\n", __func__, idx, mac);
	rtl_table_write(r, idx);
	rtl_table_release(r);
}
static void rtl930x_set_l3_egress_mac ( u32 idx , u64 mac ) { struct table_reg * r = rtl_table_get ( RTL9300_TBL_2 , 2 ) ; sw_w32 ( mac >> 32 , rtl_table_data ( r , 0 ) ) ; sw_w32 ( mac , rtl_table_data ( r , 1 ) ) ; pr_debug ( " \n " , __func__ , idx , mac ) ; rtl_table_write ( r , idx ) ; rtl_table_release ( r ) ; }
Set the Destination-MAC of a route or the Source MAC of an L3 egress interface
 in the SoC's L3_EGR_INTF_MAC table
 Indexes 0-2047 are DMACs, 2048+ are SMACs
Set the Destination - MAC of a route or the Source MAC of an L3 egress interface in the SoC ' s L3_EGR_INTF_MAC table Indexes 0 - 2047 are DMACs 2048 + are SMACs
// Access L3_EGR_INTF_MAC table (2) via register RTL9300_TBL_2 // The table has a size of 2 registers