• Home
  • Raw
  • Download

Lines Matching refs:hwp

935 		writel(rxq->bd.dma, fep->hwp + FEC_R_DES_START(i));  in fec_enet_enable_ring()
936 writel(PKT_MAXBUF_SIZE, fep->hwp + FEC_R_BUFF_SIZE(i)); in fec_enet_enable_ring()
941 fep->hwp + FEC_RCMR(i)); in fec_enet_enable_ring()
946 writel(txq->bd.dma, fep->hwp + FEC_X_DES_START(i)); in fec_enet_enable_ring()
951 fep->hwp + FEC_DMA_CFG(i)); in fec_enet_enable_ring()
992 writel(0, fep->hwp + FEC_ECNTRL); in fec_restart()
994 writel(1, fep->hwp + FEC_ECNTRL); in fec_restart()
1004 fep->hwp + FEC_ADDR_LOW); in fec_restart()
1006 fep->hwp + FEC_ADDR_HIGH); in fec_restart()
1009 writel((0xffffffff & ~FEC_ENET_MII), fep->hwp + FEC_IEVENT); in fec_restart()
1021 writel(0x04, fep->hwp + FEC_X_CNTRL); in fec_restart()
1025 writel(0x0, fep->hwp + FEC_X_CNTRL); in fec_restart()
1029 writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED); in fec_restart()
1033 u32 val = readl(fep->hwp + FEC_RACC); in fec_restart()
1042 writel(val, fep->hwp + FEC_RACC); in fec_restart()
1043 writel(PKT_MAXBUF_SIZE, fep->hwp + FEC_FTRL); in fec_restart()
1080 writel(0, fep->hwp + FEC_MIIGSK_ENR); in fec_restart()
1081 while (readl(fep->hwp + FEC_MIIGSK_ENR) & 4) in fec_restart()
1093 writel(cfgr, fep->hwp + FEC_MIIGSK_CFGR); in fec_restart()
1096 writel(2, fep->hwp + FEC_MIIGSK_ENR); in fec_restart()
1109 writel(FEC_ENET_RSEM_V, fep->hwp + FEC_R_FIFO_RSEM); in fec_restart()
1110 writel(FEC_ENET_RSFL_V, fep->hwp + FEC_R_FIFO_RSFL); in fec_restart()
1111 writel(FEC_ENET_RAEM_V, fep->hwp + FEC_R_FIFO_RAEM); in fec_restart()
1112 writel(FEC_ENET_RAFL_V, fep->hwp + FEC_R_FIFO_RAFL); in fec_restart()
1115 writel(FEC_ENET_OPD_V, fep->hwp + FEC_OPD); in fec_restart()
1121 writel(rcntl, fep->hwp + FEC_R_CNTRL); in fec_restart()
1126 writel(0, fep->hwp + FEC_HASH_TABLE_HIGH); in fec_restart()
1127 writel(0, fep->hwp + FEC_HASH_TABLE_LOW); in fec_restart()
1134 writel(1 << 8, fep->hwp + FEC_X_WMRK); in fec_restart()
1149 writel(0 << 31, fep->hwp + FEC_MIB_CTRLSTAT); in fec_restart()
1153 writel(ecntl, fep->hwp + FEC_ECNTRL); in fec_restart()
1161 writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); in fec_restart()
1163 writel(0, fep->hwp + FEC_IMASK); in fec_restart()
1192 u32 rmii_mode = readl(fep->hwp + FEC_R_CNTRL) & (1 << 8); in fec_stop()
1197 writel(1, fep->hwp + FEC_X_CNTRL); /* Graceful transmit stop */ in fec_stop()
1199 if (!(readl(fep->hwp + FEC_IEVENT) & FEC_ENET_GRA)) in fec_stop()
1209 writel(0, fep->hwp + FEC_ECNTRL); in fec_stop()
1211 writel(1, fep->hwp + FEC_ECNTRL); in fec_stop()
1214 writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); in fec_stop()
1216 writel(FEC_DEFAULT_IMASK | FEC_ENET_WAKEUP, fep->hwp + FEC_IMASK); in fec_stop()
1217 val = readl(fep->hwp + FEC_ECNTRL); in fec_stop()
1219 writel(val, fep->hwp + FEC_ECNTRL); in fec_stop()
1222 writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED); in fec_stop()
1227 writel(2, fep->hwp + FEC_ECNTRL); in fec_stop()
1228 writel(rmii_mode, fep->hwp + FEC_R_CNTRL); in fec_stop()
1483 writel(FEC_ENET_RXF_GET(queue_id), fep->hwp + FEC_IEVENT); in fec_enet_rx_queue()
1655 int_events = readl(fep->hwp + FEC_IEVENT); in fec_enet_collect_events()
1660 writel(int_events, fep->hwp + FEC_IEVENT); in fec_enet_collect_events()
1677 writel(0, fep->hwp + FEC_IMASK); in fec_enet_interrupt()
1698 writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); in fec_enet_rx_napi()
1753 cpu_to_be32(readl(fep->hwp + FEC_ADDR_LOW)); in fec_get_mac()
1755 cpu_to_be16(readl(fep->hwp + FEC_ADDR_HIGH) >> 16); in fec_get_mac()
1846 ret = readl_poll_timeout_atomic(fep->hwp + FEC_IEVENT, ievent, in fec_enet_mdio_wait()
1850 writel(FEC_ENET_MII, fep->hwp + FEC_IEVENT); in fec_enet_mdio_wait()
1874 fep->hwp + FEC_MII_DATA); in fec_enet_mdio_read()
1895 FEC_MMFR_TA, fep->hwp + FEC_MII_DATA); in fec_enet_mdio_read()
1904 ret = FEC_MMFR_DATA(readl(fep->hwp + FEC_MII_DATA)); in fec_enet_mdio_read()
1933 fep->hwp + FEC_MII_DATA); in fec_enet_mdio_write()
1951 fep->hwp + FEC_MII_DATA); in fec_enet_mdio_write()
2234 writel(0, fep->hwp + FEC_MII_DATA); in fec_enet_mii_init()
2237 writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED); in fec_enet_mii_init()
2240 writel(FEC_ENET_MII, fep->hwp + FEC_IEVENT); in fec_enet_mii_init()
2385 u32 __iomem *theregs = (u32 __iomem *)fep->hwp; in fec_enet_get_regs()
2586 fep->ethtool_stats[i] = readl(fep->hwp + fec_stats[i].offset); in fec_enet_update_ethtool_stats()
2634 writel(FEC_MIB_CTRLSTAT_DISABLE, fep->hwp + FEC_MIB_CTRLSTAT); in fec_enet_clear_ethtool_stats()
2637 writel(0, fep->hwp + fec_stats[i].offset); in fec_enet_clear_ethtool_stats()
2640 writel(0, fep->hwp + FEC_MIB_CTRLSTAT); in fec_enet_clear_ethtool_stats()
2691 writel(tx_itr, fep->hwp + FEC_TXIC0); in fec_enet_itr_coal_set()
2692 writel(rx_itr, fep->hwp + FEC_RXIC0); in fec_enet_itr_coal_set()
2694 writel(tx_itr, fep->hwp + FEC_TXIC1); in fec_enet_itr_coal_set()
2695 writel(rx_itr, fep->hwp + FEC_RXIC1); in fec_enet_itr_coal_set()
2696 writel(tx_itr, fep->hwp + FEC_TXIC2); in fec_enet_itr_coal_set()
2697 writel(rx_itr, fep->hwp + FEC_RXIC2); in fec_enet_itr_coal_set()
2836 writel(sleep_cycle, fep->hwp + FEC_LPI_SLEEP); in fec_enet_eee_mode_set()
2837 writel(wake_cycle, fep->hwp + FEC_LPI_WAKE); in fec_enet_eee_mode_set()
3310 tmp = readl(fep->hwp + FEC_R_CNTRL); in set_multicast_list()
3312 writel(tmp, fep->hwp + FEC_R_CNTRL); in set_multicast_list()
3316 tmp = readl(fep->hwp + FEC_R_CNTRL); in set_multicast_list()
3318 writel(tmp, fep->hwp + FEC_R_CNTRL); in set_multicast_list()
3324 writel(0xffffffff, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); in set_multicast_list()
3325 writel(0xffffffff, fep->hwp + FEC_GRP_HASH_TABLE_LOW); in set_multicast_list()
3346 writel(hash_high, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); in set_multicast_list()
3347 writel(hash_low, fep->hwp + FEC_GRP_HASH_TABLE_LOW); in set_multicast_list()
3373 fep->hwp + FEC_ADDR_LOW); in fec_set_mac_address()
3375 fep->hwp + FEC_ADDR_HIGH); in fec_set_mac_address()
3558 rxq->bd.reg_desc_active = fep->hwp + offset_des_active_rxq[i]; in fec_enet_init()
3574 txq->bd.reg_desc_active = fep->hwp + offset_des_active_txq[i]; in fec_enet_init()
3586 writel(FEC_RX_DISABLED_IMASK, fep->hwp + FEC_IMASK); in fec_enet_init()
3829 fep->hwp = devm_platform_ioremap_resource(pdev, 0); in fec_probe()
3830 if (IS_ERR(fep->hwp)) { in fec_probe()
3831 ret = PTR_ERR(fep->hwp); in fec_probe()
4141 val = readl(fep->hwp + FEC_ECNTRL); in fec_resume()
4143 writel(val, fep->hwp + FEC_ECNTRL); in fec_resume()