Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/video/fbdev/core/
Dfbcmap.c168 unsigned int tooff = 0, fromoff = 0; in fb_copy_cmap() local
174 tooff = from->start - to->start; in fb_copy_cmap()
175 if (fromoff >= from->len || tooff >= to->len) in fb_copy_cmap()
178 size = min_t(size_t, to->len - tooff, from->len - fromoff); in fb_copy_cmap()
183 memcpy(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap()
184 memcpy(to->green+tooff, from->green+fromoff, size); in fb_copy_cmap()
185 memcpy(to->blue+tooff, from->blue+fromoff, size); in fb_copy_cmap()
187 memcpy(to->transp+tooff, from->transp+fromoff, size); in fb_copy_cmap()
193 unsigned int tooff = 0, fromoff = 0; in fb_cmap_to_user() local
199 tooff = from->start - to->start; in fb_cmap_to_user()
[all …]