Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/net/
H A Dmvgbe.c327 u32 unicast_reg; in port_uc_addr() local
344 unicast_reg = MVGBE_REG_RD(regs->dfut[tbl_offset]); in port_uc_addr()
345 unicast_reg &= (0xFF << (8 * reg_offset)); in port_uc_addr()
346 MVGBE_REG_WR(regs->dfut[tbl_offset], unicast_reg); in port_uc_addr()
350 unicast_reg = MVGBE_REG_RD(regs->dfut[tbl_offset]); in port_uc_addr()
351 unicast_reg &= (0xFF << (8 * reg_offset)); in port_uc_addr()
352 unicast_reg |= ((0x01 | (RXUQ << 1)) << (8 * reg_offset)); in port_uc_addr()
353 MVGBE_REG_WR(regs->dfut[tbl_offset], unicast_reg); in port_uc_addr()
H A Dmvneta.c847 unsigned int unicast_reg; in mvneta_set_ucast_addr() local
860 unicast_reg = mvreg_read(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset)); in mvneta_set_ucast_addr()
864 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
866 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
867 unicast_reg |= ((0x01 | (queue << 1)) << (8 * reg_offset)); in mvneta_set_ucast_addr()
870 mvreg_write(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset), unicast_reg); in mvneta_set_ucast_addr()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/
H A Dmvneta.c1596 unsigned int unicast_reg; in mvneta_set_ucast_addr() local
1609 unicast_reg = mvreg_read(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset)); in mvneta_set_ucast_addr()
1613 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
1615 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
1616 unicast_reg |= ((0x01 | (queue << 1)) << (8 * reg_offset)); in mvneta_set_ucast_addr()
1619 mvreg_write(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset), unicast_reg); in mvneta_set_ucast_addr()