Lines Matching refs:hdcp_ctrl
156 static int msm_hdmi_hdcp_scm_wr(struct hdmi_hdcp_ctrl *hdcp_ctrl, u32 *preg, in msm_hdmi_hdcp_scm_wr() argument
159 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_scm_wr()
166 if (hdcp_ctrl->tz_hdcp) { in msm_hdmi_hdcp_scm_wr()
196 void msm_hdmi_hdcp_irq(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_irq() argument
198 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_irq()
221 if (HDCP_STATE_AUTHENTICATING == hdcp_ctrl->hdcp_state) { in msm_hdmi_hdcp_irq()
222 set_bit(AUTH_RESULT_RDY_EV, &hdcp_ctrl->auth_event); in msm_hdmi_hdcp_irq()
223 wake_up_all(&hdcp_ctrl->auth_event_queue); in msm_hdmi_hdcp_irq()
231 if (HDCP_STATE_AUTHENTICATED == hdcp_ctrl->hdcp_state) in msm_hdmi_hdcp_irq()
232 queue_work(hdmi->workq, &hdcp_ctrl->hdcp_reauth_work); in msm_hdmi_hdcp_irq()
234 hdcp_ctrl->hdcp_state) { in msm_hdmi_hdcp_irq()
235 set_bit(AUTH_RESULT_RDY_EV, &hdcp_ctrl->auth_event); in msm_hdmi_hdcp_irq()
236 wake_up_all(&hdcp_ctrl->auth_event_queue); in msm_hdmi_hdcp_irq()
241 static int msm_hdmi_hdcp_msleep(struct hdmi_hdcp_ctrl *hdcp_ctrl, u32 ms, u32 ev) in msm_hdmi_hdcp_msleep() argument
245 rc = wait_event_timeout(hdcp_ctrl->auth_event_queue, in msm_hdmi_hdcp_msleep()
246 !!test_bit(ev, &hdcp_ctrl->auth_event), in msm_hdmi_hdcp_msleep()
251 clear_bit(ev, &hdcp_ctrl->auth_event); in msm_hdmi_hdcp_msleep()
258 static int msm_hdmi_hdcp_read_validate_aksv(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_read_validate_aksv() argument
260 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_read_validate_aksv()
263 hdcp_ctrl->aksv_lsb = hdmi_qfprom_read(hdmi, HDCP_KSV_LSB); in msm_hdmi_hdcp_read_validate_aksv()
264 hdcp_ctrl->aksv_msb = hdmi_qfprom_read(hdmi, HDCP_KSV_MSB); in msm_hdmi_hdcp_read_validate_aksv()
267 if ((hweight32(hdcp_ctrl->aksv_lsb) + hweight32(hdcp_ctrl->aksv_msb)) in msm_hdmi_hdcp_read_validate_aksv()
272 __func__, hdcp_ctrl->aksv_msb, in msm_hdmi_hdcp_read_validate_aksv()
273 hdcp_ctrl->aksv_lsb); in msm_hdmi_hdcp_read_validate_aksv()
276 DBG("AKSV=%02x%08x", hdcp_ctrl->aksv_msb, hdcp_ctrl->aksv_lsb); in msm_hdmi_hdcp_read_validate_aksv()
281 static int msm_reset_hdcp_ddc_failures(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_reset_hdcp_ddc_failures() argument
283 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_reset_hdcp_ddc_failures()
331 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV); in msm_reset_hdcp_ddc_failures()
344 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV); in msm_reset_hdcp_ddc_failures()
356 static int msm_hdmi_hdcp_hw_ddc_clean(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_hw_ddc_clean() argument
363 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_hw_ddc_clean()
388 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV); in msm_hdmi_hdcp_hw_ddc_clean()
398 struct hdmi_hdcp_ctrl *hdcp_ctrl = container_of(work, in msm_hdmi_hdcp_reauth_work() local
400 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_reauth_work()
424 if (msm_hdmi_hdcp_hw_ddc_clean(hdcp_ctrl)) { in msm_hdmi_hdcp_reauth_work()
442 if (++hdcp_ctrl->auth_retries == AUTH_RETRIES_TIME) { in msm_hdmi_hdcp_reauth_work()
443 hdcp_ctrl->hdcp_state = HDCP_STATE_INACTIVE; in msm_hdmi_hdcp_reauth_work()
444 hdcp_ctrl->auth_retries = 0; in msm_hdmi_hdcp_reauth_work()
451 hdcp_ctrl->hdcp_state = HDCP_STATE_AUTHENTICATING; in msm_hdmi_hdcp_reauth_work()
452 queue_work(hdmi->workq, &hdcp_ctrl->hdcp_auth_work); in msm_hdmi_hdcp_reauth_work()
455 static int msm_hdmi_hdcp_auth_prepare(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_prepare() argument
457 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_auth_prepare()
463 if (!hdcp_ctrl->aksv_valid) { in msm_hdmi_hdcp_auth_prepare()
464 rc = msm_hdmi_hdcp_read_validate_aksv(hdcp_ctrl); in msm_hdmi_hdcp_auth_prepare()
467 hdcp_ctrl->hdcp_state = HDCP_STATE_NO_AKSV; in msm_hdmi_hdcp_auth_prepare()
470 hdcp_ctrl->aksv_valid = true; in msm_hdmi_hdcp_auth_prepare()
490 hdmi_write(hdmi, REG_HDMI_HDCP_SW_LOWER_AKSV, hdcp_ctrl->aksv_lsb); in msm_hdmi_hdcp_auth_prepare()
491 hdmi_write(hdmi, REG_HDMI_HDCP_SW_UPPER_AKSV, hdcp_ctrl->aksv_msb); in msm_hdmi_hdcp_auth_prepare()
532 rc = msm_reset_hdcp_ddc_failures(hdcp_ctrl); in msm_hdmi_hdcp_auth_prepare()
537 static void msm_hdmi_hdcp_auth_fail(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_fail() argument
539 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_auth_fail()
551 hdcp_ctrl->hdcp_state = HDCP_STATE_AUTH_FAILED; in msm_hdmi_hdcp_auth_fail()
552 queue_work(hdmi->workq, &hdcp_ctrl->hdcp_reauth_work); in msm_hdmi_hdcp_auth_fail()
555 static void msm_hdmi_hdcp_auth_done(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_done() argument
557 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_auth_done()
578 hdcp_ctrl->hdcp_state = HDCP_STATE_AUTHENTICATED; in msm_hdmi_hdcp_auth_done()
579 hdcp_ctrl->auth_retries = 0; in msm_hdmi_hdcp_auth_done()
590 static int msm_hdmi_hdcp_wait_key_an_ready(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_wait_key_an_ready() argument
593 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_wait_key_an_ready()
615 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV); in msm_hdmi_hdcp_wait_key_an_ready()
637 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV); in msm_hdmi_hdcp_wait_key_an_ready()
645 static int msm_hdmi_hdcp_send_aksv_an(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_send_aksv_an() argument
648 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_send_aksv_an()
689 static int msm_hdmi_hdcp_recv_bksv(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_recv_bksv() argument
692 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_recv_bksv()
703 hdcp_ctrl->bksv_lsb = bksv[0] | (bksv[1] << 8) | in msm_hdmi_hdcp_recv_bksv()
705 hdcp_ctrl->bksv_msb = bksv[4]; in msm_hdmi_hdcp_recv_bksv()
706 DBG(":BKSV=%02x%08x", hdcp_ctrl->bksv_msb, hdcp_ctrl->bksv_lsb); in msm_hdmi_hdcp_recv_bksv()
709 if ((hweight32(hdcp_ctrl->bksv_lsb) + hweight32(hdcp_ctrl->bksv_msb)) in msm_hdmi_hdcp_recv_bksv()
719 data[0] = hdcp_ctrl->bksv_lsb; in msm_hdmi_hdcp_recv_bksv()
721 data[1] = hdcp_ctrl->bksv_msb; in msm_hdmi_hdcp_recv_bksv()
722 rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, 2); in msm_hdmi_hdcp_recv_bksv()
727 static int msm_hdmi_hdcp_recv_bcaps(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_recv_bcaps() argument
730 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_recv_bcaps()
742 hdcp_ctrl->ds_type = (bcaps & BIT(6)) ? DS_REPEATER : DS_RECEIVER; in msm_hdmi_hdcp_recv_bcaps()
747 rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, ®, &data, 1); in msm_hdmi_hdcp_recv_bcaps()
752 static int msm_hdmi_hdcp_auth_part1_key_exchange(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_part1_key_exchange() argument
754 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_auth_part1_key_exchange()
759 rc = msm_hdmi_hdcp_wait_key_an_ready(hdcp_ctrl); in msm_hdmi_hdcp_auth_part1_key_exchange()
766 rc = msm_hdmi_hdcp_recv_bcaps(hdcp_ctrl); in msm_hdmi_hdcp_auth_part1_key_exchange()
779 rc = msm_hdmi_hdcp_send_aksv_an(hdcp_ctrl); in msm_hdmi_hdcp_auth_part1_key_exchange()
786 rc = msm_hdmi_hdcp_recv_bksv(hdcp_ctrl); in msm_hdmi_hdcp_auth_part1_key_exchange()
806 static int msm_hdmi_hdcp_auth_part1_recv_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_part1_recv_r0() argument
808 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_auth_part1_recv_r0()
816 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 125, AUTH_ABORT_EV); in msm_hdmi_hdcp_auth_part1_recv_r0()
836 static int msm_hdmi_hdcp_auth_part1_verify_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_part1_verify_r0() argument
838 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_auth_part1_verify_r0()
843 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 10000, AUTH_RESULT_RDY_EV); in msm_hdmi_hdcp_auth_part1_verify_r0()
863 static int msm_hdmi_hdcp_recv_check_bstatus(struct hdmi_hdcp_ctrl *hdcp_ctrl, in msm_hdmi_hdcp_recv_check_bstatus() argument
867 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_recv_check_bstatus()
923 hdcp_ctrl->dev_count = down_stream_devices; in msm_hdmi_hdcp_recv_check_bstatus()
924 hdcp_ctrl->max_cascade_exceeded = max_cascade_exceeded; in msm_hdmi_hdcp_recv_check_bstatus()
925 hdcp_ctrl->max_dev_exceeded = max_devs_exceeded; in msm_hdmi_hdcp_recv_check_bstatus()
926 hdcp_ctrl->depth = repeater_cascade_depth; in msm_hdmi_hdcp_recv_check_bstatus()
931 struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_part2_wait_ksv_fifo_ready() argument
934 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_auth_part2_wait_ksv_fifo_ready()
962 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV); in msm_hdmi_hdcp_auth_part2_wait_ksv_fifo_ready()
967 rc = msm_hdmi_hdcp_recv_check_bstatus(hdcp_ctrl, &bstatus); in msm_hdmi_hdcp_auth_part2_wait_ksv_fifo_ready()
976 rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, ®, &data, 1); in msm_hdmi_hdcp_auth_part2_wait_ksv_fifo_ready()
991 static int msm_hdmi_hdcp_transfer_v_h(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_transfer_v_h() argument
993 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_transfer_v_h()
1021 rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, size); in msm_hdmi_hdcp_transfer_v_h()
1027 static int msm_hdmi_hdcp_recv_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_recv_ksv_fifo() argument
1030 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_recv_ksv_fifo()
1033 ksv_bytes = 5 * hdcp_ctrl->dev_count; in msm_hdmi_hdcp_recv_ksv_fifo()
1036 hdcp_ctrl->ksv_list, ksv_bytes); in msm_hdmi_hdcp_recv_ksv_fifo()
1043 static int msm_hdmi_hdcp_reset_sha_engine(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_reset_sha_engine() argument
1053 rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, 2); in msm_hdmi_hdcp_reset_sha_engine()
1059 struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_part2_recv_ksv_fifo() argument
1075 rc = msm_hdmi_hdcp_recv_ksv_fifo(hdcp_ctrl); in msm_hdmi_hdcp_auth_part2_recv_ksv_fifo()
1085 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 25, AUTH_ABORT_EV); in msm_hdmi_hdcp_auth_part2_recv_ksv_fifo()
1090 rc = msm_hdmi_hdcp_transfer_v_h(hdcp_ctrl); in msm_hdmi_hdcp_auth_part2_recv_ksv_fifo()
1097 rc = msm_hdmi_hdcp_reset_sha_engine(hdcp_ctrl); in msm_hdmi_hdcp_auth_part2_recv_ksv_fifo()
1114 static int msm_hdmi_hdcp_write_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_write_ksv_fifo() argument
1117 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_write_ksv_fifo()
1123 ksv_bytes = 5 * hdcp_ctrl->dev_count; in msm_hdmi_hdcp_write_ksv_fifo()
1126 if (hdcp_ctrl->ksv_fifo_w_index) { in msm_hdmi_hdcp_write_ksv_fifo()
1129 if (hdcp_ctrl->ksv_fifo_w_index == ksv_bytes) { in msm_hdmi_hdcp_write_ksv_fifo()
1146 ksv_bytes -= hdcp_ctrl->ksv_fifo_w_index; in msm_hdmi_hdcp_write_ksv_fifo()
1152 ksv_fifo = hdcp_ctrl->ksv_list; in msm_hdmi_hdcp_write_ksv_fifo()
1153 ksv_fifo += hdcp_ctrl->ksv_fifo_w_index; in msm_hdmi_hdcp_write_ksv_fifo()
1163 rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, ®, &data, 1); in msm_hdmi_hdcp_write_ksv_fifo()
1169 hdcp_ctrl->ksv_fifo_w_index += ksv_bytes; in msm_hdmi_hdcp_write_ksv_fifo()
1179 struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_part2_write_ksv_fifo() argument
1184 hdcp_ctrl->ksv_fifo_w_index = 0; in msm_hdmi_hdcp_auth_part2_write_ksv_fifo()
1187 rc = msm_hdmi_hdcp_write_ksv_fifo(hdcp_ctrl); in msm_hdmi_hdcp_auth_part2_write_ksv_fifo()
1200 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV); in msm_hdmi_hdcp_auth_part2_write_ksv_fifo()
1208 static int msm_hdmi_hdcp_auth_part2_check_v_match(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_auth_part2_check_v_match() argument
1211 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_auth_part2_check_v_match()
1226 rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV); in msm_hdmi_hdcp_auth_part2_check_v_match()
1236 struct hdmi_hdcp_ctrl *hdcp_ctrl = container_of(work, in msm_hdmi_hdcp_auth_work() local
1240 rc = msm_hdmi_hdcp_auth_prepare(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1247 rc = msm_hdmi_hdcp_auth_part1_key_exchange(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1253 rc = msm_hdmi_hdcp_auth_part1_recv_r0(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1259 rc = msm_hdmi_hdcp_auth_part1_verify_r0(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1265 if (hdcp_ctrl->ds_type == DS_RECEIVER) in msm_hdmi_hdcp_auth_work()
1269 rc = msm_hdmi_hdcp_auth_part2_wait_ksv_fifo_ready(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1275 rc = msm_hdmi_hdcp_auth_part2_recv_ksv_fifo(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1281 rc = msm_hdmi_hdcp_auth_part2_write_ksv_fifo(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1287 rc = msm_hdmi_hdcp_auth_part2_check_v_match(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1298 msm_hdmi_hdcp_auth_fail(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1300 msm_hdmi_hdcp_auth_done(hdcp_ctrl); in msm_hdmi_hdcp_auth_work()
1304 void msm_hdmi_hdcp_on(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_on() argument
1306 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_on()
1310 if ((HDCP_STATE_INACTIVE != hdcp_ctrl->hdcp_state) || in msm_hdmi_hdcp_on()
1311 (HDCP_STATE_NO_AKSV == hdcp_ctrl->hdcp_state)) { in msm_hdmi_hdcp_on()
1323 hdcp_ctrl->auth_event = 0; in msm_hdmi_hdcp_on()
1324 hdcp_ctrl->hdcp_state = HDCP_STATE_AUTHENTICATING; in msm_hdmi_hdcp_on()
1325 hdcp_ctrl->auth_retries = 0; in msm_hdmi_hdcp_on()
1326 queue_work(hdmi->workq, &hdcp_ctrl->hdcp_auth_work); in msm_hdmi_hdcp_on()
1329 void msm_hdmi_hdcp_off(struct hdmi_hdcp_ctrl *hdcp_ctrl) in msm_hdmi_hdcp_off() argument
1331 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_off()
1335 if ((HDCP_STATE_INACTIVE == hdcp_ctrl->hdcp_state) || in msm_hdmi_hdcp_off()
1336 (HDCP_STATE_NO_AKSV == hdcp_ctrl->hdcp_state)) { in msm_hdmi_hdcp_off()
1366 set_bit(AUTH_ABORT_EV, &hdcp_ctrl->auth_event); in msm_hdmi_hdcp_off()
1367 wake_up_all(&hdcp_ctrl->auth_event_queue); in msm_hdmi_hdcp_off()
1368 cancel_work_sync(&hdcp_ctrl->hdcp_auth_work); in msm_hdmi_hdcp_off()
1369 cancel_work_sync(&hdcp_ctrl->hdcp_reauth_work); in msm_hdmi_hdcp_off()
1388 hdcp_ctrl->hdcp_state = HDCP_STATE_INACTIVE; in msm_hdmi_hdcp_off()
1395 struct hdmi_hdcp_ctrl *hdcp_ctrl = NULL; in msm_hdmi_hdcp_init() local
1403 hdcp_ctrl = kzalloc(sizeof(*hdcp_ctrl), GFP_KERNEL); in msm_hdmi_hdcp_init()
1404 if (!hdcp_ctrl) in msm_hdmi_hdcp_init()
1407 INIT_WORK(&hdcp_ctrl->hdcp_auth_work, msm_hdmi_hdcp_auth_work); in msm_hdmi_hdcp_init()
1408 INIT_WORK(&hdcp_ctrl->hdcp_reauth_work, msm_hdmi_hdcp_reauth_work); in msm_hdmi_hdcp_init()
1409 init_waitqueue_head(&hdcp_ctrl->auth_event_queue); in msm_hdmi_hdcp_init()
1410 hdcp_ctrl->hdmi = hdmi; in msm_hdmi_hdcp_init()
1411 hdcp_ctrl->hdcp_state = HDCP_STATE_INACTIVE; in msm_hdmi_hdcp_init()
1412 hdcp_ctrl->aksv_valid = false; in msm_hdmi_hdcp_init()
1415 hdcp_ctrl->tz_hdcp = true; in msm_hdmi_hdcp_init()
1417 hdcp_ctrl->tz_hdcp = false; in msm_hdmi_hdcp_init()
1419 return hdcp_ctrl; in msm_hdmi_hdcp_init()
1425 kfree(hdmi->hdcp_ctrl); in msm_hdmi_hdcp_destroy()
1426 hdmi->hdcp_ctrl = NULL; in msm_hdmi_hdcp_destroy()