Lines Matching refs:shim
121 const struct intel_hdcp_shim *shim, u8 *bksv) in intel_hdcp_read_valid_bksv() argument
128 ret = shim->read_bksv(dig_port, bksv); in intel_hdcp_read_valid_bksv()
146 const struct intel_hdcp_shim *shim = connector->hdcp.shim; in intel_hdcp_capable() local
150 if (!shim) in intel_hdcp_capable()
153 if (shim->hdcp_capable) { in intel_hdcp_capable()
154 shim->hdcp_capable(dig_port, &capable); in intel_hdcp_capable()
156 if (!intel_hdcp_read_valid_bksv(dig_port, shim, bksv)) in intel_hdcp_capable()
196 hdcp->shim->hdcp_2_2_capable(dig_port, &capable); in intel_hdcp2_capable()
218 const struct intel_hdcp_shim *shim) in intel_hdcp_poll_ksv_fifo() argument
224 ret = __wait_for(read_ret = shim->read_ksv_ready(dig_port, in intel_hdcp_poll_ksv_fifo()
380 const struct intel_hdcp_shim *shim, in intel_hdcp_validate_v_prime() argument
392 ret = shim->read_v_prime_part(dig_port, i, &vprime); in intel_hdcp_validate_v_prime()
627 const struct intel_hdcp_shim *shim = connector->hdcp.shim; in intel_hdcp_auth_downstream() local
631 ret = intel_hdcp_poll_ksv_fifo(dig_port, shim); in intel_hdcp_auth_downstream()
638 ret = shim->read_bstatus(dig_port, bstatus); in intel_hdcp_auth_downstream()
668 ret = shim->read_ksv_fifo(dig_port, num_downstream, ksv_fifo); in intel_hdcp_auth_downstream()
684 ret = intel_hdcp_validate_v_prime(connector, shim, in intel_hdcp_auth_downstream()
711 const struct intel_hdcp_shim *shim = hdcp->shim; in intel_hdcp_auth() local
718 u8 shim[DRM_HDCP_AN_LEN]; in intel_hdcp_auth() member
722 u8 shim[DRM_HDCP_KSV_LEN]; in intel_hdcp_auth() member
726 u8 shim[DRM_HDCP_RI_LEN]; in intel_hdcp_auth() member
736 if (shim->hdcp_capable) { in intel_hdcp_auth()
737 ret = shim->hdcp_capable(dig_port, &hdcp_capable); in intel_hdcp_auth()
767 ret = shim->write_an_aksv(dig_port, an.shim); in intel_hdcp_auth()
775 ret = intel_hdcp_read_valid_bksv(dig_port, shim, bksv.shim); in intel_hdcp_auth()
779 if (drm_hdcp_check_ksvs_revoked(&i915->drm, bksv.shim, 1) > 0) { in intel_hdcp_auth()
789 ret = shim->repeater_present(dig_port, &repeater_present); in intel_hdcp_auth()
796 ret = shim->toggle_signalling(dig_port, cpu_transcoder, true); in intel_hdcp_auth()
829 ret = shim->read_ri_prime(dig_port, ri.shim); in intel_hdcp_auth()
860 if (shim->stream_encryption) { in intel_hdcp_auth()
861 ret = shim->stream_encryption(connector, true); in intel_hdcp_auth()
891 if (hdcp->shim->stream_encryption) { in _intel_hdcp_disable()
892 ret = hdcp->shim->stream_encryption(connector, false); in _intel_hdcp_disable()
923 ret = hdcp->shim->toggle_signalling(dig_port, cpu_transcoder, false); in _intel_hdcp_disable()
1047 if (hdcp->shim->check_link(dig_port, connector)) { in intel_hdcp_check_link()
1428 const struct intel_hdcp_shim *shim = hdcp->shim; in hdcp2_authentication_key_exchange() local
1440 ret = shim->write_2_2_msg(dig_port, &msgs.ake_init, in hdcp2_authentication_key_exchange()
1445 ret = shim->read_2_2_msg(dig_port, HDCP_2_2_AKE_SEND_CERT, in hdcp2_authentication_key_exchange()
1474 ret = shim->write_2_2_msg(dig_port, &msgs.no_stored_km, size); in hdcp2_authentication_key_exchange()
1478 ret = shim->read_2_2_msg(dig_port, HDCP_2_2_AKE_SEND_HPRIME, in hdcp2_authentication_key_exchange()
1489 ret = shim->read_2_2_msg(dig_port, in hdcp2_authentication_key_exchange()
1513 const struct intel_hdcp_shim *shim = hdcp->shim; in hdcp2_locality_check() local
1521 ret = shim->write_2_2_msg(dig_port, &msgs.lc_init, in hdcp2_locality_check()
1526 ret = shim->read_2_2_msg(dig_port, in hdcp2_locality_check()
1552 ret = hdcp->shim->write_2_2_msg(dig_port, &send_eks, in hdcp2_session_key_exchange()
1570 const struct intel_hdcp_shim *shim = hdcp->shim; in _hdcp2_propagate_stream_management_info() local
1590 ret = shim->write_2_2_msg(dig_port, &msgs.stream_manage, in _hdcp2_propagate_stream_management_info()
1595 ret = shim->read_2_2_msg(dig_port, HDCP_2_2_REP_STREAM_READY, in _hdcp2_propagate_stream_management_info()
1620 const struct intel_hdcp_shim *shim = hdcp->shim; in hdcp2_authenticate_repeater_topology() local
1625 ret = shim->read_2_2_msg(dig_port, HDCP_2_2_REP_SEND_RECVID_LIST, in hdcp2_authenticate_repeater_topology()
1678 ret = shim->write_2_2_msg(dig_port, &msgs.rep_ack, in hdcp2_authenticate_repeater_topology()
1691 const struct intel_hdcp_shim *shim = hdcp->shim; in hdcp2_authenticate_sink() local
1713 if (shim->config_stream_type) { in hdcp2_authenticate_sink()
1714 ret = shim->config_stream_type(dig_port, in hdcp2_authenticate_sink()
1751 if (hdcp->shim->stream_2_2_encryption) { in hdcp2_enable_stream_encryption()
1752 ret = hdcp->shim->stream_2_2_encryption(connector, true); in hdcp2_enable_stream_encryption()
1786 if (hdcp->shim->toggle_signalling) { in hdcp2_enable_encryption()
1787 ret = hdcp->shim->toggle_signalling(dig_port, cpu_transcoder, in hdcp2_enable_encryption()
1836 if (hdcp->shim->toggle_signalling) { in hdcp2_disable_encryption()
1837 ret = hdcp->shim->toggle_signalling(dig_port, cpu_transcoder, in hdcp2_disable_encryption()
1970 if (hdcp->shim->stream_2_2_encryption) { in _intel_hdcp2_disable()
1971 ret = hdcp->shim->stream_2_2_encryption(connector, false); in _intel_hdcp2_disable()
2030 ret = hdcp->shim->check_2_2_link(dig_port, connector); in intel_hdcp2_check_link()
2164 const struct intel_hdcp_shim *shim) in initialize_hdcp_port_data() argument
2187 data->protocol = (u8)shim->protocol; in initialize_hdcp_port_data()
2245 const struct intel_hdcp_shim *shim) in intel_hdcp2_init() argument
2251 ret = initialize_hdcp_port_data(connector, dig_port, shim); in intel_hdcp2_init()
2262 const struct intel_hdcp_shim *shim) in intel_hdcp_init() argument
2268 if (!shim) in intel_hdcp_init()
2272 intel_hdcp2_init(connector, dig_port, shim); in intel_hdcp_init()
2283 hdcp->shim = shim; in intel_hdcp_init()
2351 if (!hdcp->shim) in intel_hdcp_enable()
2424 if (!hdcp->shim) in intel_hdcp_disable()
2458 if (!connector->hdcp.shim) in intel_hdcp_update_pipe()
2529 if (!hdcp->shim) in intel_hdcp_cleanup()
2557 hdcp->shim = NULL; in intel_hdcp_cleanup()
2614 if (!hdcp->shim) in intel_hdcp_handle_cp_irq()