Lines Matching full:cpr
2501 struct dispc_csc_coef *cpr)
2503 memset(cpr, 0, sizeof(*cpr));
2505 cpr->to_regval = dispc_csc_cpr_regval;
2506 cpr->m[CSC_RR] = dispc_S31_32_to_s2_8(ctm->matrix[0]);
2507 cpr->m[CSC_RG] = dispc_S31_32_to_s2_8(ctm->matrix[1]);
2508 cpr->m[CSC_RB] = dispc_S31_32_to_s2_8(ctm->matrix[2]);
2509 cpr->m[CSC_GR] = dispc_S31_32_to_s2_8(ctm->matrix[3]);
2510 cpr->m[CSC_GG] = dispc_S31_32_to_s2_8(ctm->matrix[4]);
2511 cpr->m[CSC_GB] = dispc_S31_32_to_s2_8(ctm->matrix[5]);
2512 cpr->m[CSC_BR] = dispc_S31_32_to_s2_8(ctm->matrix[6]);
2513 cpr->m[CSC_BG] = dispc_S31_32_to_s2_8(ctm->matrix[7]);
2514 cpr->m[CSC_BB] = dispc_S31_32_to_s2_8(ctm->matrix[8]);
2535 /* K2G CPR is packed to three registers. */
2553 struct dispc_csc_coef cpr;
2555 dispc_k2g_cpr_from_ctm(ctm, &cpr);
2556 dispc_k2g_vp_write_csc(dispc, hw_videoport, &cpr);
2579 struct dispc_csc_coef *cpr)
2581 memset(cpr, 0, sizeof(*cpr));
2583 cpr->to_regval = dispc_csc_cpr_regval;
2584 cpr->m[CSC_RR] = dispc_S31_32_to_s3_8(ctm->matrix[0]);
2585 cpr->m[CSC_RG] = dispc_S31_32_to_s3_8(ctm->matrix[1]);
2586 cpr->m[CSC_RB] = dispc_S31_32_to_s3_8(ctm->matrix[2]);
2587 cpr->m[CSC_GR] = dispc_S31_32_to_s3_8(ctm->matrix[3]);
2588 cpr->m[CSC_GG] = dispc_S31_32_to_s3_8(ctm->matrix[4]);
2589 cpr->m[CSC_GB] = dispc_S31_32_to_s3_8(ctm->matrix[5]);
2590 cpr->m[CSC_BR] = dispc_S31_32_to_s3_8(ctm->matrix[6]);
2591 cpr->m[CSC_BG] = dispc_S31_32_to_s3_8(ctm->matrix[7]);
2592 cpr->m[CSC_BB] = dispc_S31_32_to_s3_8(ctm->matrix[8]);