Lines Matching refs:cmap
120 struct fb_cmap cmap; in sbusfb_ioctl_helper() local
135 cmap.len = 1; in sbusfb_ioctl_helper()
136 cmap.red = &red; in sbusfb_ioctl_helper()
137 cmap.green = &green; in sbusfb_ioctl_helper()
138 cmap.blue = &blue; in sbusfb_ioctl_helper()
139 cmap.transp = NULL; in sbusfb_ioctl_helper()
152 cmap.start = index + i; in sbusfb_ioctl_helper()
153 err = fb_set_cmap(&cmap, info); in sbusfb_ioctl_helper()
164 struct fb_cmap *cmap = &info->cmap; in sbusfb_ioctl_helper() local
175 if (index > cmap->len || count > cmap->len - index) in sbusfb_ioctl_helper()
179 red = cmap->red[index + i] >> 8; in sbusfb_ioctl_helper()
180 green = cmap->green[index + i] >> 8; in sbusfb_ioctl_helper()
181 blue = cmap->blue[index + i] >> 8; in sbusfb_ioctl_helper()
214 struct fb_cmap cmap; in sbusfb_compat_ioctl() local
228 cmap.len = 1; in sbusfb_compat_ioctl()
229 cmap.red = &red; in sbusfb_compat_ioctl()
230 cmap.green = &green; in sbusfb_compat_ioctl()
231 cmap.blue = &blue; in sbusfb_compat_ioctl()
232 cmap.transp = NULL; in sbusfb_compat_ioctl()
245 cmap.start = c.index + i; in sbusfb_compat_ioctl()
246 err = fb_set_cmap(&cmap, info); in sbusfb_compat_ioctl()
257 struct fb_cmap *cmap = &info->cmap; in sbusfb_compat_ioctl() local
268 if (index > cmap->len || c.count > cmap->len - index) in sbusfb_compat_ioctl()
272 red = cmap->red[index + i] >> 8; in sbusfb_compat_ioctl()
273 green = cmap->green[index + i] >> 8; in sbusfb_compat_ioctl()
274 blue = cmap->blue[index + i] >> 8; in sbusfb_compat_ioctl()