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 = MOD_HDCP_STATUS_FAILURE; 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()
226 enum mod_hdcp_status *status) in process_rxstatus() argument
229 &input->rxstatus_read, status, in process_rxstatus()
233 &input->reauth_request_check, status, in process_rxstatus()
238 &input->link_integrity_check_dp, status, in process_rxstatus()
256 return (*status == MOD_HDCP_STATUS_SUCCESS); in process_rxstatus()
263 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in known_hdcp2_capable_rx() local
271 &input->hdcp2version_read, &status, in known_hdcp2_capable_rx()
275 &input->hdcp2_capable_check, &status, in known_hdcp2_capable_rx()
279 return status; in known_hdcp2_capable_rx()
286 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_ake_init() local
294 &input->create_session, &status, in send_ake_init()
298 &input->ake_init_prepare, &status, in send_ake_init()
302 &input->ake_init_write, &status, in send_ake_init()
306 return status; in send_ake_init()
313 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in validate_ake_cert() local
324 &input->ake_cert_available, &status, in validate_ake_cert()
328 &input->ake_cert_read, &status, in validate_ake_cert()
332 &input->ake_cert_validation, &status, in validate_ake_cert()
336 return status; in validate_ake_cert()
343 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_no_stored_km() local
351 &input->no_stored_km_write, &status, in send_no_stored_km()
355 return status; in send_no_stored_km()
362 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in read_h_prime() local
372 &input->h_prime_available, &status, in read_h_prime()
377 &input->h_prime_read, &status, in read_h_prime()
381 return status; in read_h_prime()
389 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in read_pairing_info_and_validate_h_prime() local
399 &input->pairing_available, &status, in read_pairing_info_and_validate_h_prime()
403 &input->pairing_info_read, &status, in read_pairing_info_and_validate_h_prime()
407 &input->h_prime_validation, &status, in read_pairing_info_and_validate_h_prime()
411 return status; in read_pairing_info_and_validate_h_prime()
418 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_stored_km() local
426 &input->stored_km_write, &status, in send_stored_km()
430 return status; in send_stored_km()
437 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in validate_h_prime() local
447 &input->h_prime_available, &status, in validate_h_prime()
451 &input->h_prime_read, &status, in validate_h_prime()
455 &input->h_prime_validation, &status, in validate_h_prime()
459 return status; in validate_h_prime()
466 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in locality_check() local
474 &input->lc_init_prepare, &status, in locality_check()
478 &input->lc_init_write, &status, in locality_check()
485 &input->l_prime_available_poll, &status, in locality_check()
489 &input->l_prime_read, &status, in locality_check()
493 &input->l_prime_validation, &status, in locality_check()
497 return status; in locality_check()
504 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in exchange_ks_and_test_for_repeater() local
512 &input->eks_prepare, &status, in exchange_ks_and_test_for_repeater()
516 &input->eks_write, &status, in exchange_ks_and_test_for_repeater()
520 return status; in exchange_ks_and_test_for_repeater()
527 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in enable_encryption() local
535 process_rxstatus(hdcp, event_ctx, input, &status); in enable_encryption()
540 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in enable_encryption()
546 &input->enable_encryption, &status, in enable_encryption()
552 &input->stream_encryption_dp, &status, in enable_encryption()
557 return status; in enable_encryption()
564 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in authenticated() local
572 process_rxstatus(hdcp, event_ctx, input, &status); in authenticated()
574 return status; in authenticated()
581 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in wait_for_rx_id_list() local
590 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in wait_for_rx_id_list()
593 status = MOD_HDCP_STATUS_HDCP2_RX_ID_LIST_NOT_READY; in wait_for_rx_id_list()
597 return status; in wait_for_rx_id_list()
604 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in verify_rx_id_list_and_send_ack() local
612 process_rxstatus(hdcp, event_ctx, input, &status); in verify_rx_id_list_and_send_ack()
618 &status, hdcp, "receiver_id_list_read")) in verify_rx_id_list_and_send_ack()
622 &status, hdcp, "device_count_check")) in verify_rx_id_list_and_send_ack()
626 &status, hdcp, "rx_id_list_validation")) in verify_rx_id_list_and_send_ack()
630 &status, hdcp, "repeater_auth_ack_write")) in verify_rx_id_list_and_send_ack()
633 return status; in verify_rx_id_list_and_send_ack()
640 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_stream_management() local
648 process_rxstatus(hdcp, event_ctx, input, &status); in send_stream_management()
653 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in send_stream_management()
660 &status, hdcp, "prepare_stream_manage")) in send_stream_management()
665 &status, hdcp, "stream_manage_write")) in send_stream_management()
668 return status; in send_stream_management()
675 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in validate_stream_ready() local
684 process_rxstatus(hdcp, event_ctx, input, &status); in validate_stream_ready()
689 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in validate_stream_ready()
697 &status, hdcp, "stream_ready_available")) in validate_stream_ready()
701 &status, hdcp, "stream_ready_read")) in validate_stream_ready()
705 &status, hdcp, "stream_ready_validation")) in validate_stream_ready()
709 return status; in validate_stream_ready()
716 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in determine_rx_hdcp_capable_dp() local
725 &status, hdcp, "rx_caps_read_dp")) in determine_rx_hdcp_capable_dp()
728 &input->hdcp2_capable_check, &status, in determine_rx_hdcp_capable_dp()
732 return status; in determine_rx_hdcp_capable_dp()
739 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in send_content_stream_type_dp() local
747 if (!process_rxstatus(hdcp, event_ctx, input, &status)) in send_content_stream_type_dp()
750 &input->content_stream_type_write, &status, in send_content_stream_type_dp()
754 return status; in send_content_stream_type_dp()
761 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in mod_hdcp_hdcp2_execution() local
765 status = known_hdcp2_capable_rx(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
768 status = send_ake_init(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
771 status = validate_ake_cert(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
774 status = send_no_stored_km(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
777 status = read_h_prime(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
780 status = read_pairing_info_and_validate_h_prime(hdcp, in mod_hdcp_hdcp2_execution()
784 status = send_stored_km(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
787 status = validate_h_prime(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
790 status = locality_check(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
793 status = exchange_ks_and_test_for_repeater(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
796 status = enable_encryption(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
799 status = authenticated(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
802 status = wait_for_rx_id_list(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
805 status = verify_rx_id_list_and_send_ack(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
808 status = send_stream_management(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
811 status = validate_stream_ready(hdcp, event_ctx, input); in mod_hdcp_hdcp2_execution()
814 status = MOD_HDCP_STATUS_INVALID_STATE; in mod_hdcp_hdcp2_execution()
818 return status; in mod_hdcp_hdcp2_execution()
825 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; in mod_hdcp_hdcp2_dp_execution() local
829 status = determine_rx_hdcp_capable_dp(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
832 status = send_ake_init(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
835 status = validate_ake_cert(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
838 status = send_no_stored_km(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
841 status = read_h_prime(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
844 status = read_pairing_info_and_validate_h_prime(hdcp, in mod_hdcp_hdcp2_dp_execution()
848 status = send_stored_km(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
851 status = validate_h_prime(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
854 status = locality_check(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
857 status = exchange_ks_and_test_for_repeater(hdcp, in mod_hdcp_hdcp2_dp_execution()
861 status = send_content_stream_type_dp(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
864 status = enable_encryption(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
867 status = authenticated(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
870 status = wait_for_rx_id_list(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
873 status = verify_rx_id_list_and_send_ack(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
876 status = send_stream_management(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
879 status = validate_stream_ready(hdcp, event_ctx, input); in mod_hdcp_hdcp2_dp_execution()
882 status = MOD_HDCP_STATUS_INVALID_STATE; in mod_hdcp_hdcp2_dp_execution()
886 return status; in mod_hdcp_hdcp2_dp_execution()