/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_tnrdmd.c | 204 static int p_init1(struct cxd2880_tnrdmd *tnr_dmd) in p_init1() argument 209 if (!tnr_dmd) in p_init1() 212 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1() 218 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SINGLE || in p_init1() 219 tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_MAIN) { in p_init1() 220 switch (tnr_dmd->create_param.ts_output_if) { in p_init1() 233 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1() 240 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in p_init1() 247 switch (tnr_dmd->chip_id) { in p_init1() 258 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1() [all …]
|
D | cxd2880_tnrdmd_dvbt2_mon.c | 24 *tnr_dmd, u8 *sync_stat, in cxd2880_tnrdmd_dvbt2_mon_sync_stat() 31 if (!tnr_dmd || !sync_stat || !ts_lock_stat || !unlock_detected) in cxd2880_tnrdmd_dvbt2_mon_sync_stat() 34 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_ACTIVE) in cxd2880_tnrdmd_dvbt2_mon_sync_stat() 37 if (tnr_dmd->sys != CXD2880_DTV_SYS_DVBT2) in cxd2880_tnrdmd_dvbt2_mon_sync_stat() 40 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sync_stat() 46 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sync_stat() 63 *tnr_dmd, in cxd2880_tnrdmd_dvbt2_mon_sync_stat_sub() 69 if (!tnr_dmd || !sync_stat || !unlock_detected) in cxd2880_tnrdmd_dvbt2_mon_sync_stat_sub() 72 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_dvbt2_mon_sync_stat_sub() 75 return cxd2880_tnrdmd_dvbt2_mon_sync_stat(tnr_dmd->diver_sub, in cxd2880_tnrdmd_dvbt2_mon_sync_stat_sub() [all …]
|
D | cxd2880_tnrdmd_dvbt_mon.c | 22 static int is_tps_locked(struct cxd2880_tnrdmd *tnr_dmd); 25 *tnr_dmd, u8 *sync_stat, in cxd2880_tnrdmd_dvbt_mon_sync_stat() 32 if (!tnr_dmd || !sync_stat || !ts_lock_stat || !unlock_detected) in cxd2880_tnrdmd_dvbt_mon_sync_stat() 35 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_ACTIVE) in cxd2880_tnrdmd_dvbt_mon_sync_stat() 37 if (tnr_dmd->sys != CXD2880_DTV_SYS_DVBT) in cxd2880_tnrdmd_dvbt_mon_sync_stat() 40 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt_mon_sync_stat() 46 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt_mon_sync_stat() 63 *tnr_dmd, u8 *sync_stat, in cxd2880_tnrdmd_dvbt_mon_sync_stat_sub() 68 if (!tnr_dmd || !sync_stat || !unlock_detected) in cxd2880_tnrdmd_dvbt_mon_sync_stat_sub() 71 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_MAIN) in cxd2880_tnrdmd_dvbt_mon_sync_stat_sub() [all …]
|
D | cxd2880_tnrdmd_dvbt2.c | 24 *tnr_dmd, in x_tune_dvbt2_demod_setting() 162 if (!tnr_dmd) in x_tune_dvbt2_demod_setting() 165 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting() 172 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting() 179 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_SUB) { in x_tune_dvbt2_demod_setting() 180 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting() 186 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting() 193 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting() 199 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting() 205 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting() [all …]
|
D | cxd2880_tnrdmd_dvbt.c | 45 *tnr_dmd, in x_tune_dvbt_demod_setting() 102 if (!tnr_dmd) in x_tune_dvbt_demod_setting() 105 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting() 112 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt_demod_setting() 132 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting() 138 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt_demod_setting() 144 if (tnr_dmd->diver_mode != CXD2880_TNRDMD_DIVERMODE_SUB) { in x_tune_dvbt_demod_setting() 147 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt_demod_setting() 153 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting() 160 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting() [all …]
|
D | cxd2880_tnrdmd_mon.c | 17 int cxd2880_tnrdmd_mon_rf_lvl(struct cxd2880_tnrdmd *tnr_dmd, in cxd2880_tnrdmd_mon_rf_lvl() argument 23 if (!tnr_dmd || !rf_lvl_db) in cxd2880_tnrdmd_mon_rf_lvl() 26 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_ACTIVE) in cxd2880_tnrdmd_mon_rf_lvl() 29 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl() 35 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl() 41 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl() 47 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl() 55 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl() 61 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl() 70 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl() [all …]
|
D | cxd2880_tnrdmd_dvbt2_mon.h | 17 *tnr_dmd, u8 *sync_stat, 22 *tnr_dmd, 27 *tnr_dmd, int *offset); 31 *tnr_dmd, 34 int cxd2880_tnrdmd_dvbt2_mon_l1_pre(struct cxd2880_tnrdmd *tnr_dmd, 39 *tnr_dmd, 43 int cxd2880_tnrdmd_dvbt2_mon_ofdm(struct cxd2880_tnrdmd *tnr_dmd, 47 *tnr_dmd, u8 *plp_ids, 51 *tnr_dmd, 59 *tnr_dmd, [all …]
|
D | cxd2880_tnrdmd.h | 23 #define slvt_unfreeze_reg(tnr_dmd) ((void)((tnr_dmd)->io->write_reg\ argument 24 ((tnr_dmd)->io, CXD2880_IO_TGT_DMD, 0x01, 0x00))) 213 int (*rf_lvl_cmpstn)(struct cxd2880_tnrdmd *tnr_dmd, 236 int cxd2880_tnrdmd_create(struct cxd2880_tnrdmd *tnr_dmd, 250 int cxd2880_tnrdmd_init1(struct cxd2880_tnrdmd *tnr_dmd); 252 int cxd2880_tnrdmd_init2(struct cxd2880_tnrdmd *tnr_dmd); 255 *tnr_dmd, 259 *tnr_dmd, 267 *tnr_dmd, 271 int cxd2880_tnrdmd_sleep(struct cxd2880_tnrdmd *tnr_dmd); [all …]
|
D | cxd2880_tnrdmd_dvbt_mon.h | 17 *tnr_dmd, u8 *sync_stat, 22 *tnr_dmd, u8 *sync_stat, 26 *tnr_dmd, 33 *tnr_dmd, int *offset); 37 *tnr_dmd, 41 *tnr_dmd, 47 *tnr_dmd, 51 *tnr_dmd, 56 int cxd2880_tnrdmd_dvbt_mon_snr(struct cxd2880_tnrdmd *tnr_dmd, 60 *tnr_dmd, int *snr, [all …]
|
D | cxd2880_integ.c | 17 int cxd2880_integ_init(struct cxd2880_tnrdmd *tnr_dmd) in cxd2880_integ_init() argument 23 if (!tnr_dmd) in cxd2880_integ_init() 26 ret = cxd2880_tnrdmd_init1(tnr_dmd); in cxd2880_integ_init() 34 cxd2880_tnrdmd_check_internal_cpu_status(tnr_dmd, in cxd2880_integ_init() 50 return cxd2880_tnrdmd_init2(tnr_dmd); in cxd2880_integ_init() 53 int cxd2880_integ_cancel(struct cxd2880_tnrdmd *tnr_dmd) in cxd2880_integ_cancel() argument 55 if (!tnr_dmd) in cxd2880_integ_cancel() 58 atomic_set(&tnr_dmd->cancel, 1); in cxd2880_integ_cancel() 63 int cxd2880_integ_check_cancellation(struct cxd2880_tnrdmd *tnr_dmd) in cxd2880_integ_check_cancellation() argument 65 if (!tnr_dmd) in cxd2880_integ_check_cancellation() [all …]
|
D | cxd2880_tnrdmd_dvbt2.h | 31 int cxd2880_tnrdmd_dvbt2_tune1(struct cxd2880_tnrdmd *tnr_dmd, 35 int cxd2880_tnrdmd_dvbt2_tune2(struct cxd2880_tnrdmd *tnr_dmd, 40 *tnr_dmd); 43 *tnr_dmd, 49 *tnr_dmd, 55 *tnr_dmd, u8 auto_plp, 59 *tnr_dmd); 62 *tnr_dmd,
|
D | cxd2880_tnrdmd_dvbt.h | 22 int cxd2880_tnrdmd_dvbt_tune1(struct cxd2880_tnrdmd *tnr_dmd, 26 int cxd2880_tnrdmd_dvbt_tune2(struct cxd2880_tnrdmd *tnr_dmd, 31 *tnr_dmd); 34 *tnr_dmd, 40 *tnr_dmd,
|
D | cxd2880_tnrdmd_mon.h | 16 int cxd2880_tnrdmd_mon_rf_lvl(struct cxd2880_tnrdmd *tnr_dmd, 19 int cxd2880_tnrdmd_mon_rf_lvl_sub(struct cxd2880_tnrdmd *tnr_dmd, 23 *tnr_dmd, u16 *status); 27 *tnr_dmd,
|
D | cxd2880_integ.h | 20 int cxd2880_integ_init(struct cxd2880_tnrdmd *tnr_dmd); 22 int cxd2880_integ_cancel(struct cxd2880_tnrdmd *tnr_dmd); 25 *tnr_dmd);
|
D | cxd2880_top.c | 959 static int cxd2880_dvbt_tune(struct cxd2880_tnrdmd *tnr_dmd, in cxd2880_dvbt_tune() argument 965 if (!tnr_dmd || !tune_param) in cxd2880_dvbt_tune() 968 if (tnr_dmd->diver_mode == CXD2880_TNRDMD_DIVERMODE_SUB) in cxd2880_dvbt_tune() 971 if (tnr_dmd->state != CXD2880_TNRDMD_STATE_SLEEP && in cxd2880_dvbt_tune() 972 tnr_dmd->state != CXD2880_TNRDMD_STATE_ACTIVE) in cxd2880_dvbt_tune() 975 atomic_set(&tnr_dmd->cancel, 0); in cxd2880_dvbt_tune() 984 ret = cxd2880_tnrdmd_dvbt_tune1(tnr_dmd, tune_param); in cxd2880_dvbt_tune() 991 return cxd2880_tnrdmd_dvbt_tune2(tnr_dmd, tune_param); in cxd2880_dvbt_tune() 994 static int cxd2880_dvbt2_tune(struct cxd2880_tnrdmd *tnr_dmd, in cxd2880_dvbt2_tune() argument 1000 if (!tnr_dmd || !tune_param) in cxd2880_dvbt2_tune() [all …]
|