• Home
  • Raw
  • Download

Lines Matching refs:iobase

123 	void __iomem		*iobase;  member
154 if (!(readl(eth->iobase + RAVB_REG_TCCR) & TCCR_TSRQ0)) in ravb_send()
155 setbits_le32(eth->iobase + RAVB_REG_TCCR, TCCR_TSRQ0); in ravb_send()
221 writel(CCC_OPC_CONFIG, eth->iobase + RAVB_REG_CCC); in ravb_reset()
224 return wait_for_bit_le32(eth->iobase + RAVB_REG_CSR, in ravb_reset()
242 writel((uintptr_t)eth->base_desc, eth->iobase + RAVB_REG_DBAT); in ravb_base_desc_init()
346 eth->iobase + RAVB_REG_MAHR); in ravb_write_hwaddr()
348 writel((mac[4] << 8) | mac[5], eth->iobase + RAVB_REG_MALR); in ravb_write_hwaddr()
357 writel(0, eth->iobase + RAVB_REG_ECSIPR); in ravb_mac_init()
360 writel(RFLR_RFL_MIN, eth->iobase + RAVB_REG_RFLR); in ravb_mac_init()
378 writel(0, eth->iobase + RAVB_REG_RIC0); in ravb_dmac_init()
379 writel(0, eth->iobase + RAVB_REG_RIC1); in ravb_dmac_init()
380 writel(0, eth->iobase + RAVB_REG_RIC2); in ravb_dmac_init()
381 writel(0, eth->iobase + RAVB_REG_TIC); in ravb_dmac_init()
384 clrbits_le32(eth->iobase + RAVB_REG_CCC, CCC_BOC); in ravb_dmac_init()
387 writel(0x18000001, eth->iobase + RAVB_REG_RCR); in ravb_dmac_init()
390 writel(0x00222210, eth->iobase + RAVB_REG_TGC); in ravb_dmac_init()
394 writel(BIT(14), eth->iobase + RAVB_REG_APSR); in ravb_dmac_init()
419 writel(0, eth->iobase + RAVB_REG_GECMR); in ravb_config()
421 writel(1, eth->iobase + RAVB_REG_GECMR); in ravb_config()
427 writel(mask, eth->iobase + RAVB_REG_ECMR); in ravb_config()
452 writel(CCC_OPC_OPERATION, eth->iobase + RAVB_REG_CCC); in ravb_start()
471 void __iomem *iobase; in ravb_probe() local
474 iobase = map_physmem(pdata->iobase, 0x1000, MAP_NOCACHE); in ravb_probe()
475 eth->iobase = iobase; in ravb_probe()
529 unmap_physmem(eth->iobase, MAP_NOCACHE); in ravb_probe()
544 unmap_physmem(eth->iobase, MAP_NOCACHE); in ravb_remove()
558 setbits_le32(eth->iobase + RAVB_REG_PIR, PIR_MMD); in ravb_bb_mdio_active()
567 clrbits_le32(eth->iobase + RAVB_REG_PIR, PIR_MMD); in ravb_bb_mdio_tristate()
577 setbits_le32(eth->iobase + RAVB_REG_PIR, PIR_MDO); in ravb_bb_set_mdio()
579 clrbits_le32(eth->iobase + RAVB_REG_PIR, PIR_MDO); in ravb_bb_set_mdio()
588 *v = (readl(eth->iobase + RAVB_REG_PIR) & PIR_MDI) >> 3; in ravb_bb_get_mdio()
598 setbits_le32(eth->iobase + RAVB_REG_PIR, PIR_MDC); in ravb_bb_set_mdc()
600 clrbits_le32(eth->iobase + RAVB_REG_PIR, PIR_MDC); in ravb_bb_set_mdc()
642 pdata->iobase = devfdt_get_addr(dev); in ravb_ofdata_to_platdata()