Lines Matching full:if
209 if (!tnr_dmd) in p_init1()
215 if (ret) in p_init1()
218 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SINGLE || in p_init1()
236 if (ret) in p_init1()
244 if (ret) in p_init1()
261 if (ret) in p_init1()
264 if (tnr_dmd->create_param.en_internal_ldo) in p_init1()
272 if (ret) in p_init1()
277 if (ret) in p_init1()
283 if (ret) in p_init1()
288 if (ret) in p_init1()
294 if (ret) in p_init1()
318 if (!tnr_dmd) in p_init2()
324 if (ret) in p_init2()
361 if (!tnr_dmd) in p_init3()
367 if (ret) in p_init3()
437 if (!tnr_dmd) in rf_init1()
443 if (ret) in rf_init1()
451 if (ret) in rf_init1()
457 if (ret) in rf_init1()
464 if (ret) in rf_init1()
467 if (tnr_dmd->create_param.stationary_use) { in rf_init1()
471 if (ret) in rf_init1()
479 if (ret) in rf_init1()
483 if (tnr_dmd->create_param.is_cxd2881gg && in rf_init1()
493 if (ret) in rf_init1()
500 if (ret) in rf_init1()
503 if (tnr_dmd->chip_id == CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X) { in rf_init1()
519 if (ret) in rf_init1()
525 if (ret) in rf_init1()
533 if (ret) in rf_init1()
540 if (ret) in rf_init1()
549 if (ret) in rf_init1()
554 if (ret) in rf_init1()
559 if (ret) in rf_init1()
565 if (ret) in rf_init1()
572 if (ret) in rf_init1()
577 if (ret) in rf_init1()
583 if (ret) in rf_init1()
589 if (ret) in rf_init1()
597 if (ret) in rf_init1()
604 if (ret) in rf_init1()
607 if (tnr_dmd->create_param.stationary_use) { in rf_init1()
623 if (ret) in rf_init1()
626 if (tnr_dmd->lna_thrs_tbl_air) { in rf_init1()
638 if (ret) in rf_init1()
644 if (tnr_dmd->create_param.stationary_use) in rf_init1()
655 if (ret) in rf_init1()
658 if (tnr_dmd->lna_thrs_tbl_cable) { in rf_init1()
670 if (ret) in rf_init1()
677 if (ret) in rf_init1()
684 if (ret) in rf_init1()
691 if (ret) in rf_init1()
697 if (ret) in rf_init1()
703 if (ret) in rf_init1()
711 if (ret) in rf_init1()
718 if (ret) in rf_init1()
724 if (ret) in rf_init1()
732 if (ret) in rf_init1()
737 if (ret) in rf_init1()
739 if ((data[0] & 0x01) == 0x00) in rf_init1()
746 if (ret) in rf_init1()
754 if (ret) in rf_init1()
759 if (ret) in rf_init1()
761 if ((data[0] & 0x01) == 0x00) in rf_init1()
768 if (ret) in rf_init1()
777 if (ret) in rf_init1()
784 if (ret) in rf_init1()
791 if (ret) in rf_init1()
794 if (tnr_dmd->create_param.stationary_use) { in rf_init1()
798 if (ret) in rf_init1()
806 if (ret) in rf_init1()
813 if (ret) in rf_init1()
821 if (ret) in rf_init1()
826 if (ret) in rf_init1()
828 if ((data[0] & 0x01) == 0x00) in rf_init1()
842 if (!tnr_dmd) in rf_init2()
848 if (ret) in rf_init2()
855 if (ret) in rf_init2()
861 if (tnr_dmd->chip_id == CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X) in rf_init2()
870 if (ret) in rf_init2()
877 if (ret) in rf_init2()
894 if (!tnr_dmd) in x_tune1()
901 if (ret) in x_tune1()
907 if (ret) in x_tune1()
915 if (ret) in x_tune1()
926 if (ret) in x_tune1()
952 if (ret) in x_tune1()
959 if (ret) in x_tune1()
967 if (ret) in x_tune1()
973 if (ret) in x_tune1()
1022 if (!tnr_dmd) in x_tune2()
1028 if (ret) in x_tune2()
1037 if (ret) in x_tune2()
1044 if (ret) in x_tune2()
1050 if (ret) in x_tune2()
1056 if (ret) in x_tune2()
1062 if (ret) in x_tune2()
1069 if (ret) in x_tune2()
1076 if (ret) in x_tune2()
1079 if (shift_frequency_khz != 0) { in x_tune2()
1085 if (ret) in x_tune2()
1091 if (ret) in x_tune2()
1100 if (shift_freq >= 0) in x_tune2()
1106 if (shift_freq >= 0) in x_tune2()
1116 if (shift_freq > 32767) in x_tune2()
1118 else if (shift_freq < -32768) in x_tune2()
1127 if (ret) in x_tune2()
1133 if (ret) in x_tune2()
1138 if (bandwidth == CXD2880_DTV_BW_1_7_MHZ) { in x_tune2()
1143 if (shift_freq >= 0) in x_tune2()
1153 if (shift_freq >= 0) in x_tune2()
1168 if (shift_freq >= 0) in x_tune2()
1178 if (shift_freq >= 0) in x_tune2()
1192 if (shift_freq > 127) in x_tune2()
1194 else if (shift_freq < -128) in x_tune2()
1202 if (ret) in x_tune2()
1206 if (tnr_dmd->create_param.stationary_use) { in x_tune2()
1211 if (ret) in x_tune2()
1228 if (!tnr_dmd) in x_tune3()
1235 if (ret) in x_tune3()
1241 if (ret) in x_tune3()
1244 if (sys == CXD2880_DTV_SYS_DVBT2 && en_fef_intmtnt_ctrl) in x_tune3()
1252 if (ret) in x_tune3()
1258 if (ret) in x_tune3()
1260 if (sys == CXD2880_DTV_SYS_DVBT2 && en_fef_intmtnt_ctrl) in x_tune3()
1275 if (!tnr_dmd) in x_tune4()
1278 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in x_tune4()
1284 if (ret) in x_tune4()
1291 if (ret) in x_tune4()
1297 if (ret) in x_tune4()
1304 if (ret) in x_tune4()
1309 if (ret) in x_tune4()
1316 if (ret) in x_tune4()
1322 if (ret) in x_tune4()
1329 if (ret) in x_tune4()
1334 if (ret) in x_tune4()
1341 if (ret) in x_tune4()
1355 if (!tnr_dmd) in x_sleep1()
1358 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in x_sleep1()
1365 if (ret) in x_sleep1()
1373 if (ret) in x_sleep1()
1379 if (ret) in x_sleep1()
1387 if (ret) in x_sleep1()
1394 if (ret) in x_sleep1()
1400 if (ret) in x_sleep1()
1415 if (!tnr_dmd) in x_sleep2()
1422 if (ret) in x_sleep2()
1430 if (ret) in x_sleep2()
1433 if ((data & 0x01) == 0x00) in x_sleep2()
1444 if (!tnr_dmd) in x_sleep3()
1455 if (!tnr_dmd) in x_sleep4()
1470 if (!tnr_dmd) in spll_reset()
1477 if (ret) in spll_reset()
1484 if (ret) in spll_reset()
1491 if (ret) in spll_reset()
1513 if (ret) in spll_reset()
1518 if (ret) in spll_reset()
1526 if (ret) in spll_reset()
1531 if (ret) in spll_reset()
1533 if ((data[0] & 0x01) == 0x00) in spll_reset()
1540 if (ret) in spll_reset()
1549 if (ret) in spll_reset()
1555 if (ret) in spll_reset()
1570 if (!tnr_dmd) in t_power_x()
1577 if (ret) in t_power_x()
1584 if (ret) in t_power_x()
1591 if (ret) in t_power_x()
1594 if (on) { in t_power_x()
1598 if (ret) in t_power_x()
1606 if (ret) in t_power_x()
1611 if (ret) in t_power_x()
1613 if ((data[0] & 0x01) == 0) in t_power_x()
1620 if (ret) in t_power_x()
1628 if (ret) in t_power_x()
1636 if (ret) in t_power_x()
1641 if (ret) in t_power_x()
1643 if ((data[0] & 0x01) == 0) in t_power_x()
1651 if (ret) in t_power_x()
1659 if (ret) in t_power_x()
1664 if (ret) in t_power_x()
1666 if ((data[0] & 0x01) == 0) in t_power_x()
1673 if (ret) in t_power_x()
1682 if (ret) in t_power_x()
1688 if (ret) in t_power_x()
1725 if (!tnr_dmd) in set_ts_clk_mode_and_freq()
1731 if (ret) in set_ts_clk_mode_and_freq()
1734 if (tnr_dmd->is_ts_backwards_compatible_mode) { in set_ts_clk_mode_and_freq()
1744 if (tnr_dmd->ts_byte_clk_manual_setting) { in set_ts_clk_mode_and_freq()
1752 if (ret) in set_ts_clk_mode_and_freq()
1758 if (ret) in set_ts_clk_mode_and_freq()
1764 if (ret) in set_ts_clk_mode_and_freq()
1770 if (tnr_dmd->ts_byte_clk_manual_setting) in set_ts_clk_mode_and_freq()
1776 if (ret) in set_ts_clk_mode_and_freq()
1782 if (ret) in set_ts_clk_mode_and_freq()
1788 if (ret) in set_ts_clk_mode_and_freq()
1793 if (sys == CXD2880_DTV_SYS_DVBT) { in set_ts_clk_mode_and_freq()
1797 if (ret) in set_ts_clk_mode_and_freq()
1817 if (!tnr_dmd) in pid_ftr_setting()
1823 if (ret) in pid_ftr_setting()
1826 if (!pid_ftr_cfg) in pid_ftr_setting()
1834 if (pid_ftr_cfg->pid_cfg[i].is_en) { in pid_ftr_setting()
1853 if (!tnr_dmd) in load_cfg_mem()
1860 if (ret) in load_cfg_mem()
1868 if (ret) in load_cfg_mem()
1882 if (!tnr_dmd) in set_cfg_mem()
1886 if (value_stored == 0 && in set_cfg_mem()
1899 if (value_stored) in set_cfg_mem()
1902 if (tnr_dmd->cfg_mem_last_entry < CXD2880_TNRDMD_MAX_CFG_MEM_COUNT) { in set_cfg_mem()
1921 if (!tnr_dmd || !io || !create_param) in cxd2880_tnrdmd_create()
1954 if (!tnr_dmd_main || !io_main || !tnr_dmd_sub || !io_sub || in cxd2880_tnrdmd_diver_create()
2010 if (!tnr_dmd || tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_init1()
2022 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_init1()
2034 if (ret) in cxd2880_tnrdmd_init1()
2037 if (!CXD2880_TNRDMD_CHIP_ID_VALID(tnr_dmd->chip_id)) in cxd2880_tnrdmd_init1()
2040 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_init1()
2044 if (ret) in cxd2880_tnrdmd_init1()
2047 if (!CXD2880_TNRDMD_CHIP_ID_VALID(tnr_dmd->diver_sub->chip_id)) in cxd2880_tnrdmd_init1()
2052 if (ret) in cxd2880_tnrdmd_init1()
2055 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_init1()
2057 if (ret) in cxd2880_tnrdmd_init1()
2063 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_init1()
2065 if (ret) in cxd2880_tnrdmd_init1()
2070 if (ret) in cxd2880_tnrdmd_init1()
2076 if (ret) in cxd2880_tnrdmd_init1()
2079 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_init1()
2081 if (ret) in cxd2880_tnrdmd_init1()
2086 if (ret) in cxd2880_tnrdmd_init1()
2089 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_init1()
2100 if (!tnr_dmd) in cxd2880_tnrdmd_init2()
2103 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_init2()
2108 if (ret) in cxd2880_tnrdmd_init2()
2111 if (!cpu_task_completed) in cxd2880_tnrdmd_init2()
2115 if (ret) in cxd2880_tnrdmd_init2()
2118 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_init2()
2120 if (ret) in cxd2880_tnrdmd_init2()
2125 if (ret) in cxd2880_tnrdmd_init2()
2128 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_init2()
2130 if (ret) in cxd2880_tnrdmd_init2()
2136 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_init2()
2149 if (!tnr_dmd || !task_completed) in cxd2880_tnrdmd_check_internal_cpu_status()
2152 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_check_internal_cpu_status()
2156 if (ret) in cxd2880_tnrdmd_check_internal_cpu_status()
2159 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SINGLE) { in cxd2880_tnrdmd_check_internal_cpu_status()
2160 if (cpu_status == 0) in cxd2880_tnrdmd_check_internal_cpu_status()
2167 if (cpu_status != 0) { in cxd2880_tnrdmd_check_internal_cpu_status()
2173 if (ret) in cxd2880_tnrdmd_check_internal_cpu_status()
2176 if (cpu_status == 0) in cxd2880_tnrdmd_check_internal_cpu_status()
2198 if (!tnr_dmd) in cxd2880_tnrdmd_common_tune_setting1()
2201 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_common_tune_setting1()
2204 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_common_tune_setting1()
2208 if (frequency_khz < 4000) in cxd2880_tnrdmd_common_tune_setting1()
2212 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2219 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2227 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2232 if (data == 0x00) { in cxd2880_tnrdmd_common_tune_setting1()
2234 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2237 if (tnr_dmd->diver_mode == in cxd2880_tnrdmd_common_tune_setting1()
2240 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2247 if (data == 0x01) { in cxd2880_tnrdmd_common_tune_setting1()
2249 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2252 if (tnr_dmd->diver_mode == in cxd2880_tnrdmd_common_tune_setting1()
2255 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2266 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2271 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_common_tune_setting1()
2273 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2280 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2283 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_common_tune_setting1()
2285 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2289 if (one_seg_opt) { in cxd2880_tnrdmd_common_tune_setting1()
2290 if (tnr_dmd->diver_mode == in cxd2880_tnrdmd_common_tune_setting1()
2294 if (one_seg_opt_shft_dir) in cxd2880_tnrdmd_common_tune_setting1()
2299 if (tnr_dmd->create_param.xtal_share_type == in cxd2880_tnrdmd_common_tune_setting1()
2304 if (tnr_dmd->diver_mode == in cxd2880_tnrdmd_common_tune_setting1()
2327 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2330 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_common_tune_setting1()
2335 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2344 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2347 if (!cpu_task_completed) in cxd2880_tnrdmd_common_tune_setting1()
2353 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2356 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_common_tune_setting1()
2361 if (ret) in cxd2880_tnrdmd_common_tune_setting1()
2365 if (tnr_dmd->create_param.ts_output_if == CXD2880_TNRDMD_TSOUT_IF_TS) { in cxd2880_tnrdmd_common_tune_setting1()
2370 if (tnr_dmd->pid_ftr_cfg_en) in cxd2880_tnrdmd_common_tune_setting1()
2388 if (!tnr_dmd) in cxd2880_tnrdmd_common_tune_setting2()
2391 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_common_tune_setting2()
2394 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_common_tune_setting2()
2399 if (ret) in cxd2880_tnrdmd_common_tune_setting2()
2402 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_common_tune_setting2()
2404 if (ret) in cxd2880_tnrdmd_common_tune_setting2()
2407 if (ret) in cxd2880_tnrdmd_common_tune_setting2()
2418 if (!tnr_dmd) in cxd2880_tnrdmd_sleep()
2421 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_sleep()
2424 if (tnr_dmd->state == CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_sleep()
2427 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_ACTIVE) in cxd2880_tnrdmd_sleep()
2431 if (ret) in cxd2880_tnrdmd_sleep()
2434 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_sleep()
2436 if (ret) in cxd2880_tnrdmd_sleep()
2441 if (ret) in cxd2880_tnrdmd_sleep()
2444 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_sleep()
2446 if (ret) in cxd2880_tnrdmd_sleep()
2453 if (ret) in cxd2880_tnrdmd_sleep()
2459 if (ret) in cxd2880_tnrdmd_sleep()
2468 if (ret) in cxd2880_tnrdmd_sleep()
2471 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_sleep()
2473 if (ret) in cxd2880_tnrdmd_sleep()
2478 if (ret) in cxd2880_tnrdmd_sleep()
2481 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_sleep()
2483 if (ret) in cxd2880_tnrdmd_sleep()
2492 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in cxd2880_tnrdmd_sleep()
2510 if (!tnr_dmd) in cxd2880_tnrdmd_set_cfg()
2513 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_set_cfg()
2519 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2528 if (ret) in cxd2880_tnrdmd_set_cfg()
2533 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2542 if (ret) in cxd2880_tnrdmd_set_cfg()
2547 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2556 if (ret) in cxd2880_tnrdmd_set_cfg()
2561 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2570 if (ret) in cxd2880_tnrdmd_set_cfg()
2575 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2584 if (ret) in cxd2880_tnrdmd_set_cfg()
2589 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2596 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2599 if (value < 0 || value > 0x1f) in cxd2880_tnrdmd_set_cfg()
2607 if (ret) in cxd2880_tnrdmd_set_cfg()
2612 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2615 if (value < 0 || value > 0x1f) in cxd2880_tnrdmd_set_cfg()
2623 if (ret) in cxd2880_tnrdmd_set_cfg()
2628 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2631 if (value < 0 || value > 0x1f) in cxd2880_tnrdmd_set_cfg()
2639 if (ret) in cxd2880_tnrdmd_set_cfg()
2644 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2653 if (ret) in cxd2880_tnrdmd_set_cfg()
2658 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2666 if (ret) in cxd2880_tnrdmd_set_cfg()
2671 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2680 if (ret) in cxd2880_tnrdmd_set_cfg()
2685 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2693 if (ret) in cxd2880_tnrdmd_set_cfg()
2698 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2701 if (value < 0 || value > 1) in cxd2880_tnrdmd_set_cfg()
2709 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2712 if (value < 0 || value > 0xff) in cxd2880_tnrdmd_set_cfg()
2720 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2723 if (value < 0 || value > 7) in cxd2880_tnrdmd_set_cfg()
2731 if (ret) in cxd2880_tnrdmd_set_cfg()
2737 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_cfg()
2745 if (value < 0 || value > 0x1000) in cxd2880_tnrdmd_set_cfg()
2754 if (ret) in cxd2880_tnrdmd_set_cfg()
2765 if (ret) in cxd2880_tnrdmd_set_cfg()
2773 if (ret) in cxd2880_tnrdmd_set_cfg()
2786 if (ret) in cxd2880_tnrdmd_set_cfg()
2793 if (ret) in cxd2880_tnrdmd_set_cfg()
2804 if (ret) in cxd2880_tnrdmd_set_cfg()
2815 if (ret) in cxd2880_tnrdmd_set_cfg()
2820 if (value < CXD2880_TNRDMD_CLOCKMODE_UNKNOWN || in cxd2880_tnrdmd_set_cfg()
2846 if (ret) in cxd2880_tnrdmd_set_cfg()
2853 if (ret) in cxd2880_tnrdmd_set_cfg()
2865 if (ret) in cxd2880_tnrdmd_set_cfg()
2872 if (ret) in cxd2880_tnrdmd_set_cfg()
2884 if (ret) in cxd2880_tnrdmd_set_cfg()
2891 if (ret) in cxd2880_tnrdmd_set_cfg()
2900 if (value < 0 || value > 31) in cxd2880_tnrdmd_set_cfg()
2908 if (ret) in cxd2880_tnrdmd_set_cfg()
2913 if (value < 0 || value > 7) in cxd2880_tnrdmd_set_cfg()
2921 if (ret) in cxd2880_tnrdmd_set_cfg()
2926 if (value < 0 || value > 15) in cxd2880_tnrdmd_set_cfg()
2934 if (ret) in cxd2880_tnrdmd_set_cfg()
2939 if (value < 0 || value > 15) in cxd2880_tnrdmd_set_cfg()
2947 if (ret) in cxd2880_tnrdmd_set_cfg()
2952 if (value < 0 || value > 15) in cxd2880_tnrdmd_set_cfg()
2960 if (ret) in cxd2880_tnrdmd_set_cfg()
2965 if (value < 0 || value > 15) in cxd2880_tnrdmd_set_cfg()
2973 if (ret) in cxd2880_tnrdmd_set_cfg()
2981 if (need_sub_setting && in cxd2880_tnrdmd_set_cfg()
2996 if (!tnr_dmd) in cxd2880_tnrdmd_gpio_set_cfg()
2999 if (id > 2) in cxd2880_tnrdmd_gpio_set_cfg()
3002 if (mode > CXD2880_TNRDMD_GPIO_MODE_EEW) in cxd2880_tnrdmd_gpio_set_cfg()
3005 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_gpio_set_cfg()
3013 if (ret) in cxd2880_tnrdmd_gpio_set_cfg()
3021 if (ret) in cxd2880_tnrdmd_gpio_set_cfg()
3029 if (ret) in cxd2880_tnrdmd_gpio_set_cfg()
3045 if (!tnr_dmd) in cxd2880_tnrdmd_gpio_set_cfg_sub()
3048 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_gpio_set_cfg_sub()
3061 if (!tnr_dmd || !value) in cxd2880_tnrdmd_gpio_read()
3064 if (id > 2) in cxd2880_tnrdmd_gpio_read()
3067 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_gpio_read()
3074 if (ret) in cxd2880_tnrdmd_gpio_read()
3079 if (ret) in cxd2880_tnrdmd_gpio_read()
3090 if (!tnr_dmd) in cxd2880_tnrdmd_gpio_read_sub()
3093 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_gpio_read_sub()
3102 if (!tnr_dmd) in cxd2880_tnrdmd_gpio_write()
3105 if (id > 2) in cxd2880_tnrdmd_gpio_write()
3108 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_gpio_write()
3122 if (!tnr_dmd) in cxd2880_tnrdmd_gpio_write_sub()
3125 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_gpio_write_sub()
3137 if (!tnr_dmd || !value) in cxd2880_tnrdmd_interrupt_read()
3140 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_interrupt_read()
3147 if (ret) in cxd2880_tnrdmd_interrupt_read()
3152 if (ret) in cxd2880_tnrdmd_interrupt_read()
3166 if (!tnr_dmd) in cxd2880_tnrdmd_interrupt_clear()
3169 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_interrupt_clear()
3176 if (ret) in cxd2880_tnrdmd_interrupt_clear()
3195 if (!tnr_dmd) in cxd2880_tnrdmd_ts_buf_clear()
3198 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_ts_buf_clear()
3201 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_ts_buf_clear()
3208 if (ret) in cxd2880_tnrdmd_ts_buf_clear()
3226 if (!tnr_dmd || !chip_id) in cxd2880_tnrdmd_chip_id()
3232 if (ret) in cxd2880_tnrdmd_chip_id()
3237 if (ret) in cxd2880_tnrdmd_chip_id()
3253 if (!tnr_dmd) in cxd2880_tnrdmd_set_and_save_reg_bits()
3256 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_set_and_save_reg_bits()
3261 if (ret) in cxd2880_tnrdmd_set_and_save_reg_bits()
3266 if (ret) in cxd2880_tnrdmd_set_and_save_reg_bits()
3276 if (!tnr_dmd) in cxd2880_tnrdmd_set_scan_mode()
3279 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_set_scan_mode()
3285 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_set_scan_mode()
3296 if (!tnr_dmd) in cxd2880_tnrdmd_set_pid_ftr()
3299 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_set_pid_ftr()
3302 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_set_pid_ftr()
3306 if (tnr_dmd->create_param.ts_output_if == CXD2880_TNRDMD_TSOUT_IF_TS) in cxd2880_tnrdmd_set_pid_ftr()
3309 if (pid_ftr_cfg) { in cxd2880_tnrdmd_set_pid_ftr()
3316 if (tnr_dmd->state == CXD2880_TNRDMD_STATE_ACTIVE) in cxd2880_tnrdmd_set_pid_ftr()
3328 if (!tnr_dmd) in cxd2880_tnrdmd_set_rf_lvl_cmpstn()
3342 if (!tnr_dmd) in cxd2880_tnrdmd_set_rf_lvl_cmpstn_sub()
3345 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_set_rf_lvl_cmpstn_sub()
3358 if (!tnr_dmd) in cxd2880_tnrdmd_set_lna_thrs()
3374 if (!tnr_dmd) in cxd2880_tnrdmd_set_lna_thrs_sub()
3377 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_set_lna_thrs_sub()
3389 if (!tnr_dmd) in cxd2880_tnrdmd_set_ts_pin_high_low()
3392 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_set_ts_pin_high_low()
3395 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP) in cxd2880_tnrdmd_set_ts_pin_high_low()
3398 if (tnr_dmd->create_param.ts_output_if != CXD2880_TNRDMD_TSOUT_IF_TS) in cxd2880_tnrdmd_set_ts_pin_high_low()
3404 if (ret) in cxd2880_tnrdmd_set_ts_pin_high_low()
3407 if (en) { in cxd2880_tnrdmd_set_ts_pin_high_low()
3411 if (ret) in cxd2880_tnrdmd_set_ts_pin_high_low()
3422 if (ret) in cxd2880_tnrdmd_set_ts_pin_high_low()
3436 if (!tnr_dmd) in cxd2880_tnrdmd_set_ts_output()
3439 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_tnrdmd_set_ts_output()
3442 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_tnrdmd_set_ts_output()
3448 if (en) { in cxd2880_tnrdmd_set_ts_output()
3453 if (ret) in cxd2880_tnrdmd_set_ts_output()
3460 if (ret) in cxd2880_tnrdmd_set_ts_output()
3467 if (ret) in cxd2880_tnrdmd_set_ts_output()
3474 if (ret) in cxd2880_tnrdmd_set_ts_output()
3497 if (!tnr_dmd) in slvt_freeze_reg()
3507 if (ret) in slvt_freeze_reg()