Lines Matching refs:stdi

1416 		struct stdi_readback *stdi,
1420 u32 hfreq = (ADV7842_fsc * 8) / stdi->bl;
1431 if (vtotal(bt) != stdi->lcf + 1)
1433 if (bt->vsync != stdi->lcvs)
1445 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, 0,
1446 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) |
1447 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0),
1450 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs,
1451 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) |
1452 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0),
1458 __func__, stdi->lcvs, stdi->lcf, stdi->bl,
1459 stdi->hs_pol, stdi->vs_pol);
1463 static int read_stdi(struct v4l2_subdev *sd, struct stdi_readback *stdi)
1473 stdi->bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2);
1474 stdi->lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4);
1475 stdi->lcvs = cp_read(sd, 0xb3) >> 3;
1478 stdi->hs_pol = ((cp_read(sd, 0xb5) & 0x10) ?
1480 stdi->vs_pol = ((cp_read(sd, 0xb5) & 0x40) ?
1483 stdi->hs_pol = 'x';
1484 stdi->vs_pol = 'x';
1486 stdi->interlaced = (cp_read(sd, 0xb1) & 0x40) ? true : false;
1488 if (stdi->lcf < 239 || stdi->bl < 8 || stdi->bl == 0x3fff) {
1495 __func__, stdi->lcf, stdi->bl, stdi->lcvs,
1496 stdi->hs_pol, stdi->vs_pol,
1497 stdi->interlaced ? "interlaced" : "progressive");
1538 struct stdi_readback stdi = { 0 };
1549 if (read_stdi(sd, &stdi)) {
1554 bt->interlaced = stdi.interlaced ?
1615 if (!stdi2dv_timings(sd, &stdi, timings))
1617 stdi.lcvs += 1;
1618 v4l2_dbg(1, debug, sd, "%s: lcvs + 1 = %d\n", __func__, stdi.lcvs);
1619 if (!stdi2dv_timings(sd, &stdi, timings))
1621 stdi.lcvs -= 2;
1622 v4l2_dbg(1, debug, sd, "%s: lcvs - 1 = %d\n", __func__, stdi.lcvs);
1623 if (stdi2dv_timings(sd, &stdi, timings)) {