Lines Matching refs:ret
160 int ret; in x_tune_dvbt2_demod_setting() local
165 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
169 if (ret) in x_tune_dvbt2_demod_setting()
170 return ret; in x_tune_dvbt2_demod_setting()
172 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
176 if (ret) in x_tune_dvbt2_demod_setting()
177 return ret; in x_tune_dvbt2_demod_setting()
180 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
183 if (ret) in x_tune_dvbt2_demod_setting()
184 return ret; in x_tune_dvbt2_demod_setting()
186 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
189 if (ret) in x_tune_dvbt2_demod_setting()
190 return ret; in x_tune_dvbt2_demod_setting()
193 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
196 if (ret) in x_tune_dvbt2_demod_setting()
197 return ret; in x_tune_dvbt2_demod_setting()
199 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
202 if (ret) in x_tune_dvbt2_demod_setting()
203 return ret; in x_tune_dvbt2_demod_setting()
205 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
208 if (ret) in x_tune_dvbt2_demod_setting()
209 return ret; in x_tune_dvbt2_demod_setting()
211 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
214 if (ret) in x_tune_dvbt2_demod_setting()
215 return ret; in x_tune_dvbt2_demod_setting()
217 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
220 if (ret) in x_tune_dvbt2_demod_setting()
221 return ret; in x_tune_dvbt2_demod_setting()
223 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
226 if (ret) in x_tune_dvbt2_demod_setting()
227 return ret; in x_tune_dvbt2_demod_setting()
229 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
232 if (ret) in x_tune_dvbt2_demod_setting()
233 return ret; in x_tune_dvbt2_demod_setting()
235 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
238 if (ret) in x_tune_dvbt2_demod_setting()
239 return ret; in x_tune_dvbt2_demod_setting()
241 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
244 if (ret) in x_tune_dvbt2_demod_setting()
245 return ret; in x_tune_dvbt2_demod_setting()
247 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
250 if (ret) in x_tune_dvbt2_demod_setting()
251 return ret; in x_tune_dvbt2_demod_setting()
253 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
256 if (ret) in x_tune_dvbt2_demod_setting()
257 return ret; in x_tune_dvbt2_demod_setting()
279 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
282 if (ret) in x_tune_dvbt2_demod_setting()
283 return ret; in x_tune_dvbt2_demod_setting()
285 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
288 if (ret) in x_tune_dvbt2_demod_setting()
289 return ret; in x_tune_dvbt2_demod_setting()
291 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
294 if (ret) in x_tune_dvbt2_demod_setting()
295 return ret; in x_tune_dvbt2_demod_setting()
297 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
300 if (ret) in x_tune_dvbt2_demod_setting()
301 return ret; in x_tune_dvbt2_demod_setting()
303 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
306 if (ret) in x_tune_dvbt2_demod_setting()
307 return ret; in x_tune_dvbt2_demod_setting()
309 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
312 if (ret) in x_tune_dvbt2_demod_setting()
313 return ret; in x_tune_dvbt2_demod_setting()
315 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
318 if (ret) in x_tune_dvbt2_demod_setting()
319 return ret; in x_tune_dvbt2_demod_setting()
322 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
325 if (ret) in x_tune_dvbt2_demod_setting()
326 return ret; in x_tune_dvbt2_demod_setting()
328 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
331 if (ret) in x_tune_dvbt2_demod_setting()
332 return ret; in x_tune_dvbt2_demod_setting()
335 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
338 if (ret) in x_tune_dvbt2_demod_setting()
339 return ret; in x_tune_dvbt2_demod_setting()
341 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
344 if (ret) in x_tune_dvbt2_demod_setting()
345 return ret; in x_tune_dvbt2_demod_setting()
361 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
364 if (ret) in x_tune_dvbt2_demod_setting()
365 return ret; in x_tune_dvbt2_demod_setting()
367 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
370 if (ret) in x_tune_dvbt2_demod_setting()
371 return ret; in x_tune_dvbt2_demod_setting()
385 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
388 if (ret) in x_tune_dvbt2_demod_setting()
389 return ret; in x_tune_dvbt2_demod_setting()
405 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
408 if (ret) in x_tune_dvbt2_demod_setting()
409 return ret; in x_tune_dvbt2_demod_setting()
426 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
429 if (ret) in x_tune_dvbt2_demod_setting()
430 return ret; in x_tune_dvbt2_demod_setting()
447 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
450 if (ret) in x_tune_dvbt2_demod_setting()
451 return ret; in x_tune_dvbt2_demod_setting()
453 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
456 if (ret) in x_tune_dvbt2_demod_setting()
457 return ret; in x_tune_dvbt2_demod_setting()
459 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
462 if (ret) in x_tune_dvbt2_demod_setting()
463 return ret; in x_tune_dvbt2_demod_setting()
479 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
482 if (ret) in x_tune_dvbt2_demod_setting()
483 return ret; in x_tune_dvbt2_demod_setting()
500 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
503 if (ret) in x_tune_dvbt2_demod_setting()
504 return ret; in x_tune_dvbt2_demod_setting()
521 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
524 if (ret) in x_tune_dvbt2_demod_setting()
525 return ret; in x_tune_dvbt2_demod_setting()
527 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
530 if (ret) in x_tune_dvbt2_demod_setting()
531 return ret; in x_tune_dvbt2_demod_setting()
533 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
536 if (ret) in x_tune_dvbt2_demod_setting()
537 return ret; in x_tune_dvbt2_demod_setting()
553 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
556 if (ret) in x_tune_dvbt2_demod_setting()
557 return ret; in x_tune_dvbt2_demod_setting()
574 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
577 if (ret) in x_tune_dvbt2_demod_setting()
578 return ret; in x_tune_dvbt2_demod_setting()
595 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
598 if (ret) in x_tune_dvbt2_demod_setting()
599 return ret; in x_tune_dvbt2_demod_setting()
601 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
604 if (ret) in x_tune_dvbt2_demod_setting()
605 return ret; in x_tune_dvbt2_demod_setting()
607 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
610 if (ret) in x_tune_dvbt2_demod_setting()
611 return ret; in x_tune_dvbt2_demod_setting()
627 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
630 if (ret) in x_tune_dvbt2_demod_setting()
631 return ret; in x_tune_dvbt2_demod_setting()
648 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
651 if (ret) in x_tune_dvbt2_demod_setting()
652 return ret; in x_tune_dvbt2_demod_setting()
672 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
675 if (ret) in x_tune_dvbt2_demod_setting()
676 return ret; in x_tune_dvbt2_demod_setting()
678 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
681 if (ret) in x_tune_dvbt2_demod_setting()
682 return ret; in x_tune_dvbt2_demod_setting()
684 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
687 if (ret) in x_tune_dvbt2_demod_setting()
688 return ret; in x_tune_dvbt2_demod_setting()
704 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
707 if (ret) in x_tune_dvbt2_demod_setting()
708 return ret; in x_tune_dvbt2_demod_setting()
725 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
728 if (ret) in x_tune_dvbt2_demod_setting()
729 return ret; in x_tune_dvbt2_demod_setting()
737 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
740 if (ret) in x_tune_dvbt2_demod_setting()
741 return ret; in x_tune_dvbt2_demod_setting()
754 int ret = 0; in x_sleep_dvbt2_demod_setting() local
760 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_sleep_dvbt2_demod_setting()
763 if (ret) in x_sleep_dvbt2_demod_setting()
764 return ret; in x_sleep_dvbt2_demod_setting()
766 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_sleep_dvbt2_demod_setting()
771 return ret; in x_sleep_dvbt2_demod_setting()
781 int ret; in dvbt2_set_profile() local
823 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in dvbt2_set_profile()
826 if (ret) in dvbt2_set_profile()
827 return ret; in dvbt2_set_profile()
829 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in dvbt2_set_profile()
832 if (ret) in dvbt2_set_profile()
833 return ret; in dvbt2_set_profile()
835 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in dvbt2_set_profile()
838 if (ret) in dvbt2_set_profile()
839 return ret; in dvbt2_set_profile()
850 int ret; in cxd2880_tnrdmd_dvbt2_tune1() local
866 ret = in cxd2880_tnrdmd_dvbt2_tune1()
870 if (ret) in cxd2880_tnrdmd_dvbt2_tune1()
871 return ret; in cxd2880_tnrdmd_dvbt2_tune1()
873 ret = in cxd2880_tnrdmd_dvbt2_tune1()
876 if (ret) in cxd2880_tnrdmd_dvbt2_tune1()
877 return ret; in cxd2880_tnrdmd_dvbt2_tune1()
880 ret = in cxd2880_tnrdmd_dvbt2_tune1()
884 if (ret) in cxd2880_tnrdmd_dvbt2_tune1()
885 return ret; in cxd2880_tnrdmd_dvbt2_tune1()
888 ret = dvbt2_set_profile(tnr_dmd, tune_param->profile); in cxd2880_tnrdmd_dvbt2_tune1()
889 if (ret) in cxd2880_tnrdmd_dvbt2_tune1()
890 return ret; in cxd2880_tnrdmd_dvbt2_tune1()
893 ret = in cxd2880_tnrdmd_dvbt2_tune1()
895 if (ret) in cxd2880_tnrdmd_dvbt2_tune1()
896 return ret; in cxd2880_tnrdmd_dvbt2_tune1()
900 ret = cxd2880_tnrdmd_dvbt2_set_plp_cfg(tnr_dmd, 1, 0); in cxd2880_tnrdmd_dvbt2_tune1()
902 ret = in cxd2880_tnrdmd_dvbt2_tune1()
906 return ret; in cxd2880_tnrdmd_dvbt2_tune1()
914 int ret; in cxd2880_tnrdmd_dvbt2_tune2() local
944 ret = in cxd2880_tnrdmd_dvbt2_tune2()
948 if (ret) in cxd2880_tnrdmd_dvbt2_tune2()
949 return ret; in cxd2880_tnrdmd_dvbt2_tune2()
969 int ret; in cxd2880_tnrdmd_dvbt2_sleep_setting() local
981 ret = x_sleep_dvbt2_demod_setting(tnr_dmd); in cxd2880_tnrdmd_dvbt2_sleep_setting()
982 if (ret) in cxd2880_tnrdmd_dvbt2_sleep_setting()
983 return ret; in cxd2880_tnrdmd_dvbt2_sleep_setting()
986 ret = x_sleep_dvbt2_demod_setting(tnr_dmd->diver_sub); in cxd2880_tnrdmd_dvbt2_sleep_setting()
988 return ret; in cxd2880_tnrdmd_dvbt2_sleep_setting()
997 int ret; in cxd2880_tnrdmd_dvbt2_check_demod_lock() local
1013 ret = in cxd2880_tnrdmd_dvbt2_check_demod_lock()
1016 if (ret) in cxd2880_tnrdmd_dvbt2_check_demod_lock()
1017 return ret; in cxd2880_tnrdmd_dvbt2_check_demod_lock()
1035 ret = in cxd2880_tnrdmd_dvbt2_check_demod_lock()
1038 if (ret) in cxd2880_tnrdmd_dvbt2_check_demod_lock()
1039 return ret; in cxd2880_tnrdmd_dvbt2_check_demod_lock()
1057 int ret; in cxd2880_tnrdmd_dvbt2_check_ts_lock() local
1073 ret = in cxd2880_tnrdmd_dvbt2_check_ts_lock()
1076 if (ret) in cxd2880_tnrdmd_dvbt2_check_ts_lock()
1077 return ret; in cxd2880_tnrdmd_dvbt2_check_ts_lock()
1098 ret = in cxd2880_tnrdmd_dvbt2_check_ts_lock()
1101 if (ret) in cxd2880_tnrdmd_dvbt2_check_ts_lock()
1102 return ret; in cxd2880_tnrdmd_dvbt2_check_ts_lock()
1116 int ret; in cxd2880_tnrdmd_dvbt2_set_plp_cfg() local
1128 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_set_plp_cfg()
1131 if (ret) in cxd2880_tnrdmd_dvbt2_set_plp_cfg()
1132 return ret; in cxd2880_tnrdmd_dvbt2_set_plp_cfg()
1135 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_set_plp_cfg()
1138 if (ret) in cxd2880_tnrdmd_dvbt2_set_plp_cfg()
1139 return ret; in cxd2880_tnrdmd_dvbt2_set_plp_cfg()
1152 int ret; in cxd2880_tnrdmd_dvbt2_diver_fef_setting() local
1166 ret = cxd2880_tnrdmd_dvbt2_mon_ofdm(tnr_dmd, &ofdm); in cxd2880_tnrdmd_dvbt2_diver_fef_setting()
1167 if (ret) in cxd2880_tnrdmd_dvbt2_diver_fef_setting()
1168 return ret; in cxd2880_tnrdmd_dvbt2_diver_fef_setting()
1173 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_diver_fef_setting()
1176 if (ret) in cxd2880_tnrdmd_dvbt2_diver_fef_setting()
1177 return ret; in cxd2880_tnrdmd_dvbt2_diver_fef_setting()
1188 int ret; in cxd2880_tnrdmd_dvbt2_check_l1post_valid() local
1202 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_check_l1post_valid()
1205 if (ret) in cxd2880_tnrdmd_dvbt2_check_l1post_valid()
1206 return ret; in cxd2880_tnrdmd_dvbt2_check_l1post_valid()
1208 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_check_l1post_valid()
1211 if (ret) in cxd2880_tnrdmd_dvbt2_check_l1post_valid()
1212 return ret; in cxd2880_tnrdmd_dvbt2_check_l1post_valid()
1216 return ret; in cxd2880_tnrdmd_dvbt2_check_l1post_valid()