Lines Matching refs:gdesc
3817 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_gamma_size() local
3822 return gdesc->len; in dispc_mgr_gamma_size()
3828 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_write_gamma_table() local
3834 for (i = 0; i < gdesc->len; ++i) { in dispc_mgr_write_gamma_table()
3837 if (gdesc->has_index) in dispc_mgr_write_gamma_table()
3842 dispc_write_reg(dispc, gdesc->reg, v); in dispc_mgr_write_gamma_table()
3874 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_set_gamma() local
3879 channel, length, gdesc->len); in dispc_mgr_set_gamma()
3890 uint first = i * (gdesc->len - 1) / (length - 1); in dispc_mgr_set_gamma()
3891 uint last = (i + 1) * (gdesc->len - 1) / (length - 1); in dispc_mgr_set_gamma()
3904 r >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3905 g >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3906 b >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3908 table[first + j] = (r << (gdesc->bits * 2)) | in dispc_mgr_set_gamma()
3909 (g << gdesc->bits) | b; in dispc_mgr_set_gamma()
3925 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_init_gamma_tables() local
3936 gt = devm_kmalloc_array(&dispc->pdev->dev, gdesc->len, in dispc_init_gamma_tables()