/src/sys/external/bsd/drm2/dist/drm/amd/display/modules/hdcp/ |
hdcp_log.h | 32 #define HDCP_LOG_ERR(hdcp, ...) DRM_WARN(__VA_ARGS__) 33 #define HDCP_LOG_VER(hdcp, ...) DRM_DEBUG_KMS(__VA_ARGS__) 34 #define HDCP_LOG_FSM(hdcp, ...) DRM_DEBUG_KMS(__VA_ARGS__) 35 #define HDCP_LOG_TOP(hdcp, ...) pr_debug("[HDCP_TOP]:"__VA_ARGS__) 36 #define HDCP_LOG_DDC(hdcp, ...) pr_debug("[HDCP_DDC]:"__VA_ARGS__) 40 #define HDCP_ERROR_TRACE(hdcp, status) \ 41 HDCP_LOG_ERR(hdcp, \ 43 hdcp->config.index, \ 45 mod_hdcp_state_id_to_str(hdcp->state.id)) 46 #define HDCP_HDCP1_ENABLED_TRACE(hdcp, displayIndex) [all...] |
amdgpu_hdcp.c | 31 #include "hdcp.h" 33 static void push_error_status(struct mod_hdcp *hdcp, 36 struct mod_hdcp_trace *trace = &hdcp->connection.trace; 40 trace->errors[trace->error_count].state_id = hdcp->state.id; 42 HDCP_ERROR_TRACE(hdcp, status); 45 if (is_hdcp1(hdcp)) { 46 hdcp->connection.hdcp1_retry_count++; 47 } else if (is_hdcp2(hdcp)) { 48 hdcp->connection.hdcp2_retry_count++; 52 static uint8_t is_cp_desired_hdcp1(struct mod_hdcp *hdcp) [all...] |
amdgpu_hdcp_ddc.c | 31 #include "hdcp.h" 40 /* HDCP 1.4 */ 58 /* HDCP 2.2 */ 149 static enum mod_hdcp_status read(struct mod_hdcp *hdcp, 158 if (is_dp_hdcp(hdcp)) { 161 success = hdcp->config.ddc.funcs.read_dpcd(hdcp->config.ddc.handle, 173 success = hdcp->config.ddc.funcs.read_i2c( 174 hdcp->config.ddc.handle, 184 static enum mod_hdcp_status read_repeatedly(struct mod_hdcp *hdcp, [all...] |
amdgpu_hdcp1_execution.c | 31 #include "hdcp.h" 33 static inline enum mod_hdcp_status validate_bksv(struct mod_hdcp *hdcp) 38 memcpy(&n, hdcp->auth.msg.hdcp1.bksv, sizeof(uint64_t)); 48 static inline enum mod_hdcp_status check_ksv_ready(struct mod_hdcp *hdcp) 50 if (is_dp_hdcp(hdcp)) 51 return (hdcp->auth.msg.hdcp1.bstatus & DP_BSTATUS_READY) ? 54 return (hdcp->auth.msg.hdcp1.bcaps & DRM_HDCP_DDC_BCAPS_KSV_FIFO_READY) ? 59 static inline enum mod_hdcp_status check_hdcp_capable_dp(struct mod_hdcp *hdcp) 61 return (hdcp->auth.msg.hdcp1.bcaps & DP_BCAPS_HDCP_CAPABLE) ? 66 static inline enum mod_hdcp_status check_r0p_available_dp(struct mod_hdcp *hdcp) [all...] |
hdcp.h | 1 /* $NetBSD: hdcp.h,v 1.3 2021/12/19 12:02:39 riastradh Exp $ */ 291 typedef enum mod_hdcp_status (*mod_hdcp_action)(struct mod_hdcp *hdcp); 294 enum mod_hdcp_status *status, struct mod_hdcp *hdcp, const char *str); 295 enum mod_hdcp_status mod_hdcp_hdcp1_execution(struct mod_hdcp *hdcp, 298 enum mod_hdcp_status mod_hdcp_hdcp1_dp_execution(struct mod_hdcp *hdcp, 301 enum mod_hdcp_status mod_hdcp_hdcp1_transition(struct mod_hdcp *hdcp, 305 enum mod_hdcp_status mod_hdcp_hdcp1_dp_transition(struct mod_hdcp *hdcp, 311 enum mod_hdcp_status mod_hdcp_hdcp2_execution(struct mod_hdcp *hdcp, 314 enum mod_hdcp_status mod_hdcp_hdcp2_dp_execution(struct mod_hdcp *hdcp, 317 enum mod_hdcp_status mod_hdcp_hdcp2_transition(struct mod_hdcp *hdcp, [all...] |
amdgpu_hdcp2_execution.c | 33 #include "hdcp.h" 35 static inline enum mod_hdcp_status check_receiver_id_list_ready(struct mod_hdcp *hdcp) 39 if (is_dp_hdcp(hdcp)) 40 is_ready = HDCP_2_2_DP_RXSTATUS_READY(hdcp->auth.msg.hdcp2.rxstatus_dp) ? 1 : 0; 42 is_ready = (HDCP_2_2_HDMI_RXSTATUS_READY(hdcp->auth.msg.hdcp2.rxstatus[0]) && 43 (HDCP_2_2_HDMI_RXSTATUS_MSG_SZ_HI(hdcp->auth.msg.hdcp2.rxstatus[1]) << 8 | 44 hdcp->auth.msg.hdcp2.rxstatus[0])) ? 1 : 0; 49 static inline enum mod_hdcp_status check_hdcp2_capable(struct mod_hdcp *hdcp) 53 if (is_dp_hdcp(hdcp)) 54 status = (hdcp->auth.msg.hdcp2.rxcaps_dp[0] == HDCP_2_2_RX_CAPS_VERSION_VAL) & [all...] |
amdgpu_hdcp_psp.c | 34 #include "hdcp.h" 39 static void hdcp2_message_init(struct mod_hdcp *hdcp, 42 in->session_handle = hdcp->auth.id; 52 enum mod_hdcp_status mod_hdcp_remove_display_topology(struct mod_hdcp *hdcp) 55 struct psp_context *psp = hdcp->config.psp.handle; 63 if (is_display_added(&(hdcp->connection.displays[i]))) { 67 display = &hdcp->connection.displays[i]; 80 HDCP_TOP_REMOVE_DISPLAY_TRACE(hdcp, display->index); 87 enum mod_hdcp_status mod_hdcp_add_display_topology(struct mod_hdcp *hdcp) 89 struct psp_context *psp = hdcp->config.psp.handle [all...] |
amdgpu_hdcp1_transition.c | 31 #include "hdcp.h" 33 enum mod_hdcp_status mod_hdcp_hdcp1_transition(struct mod_hdcp *hdcp, 39 struct mod_hdcp_connection *conn = &hdcp->connection; 40 struct mod_hdcp_link_adjustment *adjust = &hdcp->connection.link.adjust; 42 switch (current_state(hdcp)) { 47 increment_stay_counter(hdcp); 51 set_state_id(hdcp, output, H1_A1_EXCHANGE_KSVS); 70 set_state_id(hdcp, output, 93 set_watchdog_in_ms(hdcp, 5000, output); 94 set_state_id(hdcp, output, H1_A8_WAIT_FOR_READY) [all...] |
amdgpu_hdcp2_transition.c | 31 #include "hdcp.h" 33 enum mod_hdcp_status mod_hdcp_hdcp2_transition(struct mod_hdcp *hdcp, 39 struct mod_hdcp_connection *conn = &hdcp->connection; 40 struct mod_hdcp_link_adjustment *adjust = &hdcp->connection.link.adjust; 42 switch (current_state(hdcp)) { 48 set_state_id(hdcp, output, HDCP_INITIALIZED); 51 set_state_id(hdcp, output, H2_A1_SEND_AKE_INIT); 66 set_watchdog_in_ms(hdcp, 100, output); 68 set_state_id(hdcp, output, H2_A1_VALIDATE_AKE_CERT); 75 /* some hdmi receivers are not ready for HDCP [all...] |
Makefile | 23 # Makefile for the 'hdcp' sub-module of DAL. 26 HDCP = hdcp_ddc.o hdcp_log.o hdcp_psp.o hdcp.o \ 30 AMD_DAL_HDCP = $(addprefix $(AMDDALPATH)/modules/hdcp/,$(HDCP))
|
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/hdcp/ |
Makefile | 21 # Makefile for the 'hdcp' sub-component of DAL. 26 AMD_DAL_HDCP_MSG = $(addprefix $(AMDDALPATH)/dc/hdcp/,$(HDCP_MSG))
|
/src/sys/external/bsd/drm2/dist/drm/i915/display/ |
intel_hdcp.c | 55 /* HDCP spec states that we must retry the bksv if it is invalid */ 75 const struct intel_hdcp_shim *shim = connector->hdcp.shim; 97 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp2_capable 101 if (!hdcp->hdcp2_supported) 113 hdcp->shim->hdcp_2_2_capable(intel_dig_port, &capable); 184 * Another req for hdcp key loadability is enabled state of pll for 217 * Initiate loading the HDCP key from fuses. 219 * BXT+ platforms, HDCP key needs to be loaded by SW. Only Gen 9 227 DRM_ERROR("Failed to initiate HDCP key load (%d)\n" 603 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp_auth 765 struct intel_hdcp *hdcp = &connector->hdcp; local in function:_intel_hdcp_disable 796 struct intel_hdcp *hdcp = &connector->hdcp; local in function:_intel_hdcp_enable 846 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp_check_link 908 struct intel_hdcp *hdcp = container_of(work, struct intel_hdcp, local in function:intel_hdcp_prop_work 1220 struct intel_hdcp *hdcp = &connector->hdcp; local in function:hdcp2_authentication_key_exchange 1308 struct intel_hdcp *hdcp = &connector->hdcp; local in function:hdcp2_locality_check 1344 struct intel_hdcp *hdcp = &connector->hdcp; local in function:hdcp2_session_key_exchange 1364 struct intel_hdcp *hdcp = &connector->hdcp; local in function:hdcp2_propagate_stream_management_info 1415 struct intel_hdcp *hdcp = &connector->hdcp; local in function:hdcp2_authenticate_repeater_topology 1486 struct intel_hdcp *hdcp = &connector->hdcp; local in function:hdcp2_authenticate_sink 1536 struct intel_hdcp *hdcp = &connector->hdcp; local in function:hdcp2_enable_encryption 1574 struct intel_hdcp *hdcp = &connector->hdcp; local in function:hdcp2_disable_encryption 1641 struct intel_hdcp *hdcp = &connector->hdcp; local in function:_intel_hdcp2_enable 1685 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp2_check_link 1764 struct intel_hdcp *hdcp = container_of(to_delayed_work(work), local in function:intel_hdcp_check_work 1839 struct intel_hdcp *hdcp = &connector->hdcp; local in function:initialize_hdcp_port_data 1917 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp2_init 1933 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp_init 1964 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp_enable 2011 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp_disable 2099 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_hdcp_handle_cp_irq [all...] |
intel_dp.c | 5923 static void intel_dp_hdcp_wait_for_cp_irq(struct intel_hdcp *hdcp, int timeout) 5927 #define C (hdcp->cp_irq_count_cached != atomic_read(&hdcp->cp_irq_count)) 5929 spin_lock_irqsave(&hdcp->cp_irq_lock, irqflags); 5930 DRM_SPIN_TIMED_WAIT_UNTIL(ret, &hdcp->cp_irq_queue, 5931 &hdcp->cp_irq_lock, 5936 spin_unlock_irqrestore(&hdcp->cp_irq_lock, irqflags); 6008 * For some reason the HDMI and DP HDCP specs call this register 6267 struct intel_hdcp *hdcp = &dp->attached_connector->hdcp; local in function:intel_dp_hdcp2_wait_for_msg 6319 struct intel_hdcp *hdcp = &dp->attached_connector->hdcp; local in function:intel_dp_hdcp2_write_msg [all...] |
intel_ddi.c | 4030 /* Enable hdcp if it's desired */ 4106 struct intel_hdcp *hdcp = &connector->hdcp; local in function:intel_ddi_update_pipe 4108 (conn_state->hdcp_content_type != hdcp->content_type && 4116 * During the HDCP encryption session if Type change is requested, 4117 * disable the HDCP and reenable it with new TYPE value. 4125 * Mark the hdcp state as DESIRED after the hdcp disable of type 4129 mutex_lock(&hdcp->mutex); 4130 hdcp->value = DRM_MODE_CONTENT_PROTECTION_DESIRED [all...] |
intel_display_types.h | 243 * This structure serves as a translation layer between the generic HDCP code 244 * and the bus-specific code. What that means is that HDCP over HDMI differs 245 * from HDCP over DP, so to account for these differences, we need to 250 * HDCP registers on the receiver are set via DP AUX for DP, and 304 /* Enables HDCP signalling on the port */ 311 /* Detects panel's hdcp capability. This is optional for HDMI. */ 315 /* HDCP adaptation(DP/HDMI) required on the port */ 344 /* Mutex for hdcp state of the connector */ 388 * available information from HDCP DP sink. 396 * HDCP register access for gen12+ need the transcoder associated 435 struct intel_hdcp hdcp; member in struct:intel_connector [all...] |
intel_hdmi.c | 1471 DRM_ERROR("Disable HDCP signalling failed (%d)\n", ret); 1476 DRM_ERROR("Enable HDCP signalling failed (%d)\n", ret); 1497 DRM_ERROR("%s HDCP signalling failed (%d)\n", 1520 enum transcoder cpu_transcoder = connector->hdcp.cpu_transcoder; 1651 struct intel_hdcp *hdcp = &hdmi->attached_connector->hdcp; local in function:intel_hdmi_hdcp2_read_msg 1656 hdcp->is_paired); 3195 DRM_DEBUG_KMS("HDCP init failed, skipping.\n");
|
/src/sys/external/bsd/drm2/dist/drm/amd/display/modules/inc/ |
mod_hdcp.h | 201 /* per link events dm has to notify to hdcp module */ 243 /* a query structure for a display's hdcp information */ 264 enum mod_hdcp_status mod_hdcp_setup(struct mod_hdcp *hdcp, 268 enum mod_hdcp_status mod_hdcp_teardown(struct mod_hdcp *hdcp); 271 enum mod_hdcp_status mod_hdcp_add_display(struct mod_hdcp *hdcp, 276 enum mod_hdcp_status mod_hdcp_remove_display(struct mod_hdcp *hdcp, 279 /* called to query hdcp information on a specific index */ 280 enum mod_hdcp_status mod_hdcp_query_display(struct mod_hdcp *hdcp, 284 enum mod_hdcp_status mod_hdcp_reset_connection(struct mod_hdcp *hdcp, 288 enum mod_hdcp_status mod_hdcp_process_event(struct mod_hdcp *hdcp, [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm/ |
amdgpu_dm_hdcp.c | 113 mod_hdcp_query_display(&hdcp_w->hdcp, aconnector->base.index, &query); 117 mod_hdcp_remove_display(&hdcp_w->hdcp, aconnector->base.index, &hdcp_w->output); 139 mod_hdcp_add_display(&hdcp_w->hdcp, link, display, &hdcp_w->output); 154 mod_hdcp_remove_display(&hdcp_w->hdcp, aconnector->base.index, &hdcp_w->output); 165 mod_hdcp_reset_connection(&hdcp_w->hdcp, &hdcp_w->output); 196 mod_hdcp_process_event(&hdcp_work->hdcp, MOD_HDCP_EVENT_CALLBACK, 221 DRM_ERROR("HDCP state unknown! Setting it to DESIRED"); 255 mod_hdcp_query_display(&hdcp_work->hdcp, aconnector->base.index, &query); 275 mod_hdcp_process_event(&hdcp_work->hdcp, 293 mod_hdcp_process_event(&hdcp_work->hdcp, MOD_HDCP_EVENT_CPIRQ, &hdcp_work->output) [all...] |
amdgpu_dm_hdcp.h | 32 #include "hdcp.h" 50 struct mod_hdcp hdcp; member in struct:hdcp_workqueue
|
/src/sys/external/bsd/drm2/dist/drm/amd/display/ |
Makefile | 40 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/hdcp 49 DAL_LIBS += modules/hdcp
|
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/ |
Makefile | 43 DC_LIBS += hdcp
|
/src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/allwinner/ |
sun50i-h6.dtsi | 796 clock-names = "iahb", "isfr", "tmds", "cec", "hdcp", 797 "hdcp-bus"; 799 reset-names = "ctrl", "hdcp";
|
/src/sys/modules/amdgpu/ |
Makefile | 39 CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/display/modules/hdcp 134 .PATH: ${S}/external/bsd/drm2/dist/drm/amd/amdgpu/../display/dc/hdcp 146 .PATH: ${S}/external/bsd/drm2/dist/drm/amd/amdgpu/../display/modules/hdcp
|
/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
tegra30-colibri.dtsi | 149 nvidia,function = "hdcp"; 661 nvidia,function = "hdcp";
|
tegra30-apalis-v1.1.dtsi | 782 nvidia,function = "hdcp";
|