Lines Matching refs:len

64     .len=2, .red=red2, .green=green2, .blue=blue2
67 .len=8, .red=red8, .green=green8, .blue=blue8
70 .len=4, .red=red4, .green=green4, .blue=blue4
73 .len=16, .red=red16, .green=green16, .blue=blue16
92 int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags) in fb_alloc_cmap_gfp() argument
94 int size = len * sizeof(u16); in fb_alloc_cmap_gfp()
97 if (cmap->len != len) { in fb_alloc_cmap_gfp()
99 if (!len) in fb_alloc_cmap_gfp()
120 cmap->len = len; in fb_alloc_cmap_gfp()
121 ret = fb_copy_cmap(fb_default_cmap(len), cmap); in fb_alloc_cmap_gfp()
131 int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp) in fb_alloc_cmap() argument
133 return fb_alloc_cmap_gfp(cmap, len, transp, GFP_ATOMIC); in fb_alloc_cmap()
153 cmap->len = 0; in fb_dealloc_cmap()
173 size = to->len - tooff; in fb_copy_cmap()
174 if (size > (int) (from->len - fromoff)) in fb_copy_cmap()
175 size = from->len - fromoff; in fb_copy_cmap()
197 size = to->len - tooff; in fb_cmap_to_user()
198 if (size > (int) (from->len - fromoff)) in fb_cmap_to_user()
199 size = from->len - fromoff; in fb_cmap_to_user()
245 for (i = 0; i < cmap->len; i++) { in fb_set_cmap()
265 int rc, size = cmap->len * sizeof(u16); in fb_set_user_cmap()
268 if (size < 0 || size < cmap->len) in fb_set_user_cmap()
272 rc = fb_alloc_cmap_gfp(&umap, cmap->len, cmap->transp != NULL, in fb_set_user_cmap()
307 const struct fb_cmap *fb_default_cmap(int len) in fb_default_cmap() argument
309 if (len <= 2) in fb_default_cmap()
311 if (len <= 4) in fb_default_cmap()
313 if (len <= 8) in fb_default_cmap()