Lines Matching refs:infopacket
565 struct dc_info_packet *infopacket, in build_vrr_infopacket_data_v1() argument
569 infopacket->sb[1] = 0x1A; in build_vrr_infopacket_data_v1()
572 infopacket->sb[2] = 0x00; in build_vrr_infopacket_data_v1()
575 infopacket->sb[3] = 0x00; in build_vrr_infopacket_data_v1()
585 infopacket->sb[6] |= 0x01; in build_vrr_infopacket_data_v1()
590 infopacket->sb[6] |= 0x02; in build_vrr_infopacket_data_v1()
596 infopacket->sb[6] |= 0x04; in build_vrr_infopacket_data_v1()
600 infopacket->sb[6] |= 0x04; in build_vrr_infopacket_data_v1()
607 infopacket->sb[7] = (unsigned char)((vrr->min_refresh_in_uhz + 500000) / 1000000); in build_vrr_infopacket_data_v1()
609 infopacket->sb[7] = (unsigned char)((vrr->max_refresh_in_uhz + 500000) / 1000000); in build_vrr_infopacket_data_v1()
615 infopacket->sb[8] = (unsigned char)((vrr->max_refresh_in_uhz + 500000) / 1000000); in build_vrr_infopacket_data_v1()
619 struct dc_info_packet *infopacket) in build_vrr_infopacket_data_v3() argument
628 infopacket->sb[1] = 0x1A; in build_vrr_infopacket_data_v3()
631 infopacket->sb[2] = 0x00; in build_vrr_infopacket_data_v3()
634 infopacket->sb[3] = 0x00; in build_vrr_infopacket_data_v3()
644 infopacket->sb[6] |= 0x01; in build_vrr_infopacket_data_v3()
649 infopacket->sb[6] |= 0x02; in build_vrr_infopacket_data_v3()
654 infopacket->sb[6] |= 0x04; in build_vrr_infopacket_data_v3()
670 infopacket->sb[7] = min_programmed & 0xFF; in build_vrr_infopacket_data_v3()
673 infopacket->sb[8] = max_programmed & 0xFF; in build_vrr_infopacket_data_v3()
676 infopacket->sb[11] = (min_programmed >> 8) & 0x03; in build_vrr_infopacket_data_v3()
679 infopacket->sb[12] = (max_programmed >> 8) & 0x03; in build_vrr_infopacket_data_v3()
682 infopacket->sb[16] = (vrr->state == VRR_STATE_ACTIVE_FIXED) ? 1 : 0; in build_vrr_infopacket_data_v3()
686 struct dc_info_packet *infopacket) in build_vrr_infopacket_fs2_data() argument
689 infopacket->valid = true; in build_vrr_infopacket_fs2_data()
691 infopacket->sb[6] |= 0x08; // PB6 = [Bit 3 = Native Color Active] in build_vrr_infopacket_fs2_data()
694 infopacket->sb[9] |= 0x04; // PB6 = [Bit 2 = Gamma 2.2 EOTF Active] in build_vrr_infopacket_fs2_data()
700 struct dc_info_packet *infopacket, in build_vrr_infopacket_header_v1() argument
710 infopacket->hb0 = DC_HDMI_INFOFRAME_TYPE_SPD; in build_vrr_infopacket_header_v1()
713 infopacket->hb1 = 0x01; in build_vrr_infopacket_header_v1()
716 infopacket->hb2 = 0x08; in build_vrr_infopacket_header_v1()
727 infopacket->hb0 = 0x00; in build_vrr_infopacket_header_v1()
732 infopacket->hb1 = DC_HDMI_INFOFRAME_TYPE_SPD; in build_vrr_infopacket_header_v1()
737 infopacket->hb2 = 0x1B; in build_vrr_infopacket_header_v1()
742 infopacket->hb3 = 0x04; in build_vrr_infopacket_header_v1()
749 struct dc_info_packet *infopacket, in build_vrr_infopacket_header_v2() argument
759 infopacket->hb0 = DC_HDMI_INFOFRAME_TYPE_SPD; in build_vrr_infopacket_header_v2()
762 infopacket->hb1 = 0x02; in build_vrr_infopacket_header_v2()
765 infopacket->hb2 = 0x09; in build_vrr_infopacket_header_v2()
775 infopacket->hb0 = 0x00; in build_vrr_infopacket_header_v2()
780 infopacket->hb1 = DC_HDMI_INFOFRAME_TYPE_SPD; in build_vrr_infopacket_header_v2()
785 infopacket->hb2 = 0x1B; in build_vrr_infopacket_header_v2()
790 infopacket->hb3 = 0x08; in build_vrr_infopacket_header_v2()
797 struct dc_info_packet *infopacket, in build_vrr_infopacket_header_v3() argument
810 infopacket->hb0 = DC_HDMI_INFOFRAME_TYPE_SPD; in build_vrr_infopacket_header_v3()
813 infopacket->hb1 = version; in build_vrr_infopacket_header_v3()
816 infopacket->hb2 = 0x10; in build_vrr_infopacket_header_v3()
826 infopacket->hb0 = 0x00; in build_vrr_infopacket_header_v3()
831 infopacket->hb1 = DC_HDMI_INFOFRAME_TYPE_SPD; in build_vrr_infopacket_header_v3()
836 infopacket->hb2 = 0x1B; in build_vrr_infopacket_header_v3()
842 infopacket->hb3 = (version & 0x3F) << 2; in build_vrr_infopacket_header_v3()
849 struct dc_info_packet *infopacket) in build_vrr_infopacket_checksum() argument
855 checksum += infopacket->hb0; in build_vrr_infopacket_checksum()
856 checksum += infopacket->hb1; in build_vrr_infopacket_checksum()
857 checksum += infopacket->hb2; in build_vrr_infopacket_checksum()
858 checksum += infopacket->hb3; in build_vrr_infopacket_checksum()
861 checksum += infopacket->sb[idx]; in build_vrr_infopacket_checksum()
864 infopacket->sb[0] = (unsigned char)(0x100 - checksum); in build_vrr_infopacket_checksum()
866 infopacket->valid = true; in build_vrr_infopacket_checksum()
871 struct dc_info_packet *infopacket, in build_vrr_infopacket_v1() argument
877 build_vrr_infopacket_header_v1(signal, infopacket, &payload_size); in build_vrr_infopacket_v1()
878 build_vrr_infopacket_data_v1(vrr, infopacket, freesync_on_desktop); in build_vrr_infopacket_v1()
879 build_vrr_infopacket_checksum(&payload_size, infopacket); in build_vrr_infopacket_v1()
881 infopacket->valid = true; in build_vrr_infopacket_v1()
887 struct dc_info_packet *infopacket, in build_vrr_infopacket_v2() argument
892 build_vrr_infopacket_header_v2(signal, infopacket, &payload_size); in build_vrr_infopacket_v2()
893 build_vrr_infopacket_data_v1(vrr, infopacket, freesync_on_desktop); in build_vrr_infopacket_v2()
895 build_vrr_infopacket_fs2_data(app_tf, infopacket); in build_vrr_infopacket_v2()
897 build_vrr_infopacket_checksum(&payload_size, infopacket); in build_vrr_infopacket_v2()
899 infopacket->valid = true; in build_vrr_infopacket_v2()
905 struct dc_info_packet *infopacket) in build_vrr_infopacket_fast_transport_data() argument
910 infopacket->sb[1] &= ~activeBit; //clear bit in build_vrr_infopacket_fast_transport_data()
911 infopacket->sb[1] |= activeBit; //set bit in build_vrr_infopacket_fast_transport_data()
914 infopacket->sb[13] = ftOutputRate & 0xFF; in build_vrr_infopacket_fast_transport_data()
917 infopacket->sb[14] = (ftOutputRate >> 8) & 0xFF; in build_vrr_infopacket_fast_transport_data()
920 infopacket->sb[15] = (ftOutputRate >> 16) & 0xFF; in build_vrr_infopacket_fast_transport_data()
931 struct dc_info_packet *infopacket) in build_vrr_infopacket_v3() argument
935 build_vrr_infopacket_header_v3(signal, infopacket, &payload_size); in build_vrr_infopacket_v3()
936 build_vrr_infopacket_data_v3(vrr, infopacket); in build_vrr_infopacket_v3()
938 build_vrr_infopacket_fs2_data(app_tf, infopacket); in build_vrr_infopacket_v3()
944 infopacket); in build_vrr_infopacket_v3()
947 build_vrr_infopacket_checksum(&payload_size, infopacket); in build_vrr_infopacket_v3()
949 infopacket->valid = true; in build_vrr_infopacket_v3()
953 struct dc_info_packet *infopacket) in build_vrr_infopacket_sdp_v1_3() argument
961 for (idx = infopacket->hb2; idx > 1; idx--) // Data Byte Count: 0x1B in build_vrr_infopacket_sdp_v1_3()
962 infopacket->sb[idx] = infopacket->sb[idx-1]; in build_vrr_infopacket_sdp_v1_3()
964 infopacket->sb[1] = size; // Length in build_vrr_infopacket_sdp_v1_3()
965 infopacket->sb[0] = (infopacket->hb3 >> 2) & 0x3F;//Version in build_vrr_infopacket_sdp_v1_3()
966 infopacket->hb3 = (0x13 << 2); // Header,SDP 1.3 in build_vrr_infopacket_sdp_v1_3()
967 infopacket->hb2 = 0x1D; in build_vrr_infopacket_sdp_v1_3()
975 struct dc_info_packet *infopacket, in mod_freesync_build_vrr_infopacket() argument
996 app_tf, infopacket); in mod_freesync_build_vrr_infopacket()
998 build_vrr_infopacket_v3(stream->signal, vrr, app_tf, infopacket); in mod_freesync_build_vrr_infopacket()
1002 build_vrr_infopacket_v2(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop); in mod_freesync_build_vrr_infopacket()
1007 build_vrr_infopacket_v1(stream->signal, vrr, infopacket, stream->freesync_on_desktop); in mod_freesync_build_vrr_infopacket()
1014 build_vrr_infopacket_sdp_v1_3(packet_type, infopacket); in mod_freesync_build_vrr_infopacket()