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