Lines Matching refs:gdesc
3799 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_gamma_size() local
3804 return gdesc->len; in dispc_mgr_gamma_size()
3810 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_write_gamma_table() local
3816 for (i = 0; i < gdesc->len; ++i) { in dispc_mgr_write_gamma_table()
3819 if (gdesc->has_index) in dispc_mgr_write_gamma_table()
3824 dispc_write_reg(dispc, gdesc->reg, v); in dispc_mgr_write_gamma_table()
3856 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_set_gamma() local
3861 channel, length, gdesc->len); in dispc_mgr_set_gamma()
3872 uint first = i * (gdesc->len - 1) / (length - 1); in dispc_mgr_set_gamma()
3873 uint last = (i + 1) * (gdesc->len - 1) / (length - 1); in dispc_mgr_set_gamma()
3886 r >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3887 g >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3888 b >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3890 table[first + j] = (r << (gdesc->bits * 2)) | in dispc_mgr_set_gamma()
3891 (g << gdesc->bits) | b; in dispc_mgr_set_gamma()
3907 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_init_gamma_tables() local
3918 gt = devm_kmalloc_array(&dispc->pdev->dev, gdesc->len, in dispc_init_gamma_tables()