Lines Matching refs:hdmi_read
512 static inline int hdmi_read(struct v4l2_subdev *sd, u8 reg) in hdmi_read() function
528 return hdmi_write(sd, reg, (hdmi_read(sd, reg) & mask) | val); in hdmi_write_and_or()
898 reg->val = hdmi_read(sd, reg->reg & 0xff); in adv7842_g_register()
1173 bool hdmi_signal = hdmi_read(sd, 0x05) & 0x80; in set_rgb_quantization_range()
1371 return hdmi_read(sd, 0x05) & 0x80; in is_hdmi()
1562 bt->width = (hdmi_read(sd, 0x07) & 0x0f) * 256 + hdmi_read(sd, 0x08); in adv7842_query_dv_timings()
1563 bt->height = (hdmi_read(sd, 0x09) & 0x0f) * 256 + hdmi_read(sd, 0x0a); in adv7842_query_dv_timings()
1564 freq = ((hdmi_read(sd, 0x51) << 1) + (hdmi_read(sd, 0x52) >> 7)) * 1000000; in adv7842_query_dv_timings()
1565 freq += ((hdmi_read(sd, 0x52) & 0x7f) * 7813); in adv7842_query_dv_timings()
1568 freq = freq * 8 / (((hdmi_read(sd, 0x0b) & 0xc0) >> 6) * 2 + 8); in adv7842_query_dv_timings()
1571 bt->hfrontporch = (hdmi_read(sd, 0x20) & 0x03) * 256 + in adv7842_query_dv_timings()
1572 hdmi_read(sd, 0x21); in adv7842_query_dv_timings()
1573 bt->hsync = (hdmi_read(sd, 0x22) & 0x03) * 256 + in adv7842_query_dv_timings()
1574 hdmi_read(sd, 0x23); in adv7842_query_dv_timings()
1575 bt->hbackporch = (hdmi_read(sd, 0x24) & 0x03) * 256 + in adv7842_query_dv_timings()
1576 hdmi_read(sd, 0x25); in adv7842_query_dv_timings()
1577 bt->vfrontporch = ((hdmi_read(sd, 0x2a) & 0x1f) * 256 + in adv7842_query_dv_timings()
1578 hdmi_read(sd, 0x2b)) / 2; in adv7842_query_dv_timings()
1579 bt->vsync = ((hdmi_read(sd, 0x2e) & 0x1f) * 256 + in adv7842_query_dv_timings()
1580 hdmi_read(sd, 0x2f)) / 2; in adv7842_query_dv_timings()
1581 bt->vbackporch = ((hdmi_read(sd, 0x32) & 0x1f) * 256 + in adv7842_query_dv_timings()
1582 hdmi_read(sd, 0x33)) / 2; in adv7842_query_dv_timings()
1583 bt->polarities = ((hdmi_read(sd, 0x05) & 0x10) ? V4L2_DV_VSYNC_POS_POL : 0) | in adv7842_query_dv_timings()
1584 ((hdmi_read(sd, 0x05) & 0x20) ? V4L2_DV_HSYNC_POS_POL : 0); in adv7842_query_dv_timings()
1586 bt->height += (hdmi_read(sd, 0x0b) & 0x0f) * 256 + in adv7842_query_dv_timings()
1587 hdmi_read(sd, 0x0c); in adv7842_query_dv_timings()
1588 bt->il_vfrontporch = ((hdmi_read(sd, 0x2c) & 0x1f) * 256 + in adv7842_query_dv_timings()
1589 hdmi_read(sd, 0x2d)) / 2; in adv7842_query_dv_timings()
1590 bt->il_vsync = ((hdmi_read(sd, 0x30) & 0x1f) * 256 + in adv7842_query_dv_timings()
1591 hdmi_read(sd, 0x31)) / 2; in adv7842_query_dv_timings()
1592 bt->il_vbackporch = ((hdmi_read(sd, 0x34) & 0x1f) * 256 + in adv7842_query_dv_timings()
1593 hdmi_read(sd, 0x35)) / 2; in adv7842_query_dv_timings()
2614 if (!(hdmi_read(sd, 0x05) & 0x80)) { in adv7842_log_infoframes()
2696 bool audio_pll_locked = hdmi_read(sd, 0x04) & 0x01; in adv7842_cp_log_status()
2697 bool audio_sample_packet_detect = hdmi_read(sd, 0x18) & 0x01; in adv7842_cp_log_status()
2822 (hdmi_read(sd, 0x05) & 0x40) ? "true" : "false"); in adv7842_cp_log_status()
2824 (hdmi_read(sd, 0x04) & 0x20) ? "yes" : "no", in adv7842_cp_log_status()
2825 (hdmi_read(sd, 0x04) & 0x10) ? "ERROR" : ""); in adv7842_cp_log_status()
2835 (hdmi_read(sd, 0x07) & 0x40) ? "multi-channel" : "stereo"); in adv7842_cp_log_status()
2837 v4l2_info(sd, "Audio CTS: %u\n", (hdmi_read(sd, 0x5b) << 12) + in adv7842_cp_log_status()
2838 (hdmi_read(sd, 0x5c) << 8) + in adv7842_cp_log_status()
2839 (hdmi_read(sd, 0x5d) & 0xf0)); in adv7842_cp_log_status()
2840 v4l2_info(sd, "Audio N: %u\n", ((hdmi_read(sd, 0x5d) & 0x0f) << 16) + in adv7842_cp_log_status()
2841 (hdmi_read(sd, 0x5e) << 8) + in adv7842_cp_log_status()
2842 hdmi_read(sd, 0x5f)); in adv7842_cp_log_status()
2844 (hdmi_read(sd, 0x04) & 0x40) ? "on" : "off"); in adv7842_cp_log_status()
2846 deep_color_mode_txt[hdmi_read(sd, 0x0b) >> 6]); in adv7842_cp_log_status()