Lines Matching refs:hdcp

438 	mutex_lock(&mhdp->hdcp.mutex);  in cdns_mhdp_hdcp_check_link()
439 if (mhdp->hdcp.value == DRM_MODE_CONTENT_PROTECTION_UNDESIRED) in cdns_mhdp_hdcp_check_link()
452 mhdp->hdcp.value = DRM_MODE_CONTENT_PROTECTION_DESIRED; in cdns_mhdp_hdcp_check_link()
453 schedule_work(&mhdp->hdcp.prop_work); in cdns_mhdp_hdcp_check_link()
457 ret = _cdns_mhdp_hdcp_enable(mhdp, mhdp->hdcp.hdcp_content_type); in cdns_mhdp_hdcp_check_link()
459 mhdp->hdcp.value = DRM_MODE_CONTENT_PROTECTION_DESIRED; in cdns_mhdp_hdcp_check_link()
460 schedule_work(&mhdp->hdcp.prop_work); in cdns_mhdp_hdcp_check_link()
463 mutex_unlock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_check_link()
470 struct cdns_mhdp_hdcp *hdcp = container_of(d_work, in cdns_mhdp_hdcp_check_work() local
473 struct cdns_mhdp_device *mhdp = container_of(hdcp, in cdns_mhdp_hdcp_check_work()
475 hdcp); in cdns_mhdp_hdcp_check_work()
478 schedule_delayed_work(&hdcp->check_work, in cdns_mhdp_hdcp_check_work()
484 struct cdns_mhdp_hdcp *hdcp = container_of(work, in cdns_mhdp_hdcp_prop_work() local
487 struct cdns_mhdp_device *mhdp = container_of(hdcp, in cdns_mhdp_hdcp_prop_work()
489 hdcp); in cdns_mhdp_hdcp_prop_work()
494 mutex_lock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_prop_work()
495 if (mhdp->hdcp.value != DRM_MODE_CONTENT_PROTECTION_UNDESIRED) { in cdns_mhdp_hdcp_prop_work()
497 state->content_protection = mhdp->hdcp.value; in cdns_mhdp_hdcp_prop_work()
499 mutex_unlock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_prop_work()
535 mutex_lock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_enable()
540 mhdp->hdcp.hdcp_content_type = content_type; in cdns_mhdp_hdcp_enable()
541 mhdp->hdcp.value = DRM_MODE_CONTENT_PROTECTION_ENABLED; in cdns_mhdp_hdcp_enable()
542 schedule_work(&mhdp->hdcp.prop_work); in cdns_mhdp_hdcp_enable()
543 schedule_delayed_work(&mhdp->hdcp.check_work, in cdns_mhdp_hdcp_enable()
546 mutex_unlock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_enable()
554 mutex_lock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_disable()
555 if (mhdp->hdcp.value != DRM_MODE_CONTENT_PROTECTION_UNDESIRED) { in cdns_mhdp_hdcp_disable()
556 mhdp->hdcp.value = DRM_MODE_CONTENT_PROTECTION_UNDESIRED; in cdns_mhdp_hdcp_disable()
557 schedule_work(&mhdp->hdcp.prop_work); in cdns_mhdp_hdcp_disable()
560 mutex_unlock(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_disable()
561 cancel_delayed_work_sync(&mhdp->hdcp.check_work); in cdns_mhdp_hdcp_disable()
568 INIT_DELAYED_WORK(&mhdp->hdcp.check_work, cdns_mhdp_hdcp_check_work); in cdns_mhdp_hdcp_init()
569 INIT_WORK(&mhdp->hdcp.prop_work, cdns_mhdp_hdcp_prop_work); in cdns_mhdp_hdcp_init()
570 mutex_init(&mhdp->hdcp.mutex); in cdns_mhdp_hdcp_init()