Lines Matching defs:par

128 	struct tcx_par *par = info->par;
131 if (par->lowdepth)
134 p = par->cplane;
147 struct tcx_par *par = (struct tcx_par *) info->par;
150 spin_lock_irqsave(&par->lock, flags);
152 spin_unlock_irqrestore(&par->lock, flags);
174 struct tcx_par *par = (struct tcx_par *) info->par;
175 struct bt_regs __iomem *bt = par->bt;
185 spin_lock_irqsave(&par->lock, flags);
192 spin_unlock_irqrestore(&par->lock, flags);
205 struct tcx_par *par = (struct tcx_par *) info->par;
206 struct tcx_thc __iomem *thc = par->thc;
210 spin_lock_irqsave(&par->lock, flags);
219 par->flags &= ~TCX_FLAG_BLANKED;
224 par->flags |= TCX_FLAG_BLANKED;
240 spin_unlock_irqrestore(&par->lock, flags);
303 struct tcx_par *par = (struct tcx_par *)info->par;
305 return sbusfb_mmap_helper(par->mmap_map,
307 par->which_io, vma);
313 struct tcx_par *par = (struct tcx_par *) info->par;
317 (par->lowdepth ? 8 : 24),
328 struct tcx_par *par = (struct tcx_par *)info->par;
331 if (par->lowdepth)
347 struct tcx_par *par)
349 if (par->tec)
351 par->tec, sizeof(struct tcx_tec));
352 if (par->thc)
354 par->thc, sizeof(struct tcx_thc));
355 if (par->bt)
357 par->bt, sizeof(struct bt_regs));
358 if (par->cplane)
360 par->cplane, info->fix.smem_len * sizeof(u32));
370 struct tcx_par *par;
378 par = info->par;
380 spin_lock_init(&par->lock);
382 par->lowdepth =
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;
446 sbus_writel(0x04 << 24, &par->bt->addr); /* color planes */
447 sbus_writel(0xff << 24, &par->bt->control);
448 sbus_writel(0x05 << 24, &par->bt->addr);
449 sbus_writel(0x00 << 24, &par->bt->control);
450 sbus_writel(0x06 << 24, &par->bt->addr); /* overlay plane */
451 sbus_writel(0x73 << 24, &par->bt->control);
452 sbus_writel(0x07 << 24, &par->bt->addr);
453 sbus_writel(0x00 << 24, &par->bt->control);
473 par->which_io,
475 par->lowdepth ? "8-bit only" : "24-bit depth");
483 tcx_unmap_regs(op, info, par);
493 struct tcx_par *par = info->par;
498 tcx_unmap_regs(op, info, par);