Searched refs:tooff (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/video/fbdev/core/
H A Dfbcmap.c166 int tooff = 0, fromoff = 0; fb_copy_cmap() local
172 tooff = from->start - to->start; fb_copy_cmap()
173 size = to->len - tooff; fb_copy_cmap()
180 memcpy(to->red+tooff, from->red+fromoff, size); fb_copy_cmap()
181 memcpy(to->green+tooff, from->green+fromoff, size); fb_copy_cmap()
182 memcpy(to->blue+tooff, from->blue+fromoff, size); fb_copy_cmap()
184 memcpy(to->transp+tooff, from->transp+fromoff, size); fb_copy_cmap()
190 int tooff = 0, fromoff = 0; fb_cmap_to_user() local
196 tooff = from->start - to->start; fb_cmap_to_user()
197 size = to->len - tooff; fb_cmap_to_user()
204 if (copy_to_user(to->red+tooff, from->red+fromoff, size)) fb_cmap_to_user()
206 if (copy_to_user(to->green+tooff, from->green+fromoff, size)) fb_cmap_to_user()
208 if (copy_to_user(to->blue+tooff, from->blue+fromoff, size)) fb_cmap_to_user()
211 if (copy_to_user(to->transp+tooff, from->transp+fromoff, size)) fb_cmap_to_user()

Completed in 75 milliseconds