Lines Matching refs:mmio_priv
194 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_mmio() local
196 return mmio_priv->base; in w5100_mmio()
266 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_mmio_init() local
268 spin_lock_init(&mmio_priv->reg_lock); in w5100_mmio_init()
270 mmio_priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); in w5100_mmio_init()
271 if (IS_ERR(mmio_priv->base)) in w5100_mmio_init()
272 return PTR_ERR(mmio_priv->base); in w5100_mmio_init()
301 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_read_indirect() local
305 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_read_indirect()
308 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_read_indirect()
315 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_write_indirect() local
318 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_write_indirect()
321 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_write_indirect()
328 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_read16_indirect() local
332 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_read16_indirect()
336 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_read16_indirect()
343 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_write16_indirect() local
346 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_write16_indirect()
350 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_write16_indirect()
358 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_readbulk_indirect() local
362 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_readbulk_indirect()
368 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_readbulk_indirect()
376 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_writebulk_indirect() local
380 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_writebulk_indirect()
386 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_writebulk_indirect()