Lines Matching refs:cmap
121 struct fb_cmap cmap; in sbusfb_ioctl_helper() local
136 cmap.len = 1; in sbusfb_ioctl_helper()
137 cmap.red = &red; in sbusfb_ioctl_helper()
138 cmap.green = &green; in sbusfb_ioctl_helper()
139 cmap.blue = &blue; in sbusfb_ioctl_helper()
140 cmap.transp = NULL; in sbusfb_ioctl_helper()
153 cmap.start = index + i; in sbusfb_ioctl_helper()
154 err = fb_set_cmap(&cmap, info); in sbusfb_ioctl_helper()
165 struct fb_cmap *cmap = &info->cmap; in sbusfb_ioctl_helper() local
176 if (index > cmap->len || count > cmap->len - index) in sbusfb_ioctl_helper()
180 red = cmap->red[index + i] >> 8; in sbusfb_ioctl_helper()
181 green = cmap->green[index + i] >> 8; in sbusfb_ioctl_helper()
182 blue = cmap->blue[index + i] >> 8; in sbusfb_ioctl_helper()
215 struct fb_cmap cmap; in sbusfb_compat_ioctl() local
229 cmap.len = 1; in sbusfb_compat_ioctl()
230 cmap.red = &red; in sbusfb_compat_ioctl()
231 cmap.green = &green; in sbusfb_compat_ioctl()
232 cmap.blue = &blue; in sbusfb_compat_ioctl()
233 cmap.transp = NULL; in sbusfb_compat_ioctl()
246 cmap.start = c.index + i; in sbusfb_compat_ioctl()
247 err = fb_set_cmap(&cmap, info); in sbusfb_compat_ioctl()
258 struct fb_cmap *cmap = &info->cmap; in sbusfb_compat_ioctl() local
269 if (index > cmap->len || c.count > cmap->len - index) in sbusfb_compat_ioctl()
273 red = cmap->red[index + i] >> 8; in sbusfb_compat_ioctl()
274 green = cmap->green[index + i] >> 8; in sbusfb_compat_ioctl()
275 blue = cmap->blue[index + i] >> 8; in sbusfb_compat_ioctl()