Home
last modified time | relevance | path

Searched refs:unicast_reg (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/drivers/net/
H A Dmvgbe.c346 u32 unicast_reg; in port_uc_addr() local
363 unicast_reg = MVGBE_REG_RD(regs->dfut[tbl_offset]); in port_uc_addr()
364 unicast_reg &= (0xFF << (8 * reg_offset)); in port_uc_addr()
365 MVGBE_REG_WR(regs->dfut[tbl_offset], unicast_reg); in port_uc_addr()
369 unicast_reg = MVGBE_REG_RD(regs->dfut[tbl_offset]); in port_uc_addr()
370 unicast_reg &= (0xFF << (8 * reg_offset)); in port_uc_addr()
371 unicast_reg |= ((0x01 | (RXUQ << 1)) << (8 * reg_offset)); in port_uc_addr()
372 MVGBE_REG_WR(regs->dfut[tbl_offset], unicast_reg); in port_uc_addr()
H A Dmvneta.c842 unsigned int unicast_reg; in mvneta_set_ucast_addr() local
855 unicast_reg = mvreg_read(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset)); in mvneta_set_ucast_addr()
859 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
861 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
862 unicast_reg |= ((0x01 | (queue << 1)) << (8 * reg_offset)); in mvneta_set_ucast_addr()
865 mvreg_write(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset), unicast_reg); in mvneta_set_ucast_addr()
/openbmc/linux/drivers/net/ethernet/marvell/
H A Dmvneta.c1636 unsigned int unicast_reg; in mvneta_set_ucast_addr() local
1649 unicast_reg = mvreg_read(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset)); in mvneta_set_ucast_addr()
1653 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
1655 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
1656 unicast_reg |= ((0x01 | (queue << 1)) << (8 * reg_offset)); in mvneta_set_ucast_addr()
1659 mvreg_write(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset), unicast_reg); in mvneta_set_ucast_addr()