Lines Matching refs:output
31 struct mod_hdcp_output *output) in mod_hdcp_hdcp2_transition() argument
42 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
43 set_state_id(hdcp, output, HDCP_INITIALIZED); in mod_hdcp_hdcp2_transition()
45 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
46 set_state_id(hdcp, output, H2_A1_SEND_AKE_INIT); in mod_hdcp_hdcp2_transition()
54 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
57 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
60 set_watchdog_in_ms(hdcp, 100, output); in mod_hdcp_hdcp2_transition()
61 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
62 set_state_id(hdcp, output, H2_A1_VALIDATE_AKE_CERT); in mod_hdcp_hdcp2_transition()
74 fail_and_restart_in_ms(1000, &status, output); in mod_hdcp_hdcp2_transition()
77 callback_in_ms(10, output); in mod_hdcp_hdcp2_transition()
87 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
92 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
93 set_state_id(hdcp, output, H2_A1_SEND_STORED_KM); in mod_hdcp_hdcp2_transition()
95 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
96 set_state_id(hdcp, output, H2_A1_SEND_NO_STORED_KM); in mod_hdcp_hdcp2_transition()
101 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
105 set_watchdog_in_ms(hdcp, 2000, output); in mod_hdcp_hdcp2_transition()
107 set_watchdog_in_ms(hdcp, 1000, output); in mod_hdcp_hdcp2_transition()
108 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
109 set_state_id(hdcp, output, H2_A1_READ_H_PRIME); in mod_hdcp_hdcp2_transition()
116 fail_and_restart_in_ms(1000, &status, output); in mod_hdcp_hdcp2_transition()
119 callback_in_ms(100, output); in mod_hdcp_hdcp2_transition()
124 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
127 set_watchdog_in_ms(hdcp, 200, output); in mod_hdcp_hdcp2_transition()
128 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
129 set_state_id(hdcp, output, H2_A1_READ_PAIRING_INFO_AND_VALIDATE_H_PRIME); in mod_hdcp_hdcp2_transition()
138 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
141 callback_in_ms(20, output); in mod_hdcp_hdcp2_transition()
148 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
151 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
152 set_state_id(hdcp, output, H2_A2_LOCALITY_CHECK); in mod_hdcp_hdcp2_transition()
156 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
159 set_watchdog_in_ms(hdcp, 200, output); in mod_hdcp_hdcp2_transition()
160 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
161 set_state_id(hdcp, output, H2_A1_VALIDATE_H_PRIME); in mod_hdcp_hdcp2_transition()
168 fail_and_restart_in_ms(1000, &status, output); in mod_hdcp_hdcp2_transition()
171 callback_in_ms(20, output); in mod_hdcp_hdcp2_transition()
176 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
181 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
184 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
185 set_state_id(hdcp, output, H2_A2_LOCALITY_CHECK); in mod_hdcp_hdcp2_transition()
198 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
201 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
205 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
206 set_state_id(hdcp, output, H2_A3_EXCHANGE_KS_AND_TEST_FOR_REPEATER); in mod_hdcp_hdcp2_transition()
211 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
215 set_watchdog_in_ms(hdcp, 3000, output); in mod_hdcp_hdcp2_transition()
216 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
217 set_state_id(hdcp, output, H2_A6_WAIT_FOR_RX_ID_LIST); in mod_hdcp_hdcp2_transition()
222 callback_in_ms(210, output); in mod_hdcp_hdcp2_transition()
223 set_state_id(hdcp, output, H2_ENABLE_ENCRYPTION); in mod_hdcp_hdcp2_transition()
233 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
236 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
237 set_state_id(hdcp, output, H2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_transition()
240 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
243 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
244 set_state_id(hdcp, output, H2_A5_AUTHENTICATED); in mod_hdcp_hdcp2_transition()
245 set_auth_complete(hdcp, output); in mod_hdcp_hdcp2_transition()
250 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
253 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
254 set_state_id(hdcp, output, H2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_transition()
257 callback_in_ms(500, output); in mod_hdcp_hdcp2_transition()
263 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
273 fail_and_restart_in_ms(100, &status, output); in mod_hdcp_hdcp2_transition()
275 callback_in_ms(300, output); in mod_hdcp_hdcp2_transition()
280 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
281 set_state_id(hdcp, output, H2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_transition()
296 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
299 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
300 set_state_id(hdcp, output, H2_A9_SEND_STREAM_MANAGEMENT); in mod_hdcp_hdcp2_transition()
305 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
308 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
309 set_state_id(hdcp, output, H2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_transition()
313 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
316 set_watchdog_in_ms(hdcp, 100, output); in mod_hdcp_hdcp2_transition()
317 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
318 set_state_id(hdcp, output, H2_A9_VALIDATE_STREAM_READY); in mod_hdcp_hdcp2_transition()
323 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
326 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
327 set_state_id(hdcp, output, H2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_transition()
335 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
336 set_state_id(hdcp, output, H2_A9_SEND_STREAM_MANAGEMENT); in mod_hdcp_hdcp2_transition()
338 callback_in_ms(10, output); in mod_hdcp_hdcp2_transition()
349 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
352 callback_in_ms(0, output); in mod_hdcp_hdcp2_transition()
353 set_state_id(hdcp, output, H2_A9_SEND_STREAM_MANAGEMENT); in mod_hdcp_hdcp2_transition()
357 callback_in_ms(200, output); in mod_hdcp_hdcp2_transition()
358 set_state_id(hdcp, output, H2_ENABLE_ENCRYPTION); in mod_hdcp_hdcp2_transition()
362 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_transition()
372 struct mod_hdcp_output *output) in mod_hdcp_hdcp2_dp_transition() argument
383 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
384 set_state_id(hdcp, output, HDCP_INITIALIZED); in mod_hdcp_hdcp2_dp_transition()
386 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
387 set_state_id(hdcp, output, D2_A1_SEND_AKE_INIT); in mod_hdcp_hdcp2_dp_transition()
395 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
399 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
402 callback_in_ms(100, output); in mod_hdcp_hdcp2_dp_transition()
403 set_state_id(hdcp, output, D2_A1_VALIDATE_AKE_CERT); in mod_hdcp_hdcp2_dp_transition()
412 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
417 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
418 set_state_id(hdcp, output, D2_A1_SEND_STORED_KM); in mod_hdcp_hdcp2_dp_transition()
420 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
421 set_state_id(hdcp, output, D2_A1_SEND_NO_STORED_KM); in mod_hdcp_hdcp2_dp_transition()
426 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
430 set_watchdog_in_ms(hdcp, 2000, output); in mod_hdcp_hdcp2_dp_transition()
432 set_watchdog_in_ms(hdcp, 1000, output); in mod_hdcp_hdcp2_dp_transition()
433 set_state_id(hdcp, output, D2_A1_READ_H_PRIME); in mod_hdcp_hdcp2_dp_transition()
440 fail_and_restart_in_ms(1000, &status, output); in mod_hdcp_hdcp2_dp_transition()
445 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
448 set_watchdog_in_ms(hdcp, 200, output); in mod_hdcp_hdcp2_dp_transition()
449 set_state_id(hdcp, output, D2_A1_READ_PAIRING_INFO_AND_VALIDATE_H_PRIME); in mod_hdcp_hdcp2_dp_transition()
459 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
466 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
469 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
470 set_state_id(hdcp, output, D2_A2_LOCALITY_CHECK); in mod_hdcp_hdcp2_dp_transition()
474 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
477 set_watchdog_in_ms(hdcp, 200, output); in mod_hdcp_hdcp2_dp_transition()
478 set_state_id(hdcp, output, D2_A1_VALIDATE_H_PRIME); in mod_hdcp_hdcp2_dp_transition()
485 fail_and_restart_in_ms(1000, &status, output); in mod_hdcp_hdcp2_dp_transition()
490 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
495 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
498 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
499 set_state_id(hdcp, output, D2_A2_LOCALITY_CHECK); in mod_hdcp_hdcp2_dp_transition()
507 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
510 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
514 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
515 set_state_id(hdcp, output, D2_A34_EXCHANGE_KS_AND_TEST_FOR_REPEATER); in mod_hdcp_hdcp2_dp_transition()
520 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
524 set_watchdog_in_ms(hdcp, 3000, output); in mod_hdcp_hdcp2_dp_transition()
525 set_state_id(hdcp, output, D2_A6_WAIT_FOR_RX_ID_LIST); in mod_hdcp_hdcp2_dp_transition()
527 callback_in_ms(1, output); in mod_hdcp_hdcp2_dp_transition()
528 set_state_id(hdcp, output, D2_SEND_CONTENT_STREAM_TYPE); in mod_hdcp_hdcp2_dp_transition()
536 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
539 callback_in_ms(210, output); in mod_hdcp_hdcp2_dp_transition()
540 set_state_id(hdcp, output, D2_ENABLE_ENCRYPTION); in mod_hdcp_hdcp2_dp_transition()
550 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
553 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
554 set_state_id(hdcp, output, D2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_dp_transition()
558 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
561 set_state_id(hdcp, output, D2_A5_AUTHENTICATED); in mod_hdcp_hdcp2_dp_transition()
562 set_auth_complete(hdcp, output); in mod_hdcp_hdcp2_dp_transition()
567 fail_and_restart_in_ms(100, &status, output); in mod_hdcp_hdcp2_dp_transition()
572 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
575 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
576 set_state_id(hdcp, output, D2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_dp_transition()
585 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
590 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
595 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
596 set_state_id(hdcp, output, D2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_dp_transition()
613 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
616 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
617 set_state_id(hdcp, output, D2_A9_SEND_STREAM_MANAGEMENT); in mod_hdcp_hdcp2_dp_transition()
623 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
626 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
627 set_state_id(hdcp, output, D2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_dp_transition()
632 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
637 callback_in_ms(100, output); in mod_hdcp_hdcp2_dp_transition()
638 set_state_id(hdcp, output, D2_A9_VALIDATE_STREAM_READY); in mod_hdcp_hdcp2_dp_transition()
644 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
647 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
648 set_state_id(hdcp, output, D2_A78_VERIFY_RX_ID_LIST_AND_SEND_ACK); in mod_hdcp_hdcp2_dp_transition()
658 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()
661 callback_in_ms(0, output); in mod_hdcp_hdcp2_dp_transition()
662 set_state_id(hdcp, output, D2_A9_SEND_STREAM_MANAGEMENT); in mod_hdcp_hdcp2_dp_transition()
668 callback_in_ms(200, output); in mod_hdcp_hdcp2_dp_transition()
669 set_state_id(hdcp, output, D2_ENABLE_ENCRYPTION); in mod_hdcp_hdcp2_dp_transition()
673 fail_and_restart_in_ms(0, &status, output); in mod_hdcp_hdcp2_dp_transition()