/drivers/media/platform/ti-vpe/ |
H A D | csc.c | 21 #include "csc.h" 92 void csc_dump_regs(struct csc_data *csc) argument 94 struct device *dev = &csc->pdev->dev; 96 u32 read_reg(struct csc_data *csc, int offset) argument 98 return ioread32(csc->base + offset); 101 #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, read_reg(csc, CSC_##r)) 113 void csc_set_coeff_bypass(struct csc_data *csc, u32 *csc_reg5) argument 121 void csc_set_coeff(struct csc_data *csc, u32 *csc_reg0, argument 170 struct csc_data *csc; local 174 csc [all...] |
H A D | vpe.c | 48 #include "csc.h" 367 struct csc_data *csc; /* csc data handle */ member in struct:vpe_dev 516 GET_OFFSET_TOP(ctx, ctx->dev->csc, CSC_CSC00)); 854 csc_set_coeff(ctx->dev->csc, &mmr_adb->csc_regs[0], 984 csc_dump_regs(dev->csc); 2318 dev->csc = csc_create(pdev); 2319 if (IS_ERR(dev->csc)) { 2320 ret = PTR_ERR(dev->csc);
|
/drivers/media/platform/vivid/ |
H A D | vivid-tpg-colors.c | 197 static void csc(enum v4l2_colorspace colorspace, double *r, double *g, double *b) function 300 csc(c, &r, &g, &b);
|
/drivers/gpu/ipu-v3/ |
H A D | ipu-dp.c | 262 u32 reg, csc; local 270 csc = reg & DP_COM_CONF_CSC_DEF_MASK; 271 if (csc == DP_COM_CONF_CSC_DEF_FG)
|
/drivers/media/platform/omap3isp/ |
H A D | isppreview.h | 74 * @csc: Color space conversion (RGB to YCbCr) parameters. 93 struct omap3isp_prev_csc csc; member in struct:prev_params
|
H A D | isppreview.c | 403 const struct omap3isp_prev_csc *csc = ¶ms->csc; local 406 val = (csc->matrix[0][0] & 0x3ff) << ISPPRV_CSC0_RY_SHIFT; 407 val |= (csc->matrix[0][1] & 0x3ff) << ISPPRV_CSC0_GY_SHIFT; 408 val |= (csc->matrix[0][2] & 0x3ff) << ISPPRV_CSC0_BY_SHIFT; 411 val = (csc->matrix[1][0] & 0x3ff) << ISPPRV_CSC1_RCB_SHIFT; 412 val |= (csc->matrix[1][1] & 0x3ff) << ISPPRV_CSC1_GCB_SHIFT; 413 val |= (csc->matrix[1][2] & 0x3ff) << ISPPRV_CSC1_BCB_SHIFT; 416 val = (csc->matrix[2][0] & 0x3ff) << ISPPRV_CSC2_RCR_SHIFT; 417 val |= (csc [all...] |
/drivers/pcmcia/ |
H A D | i82092.c | 315 int csc; local 319 csc = indirect_read(i,I365_CSC); /* card status change register */ 321 if (csc==0) /* no events on this socket */ 326 if (csc & I365_CSC_DETECT) { 333 events |= (csc & I365_CSC_STSCHG) ? SS_STSCHG : 0; 336 events |= (csc & I365_CSC_BVD1) ? SS_BATDEAD : 0; 337 events |= (csc & I365_CSC_BVD2) ? SS_BATWARN : 0; 338 events |= (csc & I365_CSC_READY) ? SS_READY : 0;
|
H A D | pd6729.c | 192 unsigned int csc; local 195 csc = indirect_read(&socket[i], I365_CSC); 196 if (csc == 0) /* no events on this socket */ 202 if (csc & I365_CSC_DETECT) { 211 events |= (csc & I365_CSC_STSCHG) 215 events |= (csc & I365_CSC_BVD1) 217 events |= (csc & I365_CSC_BVD2) 219 events |= (csc & I365_CSC_READY)
|
H A D | vrc4173_cardu.c | 417 uint8_t csc, status; local 420 csc = exca_readb(socket, CARD_SC); 421 if ((csc & CARD_DT_CHG) && 425 if ((csc & RDY_CHG) && (status & READY)) 429 if ((csc & BAT_DEAD_ST_CHG) && (status & STSCHG)) 432 if (csc & (BAT_WAR_CHG|BAT_DEAD_ST_CHG)) {
|
H A D | i82365.c | 833 int i, j, csc; local 847 csc = i365_get(i, I365_CSC); 848 if ((csc == 0) || (i365_get(i, I365_IDENT) & 0x70)) { 852 events = (csc & I365_CSC_DETECT) ? SS_DETECT : 0; 855 events |= (csc & I365_CSC_STSCHG) ? SS_STSCHG : 0; 857 events |= (csc & I365_CSC_BVD1) ? SS_BATDEAD : 0; 858 events |= (csc & I365_CSC_BVD2) ? SS_BATWARN : 0; 859 events |= (csc & I365_CSC_READY) ? SS_READY : 0;
|
H A D | vrc4171_card.c | 494 uint8_t status, csc; local 497 csc = exca_read_byte(slot, I365_CSC); 500 if ((csc & I365_CSC_STSCHG) && (status & I365_CS_STSCHG)) 503 if (csc & (I365_CSC_BVD1 | I365_CSC_BVD2)) { 510 if ((csc & I365_CSC_READY) && (status & I365_CS_READY)) 512 if ((csc & I365_CSC_DETECT) && ((status & I365_CS_DETECT) == I365_CS_DETECT))
|
H A D | yenta_socket.c | 509 u8 csc; local 516 csc = exca_readb(socket, I365_CSC); 518 if (!(cb_event || csc)) 522 events |= (csc & I365_CSC_DETECT) ? SS_DETECT : 0; 524 events |= (csc & I365_CSC_STSCHG) ? SS_STSCHG : 0; 526 events |= (csc & I365_CSC_BVD1) ? SS_BATDEAD : 0; 527 events |= (csc & I365_CSC_BVD2) ? SS_BATWARN : 0; 528 events |= (csc & I365_CSC_READY) ? SS_READY : 0; 955 u8 csc; local 961 csc [all...] |
/drivers/media/platform/davinci/ |
H A D | dm355_ccdc.c | 553 static void ccdc_config_csc(struct ccdc_csc *csc) argument 558 if (!csc->enable) 568 val1 = (csc->coeff[i].integer & 575 val1 |= (((csc->coeff[i].decimal & 581 val2 = (csc->coeff[i].integer & 584 val2 |= (((csc->coeff[i].decimal & 704 ccdc_config_csc(&config_params->csc);
|
/drivers/video/fbdev/ |
H A D | cg14.c | 118 u16 csc; /* Composite Sync Clear */ member in struct:cg14_regs
|
/drivers/staging/media/davinci_vpfe/ |
H A D | dm365_isif.c | 441 struct vpfe_isif_color_space_conv *csc; local 446 /* csc configuration */ 447 csc = &df_csc->csc; 448 if (csc->en) { 450 if (csc->coeff[i].integer > 452 csc->coeff[i].decimal > 942 if (!df_csc->csc.en) { 951 val1 = ((df_csc->csc.coeff[i].integer & 954 ((df_csc->csc [all...] |
H A D | davinci_vpfe_user.h | 343 * csc coefficient table. S8Q5, M00 at index 0, M01 at index 1, and 478 /* Color Space Conversion configuration, 0 - csc, 1 - df */ 480 /* csc configuration valid if df_or_csc is 0 */ 481 struct vpfe_isif_color_space_conv csc; member in struct:vpfe_isif_df_csc
|