Lines Matching refs:ret
29 int ret; in cxd2880_tnrdmd_dvbt2_mon_sync_stat() local
40 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
43 if (ret) in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
44 return ret; in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
46 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
49 if (ret) in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
50 return ret; in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
89 int ret; in cxd2880_tnrdmd_dvbt2_mon_carrier_offset() local
100 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
101 if (ret) in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
102 return ret; in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
104 ret = in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
108 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
110 return ret; in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
118 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
121 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
123 return ret; in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
126 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
129 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
131 return ret; in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
183 int ret; in cxd2880_tnrdmd_dvbt2_mon_l1_pre() local
197 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
198 if (ret) in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
199 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
201 ret = in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
205 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
207 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
213 ret = in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
216 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
218 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
231 ret = cxd2880_tnrdmd_dvbt2_mon_profile(tnr_dmd, &profile); in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
232 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
234 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
237 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
240 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
242 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
245 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
248 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
250 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
347 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
360 int ret; in cxd2880_tnrdmd_dvbt2_mon_version() local
374 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_version()
375 if (ret) in cxd2880_tnrdmd_dvbt2_mon_version()
376 return ret; in cxd2880_tnrdmd_dvbt2_mon_version()
378 ret = in cxd2880_tnrdmd_dvbt2_mon_version()
382 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_version()
384 return ret; in cxd2880_tnrdmd_dvbt2_mon_version()
390 ret = in cxd2880_tnrdmd_dvbt2_mon_version()
393 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_version()
395 return ret; in cxd2880_tnrdmd_dvbt2_mon_version()
408 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_version()
411 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_version()
413 return ret; in cxd2880_tnrdmd_dvbt2_mon_version()
416 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_version()
419 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_version()
421 return ret; in cxd2880_tnrdmd_dvbt2_mon_version()
430 return ret; in cxd2880_tnrdmd_dvbt2_mon_version()
440 int ret; in cxd2880_tnrdmd_dvbt2_mon_ofdm() local
451 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_ofdm()
452 if (ret) in cxd2880_tnrdmd_dvbt2_mon_ofdm()
453 return ret; in cxd2880_tnrdmd_dvbt2_mon_ofdm()
455 ret = in cxd2880_tnrdmd_dvbt2_mon_ofdm()
459 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_ofdm()
461 return ret; in cxd2880_tnrdmd_dvbt2_mon_ofdm()
467 ret = -EAGAIN; in cxd2880_tnrdmd_dvbt2_mon_ofdm()
471 ret = in cxd2880_tnrdmd_dvbt2_mon_ofdm()
475 return ret; in cxd2880_tnrdmd_dvbt2_mon_ofdm()
478 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_ofdm()
481 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_ofdm()
483 return ret; in cxd2880_tnrdmd_dvbt2_mon_ofdm()
486 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_ofdm()
489 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_ofdm()
491 return ret; in cxd2880_tnrdmd_dvbt2_mon_ofdm()
513 int ret; in cxd2880_tnrdmd_dvbt2_mon_data_plps() local
527 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plps()
530 if (ret) in cxd2880_tnrdmd_dvbt2_mon_data_plps()
531 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plps()
533 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_data_plps()
534 if (ret) in cxd2880_tnrdmd_dvbt2_mon_data_plps()
535 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plps()
537 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plps()
540 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_data_plps()
542 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plps()
550 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plps()
553 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_data_plps()
555 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plps()
568 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plps()
574 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_data_plps()
576 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plps()
580 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plps()
583 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_data_plps()
585 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plps()
588 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plps()
592 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_data_plps()
594 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plps()
615 int ret; in cxd2880_tnrdmd_dvbt2_mon_active_plp() local
629 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_active_plp()
630 if (ret) in cxd2880_tnrdmd_dvbt2_mon_active_plp()
631 return ret; in cxd2880_tnrdmd_dvbt2_mon_active_plp()
633 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_active_plp()
636 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_active_plp()
638 return ret; in cxd2880_tnrdmd_dvbt2_mon_active_plp()
641 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_active_plp()
644 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_active_plp()
646 return ret; in cxd2880_tnrdmd_dvbt2_mon_active_plp()
659 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_active_plp()
662 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_active_plp()
664 return ret; in cxd2880_tnrdmd_dvbt2_mon_active_plp()
714 int ret; in cxd2880_tnrdmd_dvbt2_mon_data_plp_error() local
728 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
729 if (ret) in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
730 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
732 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
735 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
737 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
740 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
743 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
745 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
753 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
756 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
758 return ret; in cxd2880_tnrdmd_dvbt2_mon_data_plp_error()
775 int ret; in cxd2880_tnrdmd_dvbt2_mon_l1_change() local
789 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_l1_change()
790 if (ret) in cxd2880_tnrdmd_dvbt2_mon_l1_change()
791 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_change()
793 ret = in cxd2880_tnrdmd_dvbt2_mon_l1_change()
797 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_change()
799 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_change()
805 ret = in cxd2880_tnrdmd_dvbt2_mon_l1_change()
808 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_change()
810 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_change()
823 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_change()
826 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_change()
828 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_change()
831 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_change()
834 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_change()
836 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_change()
841 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_change()
844 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_change()
846 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_change()
849 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_change()
852 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_l1_change()
854 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_change()
868 int ret; in cxd2880_tnrdmd_dvbt2_mon_l1_post() local
882 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_post()
885 if (ret) in cxd2880_tnrdmd_dvbt2_mon_l1_post()
886 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_post()
888 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_post()
891 if (ret) in cxd2880_tnrdmd_dvbt2_mon_l1_post()
892 return ret; in cxd2880_tnrdmd_dvbt2_mon_l1_post()
928 int ret; in cxd2880_tnrdmd_dvbt2_mon_bbheader() local
942 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_bbheader()
943 if (ret) in cxd2880_tnrdmd_dvbt2_mon_bbheader()
944 return ret; in cxd2880_tnrdmd_dvbt2_mon_bbheader()
946 ret = in cxd2880_tnrdmd_dvbt2_mon_bbheader()
950 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_bbheader()
952 return ret; in cxd2880_tnrdmd_dvbt2_mon_bbheader()
960 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_bbheader()
963 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_bbheader()
965 return ret; in cxd2880_tnrdmd_dvbt2_mon_bbheader()
972 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_bbheader()
975 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_bbheader()
977 return ret; in cxd2880_tnrdmd_dvbt2_mon_bbheader()
985 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_bbheader()
988 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_bbheader()
990 return ret; in cxd2880_tnrdmd_dvbt2_mon_bbheader()
1004 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_bbheader()
1007 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_bbheader()
1009 return ret; in cxd2880_tnrdmd_dvbt2_mon_bbheader()
1058 int ret; in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate() local
1072 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1073 if (ret) in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1074 return ret; in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1076 ret = in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1080 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1082 return ret; in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1090 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1093 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1095 return ret; in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1098 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1101 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1103 return ret; in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1116 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1119 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1121 return ret; in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1129 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1132 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1134 return ret; in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1142 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1145 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1147 return ret; in cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate()
1166 int ret; in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense() local
1177 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1178 if (ret) in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1179 return ret; in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1181 ret = in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1184 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1186 return ret; in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1192 ret = -EAGAIN; in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1195 ret = in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1199 return ret; in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1202 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1205 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1207 return ret; in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1210 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1213 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1215 return ret; in cxd2880_tnrdmd_dvbt2_mon_spectrum_sense()
1234 int ret; in dvbt2_read_snr_reg() local
1239 ret = slvt_freeze_reg(tnr_dmd); in dvbt2_read_snr_reg()
1240 if (ret) in dvbt2_read_snr_reg()
1241 return ret; in dvbt2_read_snr_reg()
1243 ret = in dvbt2_read_snr_reg()
1247 if (ret) { in dvbt2_read_snr_reg()
1249 return ret; in dvbt2_read_snr_reg()
1257 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in dvbt2_read_snr_reg()
1260 if (ret) { in dvbt2_read_snr_reg()
1262 return ret; in dvbt2_read_snr_reg()
1265 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in dvbt2_read_snr_reg()
1268 if (ret) { in dvbt2_read_snr_reg()
1270 return ret; in dvbt2_read_snr_reg()
1277 return ret; in dvbt2_read_snr_reg()
1302 int ret; in cxd2880_tnrdmd_dvbt2_mon_snr() local
1319 ret = dvbt2_read_snr_reg(tnr_dmd, ®_value); in cxd2880_tnrdmd_dvbt2_mon_snr()
1320 if (ret) in cxd2880_tnrdmd_dvbt2_mon_snr()
1321 return ret; in cxd2880_tnrdmd_dvbt2_mon_snr()
1323 ret = dvbt2_calc_snr(tnr_dmd, reg_value, snr); in cxd2880_tnrdmd_dvbt2_mon_snr()
1328 ret = in cxd2880_tnrdmd_dvbt2_mon_snr()
1333 return ret; in cxd2880_tnrdmd_dvbt2_mon_snr()
1342 int ret; in cxd2880_tnrdmd_dvbt2_mon_snr_diver() local
1360 ret = dvbt2_read_snr_reg(tnr_dmd, ®_value); in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1361 if (!ret) { in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1362 ret = dvbt2_calc_snr(tnr_dmd, reg_value, snr_main); in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1363 if (ret) in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1365 } else if (ret == -EAGAIN) { in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1368 return ret; in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1373 ret = dvbt2_read_snr_reg(tnr_dmd->diver_sub, ®_value); in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1374 if (!ret) { in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1375 ret = dvbt2_calc_snr(tnr_dmd->diver_sub, reg_value, snr_sub); in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1376 if (ret) in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1378 } else if (ret == -EAGAIN) { in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1381 return ret; in cxd2880_tnrdmd_dvbt2_mon_snr_diver()
1394 int ret; in cxd2880_tnrdmd_dvbt2_mon_packet_error_number() local
1409 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_packet_error_number()
1412 if (ret) in cxd2880_tnrdmd_dvbt2_mon_packet_error_number()
1413 return ret; in cxd2880_tnrdmd_dvbt2_mon_packet_error_number()
1415 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_packet_error_number()
1418 if (ret) in cxd2880_tnrdmd_dvbt2_mon_packet_error_number()
1419 return ret; in cxd2880_tnrdmd_dvbt2_mon_packet_error_number()
1426 return ret; in cxd2880_tnrdmd_dvbt2_mon_packet_error_number()
1438 int ret; in cxd2880_tnrdmd_dvbt2_mon_sampling_offset() local
1453 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1454 if (ret) in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1455 return ret; in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1457 ret = in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1461 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1463 return ret; in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1471 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1474 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1476 return ret; in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1479 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1483 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1485 return ret; in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1488 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1491 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1493 return ret; in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1496 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1500 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1502 return ret; in cxd2880_tnrdmd_dvbt2_mon_sampling_offset()
1574 int ret; in cxd2880_tnrdmd_dvbt2_mon_qam() local
1588 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_qam()
1589 if (ret) in cxd2880_tnrdmd_dvbt2_mon_qam()
1590 return ret; in cxd2880_tnrdmd_dvbt2_mon_qam()
1592 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_qam()
1595 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_qam()
1597 return ret; in cxd2880_tnrdmd_dvbt2_mon_qam()
1600 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_qam()
1603 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_qam()
1605 return ret; in cxd2880_tnrdmd_dvbt2_mon_qam()
1614 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_qam()
1617 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_qam()
1619 return ret; in cxd2880_tnrdmd_dvbt2_mon_qam()
1627 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_qam()
1630 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_qam()
1632 return ret; in cxd2880_tnrdmd_dvbt2_mon_qam()
1635 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_qam()
1638 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_qam()
1640 return ret; in cxd2880_tnrdmd_dvbt2_mon_qam()
1648 return ret; in cxd2880_tnrdmd_dvbt2_mon_qam()
1661 int ret; in cxd2880_tnrdmd_dvbt2_mon_code_rate() local
1675 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1676 if (ret) in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1677 return ret; in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1679 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1682 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1684 return ret; in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1687 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1690 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1692 return ret; in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1701 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1704 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1706 return ret; in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1714 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1717 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1719 return ret; in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1722 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1725 if (ret) { in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1727 return ret; in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1735 return ret; in cxd2880_tnrdmd_dvbt2_mon_code_rate()
1744 int ret; in cxd2880_tnrdmd_dvbt2_mon_profile() local
1755 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_profile()
1758 if (ret) in cxd2880_tnrdmd_dvbt2_mon_profile()
1759 return ret; in cxd2880_tnrdmd_dvbt2_mon_profile()
1761 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_profile()
1764 if (ret) in cxd2880_tnrdmd_dvbt2_mon_profile()
1765 return ret; in cxd2880_tnrdmd_dvbt2_mon_profile()
1773 ret = -EAGAIN; in cxd2880_tnrdmd_dvbt2_mon_profile()
1776 ret = in cxd2880_tnrdmd_dvbt2_mon_profile()
1780 return ret; in cxd2880_tnrdmd_dvbt2_mon_profile()
1793 int ret; in dvbt2_calc_ssi() local
1798 ret = in dvbt2_calc_ssi()
1800 if (ret) in dvbt2_calc_ssi()
1801 return ret; in dvbt2_calc_ssi()
1803 ret = in dvbt2_calc_ssi()
1806 if (ret) in dvbt2_calc_ssi()
1807 return ret; in dvbt2_calc_ssi()
1827 return ret; in dvbt2_calc_ssi()
1834 int ret; in cxd2880_tnrdmd_dvbt2_mon_ssi() local
1848 ret = cxd2880_tnrdmd_mon_rf_lvl(tnr_dmd, &rf_lvl); in cxd2880_tnrdmd_dvbt2_mon_ssi()
1849 if (ret) in cxd2880_tnrdmd_dvbt2_mon_ssi()
1850 return ret; in cxd2880_tnrdmd_dvbt2_mon_ssi()
1859 int ret; in cxd2880_tnrdmd_dvbt2_mon_ssi_sub() local
1873 ret = cxd2880_tnrdmd_mon_rf_lvl(tnr_dmd->diver_sub, &rf_lvl); in cxd2880_tnrdmd_dvbt2_mon_ssi_sub()
1874 if (ret) in cxd2880_tnrdmd_dvbt2_mon_ssi_sub()
1875 return ret; in cxd2880_tnrdmd_dvbt2_mon_ssi_sub()