Lines Matching full:hdcp

26 #include "hdcp.h"
40 /* HDCP 1.4 */
58 /* HDCP 2.2 */
152 static enum mod_hdcp_status read(struct mod_hdcp *hdcp, in read() argument
165 if (is_dp_hdcp(hdcp)) { in read()
172 success = hdcp->config.ddc.funcs.read_dpcd(hdcp->config.ddc.handle, in read()
188 success = hdcp->config.ddc.funcs.read_i2c( in read()
189 hdcp->config.ddc.handle, in read()
199 static enum mod_hdcp_status read_repeatedly(struct mod_hdcp *hdcp, in read_repeatedly() argument
211 status = read(hdcp, msg_id, buf + data_offset, cur_size); in read_repeatedly()
223 static enum mod_hdcp_status write(struct mod_hdcp *hdcp, in write() argument
236 if (is_dp_hdcp(hdcp)) { in write()
243 success = hdcp->config.ddc.funcs.write_dpcd( in write()
244 hdcp->config.ddc.handle, in write()
260 hdcp->buf[0] = hdcp_i2c_offsets[msg_id]; in write()
261 memmove(&hdcp->buf[1], buf, buf_len); in write()
262 success = hdcp->config.ddc.funcs.write_i2c( in write()
263 hdcp->config.ddc.handle, in write()
265 hdcp->buf, in write()
272 enum mod_hdcp_status mod_hdcp_read_bksv(struct mod_hdcp *hdcp) in mod_hdcp_read_bksv() argument
274 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BKSV, in mod_hdcp_read_bksv()
275 hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_read_bksv()
276 sizeof(hdcp->auth.msg.hdcp1.bksv)); in mod_hdcp_read_bksv()
279 enum mod_hdcp_status mod_hdcp_read_bcaps(struct mod_hdcp *hdcp) in mod_hdcp_read_bcaps() argument
281 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BCAPS, in mod_hdcp_read_bcaps()
282 &hdcp->auth.msg.hdcp1.bcaps, in mod_hdcp_read_bcaps()
283 sizeof(hdcp->auth.msg.hdcp1.bcaps)); in mod_hdcp_read_bcaps()
286 enum mod_hdcp_status mod_hdcp_read_bstatus(struct mod_hdcp *hdcp) in mod_hdcp_read_bstatus() argument
290 if (is_dp_hdcp(hdcp)) in mod_hdcp_read_bstatus()
291 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BSTATUS, in mod_hdcp_read_bstatus()
292 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_read_bstatus()
295 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BSTATUS, in mod_hdcp_read_bstatus()
296 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_read_bstatus()
297 sizeof(hdcp->auth.msg.hdcp1.bstatus)); in mod_hdcp_read_bstatus()
301 enum mod_hdcp_status mod_hdcp_read_r0p(struct mod_hdcp *hdcp) in mod_hdcp_read_r0p() argument
303 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_RI_R0, in mod_hdcp_read_r0p()
304 (uint8_t *)&hdcp->auth.msg.hdcp1.r0p, in mod_hdcp_read_r0p()
305 sizeof(hdcp->auth.msg.hdcp1.r0p)); in mod_hdcp_read_r0p()
309 enum mod_hdcp_status mod_hdcp_read_ksvlist(struct mod_hdcp *hdcp) in mod_hdcp_read_ksvlist() argument
313 if (is_dp_hdcp(hdcp)) in mod_hdcp_read_ksvlist()
314 status = read_repeatedly(hdcp, MOD_HDCP_MESSAGE_ID_READ_KSV_FIFO, in mod_hdcp_read_ksvlist()
315 hdcp->auth.msg.hdcp1.ksvlist, in mod_hdcp_read_ksvlist()
316 hdcp->auth.msg.hdcp1.ksvlist_size, in mod_hdcp_read_ksvlist()
319 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_KSV_FIFO, in mod_hdcp_read_ksvlist()
320 (uint8_t *)&hdcp->auth.msg.hdcp1.ksvlist, in mod_hdcp_read_ksvlist()
321 hdcp->auth.msg.hdcp1.ksvlist_size); in mod_hdcp_read_ksvlist()
325 enum mod_hdcp_status mod_hdcp_read_vp(struct mod_hdcp *hdcp) in mod_hdcp_read_vp() argument
329 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_0, in mod_hdcp_read_vp()
330 &hdcp->auth.msg.hdcp1.vp[0], 4); in mod_hdcp_read_vp()
334 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_1, in mod_hdcp_read_vp()
335 &hdcp->auth.msg.hdcp1.vp[4], 4); in mod_hdcp_read_vp()
339 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_2, in mod_hdcp_read_vp()
340 &hdcp->auth.msg.hdcp1.vp[8], 4); in mod_hdcp_read_vp()
344 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_3, in mod_hdcp_read_vp()
345 &hdcp->auth.msg.hdcp1.vp[12], 4); in mod_hdcp_read_vp()
349 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_4, in mod_hdcp_read_vp()
350 &hdcp->auth.msg.hdcp1.vp[16], 4); in mod_hdcp_read_vp()
355 enum mod_hdcp_status mod_hdcp_read_binfo(struct mod_hdcp *hdcp) in mod_hdcp_read_binfo() argument
359 if (is_dp_hdcp(hdcp)) in mod_hdcp_read_binfo()
360 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BINFO, in mod_hdcp_read_binfo()
361 (uint8_t *)&hdcp->auth.msg.hdcp1.binfo_dp, in mod_hdcp_read_binfo()
362 sizeof(hdcp->auth.msg.hdcp1.binfo_dp)); in mod_hdcp_read_binfo()
369 enum mod_hdcp_status mod_hdcp_write_aksv(struct mod_hdcp *hdcp) in mod_hdcp_write_aksv() argument
371 return write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKSV, in mod_hdcp_write_aksv()
372 hdcp->auth.msg.hdcp1.aksv, in mod_hdcp_write_aksv()
373 sizeof(hdcp->auth.msg.hdcp1.aksv)); in mod_hdcp_write_aksv()
376 enum mod_hdcp_status mod_hdcp_write_ainfo(struct mod_hdcp *hdcp) in mod_hdcp_write_ainfo() argument
378 return write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AINFO, in mod_hdcp_write_ainfo()
379 &hdcp->auth.msg.hdcp1.ainfo, in mod_hdcp_write_ainfo()
380 sizeof(hdcp->auth.msg.hdcp1.ainfo)); in mod_hdcp_write_ainfo()
383 enum mod_hdcp_status mod_hdcp_write_an(struct mod_hdcp *hdcp) in mod_hdcp_write_an() argument
385 return write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AN, in mod_hdcp_write_an()
386 hdcp->auth.msg.hdcp1.an, in mod_hdcp_write_an()
387 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_write_an()
390 enum mod_hdcp_status mod_hdcp_read_hdcp2version(struct mod_hdcp *hdcp) in mod_hdcp_read_hdcp2version() argument
394 if (is_dp_hdcp(hdcp)) in mod_hdcp_read_hdcp2version()
397 status = read(hdcp, MOD_HDCP_MESSAGE_ID_HDCP2VERSION, in mod_hdcp_read_hdcp2version()
398 &hdcp->auth.msg.hdcp2.hdcp2version_hdmi, in mod_hdcp_read_hdcp2version()
399 sizeof(hdcp->auth.msg.hdcp2.hdcp2version_hdmi)); in mod_hdcp_read_hdcp2version()
404 enum mod_hdcp_status mod_hdcp_read_rxcaps(struct mod_hdcp *hdcp) in mod_hdcp_read_rxcaps() argument
408 if (!is_dp_hdcp(hdcp)) in mod_hdcp_read_rxcaps()
411 status = read(hdcp, MOD_HDCP_MESSAGE_ID_RX_CAPS, in mod_hdcp_read_rxcaps()
412 hdcp->auth.msg.hdcp2.rxcaps_dp, in mod_hdcp_read_rxcaps()
413 sizeof(hdcp->auth.msg.hdcp2.rxcaps_dp)); in mod_hdcp_read_rxcaps()
418 enum mod_hdcp_status mod_hdcp_read_rxstatus(struct mod_hdcp *hdcp) in mod_hdcp_read_rxstatus() argument
422 if (is_dp_hdcp(hdcp)) { in mod_hdcp_read_rxstatus()
423 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_RXSTATUS, in mod_hdcp_read_rxstatus()
424 &hdcp->auth.msg.hdcp2.rxstatus_dp, in mod_hdcp_read_rxstatus()
427 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_RXSTATUS, in mod_hdcp_read_rxstatus()
428 (uint8_t *)&hdcp->auth.msg.hdcp2.rxstatus, in mod_hdcp_read_rxstatus()
429 sizeof(hdcp->auth.msg.hdcp2.rxstatus)); in mod_hdcp_read_rxstatus()
434 enum mod_hdcp_status mod_hdcp_read_ake_cert(struct mod_hdcp *hdcp) in mod_hdcp_read_ake_cert() argument
438 if (is_dp_hdcp(hdcp)) { in mod_hdcp_read_ake_cert()
439 hdcp->auth.msg.hdcp2.ake_cert[0] = HDCP_2_2_AKE_SEND_CERT; in mod_hdcp_read_ake_cert()
440 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_AKE_SEND_CERT, in mod_hdcp_read_ake_cert()
441 hdcp->auth.msg.hdcp2.ake_cert+1, in mod_hdcp_read_ake_cert()
442 sizeof(hdcp->auth.msg.hdcp2.ake_cert)-1); in mod_hdcp_read_ake_cert()
445 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_AKE_SEND_CERT, in mod_hdcp_read_ake_cert()
446 hdcp->auth.msg.hdcp2.ake_cert, in mod_hdcp_read_ake_cert()
447 sizeof(hdcp->auth.msg.hdcp2.ake_cert)); in mod_hdcp_read_ake_cert()
452 enum mod_hdcp_status mod_hdcp_read_h_prime(struct mod_hdcp *hdcp) in mod_hdcp_read_h_prime() argument
456 if (is_dp_hdcp(hdcp)) { in mod_hdcp_read_h_prime()
457 hdcp->auth.msg.hdcp2.ake_h_prime[0] = HDCP_2_2_AKE_SEND_HPRIME; in mod_hdcp_read_h_prime()
458 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_AKE_SEND_H_PRIME, in mod_hdcp_read_h_prime()
459 hdcp->auth.msg.hdcp2.ake_h_prime+1, in mod_hdcp_read_h_prime()
460 sizeof(hdcp->auth.msg.hdcp2.ake_h_prime)-1); in mod_hdcp_read_h_prime()
463 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_AKE_SEND_H_PRIME, in mod_hdcp_read_h_prime()
464 hdcp->auth.msg.hdcp2.ake_h_prime, in mod_hdcp_read_h_prime()
465 sizeof(hdcp->auth.msg.hdcp2.ake_h_prime)); in mod_hdcp_read_h_prime()
470 enum mod_hdcp_status mod_hdcp_read_pairing_info(struct mod_hdcp *hdcp) in mod_hdcp_read_pairing_info() argument
474 if (is_dp_hdcp(hdcp)) { in mod_hdcp_read_pairing_info()
475 hdcp->auth.msg.hdcp2.ake_pairing_info[0] = HDCP_2_2_AKE_SEND_PAIRING_INFO; in mod_hdcp_read_pairing_info()
476 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_AKE_SEND_PAIRING_INFO, in mod_hdcp_read_pairing_info()
477 hdcp->auth.msg.hdcp2.ake_pairing_info+1, in mod_hdcp_read_pairing_info()
478 sizeof(hdcp->auth.msg.hdcp2.ake_pairing_info)-1); in mod_hdcp_read_pairing_info()
481 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_AKE_SEND_PAIRING_INFO, in mod_hdcp_read_pairing_info()
482 hdcp->auth.msg.hdcp2.ake_pairing_info, in mod_hdcp_read_pairing_info()
483 sizeof(hdcp->auth.msg.hdcp2.ake_pairing_info)); in mod_hdcp_read_pairing_info()
488 enum mod_hdcp_status mod_hdcp_read_l_prime(struct mod_hdcp *hdcp) in mod_hdcp_read_l_prime() argument
492 if (is_dp_hdcp(hdcp)) { in mod_hdcp_read_l_prime()
493 hdcp->auth.msg.hdcp2.lc_l_prime[0] = HDCP_2_2_LC_SEND_LPRIME; in mod_hdcp_read_l_prime()
494 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_LC_SEND_L_PRIME, in mod_hdcp_read_l_prime()
495 hdcp->auth.msg.hdcp2.lc_l_prime+1, in mod_hdcp_read_l_prime()
496 sizeof(hdcp->auth.msg.hdcp2.lc_l_prime)-1); in mod_hdcp_read_l_prime()
499 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_LC_SEND_L_PRIME, in mod_hdcp_read_l_prime()
500 hdcp->auth.msg.hdcp2.lc_l_prime, in mod_hdcp_read_l_prime()
501 sizeof(hdcp->auth.msg.hdcp2.lc_l_prime)); in mod_hdcp_read_l_prime()
506 enum mod_hdcp_status mod_hdcp_read_rx_id_list(struct mod_hdcp *hdcp) in mod_hdcp_read_rx_id_list() argument
510 if (is_dp_hdcp(hdcp)) { in mod_hdcp_read_rx_id_list()
515 hdcp->auth.msg.hdcp2.rx_id_list[0] = HDCP_2_2_REP_SEND_RECVID_LIST; in mod_hdcp_read_rx_id_list()
516 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_REPEATER_AUTH_SEND_RECEIVERID_LIST, in mod_hdcp_read_rx_id_list()
517 hdcp->auth.msg.hdcp2.rx_id_list+1, in mod_hdcp_read_rx_id_list()
521 device_count = HDCP_2_2_DEV_COUNT_LO(hdcp->auth.msg.hdcp2.rx_id_list[2]) + in mod_hdcp_read_rx_id_list()
522 (HDCP_2_2_DEV_COUNT_HI(hdcp->auth.msg.hdcp2.rx_id_list[1]) << 4); in mod_hdcp_read_rx_id_list()
524 (sizeof(hdcp->auth.msg.hdcp2.rx_id_list) - 1)); in mod_hdcp_read_rx_id_list()
525 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_REPEATER_AUTH_SEND_RECEIVERID_LIST_PART2, in mod_hdcp_read_rx_id_list()
526 hdcp->auth.msg.hdcp2.rx_id_list + 1 + bytes_read, in mod_hdcp_read_rx_id_list()
530 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_REPEATER_AUTH_SEND_RECEIVERID_LIST, in mod_hdcp_read_rx_id_list()
531 hdcp->auth.msg.hdcp2.rx_id_list, in mod_hdcp_read_rx_id_list()
532 hdcp->auth.msg.hdcp2.rx_id_list_size); in mod_hdcp_read_rx_id_list()
537 enum mod_hdcp_status mod_hdcp_read_stream_ready(struct mod_hdcp *hdcp) in mod_hdcp_read_stream_ready() argument
541 if (is_dp_hdcp(hdcp)) { in mod_hdcp_read_stream_ready()
542 hdcp->auth.msg.hdcp2.repeater_auth_stream_ready[0] = HDCP_2_2_REP_STREAM_READY; in mod_hdcp_read_stream_ready()
543 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_REPEATER_AUTH_STREAM_READY, in mod_hdcp_read_stream_ready()
544 hdcp->auth.msg.hdcp2.repeater_auth_stream_ready+1, in mod_hdcp_read_stream_ready()
545 sizeof(hdcp->auth.msg.hdcp2.repeater_auth_stream_ready)-1); in mod_hdcp_read_stream_ready()
548 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_REPEATER_AUTH_STREAM_READY, in mod_hdcp_read_stream_ready()
549 hdcp->auth.msg.hdcp2.repeater_auth_stream_ready, in mod_hdcp_read_stream_ready()
550 sizeof(hdcp->auth.msg.hdcp2.repeater_auth_stream_ready)); in mod_hdcp_read_stream_ready()
555 enum mod_hdcp_status mod_hdcp_write_ake_init(struct mod_hdcp *hdcp) in mod_hdcp_write_ake_init() argument
559 if (is_dp_hdcp(hdcp)) in mod_hdcp_write_ake_init()
560 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_INIT, in mod_hdcp_write_ake_init()
561 hdcp->auth.msg.hdcp2.ake_init+1, in mod_hdcp_write_ake_init()
562 sizeof(hdcp->auth.msg.hdcp2.ake_init)-1); in mod_hdcp_write_ake_init()
564 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_INIT, in mod_hdcp_write_ake_init()
565 hdcp->auth.msg.hdcp2.ake_init, in mod_hdcp_write_ake_init()
566 sizeof(hdcp->auth.msg.hdcp2.ake_init)); in mod_hdcp_write_ake_init()
570 enum mod_hdcp_status mod_hdcp_write_no_stored_km(struct mod_hdcp *hdcp) in mod_hdcp_write_no_stored_km() argument
574 if (is_dp_hdcp(hdcp)) in mod_hdcp_write_no_stored_km()
575 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_NO_STORED_KM, in mod_hdcp_write_no_stored_km()
576 hdcp->auth.msg.hdcp2.ake_no_stored_km+1, in mod_hdcp_write_no_stored_km()
577 sizeof(hdcp->auth.msg.hdcp2.ake_no_stored_km)-1); in mod_hdcp_write_no_stored_km()
579 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_NO_STORED_KM, in mod_hdcp_write_no_stored_km()
580 hdcp->auth.msg.hdcp2.ake_no_stored_km, in mod_hdcp_write_no_stored_km()
581 sizeof(hdcp->auth.msg.hdcp2.ake_no_stored_km)); in mod_hdcp_write_no_stored_km()
585 enum mod_hdcp_status mod_hdcp_write_stored_km(struct mod_hdcp *hdcp) in mod_hdcp_write_stored_km() argument
589 if (is_dp_hdcp(hdcp)) in mod_hdcp_write_stored_km()
590 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_STORED_KM, in mod_hdcp_write_stored_km()
591 hdcp->auth.msg.hdcp2.ake_stored_km+1, in mod_hdcp_write_stored_km()
592 sizeof(hdcp->auth.msg.hdcp2.ake_stored_km)-1); in mod_hdcp_write_stored_km()
594 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_STORED_KM, in mod_hdcp_write_stored_km()
595 hdcp->auth.msg.hdcp2.ake_stored_km, in mod_hdcp_write_stored_km()
596 sizeof(hdcp->auth.msg.hdcp2.ake_stored_km)); in mod_hdcp_write_stored_km()
600 enum mod_hdcp_status mod_hdcp_write_lc_init(struct mod_hdcp *hdcp) in mod_hdcp_write_lc_init() argument
604 if (is_dp_hdcp(hdcp)) in mod_hdcp_write_lc_init()
605 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_LC_INIT, in mod_hdcp_write_lc_init()
606 hdcp->auth.msg.hdcp2.lc_init+1, in mod_hdcp_write_lc_init()
607 sizeof(hdcp->auth.msg.hdcp2.lc_init)-1); in mod_hdcp_write_lc_init()
609 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_LC_INIT, in mod_hdcp_write_lc_init()
610 hdcp->auth.msg.hdcp2.lc_init, in mod_hdcp_write_lc_init()
611 sizeof(hdcp->auth.msg.hdcp2.lc_init)); in mod_hdcp_write_lc_init()
615 enum mod_hdcp_status mod_hdcp_write_eks(struct mod_hdcp *hdcp) in mod_hdcp_write_eks() argument
619 if (is_dp_hdcp(hdcp)) in mod_hdcp_write_eks()
620 status = write(hdcp, in mod_hdcp_write_eks()
622 hdcp->auth.msg.hdcp2.ske_eks+1, in mod_hdcp_write_eks()
623 sizeof(hdcp->auth.msg.hdcp2.ske_eks)-1); in mod_hdcp_write_eks()
625 status = write(hdcp, in mod_hdcp_write_eks()
627 hdcp->auth.msg.hdcp2.ske_eks, in mod_hdcp_write_eks()
628 sizeof(hdcp->auth.msg.hdcp2.ske_eks)); in mod_hdcp_write_eks()
632 enum mod_hdcp_status mod_hdcp_write_repeater_auth_ack(struct mod_hdcp *hdcp) in mod_hdcp_write_repeater_auth_ack() argument
636 if (is_dp_hdcp(hdcp)) in mod_hdcp_write_repeater_auth_ack()
637 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_REPEATER_AUTH_SEND_ACK, in mod_hdcp_write_repeater_auth_ack()
638 hdcp->auth.msg.hdcp2.repeater_auth_ack+1, in mod_hdcp_write_repeater_auth_ack()
639 sizeof(hdcp->auth.msg.hdcp2.repeater_auth_ack)-1); in mod_hdcp_write_repeater_auth_ack()
641 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_REPEATER_AUTH_SEND_ACK, in mod_hdcp_write_repeater_auth_ack()
642 hdcp->auth.msg.hdcp2.repeater_auth_ack, in mod_hdcp_write_repeater_auth_ack()
643 sizeof(hdcp->auth.msg.hdcp2.repeater_auth_ack)); in mod_hdcp_write_repeater_auth_ack()
647 enum mod_hdcp_status mod_hdcp_write_stream_manage(struct mod_hdcp *hdcp) in mod_hdcp_write_stream_manage() argument
651 if (is_dp_hdcp(hdcp)) in mod_hdcp_write_stream_manage()
652 status = write(hdcp, in mod_hdcp_write_stream_manage()
654 hdcp->auth.msg.hdcp2.repeater_auth_stream_manage+1, in mod_hdcp_write_stream_manage()
655 hdcp->auth.msg.hdcp2.stream_manage_size-1); in mod_hdcp_write_stream_manage()
657 status = write(hdcp, in mod_hdcp_write_stream_manage()
659 hdcp->auth.msg.hdcp2.repeater_auth_stream_manage, in mod_hdcp_write_stream_manage()
660 hdcp->auth.msg.hdcp2.stream_manage_size); in mod_hdcp_write_stream_manage()
664 enum mod_hdcp_status mod_hdcp_write_content_type(struct mod_hdcp *hdcp) in mod_hdcp_write_content_type() argument
668 if (is_dp_hdcp(hdcp)) in mod_hdcp_write_content_type()
669 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_CONTENT_STREAM_TYPE, in mod_hdcp_write_content_type()
670 hdcp->auth.msg.hdcp2.content_stream_type_dp+1, in mod_hdcp_write_content_type()
671 sizeof(hdcp->auth.msg.hdcp2.content_stream_type_dp)-1); in mod_hdcp_write_content_type()
677 enum mod_hdcp_status mod_hdcp_clear_cp_irq_status(struct mod_hdcp *hdcp) in mod_hdcp_clear_cp_irq_status() argument
682 if (is_dp_hdcp(hdcp)) { in mod_hdcp_clear_cp_irq_status()
683 uint32_t cp_irq_addrs = (hdcp->connection.link.dp.rev >= 0x14) in mod_hdcp_clear_cp_irq_status()
685 return hdcp->config.ddc.funcs.write_dpcd(hdcp->config.ddc.handle, cp_irq_addrs, in mod_hdcp_clear_cp_irq_status()