Lines Matching refs:stdi

1304 		struct stdi_readback *stdi,  in stdi2dv_timings()  argument
1308 u32 hfreq = (ADV7842_fsc * 8) / stdi->bl; in stdi2dv_timings()
1319 if (vtotal(bt) != stdi->lcf + 1) in stdi2dv_timings()
1321 if (bt->vsync != stdi->lcvs) in stdi2dv_timings()
1333 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, in stdi2dv_timings()
1334 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) | in stdi2dv_timings()
1335 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0), in stdi2dv_timings()
1338 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs, in stdi2dv_timings()
1339 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) | in stdi2dv_timings()
1340 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0), in stdi2dv_timings()
1346 __func__, stdi->lcvs, stdi->lcf, stdi->bl, in stdi2dv_timings()
1347 stdi->hs_pol, stdi->vs_pol); in stdi2dv_timings()
1351 static int read_stdi(struct v4l2_subdev *sd, struct stdi_readback *stdi) in read_stdi() argument
1361 stdi->bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2); in read_stdi()
1362 stdi->lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4); in read_stdi()
1363 stdi->lcvs = cp_read(sd, 0xb3) >> 3; in read_stdi()
1366 stdi->hs_pol = ((cp_read(sd, 0xb5) & 0x10) ? in read_stdi()
1368 stdi->vs_pol = ((cp_read(sd, 0xb5) & 0x40) ? in read_stdi()
1371 stdi->hs_pol = 'x'; in read_stdi()
1372 stdi->vs_pol = 'x'; in read_stdi()
1374 stdi->interlaced = (cp_read(sd, 0xb1) & 0x40) ? true : false; in read_stdi()
1376 if (stdi->lcf < 239 || stdi->bl < 8 || stdi->bl == 0x3fff) { in read_stdi()
1383 __func__, stdi->lcf, stdi->bl, stdi->lcvs, in read_stdi()
1384 stdi->hs_pol, stdi->vs_pol, in read_stdi()
1385 stdi->interlaced ? "interlaced" : "progressive"); in read_stdi()
1425 struct stdi_readback stdi = { 0 }; in adv7842_query_dv_timings() local
1436 if (read_stdi(sd, &stdi)) { in adv7842_query_dv_timings()
1441 bt->interlaced = stdi.interlaced ? in adv7842_query_dv_timings()
1488 if (!stdi2dv_timings(sd, &stdi, timings)) in adv7842_query_dv_timings()
1490 stdi.lcvs += 1; in adv7842_query_dv_timings()
1491 v4l2_dbg(1, debug, sd, "%s: lcvs + 1 = %d\n", __func__, stdi.lcvs); in adv7842_query_dv_timings()
1492 if (!stdi2dv_timings(sd, &stdi, timings)) in adv7842_query_dv_timings()
1494 stdi.lcvs -= 2; in adv7842_query_dv_timings()
1495 v4l2_dbg(1, debug, sd, "%s: lcvs - 1 = %d\n", __func__, stdi.lcvs); in adv7842_query_dv_timings()
1496 if (stdi2dv_timings(sd, &stdi, timings)) { in adv7842_query_dv_timings()