Lines Matching refs:diu_shared_fb
168 static struct fsl_diu_shared_fb __attribute__ ((__aligned__(8))) diu_shared_fb; variable
179 unsigned long addr = diu_shared_fb.fb_phys & PAGE_MASK; in mpc512x_release_bootmem()
180 unsigned long size = diu_shared_fb.fb_len; in mpc512x_release_bootmem()
183 if (diu_shared_fb.in_use) { in mpc512x_release_bootmem()
190 diu_shared_fb.in_use = false; in mpc512x_release_bootmem()
237 memcpy(&diu_shared_fb.ad0, vaddr, sizeof(struct diu_ad)); in mpc512x_init_diu()
239 dst = (unsigned long)&diu_shared_fb.ad0; in mpc512x_init_diu()
245 diu_shared_fb.fb_phys = in_le32(vaddr + 4); in mpc512x_init_diu()
246 diu_shared_fb.fb_len = ((res & 0xfff0000) >> 16) * (res & 0xfff) * bpp; in mpc512x_init_diu()
247 diu_shared_fb.in_use = true; in mpc512x_init_diu()
251 vaddr = ioremap(desc, sizeof(diu_shared_fb.gamma)); in mpc512x_init_diu()
254 diu_shared_fb.in_use = false; in mpc512x_init_diu()
257 memcpy(&diu_shared_fb.gamma, vaddr, sizeof(diu_shared_fb.gamma)); in mpc512x_init_diu()
259 dst = (unsigned long)&diu_shared_fb.gamma; in mpc512x_init_diu()
260 flush_dcache_range(dst, dst + sizeof(diu_shared_fb.gamma) - 1); in mpc512x_init_diu()
263 out_be32(&diu_reg->gamma, virt_to_phys(&diu_shared_fb.gamma)); in mpc512x_init_diu()
266 out_be32(&diu_reg->desc[0], virt_to_phys(&diu_shared_fb.ad0)); in mpc512x_init_diu()
286 if (diu_shared_fb.in_use) { in mpc512x_setup_diu()
287 ret = memblock_reserve(diu_shared_fb.fb_phys, in mpc512x_setup_diu()
288 diu_shared_fb.fb_len); in mpc512x_setup_diu()
291 diu_shared_fb.in_use = false; in mpc512x_setup_diu()