Lines Matching defs:par
80 static inline void dac_write(struct pmagbafb_par *par, unsigned int reg, u8 v)
82 writeb(v, par->dac + reg / 4);
85 static inline u8 dac_read(struct pmagbafb_par *par, unsigned int reg)
87 return readb(par->dac + reg / 4);
98 struct pmagbafb_par *par = info->par;
108 dac_write(par, BT459_ADDR_LO, regno);
109 dac_write(par, BT459_ADDR_HI, 0x00);
111 dac_write(par, BT459_CMAP, red);
113 dac_write(par, BT459_CMAP, green);
115 dac_write(par, BT459_CMAP, blue);
132 struct pmagbafb_par *par = info->par;
135 dac_write(par, BT459_ADDR_LO, 0x00);
136 dac_write(par, BT459_ADDR_HI, 0x03);
138 dac_write(par, BT459_DATA, 0x00);
147 struct pmagbafb_par *par;
154 par = info->par;
180 par->mmio = ioremap(info->fix.mmio_start, info->fix.mmio_len);
181 if (!par->mmio) {
186 par->dac = par->mmio + PMAG_BA_BT459;
220 iounmap(par->mmio);
237 struct pmagbafb_par *par = info->par;
243 iounmap(par->mmio);