Lines Matching refs:hdcp

437 	mutex_lock(&mhdp->hdcp.mutex);  in cdns_mhdp_hdcp_check_link()
438 if (mhdp->hdcp.value == DRM_MODE_CONTENT_PROTECTION_UNDESIRED) in cdns_mhdp_hdcp_check_link()
451 mhdp->hdcp.value = DRM_MODE_CONTENT_PROTECTION_DESIRED; in cdns_mhdp_hdcp_check_link()
452 schedule_work(&mhdp->hdcp.prop_work); in cdns_mhdp_hdcp_check_link()
456 ret = _cdns_mhdp_hdcp_enable(mhdp, mhdp->hdcp.hdcp_content_type); in cdns_mhdp_hdcp_check_link()
458 mhdp->hdcp.value = DRM_MODE_CONTENT_PROTECTION_DESIRED; in cdns_mhdp_hdcp_check_link()
459 schedule_work(&mhdp->hdcp.prop_work); in cdns_mhdp_hdcp_check_link()
462 mutex_unlock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_check_link()
469 struct cdns_mhdp_hdcp *hdcp = container_of(d_work, in cdns_mhdp_hdcp_check_work() local
472 struct cdns_mhdp_device *mhdp = container_of(hdcp, in cdns_mhdp_hdcp_check_work()
474 hdcp); in cdns_mhdp_hdcp_check_work()
477 schedule_delayed_work(&hdcp->check_work, in cdns_mhdp_hdcp_check_work()
483 struct cdns_mhdp_hdcp *hdcp = container_of(work, in cdns_mhdp_hdcp_prop_work() local
486 struct cdns_mhdp_device *mhdp = container_of(hdcp, in cdns_mhdp_hdcp_prop_work()
488 hdcp); in cdns_mhdp_hdcp_prop_work()
493 mutex_lock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_prop_work()
494 if (mhdp->hdcp.value != DRM_MODE_CONTENT_PROTECTION_UNDESIRED) { in cdns_mhdp_hdcp_prop_work()
496 state->content_protection = mhdp->hdcp.value; in cdns_mhdp_hdcp_prop_work()
498 mutex_unlock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_prop_work()
534 mutex_lock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_enable()
539 mhdp->hdcp.hdcp_content_type = content_type; in cdns_mhdp_hdcp_enable()
540 mhdp->hdcp.value = DRM_MODE_CONTENT_PROTECTION_ENABLED; in cdns_mhdp_hdcp_enable()
541 schedule_work(&mhdp->hdcp.prop_work); in cdns_mhdp_hdcp_enable()
542 schedule_delayed_work(&mhdp->hdcp.check_work, in cdns_mhdp_hdcp_enable()
545 mutex_unlock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_enable()
553 mutex_lock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_disable()
554 if (mhdp->hdcp.value != DRM_MODE_CONTENT_PROTECTION_UNDESIRED) { in cdns_mhdp_hdcp_disable()
555 mhdp->hdcp.value = DRM_MODE_CONTENT_PROTECTION_UNDESIRED; in cdns_mhdp_hdcp_disable()
556 schedule_work(&mhdp->hdcp.prop_work); in cdns_mhdp_hdcp_disable()
559 mutex_unlock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_disable()
560 cancel_delayed_work_sync(&mhdp->hdcp.check_work); in cdns_mhdp_hdcp_disable()
567 INIT_DELAYED_WORK(&mhdp->hdcp.check_work, cdns_mhdp_hdcp_check_work); in cdns_mhdp_hdcp_init()
568 INIT_WORK(&mhdp->hdcp.prop_work, cdns_mhdp_hdcp_prop_work); in cdns_mhdp_hdcp_init()
569 mutex_init(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_init()