Lines Matching defs:par

129 	struct tcx_par *par = info->par;
132 if (par->lowdepth)
135 p = par->cplane;
148 struct tcx_par *par = (struct tcx_par *) info->par;
151 spin_lock_irqsave(&par->lock, flags);
153 spin_unlock_irqrestore(&par->lock, flags);
175 struct tcx_par *par = (struct tcx_par *) info->par;
176 struct bt_regs __iomem *bt = par->bt;
186 spin_lock_irqsave(&par->lock, flags);
193 spin_unlock_irqrestore(&par->lock, flags);
206 struct tcx_par *par = (struct tcx_par *) info->par;
207 struct tcx_thc __iomem *thc = par->thc;
211 spin_lock_irqsave(&par->lock, flags);
220 par->flags &= ~TCX_FLAG_BLANKED;
225 par->flags |= TCX_FLAG_BLANKED;
241 spin_unlock_irqrestore(&par->lock, flags);
304 struct tcx_par *par = (struct tcx_par *)info->par;
306 return sbusfb_mmap_helper(par->mmap_map,
308 par->which_io, vma);
314 struct tcx_par *par = (struct tcx_par *) info->par;
318 (par->lowdepth ? 8 : 24),
329 struct tcx_par *par = (struct tcx_par *)info->par;
332 if (par->lowdepth)
348 struct tcx_par *par)
350 if (par->tec)
352 par->tec, sizeof(struct tcx_tec));
353 if (par->thc)
355 par->thc, sizeof(struct tcx_thc));
356 if (par->bt)
358 par->bt, sizeof(struct bt_regs));
359 if (par->cplane)
361 par->cplane, info->fix.smem_len * sizeof(u32));
371 struct tcx_par *par;
379 par = info->par;
381 spin_lock_init(&par->lock);
383 par->lowdepth = of_property_read_bool(dp, "tcx-8-bit");
394 par->tec = of_ioremap(&op->resource[7], 0,
396 par->thc = of_ioremap(&op->resource[9], 0,
398 par->bt = of_ioremap(&op->resource[8], 0,
402 if (!par->tec || !par->thc ||
403 !par->bt || !info->screen_base)
406 memcpy(&par->mmap_map, &__tcx_mmap_map, sizeof(par->mmap_map));
407 if (!par->lowdepth) {
408 par->cplane = of_ioremap(&op->resource[4], 0,
411 if (!par->cplane)
414 par->mmap_map[1].size = SBUS_MMAP_EMPTY;
415 par->mmap_map[4].size = SBUS_MMAP_EMPTY;
416 par->mmap_map[5].size = SBUS_MMAP_EMPTY;
417 par->mmap_map[6].size = SBUS_MMAP_EMPTY;
421 par->which_io = op->resource[0].flags & IORESOURCE_BITS;
439 par->mmap_map[i].poff = op->resource[j].start;
445 sbus_writel(0x04 << 24, &par->bt->addr); /* color planes */
446 sbus_writel(0xff << 24, &par->bt->control);
447 sbus_writel(0x05 << 24, &par->bt->addr);
448 sbus_writel(0x00 << 24, &par->bt->control);
449 sbus_writel(0x06 << 24, &par->bt->addr); /* overlay plane */
450 sbus_writel(0x73 << 24, &par->bt->control);
451 sbus_writel(0x07 << 24, &par->bt->addr);
452 sbus_writel(0x00 << 24, &par->bt->control);
472 par->which_io,
474 par->lowdepth ? "8-bit only" : "24-bit depth");
482 tcx_unmap_regs(op, info, par);
492 struct tcx_par *par = info->par;
497 tcx_unmap_regs(op, info, par);