Lines Matching refs:membase

77 	void __iomem		*membase;  member
108 reg_val = readl(db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed()
112 writel(reg_val, db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed()
121 reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex()
125 writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex()
203 writel(0, db->membase + EMAC_CTL_REG); in emac_reset()
205 writel(EMAC_CTL_RESET, db->membase + EMAC_CTL_REG); in emac_reset()
261 reg_val = readl(db->membase + EMAC_RX_CTL_REG); in emac_dma_done_callback()
263 writel(reg_val, db->membase + EMAC_RX_CTL_REG); in emac_dma_done_callback()
266 reg_val = readl(db->membase + EMAC_INT_CTL_REG); in emac_dma_done_callback()
268 writel(reg_val, db->membase + EMAC_INT_CTL_REG); in emac_dma_done_callback()
367 reg_val = readl(db->membase + EMAC_TX_MODE_REG); in emac_setup()
370 db->membase + EMAC_TX_MODE_REG); in emac_setup()
374 reg_val = readl(db->membase + EMAC_MAC_CTL0_REG); in emac_setup()
377 db->membase + EMAC_MAC_CTL0_REG); in emac_setup()
380 reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); in emac_setup()
384 writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); in emac_setup()
387 writel(EMAC_MAC_IPGT_FULL_DUPLEX, db->membase + EMAC_MAC_IPGT_REG); in emac_setup()
391 db->membase + EMAC_MAC_IPGR_REG); in emac_setup()
395 db->membase + EMAC_MAC_CLRT_REG); in emac_setup()
399 db->membase + EMAC_MAC_MAXF_REG); in emac_setup()
410 reg_val = readl(db->membase + EMAC_RX_CTL_REG); in emac_set_rx_mode()
421 db->membase + EMAC_RX_CTL_REG); in emac_set_rx_mode()
431 reg_val = readl(db->membase + EMAC_RX_CTL_REG); in emac_powerup()
433 writel(reg_val, db->membase + EMAC_RX_CTL_REG); in emac_powerup()
438 reg_val = readl(db->membase + EMAC_MAC_CTL0_REG); in emac_powerup()
440 writel(reg_val, db->membase + EMAC_MAC_CTL0_REG); in emac_powerup()
443 reg_val = readl(db->membase + EMAC_MAC_MCFG_REG); in emac_powerup()
446 writel(reg_val, db->membase + EMAC_MAC_MCFG_REG); in emac_powerup()
449 writel(0x0, db->membase + EMAC_RX_FBC_REG); in emac_powerup()
452 writel(0, db->membase + EMAC_INT_CTL_REG); in emac_powerup()
453 reg_val = readl(db->membase + EMAC_INT_STA_REG); in emac_powerup()
454 writel(reg_val, db->membase + EMAC_INT_STA_REG); in emac_powerup()
463 dev_addr[2], db->membase + EMAC_MAC_A1_REG); in emac_powerup()
465 dev_addr[5], db->membase + EMAC_MAC_A0_REG); in emac_powerup()
483 dev_addr[2], db->membase + EMAC_MAC_A1_REG); in emac_set_mac_address()
485 dev_addr[5], db->membase + EMAC_MAC_A0_REG); in emac_set_mac_address()
503 reg_val = readl(db->membase + EMAC_CTL_REG); in emac_init_device()
505 db->membase + EMAC_CTL_REG); in emac_init_device()
508 reg_val = readl(db->membase + EMAC_INT_CTL_REG); in emac_init_device()
510 writel(reg_val, db->membase + EMAC_INT_CTL_REG); in emac_init_device()
555 writel(channel, db->membase + EMAC_TX_INS_REG); in emac_start_xmit()
557 emac_outblk_32bit(db->membase + EMAC_TX_IO_DATA_REG, in emac_start_xmit()
565 writel(skb->len, db->membase + EMAC_TX_PL0_REG); in emac_start_xmit()
567 writel(readl(db->membase + EMAC_TX_CTL0_REG) | 1, in emac_start_xmit()
568 db->membase + EMAC_TX_CTL0_REG); in emac_start_xmit()
574 writel(skb->len, db->membase + EMAC_TX_PL1_REG); in emac_start_xmit()
576 writel(readl(db->membase + EMAC_TX_CTL1_REG) | 1, in emac_start_xmit()
577 db->membase + EMAC_TX_CTL1_REG); in emac_start_xmit()
632 rxcount = readl(db->membase + EMAC_RX_FBC_REG); in emac_rx()
639 reg_val = readl(db->membase + EMAC_INT_CTL_REG); in emac_rx()
643 writel(reg_val, db->membase + EMAC_INT_CTL_REG); in emac_rx()
646 rxcount = readl(db->membase + EMAC_RX_FBC_REG); in emac_rx()
651 reg_val = readl(db->membase + EMAC_RX_IO_DATA_REG); in emac_rx()
656 reg_val = readl(db->membase + EMAC_CTL_REG); in emac_rx()
658 db->membase + EMAC_CTL_REG); in emac_rx()
661 reg_val = readl(db->membase + EMAC_RX_CTL_REG); in emac_rx()
663 db->membase + EMAC_RX_CTL_REG); in emac_rx()
666 reg_val = readl(db->membase + EMAC_RX_CTL_REG); in emac_rx()
670 reg_val = readl(db->membase + EMAC_CTL_REG); in emac_rx()
672 db->membase + EMAC_CTL_REG); in emac_rx()
673 reg_val = readl(db->membase + EMAC_INT_CTL_REG); in emac_rx()
677 writel(reg_val, db->membase + EMAC_INT_CTL_REG); in emac_rx()
687 rxhdr = readl(db->membase + EMAC_RX_IO_DATA_REG); in emac_rx()
735 reg_val = readl(db->membase + EMAC_RX_CTL_REG); in emac_rx()
737 writel(reg_val, db->membase + EMAC_RX_CTL_REG); in emac_rx()
742 reg_val = readl(db->membase + EMAC_RX_CTL_REG); in emac_rx()
744 writel(reg_val, db->membase + EMAC_RX_CTL_REG); in emac_rx()
747 emac_inblk_32bit(db->membase + EMAC_RX_IO_DATA_REG, in emac_rx()
771 writel(0, db->membase + EMAC_INT_CTL_REG); in emac_interrupt()
775 int_status = readl(db->membase + EMAC_INT_STA_REG); in emac_interrupt()
777 writel(int_status, db->membase + EMAC_INT_STA_REG); in emac_interrupt()
798 reg_val = readl(db->membase + EMAC_INT_CTL_REG); in emac_interrupt()
800 writel(reg_val, db->membase + EMAC_INT_CTL_REG); in emac_interrupt()
802 reg_val = readl(db->membase + EMAC_INT_CTL_REG); in emac_interrupt()
804 writel(reg_val, db->membase + EMAC_INT_CTL_REG); in emac_interrupt()
861 writel(0, db->membase + EMAC_INT_CTL_REG); in emac_shutdown()
864 reg_val = readl(db->membase + EMAC_INT_STA_REG); in emac_shutdown()
865 writel(reg_val, db->membase + EMAC_INT_STA_REG); in emac_shutdown()
868 reg_val = readl(db->membase + EMAC_CTL_REG); in emac_shutdown()
870 writel(reg_val, db->membase + EMAC_CTL_REG); in emac_shutdown()
989 db->membase = of_iomap(np, 0); in emac_probe()
990 if (!db->membase) { in emac_probe()
997 ndev->base_addr = (unsigned long)db->membase; in emac_probe()
1065 ndev->name, db->membase, ndev->irq, ndev->dev_addr); in emac_probe()
1077 iounmap(db->membase); in emac_probe()
1100 iounmap(db->membase); in emac_remove()