Lines Matching refs:stdi

1376 		struct stdi_readback *stdi,
1380 u32 hfreq = (ADV76XX_FSC * 8) / stdi->bl;
1391 if (vtotal(bt) != stdi->lcf + 1)
1393 if (bt->vsync != stdi->lcvs)
1405 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, 0,
1406 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) |
1407 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0),
1410 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs,
1411 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) |
1412 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0),
1418 __func__, stdi->lcvs, stdi->lcf, stdi->bl,
1419 stdi->hs_pol, stdi->vs_pol);
1424 static int read_stdi(struct v4l2_subdev *sd, struct stdi_readback *stdi)
1436 stdi->bl = cp_read16(sd, 0xb1, 0x3fff);
1437 stdi->lcf = cp_read16(sd, info->lcf_reg, 0x7ff);
1438 stdi->lcvs = cp_read(sd, 0xb3) >> 3;
1439 stdi->interlaced = io_read(sd, 0x12) & 0x10;
1445 stdi->hs_pol = polarity & 0x10
1447 stdi->vs_pol = polarity & 0x40
1450 stdi->hs_pol = 'x';
1451 stdi->vs_pol = 'x';
1455 stdi->hs_pol = polarity & 0x20 ? '+' : '-';
1456 stdi->vs_pol = polarity & 0x10 ? '+' : '-';
1465 if (stdi->lcf < 239 || stdi->bl < 8 || stdi->bl == 0x3fff) {
1467 memset(stdi, 0, sizeof(struct stdi_readback));
1473 __func__, stdi->lcf, stdi->bl, stdi->lcvs,
1474 stdi->hs_pol, stdi->vs_pol,
1475 stdi->interlaced ? "interlaced" : "progressive");
1566 struct stdi_readback stdi;
1580 if (read_stdi(sd, &stdi)) {
1584 bt->interlaced = stdi.interlaced ?
1633 if (!stdi2dv_timings(sd, &stdi, timings))
1635 stdi.lcvs += 1;
1636 v4l2_dbg(1, debug, sd, "%s: lcvs + 1 = %d\n", __func__, stdi.lcvs);
1637 if (!stdi2dv_timings(sd, &stdi, timings))
1639 stdi.lcvs -= 2;
1640 v4l2_dbg(1, debug, sd, "%s: lcvs - 1 = %d\n", __func__, stdi.lcvs);
1641 if (stdi2dv_timings(sd, &stdi, timings)) {
2521 struct stdi_readback stdi;
2603 if (read_stdi(sd, &stdi))
2607 stdi.lcf, stdi.bl, stdi.lcvs,
2608 stdi.interlaced ? "interlaced" : "progressive",
2609 stdi.hs_pol, stdi.vs_pol);