Lines Matching refs:net_base
397 void __iomem *net_base; member
428 writel(tmp, LPC_ENET_SA2(pldat->net_base)); in __lpc_set_mac()
430 writel(tmp, LPC_ENET_SA1(pldat->net_base)); in __lpc_set_mac()
432 writel(tmp, LPC_ENET_SA0(pldat->net_base)); in __lpc_set_mac()
442 tmp = readl(LPC_ENET_SA2(pldat->net_base)); in __lpc_get_mac()
445 tmp = readl(LPC_ENET_SA1(pldat->net_base)); in __lpc_get_mac()
448 tmp = readl(LPC_ENET_SA0(pldat->net_base)); in __lpc_get_mac()
458 tmp = readl(LPC_ENET_MAC2(pldat->net_base)); in __lpc_params_setup()
460 writel(tmp, LPC_ENET_MAC2(pldat->net_base)); in __lpc_params_setup()
461 tmp = readl(LPC_ENET_COMMAND(pldat->net_base)); in __lpc_params_setup()
463 writel(tmp, LPC_ENET_COMMAND(pldat->net_base)); in __lpc_params_setup()
464 writel(LPC_IPGT_LOAD(0x15), LPC_ENET_IPGT(pldat->net_base)); in __lpc_params_setup()
466 tmp = readl(LPC_ENET_MAC2(pldat->net_base)); in __lpc_params_setup()
468 writel(tmp, LPC_ENET_MAC2(pldat->net_base)); in __lpc_params_setup()
469 tmp = readl(LPC_ENET_COMMAND(pldat->net_base)); in __lpc_params_setup()
471 writel(tmp, LPC_ENET_COMMAND(pldat->net_base)); in __lpc_params_setup()
472 writel(LPC_IPGT_LOAD(0x12), LPC_ENET_IPGT(pldat->net_base)); in __lpc_params_setup()
476 writel(LPC_SUPP_SPEED, LPC_ENET_SUPP(pldat->net_base)); in __lpc_params_setup()
478 writel(0, LPC_ENET_SUPP(pldat->net_base)); in __lpc_params_setup()
486 LPC_MAC1_SOFT_RESET), LPC_ENET_MAC1(pldat->net_base)); in __lpc_eth_reset()
488 LPC_COMMAND_RXRESET), LPC_ENET_COMMAND(pldat->net_base)); in __lpc_eth_reset()
494 writel(LPC_MCFG_RESET_MII_MGMT, LPC_ENET_MCFG(pldat->net_base)); in __lpc_mii_mngt_reset()
498 LPC_ENET_MCFG(pldat->net_base)); in __lpc_mii_mngt_reset()
585 LPC_ENET_TXDESCRIPTORNUMBER(pldat->net_base)); in __lpc_txrx_desc_setup()
587 LPC_ENET_TXDESCRIPTOR(pldat->net_base)); in __lpc_txrx_desc_setup()
589 LPC_ENET_TXSTATUS(pldat->net_base)); in __lpc_txrx_desc_setup()
591 LPC_ENET_RXDESCRIPTORNUMBER(pldat->net_base)); in __lpc_txrx_desc_setup()
593 LPC_ENET_RXDESCRIPTOR(pldat->net_base)); in __lpc_txrx_desc_setup()
595 LPC_ENET_RXSTATUS(pldat->net_base)); in __lpc_txrx_desc_setup()
603 tmp = readl(LPC_ENET_COMMAND(pldat->net_base)); in __lpc_eth_init()
605 writel(tmp, LPC_ENET_COMMAND(pldat->net_base)); in __lpc_eth_init()
606 tmp = readl(LPC_ENET_MAC1(pldat->net_base)); in __lpc_eth_init()
608 writel(tmp, LPC_ENET_MAC1(pldat->net_base)); in __lpc_eth_init()
611 writel(LPC_MAC1_PASS_ALL_RX_FRAMES, LPC_ENET_MAC1(pldat->net_base)); in __lpc_eth_init()
613 LPC_ENET_MAC2(pldat->net_base)); in __lpc_eth_init()
614 writel(ENET_MAXF_SIZE, LPC_ENET_MAXF(pldat->net_base)); in __lpc_eth_init()
619 LPC_ENET_CLRT(pldat->net_base)); in __lpc_eth_init()
620 writel(LPC_IPGR_LOAD_PART2(0x12), LPC_ENET_IPGR(pldat->net_base)); in __lpc_eth_init()
624 LPC_ENET_COMMAND(pldat->net_base)); in __lpc_eth_init()
627 LPC_ENET_COMMAND(pldat->net_base)); in __lpc_eth_init()
628 writel(LPC_SUPP_RESET_RMII, LPC_ENET_SUPP(pldat->net_base)); in __lpc_eth_init()
638 LPC_ENET_RXFILTER_CTRL(pldat->net_base)); in __lpc_eth_init()
643 readl(LPC_ENET_TXCONSUMEINDEX(pldat->net_base)); in __lpc_eth_init()
646 writel(0xFFFF, LPC_ENET_INTCLEAR(pldat->net_base)); in __lpc_eth_init()
648 lpc_eth_enable_int(pldat->net_base); in __lpc_eth_init()
651 tmp = readl(LPC_ENET_COMMAND(pldat->net_base)); in __lpc_eth_init()
653 writel(tmp, LPC_ENET_COMMAND(pldat->net_base)); in __lpc_eth_init()
654 tmp = readl(LPC_ENET_MAC1(pldat->net_base)); in __lpc_eth_init()
656 writel(tmp, LPC_ENET_MAC1(pldat->net_base)); in __lpc_eth_init()
663 writel(0, LPC_ENET_MAC1(pldat->net_base)); in __lpc_eth_shutdown()
664 writel(0, LPC_ENET_MAC2(pldat->net_base)); in __lpc_eth_shutdown()
676 writel(((phy_id << 8) | phyreg), LPC_ENET_MADR(pldat->net_base)); in lpc_mdio_read()
677 writel(LPC_MCMD_READ, LPC_ENET_MCMD(pldat->net_base)); in lpc_mdio_read()
680 while (readl(LPC_ENET_MIND(pldat->net_base)) & LPC_MIND_BUSY) { in lpc_mdio_read()
686 lps = readl(LPC_ENET_MRDD(pldat->net_base)); in lpc_mdio_read()
687 writel(0, LPC_ENET_MCMD(pldat->net_base)); in lpc_mdio_read()
698 writel(((phy_id << 8) | phyreg), LPC_ENET_MADR(pldat->net_base)); in lpc_mdio_write()
699 writel(phydata, LPC_ENET_MWTD(pldat->net_base)); in lpc_mdio_write()
702 while (readl(LPC_ENET_MIND(pldat->net_base)) & LPC_MIND_BUSY) { in lpc_mdio_write()
804 LPC_ENET_COMMAND(pldat->net_base)); in lpc_mii_init()
807 LPC_ENET_COMMAND(pldat->net_base)); in lpc_mii_init()
808 writel(LPC_SUPP_RESET_RMII, LPC_ENET_SUPP(pldat->net_base)); in lpc_mii_init()
844 txcidx = readl(LPC_ENET_TXCONSUMEINDEX(pldat->net_base)); in __lpc_handle_xmit()
886 txcidx = readl(LPC_ENET_TXCONSUMEINDEX(pldat->net_base)); in __lpc_handle_xmit()
904 rxconsidx = readl(LPC_ENET_RXCONSUMEINDEX(pldat->net_base)); in __lpc_handle_recv()
906 readl(LPC_ENET_RXPRODUCEINDEX(pldat->net_base))) { in __lpc_handle_recv()
958 LPC_ENET_RXCONSUMEINDEX(pldat->net_base)); in __lpc_handle_recv()
980 lpc_eth_enable_int(pldat->net_base); in lpc_eth_poll()
994 tmp = readl(LPC_ENET_INTSTATUS(pldat->net_base)); in __lpc_eth_interrupt()
996 writel(tmp, LPC_ENET_INTCLEAR(pldat->net_base)); in __lpc_eth_interrupt()
998 lpc_eth_disable_int(pldat->net_base); in __lpc_eth_interrupt()
1021 writel(0, LPC_ENET_MAC1(pldat->net_base)); in lpc_eth_close()
1022 writel(0, LPC_ENET_MAC2(pldat->net_base)); in lpc_eth_close()
1055 txidx = readl(LPC_ENET_TXPRODUCEINDEX(pldat->net_base)); in lpc_eth_hard_start_xmit()
1075 writel(txidx, LPC_ENET_TXPRODUCEINDEX(pldat->net_base)); in lpc_eth_hard_start_xmit()
1131 writel(tmp32, LPC_ENET_RXFILTER_CTRL(pldat->net_base)); in lpc_eth_set_multicast_list()
1148 writel(hashlo, LPC_ENET_HASHFILTERL(pldat->net_base)); in lpc_eth_set_multicast_list()
1149 writel(hashhi, LPC_ENET_HASHFILTERH(pldat->net_base)); in lpc_eth_set_multicast_list()
1282 pldat->net_base = ioremap(res->start, resource_size(res)); in lpc_eth_drv_probe()
1283 if (!pldat->net_base) { in lpc_eth_drv_probe()
1339 pldat->net_base); in lpc_eth_drv_probe()
1408 iounmap(pldat->net_base); in lpc_eth_drv_probe()
1433 iounmap(pldat->net_base); in lpc_eth_drv_remove()