Lines Matching refs:viafb_gamma_table
392 u32 *viafb_gamma_table; in viafb_ioctl() local
577 viafb_gamma_table = memdup_user(argp, 256 * sizeof(u32)); in viafb_ioctl()
578 if (IS_ERR(viafb_gamma_table)) in viafb_ioctl()
579 return PTR_ERR(viafb_gamma_table); in viafb_ioctl()
580 viafb_set_gamma_table(viafb_bpp, viafb_gamma_table); in viafb_ioctl()
581 kfree(viafb_gamma_table); in viafb_ioctl()
585 viafb_gamma_table = kmalloc_array(256, sizeof(u32), in viafb_ioctl()
587 if (!viafb_gamma_table) in viafb_ioctl()
589 viafb_get_gamma_table(viafb_gamma_table); in viafb_ioctl()
590 if (copy_to_user(argp, viafb_gamma_table, in viafb_ioctl()
592 kfree(viafb_gamma_table); in viafb_ioctl()
595 kfree(viafb_gamma_table); in viafb_ioctl()