Lines Matching refs:status
46 enum mod_hdcp_status status; in check_hdcp2_capable() local
49 status = (hdcp->auth.msg.hdcp2.rxcaps_dp[0] == HDCP_2_2_RX_CAPS_VERSION_VAL) && in check_hdcp2_capable()
54 status = (hdcp->auth.msg.hdcp2.hdcp2version_hdmi & HDCP_2_2_HDMI_SUPPORT_MASK) ? in check_hdcp2_capable()
57 return status; in check_hdcp2_capable()
86 enum mod_hdcp_status status; in check_ake_cert_available() local
90 status = MOD_HDCP_STATUS_SUCCESS; in check_ake_cert_available()
92 status = mod_hdcp_read_rxstatus(hdcp); in check_ake_cert_available()
93 if (status == MOD_HDCP_STATUS_SUCCESS) { in check_ake_cert_available()
96 status = (size == sizeof(hdcp->auth.msg.hdcp2.ake_cert)) ? in check_ake_cert_available()
101 return status; in check_ake_cert_available()
106 enum mod_hdcp_status status; in check_h_prime_available() local
109 status = mod_hdcp_read_rxstatus(hdcp); in check_h_prime_available()
110 if (status != MOD_HDCP_STATUS_SUCCESS) in check_h_prime_available()
114 status = HDCP_2_2_DP_RXSTATUS_H_PRIME(hdcp->auth.msg.hdcp2.rxstatus_dp) ? in check_h_prime_available()
120 status = (size == sizeof(hdcp->auth.msg.hdcp2.ake_h_prime)) ? in check_h_prime_available()
125 return status; in check_h_prime_available()
130 enum mod_hdcp_status status; in check_pairing_info_available() local
133 status = mod_hdcp_read_rxstatus(hdcp); in check_pairing_info_available()
134 if (status != MOD_HDCP_STATUS_SUCCESS) in check_pairing_info_available()
138 status = HDCP_2_2_DP_RXSTATUS_PAIRING(hdcp->auth.msg.hdcp2.rxstatus_dp) ? in check_pairing_info_available()
144 status = (size == sizeof(hdcp->auth.msg.hdcp2.ake_pairing_info)) ? in check_pairing_info_available()
149 return status; in check_pairing_info_available()
154 enum mod_hdcp_status status; in poll_l_prime_available() local
161 status = MOD_HDCP_STATUS_INVALID_OPERATION; in poll_l_prime_available()
166 status = mod_hdcp_read_rxstatus(hdcp); in poll_l_prime_available()
167 if (status != MOD_HDCP_STATUS_SUCCESS) in poll_l_prime_available()
172 status = (size == sizeof(hdcp->auth.msg.hdcp2.lc_l_prime)) ? in poll_l_prime_available()
175 if (status == MOD_HDCP_STATUS_SUCCESS) in poll_l_prime_available()
178 return status; in poll_l_prime_available()
183 enum mod_hdcp_status status; in check_stream_ready_available() local
187 status = MOD_HDCP_STATUS_INVALID_OPERATION; in check_stream_ready_available()
189 status = mod_hdcp_read_rxstatus(hdcp); in check_stream_ready_available()
190 if (status != MOD_HDCP_STATUS_SUCCESS) in check_stream_ready_available()
194 status = (size == sizeof(hdcp->auth.msg.hdcp2.repeater_auth_stream_ready)) ? in check_stream_ready_available()
199 return status; in check_stream_ready_available()
227 enum mod_hdcp_status *status) in process_rxstatus() argument
230 &input->rxstatus_read, status, in process_rxstatus()
234 &input->reauth_request_check, status, in process_rxstatus()
239 &input->link_integrity_check_dp, status, in process_rxstatus()
257 return (*status == MOD_HDCP_STATUS_SUCCESS); in process_rxstatus()
264 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in known_hdcp2_capable_rx() local
272 &input->hdcp2version_read, &status, in known_hdcp2_capable_rx()
276 &input->hdcp2_capable_check, &status, in known_hdcp2_capable_rx()
280 return status; in known_hdcp2_capable_rx()
287 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_ake_init() local
295 &input->create_session, &status, in send_ake_init()
299 &input->ake_init_prepare, &status, in send_ake_init()
303 &input->ake_init_write, &status, in send_ake_init()
307 return status; in send_ake_init()
314 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in validate_ake_cert() local
325 &input->ake_cert_available, &status, in validate_ake_cert()
329 &input->ake_cert_read, &status, in validate_ake_cert()
333 &input->ake_cert_validation, &status, in validate_ake_cert()
337 return status; in validate_ake_cert()
344 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_no_stored_km() local
352 &input->no_stored_km_write, &status, in send_no_stored_km()
356 return status; in send_no_stored_km()
363 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in read_h_prime() local
373 &input->h_prime_available, &status, in read_h_prime()
378 &input->h_prime_read, &status, in read_h_prime()
382 return status; in read_h_prime()
390 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in read_pairing_info_and_validate_h_prime() local
400 &input->pairing_available, &status, in read_pairing_info_and_validate_h_prime()
404 &input->pairing_info_read, &status, in read_pairing_info_and_validate_h_prime()
408 &input->h_prime_validation, &status, in read_pairing_info_and_validate_h_prime()
412 return status; in read_pairing_info_and_validate_h_prime()
419 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_stored_km() local
427 &input->stored_km_write, &status, in send_stored_km()
431 return status; in send_stored_km()
438 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in validate_h_prime() local
448 &input->h_prime_available, &status, in validate_h_prime()
452 &input->h_prime_read, &status, in validate_h_prime()
456 &input->h_prime_validation, &status, in validate_h_prime()
460 return status; in validate_h_prime()
467 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in locality_check() local
475 &input->lc_init_prepare, &status, in locality_check()
479 &input->lc_init_write, &status, in locality_check()
486 &input->l_prime_available_poll, &status, in locality_check()
490 &input->l_prime_read, &status, in locality_check()
494 &input->l_prime_validation, &status, in locality_check()
498 return status; in locality_check()
505 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in exchange_ks_and_test_for_repeater() local
513 &input->eks_prepare, &status, in exchange_ks_and_test_for_repeater()
517 &input->eks_write, &status, in exchange_ks_and_test_for_repeater()
521 return status; in exchange_ks_and_test_for_repeater()
528 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in enable_encryption() local
536 process_rxstatus(hdcp, event_ctx, input, &status); in enable_encryption()
541 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in enable_encryption()
547 &input->enable_encryption, &status, in enable_encryption()
553 &input->stream_encryption_dp, &status, in enable_encryption()
558 return status; in enable_encryption()
565 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in authenticated() local
573 process_rxstatus(hdcp, event_ctx, input, &status); in authenticated()
575 return status; in authenticated()
582 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in wait_for_rx_id_list() local
591 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in wait_for_rx_id_list()
594 status = MOD_HDCP_STATUS_HDCP2_RX_ID_LIST_NOT_READY; in wait_for_rx_id_list()
598 return status; in wait_for_rx_id_list()
605 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in verify_rx_id_list_and_send_ack() local
613 process_rxstatus(hdcp, event_ctx, input, &status); in verify_rx_id_list_and_send_ack()
619 &status, hdcp, "receiver_id_list_read")) in verify_rx_id_list_and_send_ack()
623 &status, hdcp, "device_count_check")) in verify_rx_id_list_and_send_ack()
627 &status, hdcp, "rx_id_list_validation")) in verify_rx_id_list_and_send_ack()
631 &status, hdcp, "repeater_auth_ack_write")) in verify_rx_id_list_and_send_ack()
634 return status; in verify_rx_id_list_and_send_ack()
641 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_stream_management() local
649 process_rxstatus(hdcp, event_ctx, input, &status); in send_stream_management()
654 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in send_stream_management()
661 &status, hdcp, "prepare_stream_manage")) in send_stream_management()
666 &status, hdcp, "stream_manage_write")) in send_stream_management()
669 return status; in send_stream_management()
676 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in validate_stream_ready() local
685 process_rxstatus(hdcp, event_ctx, input, &status); in validate_stream_ready()
690 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in validate_stream_ready()
699 &status, hdcp, "stream_ready_available")) in validate_stream_ready()
703 &status, hdcp, "stream_ready_read")) in validate_stream_ready()
707 &status, hdcp, "stream_ready_validation")) in validate_stream_ready()
711 return status; in validate_stream_ready()
718 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in determine_rx_hdcp_capable_dp() local
727 &status, hdcp, "rx_caps_read_dp")) in determine_rx_hdcp_capable_dp()
730 &input->hdcp2_capable_check, &status, in determine_rx_hdcp_capable_dp()
734 return status; in determine_rx_hdcp_capable_dp()
741 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_content_stream_type_dp() local
749 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in send_content_stream_type_dp()
752 &input->content_stream_type_write, &status, in send_content_stream_type_dp()
756 return status; in send_content_stream_type_dp()
763 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in mod_hdcp_hdcp2_execution() local
767 status = known_hdcp2_capable_rx(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
770 status = send_ake_init(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
773 status = validate_ake_cert(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
776 status = send_no_stored_km(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
779 status = read_h_prime(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
782 status = read_pairing_info_and_validate_h_prime(hdcp, in mod_hdcp_hdcp2_execution()
786 status = send_stored_km(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
789 status = validate_h_prime(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
792 status = locality_check(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
795 status = exchange_ks_and_test_for_repeater(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
798 status = enable_encryption(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
801 status = authenticated(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
804 status = wait_for_rx_id_list(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
807 status = verify_rx_id_list_and_send_ack(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
810 status = send_stream_management(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
813 status = validate_stream_ready(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
816 status = MOD_HDCP_STATUS_INVALID_STATE; in mod_hdcp_hdcp2_execution()
820 return status; in mod_hdcp_hdcp2_execution()
827 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in mod_hdcp_hdcp2_dp_execution() local
831 status = determine_rx_hdcp_capable_dp(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
834 status = send_ake_init(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
837 status = validate_ake_cert(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
840 status = send_no_stored_km(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
843 status = read_h_prime(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
846 status = read_pairing_info_and_validate_h_prime(hdcp, in mod_hdcp_hdcp2_dp_execution()
850 status = send_stored_km(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
853 status = validate_h_prime(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
856 status = locality_check(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
859 status = exchange_ks_and_test_for_repeater(hdcp, in mod_hdcp_hdcp2_dp_execution()
863 status = send_content_stream_type_dp(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
866 status = enable_encryption(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
869 status = authenticated(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
872 status = wait_for_rx_id_list(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
875 status = verify_rx_id_list_and_send_ack(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
878 status = send_stream_management(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
881 status = validate_stream_ready(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
884 status = MOD_HDCP_STATUS_INVALID_STATE; in mod_hdcp_hdcp2_dp_execution()
888 return status; in mod_hdcp_hdcp2_dp_execution()