Lines Matching full:csc

1358 /* CSC */
1378 void (*to_regval)(const struct dispc_csc_coef *csc, u32 *regval);
1389 void dispc_csc_offset_regval(const struct dispc_csc_coef *csc, u32 *regval) in dispc_csc_offset_regval() argument
1392 regval[5] = OVAL(csc->preoffset[0], csc->preoffset[1]); in dispc_csc_offset_regval()
1393 regval[6] = OVAL(csc->preoffset[2], csc->postoffset[0]); in dispc_csc_offset_regval()
1394 regval[7] = OVAL(csc->postoffset[1], csc->postoffset[2]); in dispc_csc_offset_regval()
1400 void dispc_csc_yuv2rgb_regval(const struct dispc_csc_coef *csc, u32 *regval) in dispc_csc_yuv2rgb_regval() argument
1402 regval[0] = CVAL(csc->m[CSC_RY], csc->m[CSC_RCR]); in dispc_csc_yuv2rgb_regval()
1403 regval[1] = CVAL(csc->m[CSC_RCB], csc->m[CSC_GY]); in dispc_csc_yuv2rgb_regval()
1404 regval[2] = CVAL(csc->m[CSC_GCR], csc->m[CSC_GCB]); in dispc_csc_yuv2rgb_regval()
1405 regval[3] = CVAL(csc->m[CSC_BY], csc->m[CSC_BCR]); in dispc_csc_yuv2rgb_regval()
1406 regval[4] = CVAL(csc->m[CSC_BCB], 0); in dispc_csc_yuv2rgb_regval()
1408 dispc_csc_offset_regval(csc, regval); in dispc_csc_yuv2rgb_regval()
1412 void dispc_csc_rgb2yuv_regval(const struct dispc_csc_coef *csc, u32 *regval) in dispc_csc_rgb2yuv_regval() argument
1414 regval[0] = CVAL(csc->m[CSC_YR], csc->m[CSC_YG]); in dispc_csc_rgb2yuv_regval()
1415 regval[1] = CVAL(csc->m[CSC_YB], csc->m[CSC_CRR]); in dispc_csc_rgb2yuv_regval()
1416 regval[2] = CVAL(csc->m[CSC_CRG], csc->m[CSC_CRB]); in dispc_csc_rgb2yuv_regval()
1417 regval[3] = CVAL(csc->m[CSC_CBR], csc->m[CSC_CBG]); in dispc_csc_rgb2yuv_regval()
1418 regval[4] = CVAL(csc->m[CSC_CBB], 0); in dispc_csc_rgb2yuv_regval()
1420 dispc_csc_offset_regval(csc, regval); in dispc_csc_rgb2yuv_regval()
1423 static void dispc_csc_cpr_regval(const struct dispc_csc_coef *csc, in dispc_csc_cpr_regval() argument
1426 regval[0] = CVAL(csc->m[CSC_RR], csc->m[CSC_RG]); in dispc_csc_cpr_regval()
1427 regval[1] = CVAL(csc->m[CSC_RB], csc->m[CSC_GR]); in dispc_csc_cpr_regval()
1428 regval[2] = CVAL(csc->m[CSC_GG], csc->m[CSC_GB]); in dispc_csc_cpr_regval()
1429 regval[3] = CVAL(csc->m[CSC_BR], csc->m[CSC_BG]); in dispc_csc_cpr_regval()
1430 regval[4] = CVAL(csc->m[CSC_BB], 0); in dispc_csc_cpr_regval()
1432 dispc_csc_offset_regval(csc, regval); in dispc_csc_cpr_regval()
1438 const struct dispc_csc_coef *csc) in dispc_k2g_vid_write_csc() argument
1449 csc->to_regval(csc, regval); in dispc_k2g_vid_write_csc()
1453 __func__, csc->name); in dispc_k2g_vid_write_csc()
1461 const struct dispc_csc_coef *csc) in dispc_k3_vid_write_csc() argument
1472 csc->to_regval(csc, regval); in dispc_k3_vid_write_csc()
1530 const struct dispc_csc_coef *csc; member
1551 return dispc_csc_table[i].csc; in dispc_find_csc()
1564 dev_err(dispc->dev, "%s: CSC (%u,%u) not found\n", in dispc_vid_csc_setup()
1982 "%s: Unsupported CSC (%u,%u) for HW plane %u\n", in dispc_plane_check()
2461 static void dispc_k2g_vp_csc_cpr_regval(const struct dispc_csc_coef *csc, in dispc_k2g_vp_csc_cpr_regval() argument
2464 regval[0] = CVAL(csc->m[CSC_BB], csc->m[CSC_BG], csc->m[CSC_BR]); in dispc_k2g_vp_csc_cpr_regval()
2465 regval[1] = CVAL(csc->m[CSC_GB], csc->m[CSC_GG], csc->m[CSC_GR]); in dispc_k2g_vp_csc_cpr_regval()
2466 regval[2] = CVAL(csc->m[CSC_RB], csc->m[CSC_RG], csc->m[CSC_RR]); in dispc_k2g_vp_csc_cpr_regval()
2472 const struct dispc_csc_coef *csc) in dispc_k2g_vp_write_csc() argument
2481 dispc_k2g_vp_csc_cpr_regval(csc, regval); in dispc_k2g_vp_write_csc()
2537 const struct dispc_csc_coef *csc) in dispc_k3_vp_write_csc() argument
2547 csc->to_regval(csc, regval); in dispc_k3_vp_write_csc()
2560 struct dispc_csc_coef csc; in dispc_k3_vp_set_ctm() local
2562 dispc_csc_from_ctm(ctm, &csc); in dispc_k3_vp_set_ctm()
2563 dispc_k3_vp_write_csc(dispc, hw_videoport, &csc); in dispc_k3_vp_set_ctm()