Lines Matching defs:stdi

1407 		struct stdi_readback *stdi,
1411 u32 hfreq = (ADV7842_fsc * 8) / stdi->bl;
1422 if (vtotal(bt) != stdi->lcf + 1)
1424 if (bt->vsync != stdi->lcvs)
1436 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, 0,
1437 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) |
1438 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0),
1441 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs,
1442 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) |
1443 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0),
1450 __func__, stdi->lcvs, stdi->lcf, stdi->bl,
1451 stdi->hs_pol, stdi->vs_pol);
1455 static int read_stdi(struct v4l2_subdev *sd, struct stdi_readback *stdi)
1465 stdi->bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2);
1466 stdi->lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4);
1467 stdi->lcvs = cp_read(sd, 0xb3) >> 3;
1470 stdi->hs_pol = ((cp_read(sd, 0xb5) & 0x10) ?
1472 stdi->vs_pol = ((cp_read(sd, 0xb5) & 0x40) ?
1475 stdi->hs_pol = 'x';
1476 stdi->vs_pol = 'x';
1478 stdi->interlaced = (cp_read(sd, 0xb1) & 0x40) ? true : false;
1480 if (stdi->lcf < 239 || stdi->bl < 8 || stdi->bl == 0x3fff) {
1487 __func__, stdi->lcf, stdi->bl, stdi->lcvs,
1488 stdi->hs_pol, stdi->vs_pol,
1489 stdi->interlaced ? "interlaced" : "progressive");
1530 struct stdi_readback stdi = { 0 };
1544 if (read_stdi(sd, &stdi)) {
1549 bt->interlaced = stdi.interlaced ?
1610 if (!stdi2dv_timings(sd, &stdi, timings))
1612 stdi.lcvs += 1;
1613 v4l2_dbg(1, debug, sd, "%s: lcvs + 1 = %d\n", __func__, stdi.lcvs);
1614 if (!stdi2dv_timings(sd, &stdi, timings))
1616 stdi.lcvs -= 2;
1617 v4l2_dbg(1, debug, sd, "%s: lcvs - 1 = %d\n", __func__, stdi.lcvs);
1618 if (stdi2dv_timings(sd, &stdi, timings)) {