Lines Matching defs:stdi

1404 		struct stdi_readback *stdi,
1408 u32 hfreq = (ADV7842_fsc * 8) / stdi->bl;
1419 if (vtotal(bt) != stdi->lcf + 1)
1421 if (bt->vsync != stdi->lcvs)
1433 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, 0,
1434 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) |
1435 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0),
1438 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs,
1439 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) |
1440 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0),
1446 __func__, stdi->lcvs, stdi->lcf, stdi->bl,
1447 stdi->hs_pol, stdi->vs_pol);
1451 static int read_stdi(struct v4l2_subdev *sd, struct stdi_readback *stdi)
1461 stdi->bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2);
1462 stdi->lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4);
1463 stdi->lcvs = cp_read(sd, 0xb3) >> 3;
1466 stdi->hs_pol = ((cp_read(sd, 0xb5) & 0x10) ?
1468 stdi->vs_pol = ((cp_read(sd, 0xb5) & 0x40) ?
1471 stdi->hs_pol = 'x';
1472 stdi->vs_pol = 'x';
1474 stdi->interlaced = (cp_read(sd, 0xb1) & 0x40) ? true : false;
1476 if (stdi->lcf < 239 || stdi->bl < 8 || stdi->bl == 0x3fff) {
1483 __func__, stdi->lcf, stdi->bl, stdi->lcvs,
1484 stdi->hs_pol, stdi->vs_pol,
1485 stdi->interlaced ? "interlaced" : "progressive");
1526 struct stdi_readback stdi = { 0 };
1537 if (read_stdi(sd, &stdi)) {
1542 bt->interlaced = stdi.interlaced ?
1603 if (!stdi2dv_timings(sd, &stdi, timings))
1605 stdi.lcvs += 1;
1606 v4l2_dbg(1, debug, sd, "%s: lcvs + 1 = %d\n", __func__, stdi.lcvs);
1607 if (!stdi2dv_timings(sd, &stdi, timings))
1609 stdi.lcvs -= 2;
1610 v4l2_dbg(1, debug, sd, "%s: lcvs - 1 = %d\n", __func__, stdi.lcvs);
1611 if (stdi2dv_timings(sd, &stdi, timings)) {