Lines Matching refs:hdmi_read

502 static inline int hdmi_read(struct v4l2_subdev *sd, u8 reg)  in hdmi_read()  function
518 return hdmi_write(sd, reg, (hdmi_read(sd, reg) & mask) | val); in hdmi_write_and_or()
888 reg->val = hdmi_read(sd, reg->reg & 0xff); in adv7842_g_register()
1163 bool hdmi_signal = hdmi_read(sd, 0x05) & 0x80; in set_rgb_quantization_range()
1361 return hdmi_read(sd, 0x05) & 0x80; in is_hdmi()
1552 bt->width = (hdmi_read(sd, 0x07) & 0x0f) * 256 + hdmi_read(sd, 0x08); in adv7842_query_dv_timings()
1553 bt->height = (hdmi_read(sd, 0x09) & 0x0f) * 256 + hdmi_read(sd, 0x0a); in adv7842_query_dv_timings()
1554 freq = ((hdmi_read(sd, 0x51) << 1) + (hdmi_read(sd, 0x52) >> 7)) * 1000000; in adv7842_query_dv_timings()
1555 freq += ((hdmi_read(sd, 0x52) & 0x7f) * 7813); in adv7842_query_dv_timings()
1558 freq = freq * 8 / (((hdmi_read(sd, 0x0b) & 0xc0) >> 6) * 2 + 8); in adv7842_query_dv_timings()
1561 bt->hfrontporch = (hdmi_read(sd, 0x20) & 0x03) * 256 + in adv7842_query_dv_timings()
1562 hdmi_read(sd, 0x21); in adv7842_query_dv_timings()
1563 bt->hsync = (hdmi_read(sd, 0x22) & 0x03) * 256 + in adv7842_query_dv_timings()
1564 hdmi_read(sd, 0x23); in adv7842_query_dv_timings()
1565 bt->hbackporch = (hdmi_read(sd, 0x24) & 0x03) * 256 + in adv7842_query_dv_timings()
1566 hdmi_read(sd, 0x25); in adv7842_query_dv_timings()
1567 bt->vfrontporch = ((hdmi_read(sd, 0x2a) & 0x1f) * 256 + in adv7842_query_dv_timings()
1568 hdmi_read(sd, 0x2b)) / 2; in adv7842_query_dv_timings()
1569 bt->vsync = ((hdmi_read(sd, 0x2e) & 0x1f) * 256 + in adv7842_query_dv_timings()
1570 hdmi_read(sd, 0x2f)) / 2; in adv7842_query_dv_timings()
1571 bt->vbackporch = ((hdmi_read(sd, 0x32) & 0x1f) * 256 + in adv7842_query_dv_timings()
1572 hdmi_read(sd, 0x33)) / 2; in adv7842_query_dv_timings()
1573 bt->polarities = ((hdmi_read(sd, 0x05) & 0x10) ? V4L2_DV_VSYNC_POS_POL : 0) | in adv7842_query_dv_timings()
1574 ((hdmi_read(sd, 0x05) & 0x20) ? V4L2_DV_HSYNC_POS_POL : 0); in adv7842_query_dv_timings()
1576 bt->height += (hdmi_read(sd, 0x0b) & 0x0f) * 256 + in adv7842_query_dv_timings()
1577 hdmi_read(sd, 0x0c); in adv7842_query_dv_timings()
1578 bt->il_vfrontporch = ((hdmi_read(sd, 0x2c) & 0x1f) * 256 + in adv7842_query_dv_timings()
1579 hdmi_read(sd, 0x2d)) / 2; in adv7842_query_dv_timings()
1580 bt->il_vsync = ((hdmi_read(sd, 0x30) & 0x1f) * 256 + in adv7842_query_dv_timings()
1581 hdmi_read(sd, 0x31)) / 2; in adv7842_query_dv_timings()
1582 bt->il_vbackporch = ((hdmi_read(sd, 0x34) & 0x1f) * 256 + in adv7842_query_dv_timings()
1583 hdmi_read(sd, 0x35)) / 2; in adv7842_query_dv_timings()
2604 if (!(hdmi_read(sd, 0x05) & 0x80)) { in adv7842_log_infoframes()
2686 bool audio_pll_locked = hdmi_read(sd, 0x04) & 0x01; in adv7842_cp_log_status()
2687 bool audio_sample_packet_detect = hdmi_read(sd, 0x18) & 0x01; in adv7842_cp_log_status()
2812 (hdmi_read(sd, 0x05) & 0x40) ? "true" : "false"); in adv7842_cp_log_status()
2814 (hdmi_read(sd, 0x04) & 0x20) ? "yes" : "no", in adv7842_cp_log_status()
2815 (hdmi_read(sd, 0x04) & 0x10) ? "ERROR" : ""); in adv7842_cp_log_status()
2825 (hdmi_read(sd, 0x07) & 0x40) ? "multi-channel" : "stereo"); in adv7842_cp_log_status()
2827 v4l2_info(sd, "Audio CTS: %u\n", (hdmi_read(sd, 0x5b) << 12) + in adv7842_cp_log_status()
2828 (hdmi_read(sd, 0x5c) << 8) + in adv7842_cp_log_status()
2829 (hdmi_read(sd, 0x5d) & 0xf0)); in adv7842_cp_log_status()
2830 v4l2_info(sd, "Audio N: %u\n", ((hdmi_read(sd, 0x5d) & 0x0f) << 16) + in adv7842_cp_log_status()
2831 (hdmi_read(sd, 0x5e) << 8) + in adv7842_cp_log_status()
2832 hdmi_read(sd, 0x5f)); in adv7842_cp_log_status()
2834 (hdmi_read(sd, 0x04) & 0x40) ? "on" : "off"); in adv7842_cp_log_status()
2836 deep_color_mode_txt[hdmi_read(sd, 0x0b) >> 6]); in adv7842_cp_log_status()