Lines Matching refs:psp
51 struct psp_context *psp = hdcp->config.psp.handle; in remove_display_from_topology_v2() local
57 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.context.mem_context.shared_buf; in remove_display_from_topology_v2()
62 mutex_lock(&psp->dtm_context.mutex); in remove_display_from_topology_v2()
71 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in remove_display_from_topology_v2()
80 mutex_unlock(&psp->dtm_context.mutex); in remove_display_from_topology_v2()
87 struct psp_context *psp = hdcp->config.psp.handle; in remove_display_from_topology_v3() local
93 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.context.mem_context.shared_buf; in remove_display_from_topology_v3()
98 mutex_lock(&psp->dtm_context.mutex); in remove_display_from_topology_v3()
107 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in remove_display_from_topology_v3()
108 mutex_unlock(&psp->dtm_context.mutex); in remove_display_from_topology_v3()
125 struct psp_context *psp = hdcp->config.psp.handle; in add_display_to_topology_v2() local
130 if (!psp->dtm_context.context.initialized) { in add_display_to_topology_v2()
136 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.context.mem_context.shared_buf; in add_display_to_topology_v2()
138 mutex_lock(&psp->dtm_context.mutex); in add_display_to_topology_v2()
156 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in add_display_to_topology_v2()
165 mutex_unlock(&psp->dtm_context.mutex); in add_display_to_topology_v2()
172 struct psp_context *psp = hdcp->config.psp.handle; in add_display_to_topology_v3() local
177 if (!psp->dtm_context.context.initialized) { in add_display_to_topology_v3()
183 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.context.mem_context.shared_buf; in add_display_to_topology_v3()
185 mutex_lock(&psp->dtm_context.mutex); in add_display_to_topology_v3()
206 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in add_display_to_topology_v3()
207 mutex_unlock(&psp->dtm_context.mutex); in add_display_to_topology_v3()
225 if (hdcp->config.psp.caps.dtm_v3_supported) in mod_hdcp_remove_display_from_topology()
238 if (hdcp->config.psp.caps.dtm_v3_supported) in mod_hdcp_add_display_to_topology()
249 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_create_session() local
254 if (!psp->hdcp_context.context.initialized) { in mod_hdcp_hdcp1_create_session()
259 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp1_create_session()
261 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_create_session()
267 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp1_create_session()
281 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_create_session()
288 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_destroy_session() local
293 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_destroy_session()
294 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp1_destroy_session()
300 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp1_destroy_session()
315 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_destroy_session()
321 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_validate_rx() local
325 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_validate_rx()
326 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp1_validate_rx()
338 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp1_validate_rx()
356 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_validate_rx()
362 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_enable_encryption() local
367 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_enable_encryption()
368 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp1_enable_encryption()
374 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp1_enable_encryption()
383 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_enable_encryption()
389 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_validate_ksvlist_vp() local
393 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_validate_ksvlist_vp()
394 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp1_validate_ksvlist_vp()
410 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp1_validate_ksvlist_vp()
424 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_validate_ksvlist_vp()
431 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_enable_dp_stream_encryption() local
436 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_enable_dp_stream_encryption()
437 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp1_enable_dp_stream_encryption()
450 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp1_enable_dp_stream_encryption()
461 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_enable_dp_stream_encryption()
467 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_link_maintenance() local
471 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_link_maintenance()
472 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp1_link_maintenance()
481 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp1_link_maintenance()
487 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp1_link_maintenance()
493 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_create_session() local
499 if (!psp->hdcp_context.context.initialized) { in mod_hdcp_hdcp2_create_session()
507 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_create_session()
509 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_create_session()
526 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_create_session()
534 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_create_session()
540 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_destroy_session() local
545 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_destroy_session()
546 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_destroy_session()
552 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_destroy_session()
567 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_destroy_session()
573 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_prepare_ake_init() local
579 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_prepare_ake_init()
580 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_prepare_ake_init()
591 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_prepare_ake_init()
599 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_prepare_ake_init()
605 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_validate_ake_cert() local
611 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_ake_cert()
612 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_validate_ake_cert()
631 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_validate_ake_cert()
659 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_ake_cert()
665 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_validate_h_prime() local
671 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_h_prime()
672 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_validate_h_prime()
695 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_validate_h_prime()
705 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_h_prime()
711 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_prepare_lc_init() local
717 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_prepare_lc_init()
718 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_prepare_lc_init()
730 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_prepare_lc_init()
738 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_prepare_lc_init()
744 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_validate_l_prime() local
750 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_l_prime()
751 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_validate_l_prime()
767 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_validate_l_prime()
773 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_l_prime()
779 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_prepare_eks() local
785 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_prepare_eks()
786 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_prepare_eks()
800 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_prepare_eks()
817 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_prepare_eks()
824 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_enable_encryption() local
832 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_enable_encryption()
834 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_enable_encryption()
840 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_enable_encryption()
849 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_enable_encryption()
855 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_validate_rx_id_list() local
861 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_rx_id_list()
863 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_validate_rx_id_list()
880 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_validate_rx_id_list()
902 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_rx_id_list()
908 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_enable_dp_stream_encryption() local
914 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_enable_dp_stream_encryption()
915 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_enable_dp_stream_encryption()
931 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_enable_dp_stream_encryption()
945 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_enable_dp_stream_encryption()
952 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_prepare_stream_management() local
958 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_prepare_stream_management()
959 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_prepare_stream_management()
971 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_prepare_stream_management()
982 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_prepare_stream_management()
988 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp2_validate_stream_ready() local
994 mutex_lock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_stream_ready()
995 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in mod_hdcp_hdcp2_validate_stream_ready()
1011 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in mod_hdcp_hdcp2_validate_stream_ready()
1019 mutex_unlock(&psp->hdcp_context.mutex); in mod_hdcp_hdcp2_validate_stream_ready()