• Home
  • Raw
  • Download

Lines Matching refs:priv

140 	struct rio_priv *priv = mport->priv;  in fsl_local_config_read()  local
143 *data = in_be32(priv->regs_win + offset); in fsl_local_config_read()
162 struct rio_priv *priv = mport->priv; in fsl_local_config_write() local
166 out_be32(priv->regs_win + offset, data); in fsl_local_config_write()
188 struct rio_priv *priv = mport->priv; in fsl_rio_config_read() local
202 out_be32(&priv->maint_atmu_regs->rowtar, in fsl_rio_config_read()
204 out_be32(&priv->maint_atmu_regs->rowtear, (destid >> 10)); in fsl_rio_config_read()
206 data = (u8 *) priv->maint_win + (offset & (RIO_MAINT_WIN_SIZE - 1)); in fsl_rio_config_read()
248 struct rio_priv *priv = mport->priv; in fsl_rio_config_write() local
260 out_be32(&priv->maint_atmu_regs->rowtar, in fsl_rio_config_write()
262 out_be32(&priv->maint_atmu_regs->rowtear, (destid >> 10)); in fsl_rio_config_write()
264 data = (u8 *) priv->maint_win + (offset & (RIO_MAINT_WIN_SIZE - 1)); in fsl_rio_config_write()
282 static void fsl_rio_inbound_mem_init(struct rio_priv *priv) in fsl_rio_inbound_mem_init() argument
288 out_be32(&priv->inb_atmu_regs[i].riwar, 0); in fsl_rio_inbound_mem_init()
294 struct rio_priv *priv = mport->priv; in fsl_map_inb_mem() local
315 riwar = in_be32(&priv->inb_atmu_regs[i].riwar); in fsl_map_inb_mem()
318 win_start = ((u64)(in_be32(&priv->inb_atmu_regs[i].riwbar) & RIWBAR_BADD_MASK)) in fsl_map_inb_mem()
327 riwar = in_be32(&priv->inb_atmu_regs[i].riwar); in fsl_map_inb_mem()
334 out_be32(&priv->inb_atmu_regs[i].riwtar, lstart >> RIWTAR_TRAD_VAL_SHIFT); in fsl_map_inb_mem()
335 out_be32(&priv->inb_atmu_regs[i].riwbar, rstart >> RIWBAR_BADD_VAL_SHIFT); in fsl_map_inb_mem()
336 out_be32(&priv->inb_atmu_regs[i].riwar, RIWAR_ENABLE | RIWAR_TGINT_LOCAL | in fsl_map_inb_mem()
345 struct rio_priv *priv = mport->priv; in fsl_unmap_inb_mem() local
352 riwar = in_be32(&priv->inb_atmu_regs[i].riwar); in fsl_unmap_inb_mem()
356 riwtar = in_be32(&priv->inb_atmu_regs[i].riwtar); in fsl_unmap_inb_mem()
359 out_be32(&priv->inb_atmu_regs[i].riwar, riwar & ~RIWAR_ENABLE); in fsl_unmap_inb_mem()
434 struct rio_priv *priv; in fsl_rio_setup() local
612 priv = kzalloc(sizeof(struct rio_priv), GFP_KERNEL); in fsl_rio_setup()
613 if (!priv) { in fsl_rio_setup()
629 kfree(priv); in fsl_rio_setup()
635 priv->dev = &dev->dev; in fsl_rio_setup()
638 port->priv = priv; in fsl_rio_setup()
640 priv->regs_win = rio_regs_win; in fsl_rio_setup()
643 ccsr = in_be32(priv->regs_win + RIO_CCSR + i*0x20); in fsl_rio_setup()
648 kfree(priv); in fsl_rio_setup()
654 if (in_be32((priv->regs_win + RIO_ESCSR + i*0x20)) & 1) { in fsl_rio_setup()
658 out_be32(priv->regs_win in fsl_rio_setup()
661 setbits32(priv->regs_win in fsl_rio_setup()
664 setbits32(priv->regs_win in fsl_rio_setup()
667 if (in_be32((priv->regs_win in fsl_rio_setup()
672 kfree(priv); in fsl_rio_setup()
680 port->sys_size = (in_be32((priv->regs_win + RIO_PEF_CAR)) in fsl_rio_setup()
687 kfree(priv); in fsl_rio_setup()
692 out_be32(priv->regs_win + RIO_GCCSR, RIO_PORT_GEN_HOST | in fsl_rio_setup()
695 out_be32(priv->regs_win + RIO_GCCSR, in fsl_rio_setup()
698 priv->atmu_regs = (struct rio_atmu_regs *)(priv->regs_win in fsl_rio_setup()
702 priv->maint_atmu_regs = priv->atmu_regs + 1; in fsl_rio_setup()
703 priv->inb_atmu_regs = (struct rio_inb_atmu_regs __iomem *) in fsl_rio_setup()
704 (priv->regs_win + in fsl_rio_setup()
711 out_be32((priv->regs_win in fsl_rio_setup()
715 out_be32(&priv->maint_atmu_regs->rowbar, in fsl_rio_setup()
717 out_be32(&priv->maint_atmu_regs->rowar, in fsl_rio_setup()
720 priv->maint_win = ioremap(port->iores.start, in fsl_rio_setup()
726 fsl_rio_inbound_mem_init(priv); in fsl_rio_setup()