Lines Matching refs:hdmi_read
475 static inline int hdmi_read(struct v4l2_subdev *sd, u8 reg) in hdmi_read() function
491 return hdmi_write(sd, reg, (hdmi_read(sd, reg) & mask) | val); in hdmi_write_and_or()
803 reg->val = hdmi_read(sd, reg->reg & 0xff); in adv7842_g_register()
1087 bool hdmi_signal = hdmi_read(sd, 0x05) & 0x80; in set_rgb_quantization_range()
1261 return hdmi_read(sd, 0x05) & 0x80; in is_hdmi()
1449 bt->width = (hdmi_read(sd, 0x07) & 0x0f) * 256 + hdmi_read(sd, 0x08); in adv7842_query_dv_timings()
1450 bt->height = (hdmi_read(sd, 0x09) & 0x0f) * 256 + hdmi_read(sd, 0x0a); in adv7842_query_dv_timings()
1451 freq = ((hdmi_read(sd, 0x51) << 1) + (hdmi_read(sd, 0x52) >> 7)) * 1000000; in adv7842_query_dv_timings()
1452 freq += ((hdmi_read(sd, 0x52) & 0x7f) * 7813); in adv7842_query_dv_timings()
1455 freq = freq * 8 / (((hdmi_read(sd, 0x0b) & 0xc0) >> 6) * 2 + 8); in adv7842_query_dv_timings()
1458 bt->hfrontporch = (hdmi_read(sd, 0x20) & 0x03) * 256 + in adv7842_query_dv_timings()
1459 hdmi_read(sd, 0x21); in adv7842_query_dv_timings()
1460 bt->hsync = (hdmi_read(sd, 0x22) & 0x03) * 256 + in adv7842_query_dv_timings()
1461 hdmi_read(sd, 0x23); in adv7842_query_dv_timings()
1462 bt->hbackporch = (hdmi_read(sd, 0x24) & 0x03) * 256 + in adv7842_query_dv_timings()
1463 hdmi_read(sd, 0x25); in adv7842_query_dv_timings()
1464 bt->vfrontporch = ((hdmi_read(sd, 0x2a) & 0x1f) * 256 + in adv7842_query_dv_timings()
1465 hdmi_read(sd, 0x2b)) / 2; in adv7842_query_dv_timings()
1466 bt->vsync = ((hdmi_read(sd, 0x2e) & 0x1f) * 256 + in adv7842_query_dv_timings()
1467 hdmi_read(sd, 0x2f)) / 2; in adv7842_query_dv_timings()
1468 bt->vbackporch = ((hdmi_read(sd, 0x32) & 0x1f) * 256 + in adv7842_query_dv_timings()
1469 hdmi_read(sd, 0x33)) / 2; in adv7842_query_dv_timings()
1470 bt->polarities = ((hdmi_read(sd, 0x05) & 0x10) ? V4L2_DV_VSYNC_POS_POL : 0) | in adv7842_query_dv_timings()
1471 ((hdmi_read(sd, 0x05) & 0x20) ? V4L2_DV_HSYNC_POS_POL : 0); in adv7842_query_dv_timings()
1473 bt->height += (hdmi_read(sd, 0x0b) & 0x0f) * 256 + in adv7842_query_dv_timings()
1474 hdmi_read(sd, 0x0c); in adv7842_query_dv_timings()
1475 bt->il_vfrontporch = ((hdmi_read(sd, 0x2c) & 0x1f) * 256 + in adv7842_query_dv_timings()
1476 hdmi_read(sd, 0x2d)) / 2; in adv7842_query_dv_timings()
1477 bt->il_vsync = ((hdmi_read(sd, 0x30) & 0x1f) * 256 + in adv7842_query_dv_timings()
1478 hdmi_read(sd, 0x31)) / 2; in adv7842_query_dv_timings()
1479 bt->il_vbackporch = ((hdmi_read(sd, 0x34) & 0x1f) * 256 + in adv7842_query_dv_timings()
1480 hdmi_read(sd, 0x35)) / 2; in adv7842_query_dv_timings()
2155 if (!(hdmi_read(sd, 0x05) & 0x80)) { in adv7842_log_infoframes()
2234 bool audio_pll_locked = hdmi_read(sd, 0x04) & 0x01; in adv7842_cp_log_status()
2235 bool audio_sample_packet_detect = hdmi_read(sd, 0x18) & 0x01; in adv7842_cp_log_status()
2349 (hdmi_read(sd, 0x05) & 0x40) ? "true" : "false"); in adv7842_cp_log_status()
2351 (hdmi_read(sd, 0x04) & 0x20) ? "yes" : "no", in adv7842_cp_log_status()
2352 (hdmi_read(sd, 0x04) & 0x10) ? "ERROR" : ""); in adv7842_cp_log_status()
2362 (hdmi_read(sd, 0x07) & 0x40) ? "multi-channel" : "stereo"); in adv7842_cp_log_status()
2364 v4l2_info(sd, "Audio CTS: %u\n", (hdmi_read(sd, 0x5b) << 12) + in adv7842_cp_log_status()
2365 (hdmi_read(sd, 0x5c) << 8) + in adv7842_cp_log_status()
2366 (hdmi_read(sd, 0x5d) & 0xf0)); in adv7842_cp_log_status()
2367 v4l2_info(sd, "Audio N: %u\n", ((hdmi_read(sd, 0x5d) & 0x0f) << 16) + in adv7842_cp_log_status()
2368 (hdmi_read(sd, 0x5e) << 8) + in adv7842_cp_log_status()
2369 hdmi_read(sd, 0x5f)); in adv7842_cp_log_status()
2371 (hdmi_read(sd, 0x04) & 0x40) ? "on" : "off"); in adv7842_cp_log_status()
2373 deep_color_mode_txt[hdmi_read(sd, 0x0b) >> 6]); in adv7842_cp_log_status()