Home
last modified time | relevance | path

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

/external/u-boot/drivers/net/
Dmvgbe.c323 u32 unicast_reg; in port_uc_addr() local
340 unicast_reg = MVGBE_REG_RD(regs->dfut[tbl_offset]); in port_uc_addr()
341 unicast_reg &= (0xFF << (8 * reg_offset)); in port_uc_addr()
342 MVGBE_REG_WR(regs->dfut[tbl_offset], unicast_reg); in port_uc_addr()
346 unicast_reg = MVGBE_REG_RD(regs->dfut[tbl_offset]); in port_uc_addr()
347 unicast_reg &= (0xFF << (8 * reg_offset)); in port_uc_addr()
348 unicast_reg |= ((0x01 | (RXUQ << 1)) << (8 * reg_offset)); in port_uc_addr()
349 MVGBE_REG_WR(regs->dfut[tbl_offset], unicast_reg); in port_uc_addr()
Dmvneta.c846 unsigned int unicast_reg; in mvneta_set_ucast_addr() local
859 unicast_reg = mvreg_read(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset)); in mvneta_set_ucast_addr()
863 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
865 unicast_reg &= ~(0xff << (8 * reg_offset)); in mvneta_set_ucast_addr()
866 unicast_reg |= ((0x01 | (queue << 1)) << (8 * reg_offset)); in mvneta_set_ucast_addr()
869 mvreg_write(pp, (MVNETA_DA_FILT_UCAST_BASE + tbl_offset), unicast_reg); in mvneta_set_ucast_addr()