Lines Matching refs:edid

1762 		struct v4l2_subdev_edid *edid)  in tc358743_g_edid()  argument
1766 memset(edid->reserved, 0, sizeof(edid->reserved)); in tc358743_g_edid()
1768 if (edid->pad != 0) in tc358743_g_edid()
1771 if (edid->start_block == 0 && edid->blocks == 0) { in tc358743_g_edid()
1772 edid->blocks = state->edid_blocks_written; in tc358743_g_edid()
1779 if (edid->start_block >= state->edid_blocks_written || in tc358743_g_edid()
1780 edid->blocks == 0) in tc358743_g_edid()
1783 if (edid->start_block + edid->blocks > state->edid_blocks_written) in tc358743_g_edid()
1784 edid->blocks = state->edid_blocks_written - edid->start_block; in tc358743_g_edid()
1786 i2c_rd(sd, EDID_RAM + (edid->start_block * EDID_BLOCK_SIZE), edid->edid, in tc358743_g_edid()
1787 edid->blocks * EDID_BLOCK_SIZE); in tc358743_g_edid()
1793 struct v4l2_subdev_edid *edid) in tc358743_s_edid() argument
1796 u16 edid_len = edid->blocks * EDID_BLOCK_SIZE; in tc358743_s_edid()
1802 __func__, edid->pad, edid->start_block, edid->blocks); in tc358743_s_edid()
1804 memset(edid->reserved, 0, sizeof(edid->reserved)); in tc358743_s_edid()
1806 if (edid->pad != 0) in tc358743_s_edid()
1809 if (edid->start_block != 0) in tc358743_s_edid()
1812 if (edid->blocks > EDID_NUM_BLOCKS_MAX) { in tc358743_s_edid()
1813 edid->blocks = EDID_NUM_BLOCKS_MAX; in tc358743_s_edid()
1816 pa = cec_get_edid_phys_addr(edid->edid, edid->blocks * 128, NULL); in tc358743_s_edid()
1828 if (edid->blocks == 0) { in tc358743_s_edid()
1834 i2c_wr(sd, EDID_RAM + i, edid->edid + i, EDID_BLOCK_SIZE); in tc358743_s_edid()
1836 state->edid_blocks_written = edid->blocks; in tc358743_s_edid()