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()
1048 if (hdcp->shim->check_link(dig_port, connector)) { in intel_hdcp_check_link()
1429 const struct intel_hdcp_shim *shim = hdcp->shim; in hdcp2_authentication_key_exchange() local
1441 ret = shim->write_2_2_msg(dig_port, &msgs.ake_init, in hdcp2_authentication_key_exchange()
1446 ret = shim->read_2_2_msg(dig_port, HDCP_2_2_AKE_SEND_CERT, in hdcp2_authentication_key_exchange()
1475 ret = shim->write_2_2_msg(dig_port, &msgs.no_stored_km, size); in hdcp2_authentication_key_exchange()
1479 ret = shim->read_2_2_msg(dig_port, HDCP_2_2_AKE_SEND_HPRIME, in hdcp2_authentication_key_exchange()
1490 ret = shim->read_2_2_msg(dig_port, in hdcp2_authentication_key_exchange()
1514 const struct intel_hdcp_shim *shim = hdcp->shim; in hdcp2_locality_check() local
1522 ret = shim->write_2_2_msg(dig_port, &msgs.lc_init, in hdcp2_locality_check()
1527 ret = shim->read_2_2_msg(dig_port, in hdcp2_locality_check()
1553 ret = hdcp->shim->write_2_2_msg(dig_port, &send_eks, in hdcp2_session_key_exchange()
1571 const struct intel_hdcp_shim *shim = hdcp->shim; in _hdcp2_propagate_stream_management_info() local
1591 ret = shim->write_2_2_msg(dig_port, &msgs.stream_manage, in _hdcp2_propagate_stream_management_info()
1596 ret = shim->read_2_2_msg(dig_port, HDCP_2_2_REP_STREAM_READY, in _hdcp2_propagate_stream_management_info()
1621 const struct intel_hdcp_shim *shim = hdcp->shim; in hdcp2_authenticate_repeater_topology() local
1626 ret = shim->read_2_2_msg(dig_port, HDCP_2_2_REP_SEND_RECVID_LIST, in hdcp2_authenticate_repeater_topology()
1679 ret = shim->write_2_2_msg(dig_port, &msgs.rep_ack, in hdcp2_authenticate_repeater_topology()
1692 const struct intel_hdcp_shim *shim = hdcp->shim; in hdcp2_authenticate_sink() local
1714 if (shim->config_stream_type) { in hdcp2_authenticate_sink()
1715 ret = shim->config_stream_type(dig_port, in hdcp2_authenticate_sink()
1752 if (hdcp->shim->stream_2_2_encryption) { in hdcp2_enable_stream_encryption()
1753 ret = hdcp->shim->stream_2_2_encryption(connector, true); in hdcp2_enable_stream_encryption()
1787 if (hdcp->shim->toggle_signalling) { in hdcp2_enable_encryption()
1788 ret = hdcp->shim->toggle_signalling(dig_port, cpu_transcoder, in hdcp2_enable_encryption()
1837 if (hdcp->shim->toggle_signalling) { in hdcp2_disable_encryption()
1838 ret = hdcp->shim->toggle_signalling(dig_port, cpu_transcoder, in hdcp2_disable_encryption()
1971 if (hdcp->shim->stream_2_2_encryption) { in _intel_hdcp2_disable()
1972 ret = hdcp->shim->stream_2_2_encryption(connector, false); in _intel_hdcp2_disable()
2031 ret = hdcp->shim->check_2_2_link(dig_port, connector); in intel_hdcp2_check_link()
2165 const struct intel_hdcp_shim *shim) in initialize_hdcp_port_data() argument
2188 data->protocol = (u8)shim->protocol; in initialize_hdcp_port_data()
2246 const struct intel_hdcp_shim *shim) in intel_hdcp2_init() argument
2252 ret = initialize_hdcp_port_data(connector, dig_port, shim); in intel_hdcp2_init()
2263 const struct intel_hdcp_shim *shim) in intel_hdcp_init() argument
2269 if (!shim) in intel_hdcp_init()
2273 intel_hdcp2_init(connector, dig_port, shim); in intel_hdcp_init()
2284 hdcp->shim = shim; in intel_hdcp_init()
2352 if (!hdcp->shim) in intel_hdcp_enable()
2425 if (!hdcp->shim) in intel_hdcp_disable()
2459 if (!connector->hdcp.shim) in intel_hdcp_update_pipe()
2533 if (!hdcp->shim) in intel_hdcp_cleanup()
2561 hdcp->shim = NULL; in intel_hdcp_cleanup()
2618 if (!hdcp->shim) in intel_hdcp_handle_cp_irq()