Lines Matching refs:hdcp

289 typedef enum mod_hdcp_status (*mod_hdcp_action)(struct mod_hdcp *hdcp);
292 enum mod_hdcp_status *status, struct mod_hdcp *hdcp, char *str);
293 enum mod_hdcp_status mod_hdcp_hdcp1_execution(struct mod_hdcp *hdcp,
296 enum mod_hdcp_status mod_hdcp_hdcp1_dp_execution(struct mod_hdcp *hdcp,
299 enum mod_hdcp_status mod_hdcp_hdcp1_transition(struct mod_hdcp *hdcp,
303 enum mod_hdcp_status mod_hdcp_hdcp1_dp_transition(struct mod_hdcp *hdcp,
309 enum mod_hdcp_status mod_hdcp_hdcp2_execution(struct mod_hdcp *hdcp,
312 enum mod_hdcp_status mod_hdcp_hdcp2_dp_execution(struct mod_hdcp *hdcp,
315 enum mod_hdcp_status mod_hdcp_hdcp2_transition(struct mod_hdcp *hdcp,
319 enum mod_hdcp_status mod_hdcp_hdcp2_dp_transition(struct mod_hdcp *hdcp,
327 void mod_hdcp_log_ddc_trace(struct mod_hdcp *hdcp);
332 struct mod_hdcp *hdcp, struct mod_hdcp_display *display);
334 struct mod_hdcp *hdcp, uint8_t index);
335 enum mod_hdcp_status mod_hdcp_hdcp1_create_session(struct mod_hdcp *hdcp);
336 enum mod_hdcp_status mod_hdcp_hdcp1_destroy_session(struct mod_hdcp *hdcp);
337 enum mod_hdcp_status mod_hdcp_hdcp1_validate_rx(struct mod_hdcp *hdcp);
338 enum mod_hdcp_status mod_hdcp_hdcp1_enable_encryption(struct mod_hdcp *hdcp);
339 enum mod_hdcp_status mod_hdcp_hdcp1_validate_ksvlist_vp(struct mod_hdcp *hdcp);
341 struct mod_hdcp *hdcp);
342 enum mod_hdcp_status mod_hdcp_hdcp1_link_maintenance(struct mod_hdcp *hdcp);
343 enum mod_hdcp_status mod_hdcp_hdcp2_create_session(struct mod_hdcp *hdcp);
344 enum mod_hdcp_status mod_hdcp_hdcp2_destroy_session(struct mod_hdcp *hdcp);
345 enum mod_hdcp_status mod_hdcp_hdcp2_prepare_ake_init(struct mod_hdcp *hdcp);
346 enum mod_hdcp_status mod_hdcp_hdcp2_validate_ake_cert(struct mod_hdcp *hdcp);
347 enum mod_hdcp_status mod_hdcp_hdcp2_validate_h_prime(struct mod_hdcp *hdcp);
348 enum mod_hdcp_status mod_hdcp_hdcp2_prepare_lc_init(struct mod_hdcp *hdcp);
349 enum mod_hdcp_status mod_hdcp_hdcp2_validate_l_prime(struct mod_hdcp *hdcp);
350 enum mod_hdcp_status mod_hdcp_hdcp2_prepare_eks(struct mod_hdcp *hdcp);
351 enum mod_hdcp_status mod_hdcp_hdcp2_enable_encryption(struct mod_hdcp *hdcp);
352 enum mod_hdcp_status mod_hdcp_hdcp2_validate_rx_id_list(struct mod_hdcp *hdcp);
354 struct mod_hdcp *hdcp);
356 struct mod_hdcp *hdcp);
358 struct mod_hdcp *hdcp);
361 enum mod_hdcp_status mod_hdcp_read_bksv(struct mod_hdcp *hdcp);
362 enum mod_hdcp_status mod_hdcp_read_bcaps(struct mod_hdcp *hdcp);
363 enum mod_hdcp_status mod_hdcp_read_bstatus(struct mod_hdcp *hdcp);
364 enum mod_hdcp_status mod_hdcp_read_r0p(struct mod_hdcp *hdcp);
365 enum mod_hdcp_status mod_hdcp_read_ksvlist(struct mod_hdcp *hdcp);
366 enum mod_hdcp_status mod_hdcp_read_vp(struct mod_hdcp *hdcp);
367 enum mod_hdcp_status mod_hdcp_read_binfo(struct mod_hdcp *hdcp);
368 enum mod_hdcp_status mod_hdcp_write_aksv(struct mod_hdcp *hdcp);
369 enum mod_hdcp_status mod_hdcp_write_ainfo(struct mod_hdcp *hdcp);
370 enum mod_hdcp_status mod_hdcp_write_an(struct mod_hdcp *hdcp);
371 enum mod_hdcp_status mod_hdcp_read_hdcp2version(struct mod_hdcp *hdcp);
372 enum mod_hdcp_status mod_hdcp_read_rxcaps(struct mod_hdcp *hdcp);
373 enum mod_hdcp_status mod_hdcp_read_rxstatus(struct mod_hdcp *hdcp);
374 enum mod_hdcp_status mod_hdcp_read_ake_cert(struct mod_hdcp *hdcp);
375 enum mod_hdcp_status mod_hdcp_read_h_prime(struct mod_hdcp *hdcp);
376 enum mod_hdcp_status mod_hdcp_read_pairing_info(struct mod_hdcp *hdcp);
377 enum mod_hdcp_status mod_hdcp_read_l_prime(struct mod_hdcp *hdcp);
378 enum mod_hdcp_status mod_hdcp_read_rx_id_list(struct mod_hdcp *hdcp);
379 enum mod_hdcp_status mod_hdcp_read_stream_ready(struct mod_hdcp *hdcp);
380 enum mod_hdcp_status mod_hdcp_write_ake_init(struct mod_hdcp *hdcp);
381 enum mod_hdcp_status mod_hdcp_write_no_stored_km(struct mod_hdcp *hdcp);
382 enum mod_hdcp_status mod_hdcp_write_stored_km(struct mod_hdcp *hdcp);
383 enum mod_hdcp_status mod_hdcp_write_lc_init(struct mod_hdcp *hdcp);
384 enum mod_hdcp_status mod_hdcp_write_eks(struct mod_hdcp *hdcp);
385 enum mod_hdcp_status mod_hdcp_write_repeater_auth_ack(struct mod_hdcp *hdcp);
386 enum mod_hdcp_status mod_hdcp_write_stream_manage(struct mod_hdcp *hdcp);
387 enum mod_hdcp_status mod_hdcp_write_content_type(struct mod_hdcp *hdcp);
388 enum mod_hdcp_status mod_hdcp_clear_cp_irq_status(struct mod_hdcp *hdcp);
391 static inline uint8_t is_dp_hdcp(struct mod_hdcp *hdcp) in is_dp_hdcp() argument
393 return (hdcp->connection.link.mode == MOD_HDCP_MODE_DP); in is_dp_hdcp()
396 static inline uint8_t is_dp_mst_hdcp(struct mod_hdcp *hdcp) in is_dp_mst_hdcp() argument
398 return (hdcp->connection.link.mode == MOD_HDCP_MODE_DP && in is_dp_mst_hdcp()
399 hdcp->connection.link.dp.mst_enabled); in is_dp_mst_hdcp()
402 static inline uint8_t is_hdmi_dvi_sl_hdcp(struct mod_hdcp *hdcp) in is_hdmi_dvi_sl_hdcp() argument
404 return (hdcp->connection.link.mode == MOD_HDCP_MODE_DEFAULT); in is_hdmi_dvi_sl_hdcp()
408 static inline uint8_t current_state(struct mod_hdcp *hdcp) in current_state() argument
410 return hdcp->state.id; in current_state()
413 static inline void set_state_id(struct mod_hdcp *hdcp, in set_state_id() argument
416 memset(&hdcp->state, 0, sizeof(hdcp->state)); in set_state_id()
417 hdcp->state.id = id; in set_state_id()
421 HDCP_NEXT_STATE_TRACE(hdcp, id, output); in set_state_id()
424 static inline uint8_t is_in_hdcp1_states(struct mod_hdcp *hdcp) in is_in_hdcp1_states() argument
426 return (current_state(hdcp) > HDCP1_STATE_START && in is_in_hdcp1_states()
427 current_state(hdcp) <= HDCP1_STATE_END); in is_in_hdcp1_states()
430 static inline uint8_t is_in_hdcp1_dp_states(struct mod_hdcp *hdcp) in is_in_hdcp1_dp_states() argument
432 return (current_state(hdcp) > HDCP1_DP_STATE_START && in is_in_hdcp1_dp_states()
433 current_state(hdcp) <= HDCP1_DP_STATE_END); in is_in_hdcp1_dp_states()
436 static inline uint8_t is_in_hdcp2_states(struct mod_hdcp *hdcp) in is_in_hdcp2_states() argument
438 return (current_state(hdcp) > HDCP2_STATE_START && in is_in_hdcp2_states()
439 current_state(hdcp) <= HDCP2_STATE_END); in is_in_hdcp2_states()
442 static inline uint8_t is_in_hdcp2_dp_states(struct mod_hdcp *hdcp) in is_in_hdcp2_dp_states() argument
444 return (current_state(hdcp) > HDCP2_DP_STATE_START && in is_in_hdcp2_dp_states()
445 current_state(hdcp) <= HDCP2_DP_STATE_END); in is_in_hdcp2_dp_states()
448 static inline uint8_t is_in_authenticated_states(struct mod_hdcp *hdcp) in is_in_authenticated_states() argument
450 return (current_state(hdcp) == D1_A4_AUTHENTICATED || in is_in_authenticated_states()
451 current_state(hdcp) == H1_A45_AUTHENTICATED || in is_in_authenticated_states()
452 current_state(hdcp) == D2_A5_AUTHENTICATED || in is_in_authenticated_states()
453 current_state(hdcp) == H2_A5_AUTHENTICATED); in is_in_authenticated_states()
456 static inline uint8_t is_hdcp1(struct mod_hdcp *hdcp) in is_hdcp1() argument
458 return (is_in_hdcp1_states(hdcp) || is_in_hdcp1_dp_states(hdcp)); in is_hdcp1()
461 static inline uint8_t is_hdcp2(struct mod_hdcp *hdcp) in is_hdcp2() argument
463 return (is_in_hdcp2_states(hdcp) || is_in_hdcp2_dp_states(hdcp)); in is_hdcp2()
466 static inline uint8_t is_in_cp_not_desired_state(struct mod_hdcp *hdcp) in is_in_cp_not_desired_state() argument
468 return current_state(hdcp) == HDCP_CP_NOT_DESIRED; in is_in_cp_not_desired_state()
471 static inline uint8_t is_in_initialized_state(struct mod_hdcp *hdcp) in is_in_initialized_state() argument
473 return current_state(hdcp) == HDCP_INITIALIZED; in is_in_initialized_state()
477 static inline void increment_stay_counter(struct mod_hdcp *hdcp) in increment_stay_counter() argument
479 hdcp->state.stay_count++; in increment_stay_counter()
499 static inline void set_watchdog_in_ms(struct mod_hdcp *hdcp, uint16_t time, in set_watchdog_in_ms() argument
506 static inline void set_auth_complete(struct mod_hdcp *hdcp, in set_auth_complete() argument
510 mod_hdcp_log_ddc_trace(hdcp); in set_auth_complete()
524 static inline uint8_t get_active_display_count(struct mod_hdcp *hdcp) in get_active_display_count() argument
530 if (is_display_active(&hdcp->displays[i])) in get_active_display_count()
536 struct mod_hdcp *hdcp) in get_first_active_display() argument
542 if (is_display_active(&hdcp->displays[i])) { in get_first_active_display()
543 display = &hdcp->displays[i]; in get_first_active_display()
550 struct mod_hdcp *hdcp, uint8_t index) in get_active_display_at_index() argument
556 if (hdcp->displays[i].index == index && in get_active_display_at_index()
557 is_display_active(&hdcp->displays[i])) { in get_active_display_at_index()
558 display = &hdcp->displays[i]; in get_active_display_at_index()
565 struct mod_hdcp *hdcp) in get_empty_display_container() argument
571 if (!is_display_active(&hdcp->displays[i])) { in get_empty_display_container()
572 display = &hdcp->displays[i]; in get_empty_display_container()
578 static inline void reset_retry_counts(struct mod_hdcp *hdcp) in reset_retry_counts() argument
580 hdcp->connection.hdcp1_retry_count = 0; in reset_retry_counts()
581 hdcp->connection.hdcp2_retry_count = 0; in reset_retry_counts()