Lines Matching refs:red
97 if (cmap->red) in fb_alloc_cmap()
98 kfree(cmap->red); in fb_alloc_cmap()
105 cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; in fb_alloc_cmap()
109 if (!(cmap->red = kmalloc(size, GFP_ATOMIC))) in fb_alloc_cmap()
161 memcpy(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap()
168 copy_from_user(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap()
175 copy_to_user(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap()
204 u16 *red, *green, *blue, *transp; in fb_get_cmap() local
207 red = cmap->red; in fb_get_cmap()
218 *red = hred; in fb_get_cmap()
224 put_user(hred, red); in fb_get_cmap()
230 red++; in fb_get_cmap()
258 u16 *red, *green, *blue, *transp; in fb_set_cmap() local
261 red = cmap->red; in fb_set_cmap()
271 hred = *red; in fb_set_cmap()
276 get_user(hred, red); in fb_set_cmap()
284 red++; in fb_set_cmap()