Lines Matching refs:hwp
380 writel(0, fep->hwp + FEC_X_DES_ACTIVE); in fec_enet_start_xmit()
458 writel(1, fep->hwp + FEC_ECNTRL); in fec_restart()
467 writel(cpu_to_be32(temp_mac[0]), fep->hwp + FEC_ADDR_LOW); in fec_restart()
468 writel(cpu_to_be32(temp_mac[1]), fep->hwp + FEC_ADDR_HIGH); in fec_restart()
472 writel(0xffc00000, fep->hwp + FEC_IEVENT); in fec_restart()
475 writel(0, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); in fec_restart()
476 writel(0, fep->hwp + FEC_GRP_HASH_TABLE_LOW); in fec_restart()
478 writel(0, fep->hwp + FEC_HASH_TABLE_HIGH); in fec_restart()
479 writel(0, fep->hwp + FEC_HASH_TABLE_LOW); in fec_restart()
483 writel(PKT_MAXBLR_SIZE, fep->hwp + FEC_R_BUFF_SIZE); in fec_restart()
488 writel(fep->bd_dma, fep->hwp + FEC_R_DES_START); in fec_restart()
491 * RX_RING_SIZE, fep->hwp + FEC_X_DES_START); in fec_restart()
494 * RX_RING_SIZE, fep->hwp + FEC_X_DES_START); in fec_restart()
507 writel(0x04, fep->hwp + FEC_X_CNTRL); in fec_restart()
511 writel(0x0, fep->hwp + FEC_X_CNTRL); in fec_restart()
517 writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED); in fec_restart()
521 val = readl(fep->hwp + FEC_RACC); in fec_restart()
526 writel(val, fep->hwp + FEC_RACC); in fec_restart()
559 writel(0, fep->hwp + FEC_MIIGSK_ENR); in fec_restart()
560 while (readl(fep->hwp + FEC_MIIGSK_ENR) & 4) in fec_restart()
572 writel(cfgr, fep->hwp + FEC_MIIGSK_CFGR); in fec_restart()
575 writel(2, fep->hwp + FEC_MIIGSK_ENR); in fec_restart()
588 writel(FEC_ENET_RSEM_V, fep->hwp + FEC_R_FIFO_RSEM); in fec_restart()
589 writel(FEC_ENET_RSFL_V, fep->hwp + FEC_R_FIFO_RSFL); in fec_restart()
590 writel(FEC_ENET_RAEM_V, fep->hwp + FEC_R_FIFO_RAEM); in fec_restart()
591 writel(FEC_ENET_RAFL_V, fep->hwp + FEC_R_FIFO_RAFL); in fec_restart()
594 writel(FEC_ENET_OPD_V, fep->hwp + FEC_OPD); in fec_restart()
600 writel(rcntl, fep->hwp + FEC_R_CNTRL); in fec_restart()
606 writel(1 << 8, fep->hwp + FEC_X_WMRK); in fec_restart()
613 writel(ecntl, fep->hwp + FEC_ECNTRL); in fec_restart()
614 writel(0, fep->hwp + FEC_R_DES_ACTIVE); in fec_restart()
620 writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); in fec_restart()
636 u32 rmii_mode = readl(fep->hwp + FEC_R_CNTRL) & (1 << 8); in fec_stop()
640 writel(1, fep->hwp + FEC_X_CNTRL); /* Graceful transmit stop */ in fec_stop()
642 if (!(readl(fep->hwp + FEC_IEVENT) & FEC_ENET_GRA)) in fec_stop()
647 writel(1, fep->hwp + FEC_ECNTRL); in fec_stop()
649 writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED); in fec_stop()
650 writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); in fec_stop()
654 writel(2, fep->hwp + FEC_ECNTRL); in fec_stop()
655 writel(rmii_mode, fep->hwp + FEC_R_CNTRL); in fec_stop()
940 writel(0, fep->hwp + FEC_R_DES_ACTIVE); in fec_enet_rx()
956 int_events = readl(fep->hwp + FEC_IEVENT); in fec_enet_interrupt()
957 writel(int_events, fep->hwp + FEC_IEVENT); in fec_enet_interrupt()
965 fep->hwp + FEC_IMASK); in fec_enet_interrupt()
989 writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); in fec_enet_rx_napi()
1039 be32_to_cpu(readl(fep->hwp + FEC_ADDR_LOW)); in fec_get_mac()
1041 be16_to_cpu(readl(fep->hwp + FEC_ADDR_HIGH) >> 16); in fec_get_mac()
1121 FEC_MMFR_TA, fep->hwp + FEC_MII_DATA); in fec_enet_mdio_read()
1133 return FEC_MMFR_DATA(readl(fep->hwp + FEC_MII_DATA)); in fec_enet_mdio_read()
1149 fep->hwp + FEC_MII_DATA); in fec_enet_mdio_write()
1281 writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED); in fec_enet_mii_init()
1626 tmp = readl(fep->hwp + FEC_R_CNTRL); in set_multicast_list()
1628 writel(tmp, fep->hwp + FEC_R_CNTRL); in set_multicast_list()
1632 tmp = readl(fep->hwp + FEC_R_CNTRL); in set_multicast_list()
1634 writel(tmp, fep->hwp + FEC_R_CNTRL); in set_multicast_list()
1640 writel(0xffffffff, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); in set_multicast_list()
1641 writel(0xffffffff, fep->hwp + FEC_GRP_HASH_TABLE_LOW); in set_multicast_list()
1648 writel(0, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); in set_multicast_list()
1649 writel(0, fep->hwp + FEC_GRP_HASH_TABLE_LOW); in set_multicast_list()
1669 tmp = readl(fep->hwp + FEC_GRP_HASH_TABLE_HIGH); in set_multicast_list()
1671 writel(tmp, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); in set_multicast_list()
1673 tmp = readl(fep->hwp + FEC_GRP_HASH_TABLE_LOW); in set_multicast_list()
1675 writel(tmp, fep->hwp + FEC_GRP_HASH_TABLE_LOW); in set_multicast_list()
1694 fep->hwp + FEC_ADDR_LOW); in fec_set_mac_address()
1696 fep->hwp + FEC_ADDR_HIGH); in fec_set_mac_address()
1803 writel(FEC_RX_DISABLED_IMASK, fep->hwp + FEC_IMASK); in fec_enet_init()
1896 fep->hwp = devm_request_and_ioremap(&pdev->dev, r); in fec_probe()
1902 if (!fep->hwp) { in fec_probe()