drivers/gpu/drm/i915/display/intel_hdcp.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_hdcp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/intel_hdcp.c- Extension
.c- Size
- 83079 bytes
- Lines
- 2892
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/component.hlinux/debugfs.hlinux/i2c.hlinux/iopoll.hlinux/random.hdrm/display/drm_hdcp_helper.hdrm/drm_print.hdrm/intel/i915_component.hdrm/intel/intel_pcode_regs.hdrm/intel/step.hintel_connector.hintel_de.hintel_display_jiffies.hintel_display_power.hintel_display_power_well.hintel_display_regs.hintel_display_rpm.hintel_display_types.hintel_dp_mst.hintel_hdcp.hintel_hdcp_gsc_message.hintel_hdcp_regs.hintel_hdcp_shim.hintel_parent.h
Detected Declarations
function Copyrightfunction IS_DISPLAY_VERx100_STEPfunction intel_conn_to_vcpifunction intel_hdcp_required_content_streamfunction intel_hdcp_prepare_streamsfunction intel_hdcp_is_ksv_validfunction intel_hdcp_read_valid_bksvfunction intel_hdcp_get_capabilityfunction intel_hdcp2_prerequisitefunction intel_hdcp2_get_capabilityfunction intel_hdcp_get_remote_capabilityfunction intel_hdcp_in_usefunction intel_hdcp2_in_usefunction intel_hdcp_poll_ksv_fifofunction hdcp_key_loadablefunction intel_hdcp_clear_keysfunction intel_hdcp_load_keysfunction platformsfunction intel_write_sha_textfunction intel_hdcp_get_repeater_ctlfunction intel_hdcp_validate_v_primefunction sha_textfunction intel_hdcp_auth_downstreamfunction intel_hdcp_authfunction HDCP_STATUSfunction HDCP_STATUSfunction _intel_hdcp_disablefunction HDCP_STATUSfunction intel_hdcp1_enablefunction intel_hdcp_update_valuefunction intel_hdcp_check_linkfunction intel_hdcp_prop_workfunction is_hdcp_supportedfunction hdcp2_prepare_ake_initfunction hdcp2_verify_rx_cert_prepare_kmfunction hdcp2_verify_hprimefunction hdcp2_store_pairing_infofunction hdcp2_prepare_lc_initfunction hdcp2_verify_lprimefunction hdcp2_prepare_skeyfunction hdcp2_verify_rep_topology_prepare_ackfunction hdcp2_verify_mprimefunction hdcp2_authenticate_portfunction hdcp2_close_sessionfunction hdcp2_deauthenticate_portfunction hdcp2_authentication_key_exchangefunction hdcp2_locality_checkfunction hdcp2_session_key_exchange
Annotated Snippet
static const struct file_operations intel_hdcp_force_14_fops = {
.owner = THIS_MODULE,
.open = intel_hdcp_force_14_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,
.write = intel_hdcp_force_14_write
};
void intel_hdcp_connector_debugfs_add(struct intel_connector *connector)
{
struct dentry *root = connector->base.debugfs_entry;
int connector_type = connector->base.connector_type;
if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
connector_type == DRM_MODE_CONNECTOR_HDMIA ||
connector_type == DRM_MODE_CONNECTOR_HDMIB) {
debugfs_create_file("i915_hdcp_sink_capability", 0444, root,
connector, &intel_hdcp_sink_capability_fops);
debugfs_create_file("i915_force_hdcp14", 0644, root,
connector, &intel_hdcp_force_14_fops);
}
}
Annotation
- Immediate include surface: `linux/component.h`, `linux/debugfs.h`, `linux/i2c.h`, `linux/iopoll.h`, `linux/random.h`, `drm/display/drm_hdcp_helper.h`, `drm/drm_print.h`, `drm/intel/i915_component.h`.
- Detected declarations: `function Copyright`, `function IS_DISPLAY_VERx100_STEP`, `function intel_conn_to_vcpi`, `function intel_hdcp_required_content_stream`, `function intel_hdcp_prepare_streams`, `function intel_hdcp_is_ksv_valid`, `function intel_hdcp_read_valid_bksv`, `function intel_hdcp_get_capability`, `function intel_hdcp2_prerequisite`, `function intel_hdcp2_get_capability`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.