Lines Matching refs:bt
122 for (i = 0; adv7842_timings_exceptions[i].bt.width; i++) in adv7842_check_dv_timings()
905 for (i = 0; predef_vid_timings[i].timings.bt.width; i++) { in find_and_set_predefined_video_timings()
972 const struct v4l2_bt_timings *bt) in configure_custom_video_timings() argument
976 u32 width = htotal(bt); in configure_custom_video_timings()
977 u32 height = vtotal(bt); in configure_custom_video_timings()
978 u16 cp_start_sav = bt->hsync + bt->hbackporch - 4; in configure_custom_video_timings()
979 u16 cp_start_eav = width - bt->hfrontporch; in configure_custom_video_timings()
980 u16 cp_start_vbi = height - bt->vfrontporch + 1; in configure_custom_video_timings()
981 u16 cp_end_vbi = bt->vsync + bt->vbackporch + 1; in configure_custom_video_timings()
982 u16 ch1_fr_ll = (((u32)bt->pixelclock / 100) > 0) ? in configure_custom_video_timings()
983 ((width * (ADV7842_fsc / 100)) / ((u32)bt->pixelclock / 100)) : 0; in configure_custom_video_timings()
1131 if (state->timings.bt.standards & V4L2_DV_BT_STD_CEA861) { in set_rgb_quantization_range()
1321 for (i = 0; v4l2_dv_timings_presets[i].bt.width; i++) { in stdi2dv_timings()
1322 const struct v4l2_bt_timings *bt = &v4l2_dv_timings_presets[i].bt; in stdi2dv_timings() local
1328 if (vtotal(bt) != stdi->lcf + 1) in stdi2dv_timings()
1330 if (bt->vsync != stdi->lcvs) in stdi2dv_timings()
1333 pix_clk = hfreq * htotal(bt); in stdi2dv_timings()
1335 if ((pix_clk < bt->pixelclock + 1000000) && in stdi2dv_timings()
1336 (pix_clk > bt->pixelclock - 1000000)) { in stdi2dv_timings()
1433 struct v4l2_bt_timings *bt = &timings->bt; in adv7842_query_dv_timings() local
1450 bt->interlaced = stdi.interlaced ? in adv7842_query_dv_timings()
1458 bt->width = (hdmi_read(sd, 0x07) & 0x0f) * 256 + hdmi_read(sd, 0x08); in adv7842_query_dv_timings()
1459 bt->height = (hdmi_read(sd, 0x09) & 0x0f) * 256 + hdmi_read(sd, 0x0a); in adv7842_query_dv_timings()
1466 bt->pixelclock = freq; in adv7842_query_dv_timings()
1467 bt->hfrontporch = (hdmi_read(sd, 0x20) & 0x03) * 256 + in adv7842_query_dv_timings()
1469 bt->hsync = (hdmi_read(sd, 0x22) & 0x03) * 256 + in adv7842_query_dv_timings()
1471 bt->hbackporch = (hdmi_read(sd, 0x24) & 0x03) * 256 + in adv7842_query_dv_timings()
1473 bt->vfrontporch = ((hdmi_read(sd, 0x2a) & 0x1f) * 256 + in adv7842_query_dv_timings()
1475 bt->vsync = ((hdmi_read(sd, 0x2e) & 0x1f) * 256 + in adv7842_query_dv_timings()
1477 bt->vbackporch = ((hdmi_read(sd, 0x32) & 0x1f) * 256 + in adv7842_query_dv_timings()
1479 bt->polarities = ((hdmi_read(sd, 0x05) & 0x10) ? V4L2_DV_VSYNC_POS_POL : 0) | in adv7842_query_dv_timings()
1481 if (bt->interlaced == V4L2_DV_INTERLACED) { in adv7842_query_dv_timings()
1482 bt->height += (hdmi_read(sd, 0x0b) & 0x0f) * 256 + in adv7842_query_dv_timings()
1484 bt->il_vfrontporch = ((hdmi_read(sd, 0x2c) & 0x1f) * 256 + in adv7842_query_dv_timings()
1486 bt->il_vsync = ((hdmi_read(sd, 0x30) & 0x1f) * 256 + in adv7842_query_dv_timings()
1488 bt->il_vbackporch = ((hdmi_read(sd, 0x34) & 0x1f) * 256 + in adv7842_query_dv_timings()
1544 struct v4l2_bt_timings *bt; in adv7842_s_dv_timings() local
1557 bt = &timings->bt; in adv7842_s_dv_timings()
1567 cp_write(sd, 0x91, bt->interlaced ? 0x40 : 0x00); in adv7842_s_dv_timings()
1574 configure_custom_video_timings(sd, bt); in adv7842_s_dv_timings()
1894 fmt->width = state->timings.bt.width; in adv7842_g_mbus_fmt()
1895 fmt->height = state->timings.bt.height; in adv7842_g_mbus_fmt()
1913 if (state->timings.bt.standards & V4L2_DV_BT_STD_CEA861) { in adv7842_g_mbus_fmt()
1914 fmt->colorspace = (state->timings.bt.height <= 576) ? in adv7842_g_mbus_fmt()