Lines Matching refs:p

76 				   struct fb_info *p, u8 __iomem *dst1,  in color_imageblit()  argument
83 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit()
85 u32 *palette = (u32 *) p->pseudo_palette; in color_imageblit()
87 u32 bswapmask = fb_compute_bswapmask(p); in color_imageblit()
97 u32 start_mask = ~fb_shifted_pixels_mask_u32(p, in color_imageblit()
103 if (p->fix.visual == FB_VISUAL_TRUECOLOR || in color_imageblit()
104 p->fix.visual == FB_VISUAL_DIRECTCOLOR ) in color_imageblit()
108 color <<= FB_LEFT_POS(p, bpp); in color_imageblit()
109 val |= FB_SHIFT_HIGH(p, color, shift ^ bswapmask); in color_imageblit()
114 FB_SHIFT_LOW(p, color, 32 - shift); in color_imageblit()
121 u32 end_mask = fb_shifted_pixels_mask_u32(p, shift, in color_imageblit()
126 dst1 += p->fix.line_length; in color_imageblit()
128 dst2 += p->fix.line_length; in color_imageblit()
137 static inline void slow_imageblit(const struct fb_image *image, struct fb_info *p, in slow_imageblit() argument
143 u32 shift, color = 0, bpp = p->var.bits_per_pixel; in slow_imageblit()
145 u32 val, pitch = p->fix.line_length; in slow_imageblit()
150 u32 bswapmask = fb_compute_bswapmask(p); in slow_imageblit()
153 fgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit()
154 bgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit()
165 u32 start_mask = ~fb_shifted_pixels_mask_u32(p, in slow_imageblit()
174 val |= FB_SHIFT_HIGH(p, color, shift ^ bswapmask); in slow_imageblit()
180 FB_SHIFT_LOW(p, color, 32 - shift); in slow_imageblit()
189 u32 end_mask = fb_shifted_pixels_mask_u32(p, shift, in slow_imageblit()
215 static inline void fast_imageblit(const struct fb_image *image, struct fb_info *p, in fast_imageblit() argument
219 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit()
231 tab = fb_be_math(p) ? cfb_tab8_be : cfb_tab8_le; in fast_imageblit()
235 tab = fb_be_math(p) ? cfb_tab16_be : cfb_tab16_le; in fast_imageblit()
313 dst1 += p->fix.line_length; in fast_imageblit()
318 void cfb_imageblit(struct fb_info *p, const struct fb_image *image) in cfb_imageblit() argument
321 u32 bpl = sizeof(u32), bpp = p->var.bits_per_pixel; in cfb_imageblit()
326 if (p->state != FBINFO_STATE_RUNNING) in cfb_imageblit()
329 bitstart = (dy * p->fix.line_length * 8) + (dx * bpp); in cfb_imageblit()
331 pitch_index = (p->fix.line_length & (bpl - 1)) * 8; in cfb_imageblit()
335 dst1 = p->screen_base + bitstart; in cfb_imageblit()
337 if (p->fbops->fb_sync) in cfb_imageblit()
338 p->fbops->fb_sync(p); in cfb_imageblit()
341 if (p->fix.visual == FB_VISUAL_TRUECOLOR || in cfb_imageblit()
342 p->fix.visual == FB_VISUAL_DIRECTCOLOR) { in cfb_imageblit()
343 fgcolor = ((u32*)(p->pseudo_palette))[image->fg_color]; in cfb_imageblit()
344 bgcolor = ((u32*)(p->pseudo_palette))[image->bg_color]; in cfb_imageblit()
353 fast_imageblit(image, p, dst1, fgcolor, bgcolor); in cfb_imageblit()
355 slow_imageblit(image, p, dst1, fgcolor, bgcolor, in cfb_imageblit()
358 color_imageblit(image, p, dst1, start_index, pitch_index); in cfb_imageblit()