Lines Matching refs:gdesc
3772 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_gamma_size() local
3777 return gdesc->len; in dispc_mgr_gamma_size()
3783 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_write_gamma_table() local
3789 for (i = 0; i < gdesc->len; ++i) { in dispc_mgr_write_gamma_table()
3792 if (gdesc->has_index) in dispc_mgr_write_gamma_table()
3797 dispc_write_reg(dispc, gdesc->reg, v); in dispc_mgr_write_gamma_table()
3829 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_mgr_set_gamma() local
3834 channel, length, gdesc->len); in dispc_mgr_set_gamma()
3845 uint first = i * (gdesc->len - 1) / (length - 1); in dispc_mgr_set_gamma()
3846 uint last = (i + 1) * (gdesc->len - 1) / (length - 1); in dispc_mgr_set_gamma()
3859 r >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3860 g >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3861 b >>= 16 - gdesc->bits; in dispc_mgr_set_gamma()
3863 table[first + j] = (r << (gdesc->bits * 2)) | in dispc_mgr_set_gamma()
3864 (g << gdesc->bits) | b; in dispc_mgr_set_gamma()
3880 const struct dispc_gamma_desc *gdesc = &mgr_desc[channel].gamma; in dispc_init_gamma_tables() local
3891 gt = devm_kmalloc_array(&dispc->pdev->dev, gdesc->len, in dispc_init_gamma_tables()