Lines Matching refs:stdi

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