Lines Matching refs:stdi

1417 		struct stdi_readback *stdi,  in stdi2dv_timings()  argument
1421 u32 hfreq = (ADV7842_fsc * 8) / stdi->bl; in stdi2dv_timings()
1432 if (vtotal(bt) != stdi->lcf + 1) in stdi2dv_timings()
1434 if (bt->vsync != stdi->lcvs) in stdi2dv_timings()
1446 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, 0, in stdi2dv_timings()
1447 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) | in stdi2dv_timings()
1448 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0), in stdi2dv_timings()
1451 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs, in stdi2dv_timings()
1452 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) | in stdi2dv_timings()
1453 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0), in stdi2dv_timings()
1459 __func__, stdi->lcvs, stdi->lcf, stdi->bl, in stdi2dv_timings()
1460 stdi->hs_pol, stdi->vs_pol); in stdi2dv_timings()
1464 static int read_stdi(struct v4l2_subdev *sd, struct stdi_readback *stdi) in read_stdi() argument
1474 stdi->bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2); in read_stdi()
1475 stdi->lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4); in read_stdi()
1476 stdi->lcvs = cp_read(sd, 0xb3) >> 3; in read_stdi()
1479 stdi->hs_pol = ((cp_read(sd, 0xb5) & 0x10) ? in read_stdi()
1481 stdi->vs_pol = ((cp_read(sd, 0xb5) & 0x40) ? in read_stdi()
1484 stdi->hs_pol = 'x'; in read_stdi()
1485 stdi->vs_pol = 'x'; in read_stdi()
1487 stdi->interlaced = (cp_read(sd, 0xb1) & 0x40) ? true : false; in read_stdi()
1489 if (stdi->lcf < 239 || stdi->bl < 8 || stdi->bl == 0x3fff) { in read_stdi()
1496 __func__, stdi->lcf, stdi->bl, stdi->lcvs, in read_stdi()
1497 stdi->hs_pol, stdi->vs_pol, in read_stdi()
1498 stdi->interlaced ? "interlaced" : "progressive"); in read_stdi()
1538 struct stdi_readback stdi = { 0 }; in adv7842_query_dv_timings() local
1549 if (read_stdi(sd, &stdi)) { in adv7842_query_dv_timings()
1554 bt->interlaced = stdi.interlaced ? in adv7842_query_dv_timings()
1607 if (!stdi2dv_timings(sd, &stdi, timings)) in adv7842_query_dv_timings()
1609 stdi.lcvs += 1; in adv7842_query_dv_timings()
1610 v4l2_dbg(1, debug, sd, "%s: lcvs + 1 = %d\n", __func__, stdi.lcvs); in adv7842_query_dv_timings()
1611 if (!stdi2dv_timings(sd, &stdi, timings)) in adv7842_query_dv_timings()
1613 stdi.lcvs -= 2; in adv7842_query_dv_timings()
1614 v4l2_dbg(1, debug, sd, "%s: lcvs - 1 = %d\n", __func__, stdi.lcvs); in adv7842_query_dv_timings()
1615 if (stdi2dv_timings(sd, &stdi, timings)) { in adv7842_query_dv_timings()