Lines Matching refs:stdi

1376 		struct stdi_readback *stdi,  in stdi2dv_timings()  argument
1380 u32 hfreq = (ADV76XX_FSC * 8) / stdi->bl; in stdi2dv_timings()
1391 if (vtotal(bt) != stdi->lcf + 1) in stdi2dv_timings()
1393 if (bt->vsync != stdi->lcvs) in stdi2dv_timings()
1405 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, 0, in stdi2dv_timings()
1406 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) | in stdi2dv_timings()
1407 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0), in stdi2dv_timings()
1410 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs, in stdi2dv_timings()
1411 (stdi->hs_pol == '+' ? V4L2_DV_HSYNC_POS_POL : 0) | in stdi2dv_timings()
1412 (stdi->vs_pol == '+' ? V4L2_DV_VSYNC_POS_POL : 0), in stdi2dv_timings()
1418 __func__, stdi->lcvs, stdi->lcf, stdi->bl, in stdi2dv_timings()
1419 stdi->hs_pol, stdi->vs_pol); in stdi2dv_timings()
1424 static int read_stdi(struct v4l2_subdev *sd, struct stdi_readback *stdi) in read_stdi() argument
1436 stdi->bl = cp_read16(sd, 0xb1, 0x3fff); in read_stdi()
1437 stdi->lcf = cp_read16(sd, info->lcf_reg, 0x7ff); in read_stdi()
1438 stdi->lcvs = cp_read(sd, 0xb3) >> 3; in read_stdi()
1439 stdi->interlaced = io_read(sd, 0x12) & 0x10; in read_stdi()
1445 stdi->hs_pol = polarity & 0x10 in read_stdi()
1447 stdi->vs_pol = polarity & 0x40 in read_stdi()
1450 stdi->hs_pol = 'x'; in read_stdi()
1451 stdi->vs_pol = 'x'; in read_stdi()
1455 stdi->hs_pol = polarity & 0x20 ? '+' : '-'; in read_stdi()
1456 stdi->vs_pol = polarity & 0x10 ? '+' : '-'; in read_stdi()
1465 if (stdi->lcf < 239 || stdi->bl < 8 || stdi->bl == 0x3fff) { in read_stdi()
1467 memset(stdi, 0, sizeof(struct stdi_readback)); in read_stdi()
1473 __func__, stdi->lcf, stdi->bl, stdi->lcvs, in read_stdi()
1474 stdi->hs_pol, stdi->vs_pol, in read_stdi()
1475 stdi->interlaced ? "interlaced" : "progressive"); in read_stdi()
1566 struct stdi_readback stdi; in adv76xx_query_dv_timings() local
1580 if (read_stdi(sd, &stdi)) { in adv76xx_query_dv_timings()
1584 bt->interlaced = stdi.interlaced ? in adv76xx_query_dv_timings()
1633 if (!stdi2dv_timings(sd, &stdi, timings)) in adv76xx_query_dv_timings()
1635 stdi.lcvs += 1; in adv76xx_query_dv_timings()
1636 v4l2_dbg(1, debug, sd, "%s: lcvs + 1 = %d\n", __func__, stdi.lcvs); in adv76xx_query_dv_timings()
1637 if (!stdi2dv_timings(sd, &stdi, timings)) in adv76xx_query_dv_timings()
1639 stdi.lcvs -= 2; in adv76xx_query_dv_timings()
1640 v4l2_dbg(1, debug, sd, "%s: lcvs - 1 = %d\n", __func__, stdi.lcvs); in adv76xx_query_dv_timings()
1641 if (stdi2dv_timings(sd, &stdi, timings)) { in adv76xx_query_dv_timings()
2518 struct stdi_readback stdi; in adv76xx_log_status() local
2600 if (read_stdi(sd, &stdi)) in adv76xx_log_status()
2604 stdi.lcf, stdi.bl, stdi.lcvs, in adv76xx_log_status()
2605 stdi.interlaced ? "interlaced" : "progressive", in adv76xx_log_status()
2606 stdi.hs_pol, stdi.vs_pol); in adv76xx_log_status()