Lines Matching defs:infopacket

568 		struct dc_info_packet *infopacket,
572 infopacket->sb[1] = 0x1A;
575 infopacket->sb[2] = 0x00;
578 infopacket->sb[3] = 0x00;
588 infopacket->sb[6] |= 0x01;
593 infopacket->sb[6] |= 0x02;
599 infopacket->sb[6] |= 0x04;
603 infopacket->sb[6] |= 0x04;
610 infopacket->sb[7] = (unsigned char)((vrr->min_refresh_in_uhz + 500000) / 1000000);
612 infopacket->sb[7] = (unsigned char)((vrr->max_refresh_in_uhz + 500000) / 1000000);
618 infopacket->sb[8] = (unsigned char)((vrr->max_refresh_in_uhz + 500000) / 1000000);
622 struct dc_info_packet *infopacket,
631 infopacket->sb[1] = 0x1A;
634 infopacket->sb[2] = 0x00;
637 infopacket->sb[3] = 0x00;
647 infopacket->sb[6] |= 0x01;
652 infopacket->sb[6] |= 0x02;
658 infopacket->sb[6] |= 0x04;
662 infopacket->sb[6] |= 0x04;
675 infopacket->sb[7] = min_programmed & 0xFF;
678 infopacket->sb[8] = max_refresh & 0xFF;
681 infopacket->sb[11] = (min_programmed >> 8) & 0x03;
684 infopacket->sb[12] = (max_refresh >> 8) & 0x03;
687 infopacket->sb[16] = (vrr->state == VRR_STATE_ACTIVE_FIXED) ? 1 : 0;
691 struct dc_info_packet *infopacket)
694 infopacket->valid = true;
697 infopacket->sb[9] |= 0x20; // PB9 = [Bit 5 = PQ EOTF Active]
699 infopacket->sb[6] |= 0x08; // PB6 = [Bit 3 = Native Color Active]
701 infopacket->sb[9] |= 0x04; // PB9 = [Bit 2 = Gamma 2.2 EOTF Active]
707 struct dc_info_packet *infopacket,
717 infopacket->hb0 = DC_HDMI_INFOFRAME_TYPE_SPD;
720 infopacket->hb1 = 0x01;
723 infopacket->hb2 = 0x08;
734 infopacket->hb0 = 0x00;
739 infopacket->hb1 = DC_HDMI_INFOFRAME_TYPE_SPD;
744 infopacket->hb2 = 0x1B;
749 infopacket->hb3 = 0x04;
756 struct dc_info_packet *infopacket,
766 infopacket->hb0 = DC_HDMI_INFOFRAME_TYPE_SPD;
769 infopacket->hb1 = 0x02;
772 infopacket->hb2 = 0x09;
782 infopacket->hb0 = 0x00;
787 infopacket->hb1 = DC_HDMI_INFOFRAME_TYPE_SPD;
792 infopacket->hb2 = 0x1B;
797 infopacket->hb3 = 0x08;
804 struct dc_info_packet *infopacket,
817 infopacket->hb0 = DC_HDMI_INFOFRAME_TYPE_SPD;
820 infopacket->hb1 = version;
823 infopacket->hb2 = 0x10;
833 infopacket->hb0 = 0x00;
838 infopacket->hb1 = DC_HDMI_INFOFRAME_TYPE_SPD;
843 infopacket->hb2 = 0x1B;
849 infopacket->hb3 = (version & 0x3F) << 2;
856 struct dc_info_packet *infopacket)
862 checksum += infopacket->hb0;
863 checksum += infopacket->hb1;
864 checksum += infopacket->hb2;
865 checksum += infopacket->hb3;
868 checksum += infopacket->sb[idx];
871 infopacket->sb[0] = (unsigned char)(0x100 - checksum);
873 infopacket->valid = true;
878 struct dc_info_packet *infopacket,
884 build_vrr_infopacket_header_v1(signal, infopacket, &payload_size);
885 build_vrr_infopacket_data_v1(vrr, infopacket, freesync_on_desktop);
886 build_vrr_infopacket_checksum(&payload_size, infopacket);
888 infopacket->valid = true;
894 struct dc_info_packet *infopacket,
899 build_vrr_infopacket_header_v2(signal, infopacket, &payload_size);
900 build_vrr_infopacket_data_v1(vrr, infopacket, freesync_on_desktop);
902 build_vrr_infopacket_fs2_data(app_tf, infopacket);
904 build_vrr_infopacket_checksum(&payload_size, infopacket);
906 infopacket->valid = true;
912 struct dc_info_packet *infopacket,
917 build_vrr_infopacket_header_v3(signal, infopacket, &payload_size);
918 build_vrr_infopacket_data_v3(vrr, infopacket, freesync_on_desktop);
920 build_vrr_infopacket_fs2_data(app_tf, infopacket);
922 build_vrr_infopacket_checksum(&payload_size, infopacket);
924 infopacket->valid = true;
928 struct dc_info_packet *infopacket)
936 for (idx = infopacket->hb2; idx > 1; idx--) // Data Byte Count: 0x1B
937 infopacket->sb[idx] = infopacket->sb[idx-1];
939 infopacket->sb[1] = size; // Length
940 infopacket->sb[0] = (infopacket->hb3 >> 2) & 0x3F;//Version
941 infopacket->hb3 = (0x13 << 2); // Header,SDP 1.3
942 infopacket->hb2 = 0x1D;
950 struct dc_info_packet *infopacket,
963 build_vrr_infopacket_v3(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop);
966 build_vrr_infopacket_v2(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop);
971 build_vrr_infopacket_v1(stream->signal, vrr, infopacket, stream->freesync_on_desktop);
978 build_vrr_infopacket_sdp_v1_3(packet_type, infopacket);