Lines Matching refs:cmap
118 struct fb_cmap cmap; in sbusfb_ioctl_helper() local
133 cmap.len = 1; in sbusfb_ioctl_helper()
134 cmap.red = &red; in sbusfb_ioctl_helper()
135 cmap.green = &green; in sbusfb_ioctl_helper()
136 cmap.blue = &blue; in sbusfb_ioctl_helper()
137 cmap.transp = NULL; in sbusfb_ioctl_helper()
150 cmap.start = index + i; in sbusfb_ioctl_helper()
151 err = fb_set_cmap(&cmap, info); in sbusfb_ioctl_helper()
162 struct fb_cmap *cmap = &info->cmap; in sbusfb_ioctl_helper() local
173 if (index + count > cmap->len) in sbusfb_ioctl_helper()
177 red = cmap->red[index + i] >> 8; in sbusfb_ioctl_helper()
178 green = cmap->green[index + i] >> 8; in sbusfb_ioctl_helper()
179 blue = cmap->blue[index + i] >> 8; in sbusfb_ioctl_helper()
226 ret |= copy_in_user(&p->cmap, &argp->cmap, 2 * sizeof(int)); in fbiogscursor()
227 ret |= get_user(addr, &argp->cmap.red); in fbiogscursor()
228 ret |= put_user(compat_ptr(addr), &p->cmap.red); in fbiogscursor()
229 ret |= get_user(addr, &argp->cmap.green); in fbiogscursor()
230 ret |= put_user(compat_ptr(addr), &p->cmap.green); in fbiogscursor()
231 ret |= get_user(addr, &argp->cmap.blue); in fbiogscursor()
232 ret |= put_user(compat_ptr(addr), &p->cmap.blue); in fbiogscursor()