/drivers/media/dvb/frontends/ |
D | z0194a.h | 16 u32 srate, u32 ratio) in sharp_z0194a_set_symbol_rate() argument 21 if (srate < 1500000) { in sharp_z0194a_set_symbol_rate() 23 else if (srate < 3000000) { in sharp_z0194a_set_symbol_rate() 25 else if (srate < 7000000) { in sharp_z0194a_set_symbol_rate() 27 else if (srate < 14000000) { in sharp_z0194a_set_symbol_rate() 29 else if (srate < 30000000) { in sharp_z0194a_set_symbol_rate() 31 else if (srate < 45000000) { in sharp_z0194a_set_symbol_rate()
|
D | stb0899_algo.c | 77 static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 srate) in stb0899_set_srate() argument 100 tmp = stb0899_do_div((((u64)srate) << 21) + master_clk, 2 * master_clk); in stb0899_set_srate() 109 return srate; in stb0899_set_srate() 118 static long stb0899_calc_derot_time(long srate) in stb0899_calc_derot_time() argument 120 if (srate > 0) in stb0899_calc_derot_time() 121 return (100000 / (srate / 1000)); in stb0899_calc_derot_time() 135 return (internal->srate + (internal->srate * internal->rolloff) / 100); in stb0899_carr_width() 219 derot_step = (params->srate / 2L) / internal->mclk; in stb0899_search_tmg() 352 if (params->srate <= 2000000) in stb0899_check_data() 354 else if (params->srate <= 5000000) in stb0899_check_data() [all …]
|
D | bsbe1.h | 51 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) in alps_bsbe1_set_symbol_rate() argument 56 if (srate < 1500000) { aclk = 0xb7; bclk = 0x47; } in alps_bsbe1_set_symbol_rate() 57 else if (srate < 3000000) { aclk = 0xb7; bclk = 0x4b; } in alps_bsbe1_set_symbol_rate() 58 else if (srate < 7000000) { aclk = 0xb7; bclk = 0x4f; } in alps_bsbe1_set_symbol_rate() 59 else if (srate < 14000000) { aclk = 0xb7; bclk = 0x53; } in alps_bsbe1_set_symbol_rate() 60 else if (srate < 30000000) { aclk = 0xb6; bclk = 0x53; } in alps_bsbe1_set_symbol_rate() 61 else if (srate < 45000000) { aclk = 0xb4; bclk = 0x51; } in alps_bsbe1_set_symbol_rate()
|
D | bsru6.h | 70 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_bsru6_set_symbol_rate() argument 75 if (srate < 1500000) { in alps_bsru6_set_symbol_rate() 78 } else if (srate < 3000000) { in alps_bsru6_set_symbol_rate() 81 } else if (srate < 7000000) { in alps_bsru6_set_symbol_rate() 84 } else if (srate < 14000000) { in alps_bsru6_set_symbol_rate() 87 } else if (srate < 30000000) { in alps_bsru6_set_symbol_rate() 90 } else if (srate < 45000000) { in alps_bsru6_set_symbol_rate()
|
D | tda8083.c | 131 static int tda8083_set_symbolrate (struct tda8083_state* state, u32 srate) in tda8083_set_symbolrate() argument 137 if (srate > 32000000) in tda8083_set_symbolrate() 138 srate = 32000000; in tda8083_set_symbolrate() 139 if (srate < 500000) in tda8083_set_symbolrate() 140 srate = 500000; in tda8083_set_symbolrate() 143 if (srate < 24000000) in tda8083_set_symbolrate() 145 if (srate < 16000000) in tda8083_set_symbolrate() 149 ratio = tmp / srate; in tda8083_set_symbolrate() 151 tmp = (tmp % srate) << 8; in tda8083_set_symbolrate() 152 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate() [all …]
|
D | stv0299.c | 223 static int stv0299_set_symbolrate (struct dvb_frontend* fe, u32 srate) in stv0299_set_symbolrate() argument 226 u64 big = srate; in stv0299_set_symbolrate() 230 if ((srate < 1000000) || (srate > 45000000)) return -EINVAL; in stv0299_set_symbolrate() 238 return state->config->set_symbol_rate(fe, srate, ratio); in stv0299_set_symbolrate() 244 u32 srate; in stv0299_get_symbolrate() local 254 srate = (sfr[0] << 8) | sfr[1]; in stv0299_get_symbolrate() 255 srate *= Mclk; in stv0299_get_symbolrate() 256 srate /= 16; in stv0299_get_symbolrate() 257 srate += (sfr[2] >> 4) * Mclk / 256; in stv0299_get_symbolrate() 258 offset = (s32) rtf * (srate / 4096L); in stv0299_get_symbolrate() [all …]
|
D | cx24110.c | 241 static int cx24110_set_symbolrate (struct cx24110_state* state, u32 srate) in cx24110_set_symbolrate() argument 250 dprintk("cx24110 debug: entering %s(%d)\n",__func__,srate); in cx24110_set_symbolrate() 251 if (srate>90999000UL/2) in cx24110_set_symbolrate() 252 srate=90999000UL/2; in cx24110_set_symbolrate() 253 if (srate<500000) in cx24110_set_symbolrate() 254 srate=500000; in cx24110_set_symbolrate() 256 for(i = 0; (i < ARRAY_SIZE(bands)) && (srate>bands[i]); i++) in cx24110_set_symbolrate() 262 if(srate<90999000UL/4) { /* sample rate 45MHz*/ in cx24110_set_symbolrate() 266 } else if(srate<60666000UL/2) { /* sample rate 60MHz */ in cx24110_set_symbolrate() 270 } else if(srate<80888000UL/2) { /* sample rate 80MHz */ in cx24110_set_symbolrate() [all …]
|
D | ves1x93.c | 173 static int ves1x93_set_symbolrate (struct ves1x93_state* state, u32 srate) in ves1x93_set_symbolrate() argument 182 dprintk("%s: srate == %d\n", __func__, (unsigned int) srate); in ves1x93_set_symbolrate() 184 if (srate > state->config->xin/2) in ves1x93_set_symbolrate() 185 srate = state->config->xin/2; in ves1x93_set_symbolrate() 187 if (srate < 500000) in ves1x93_set_symbolrate() 188 srate = 500000; in ves1x93_set_symbolrate() 194 tmp = srate << 6; in ves1x93_set_symbolrate() 227 BDRI = ( ((FIN << 8) / ((srate << (FNR >> 1)) >> 2)) + 1) >> 1; in ves1x93_set_symbolrate() 249 if (srate < 6000000) in ves1x93_set_symbolrate()
|
D | cx24123.c | 453 static int cx24123_set_symbolrate(struct cx24123_state *state, u32 srate) in cx24123_set_symbolrate() argument 459 if ((srate > state->frontend.ops.info.symbol_rate_max) || in cx24123_set_symbolrate() 460 (srate < state->frontend.ops.info.symbol_rate_min)) in cx24123_set_symbolrate() 465 if (srate < (XTAL*2)/2) in cx24123_set_symbolrate() 467 else if (srate < (XTAL*3)/2) in cx24123_set_symbolrate() 469 else if (srate < (XTAL*4)/2) in cx24123_set_symbolrate() 471 else if (srate < (XTAL*5)/2) in cx24123_set_symbolrate() 473 else if (srate < (XTAL*6)/2) in cx24123_set_symbolrate() 475 else if (srate < (XTAL*7)/2) in cx24123_set_symbolrate() 477 else if (srate < (XTAL*8)/2) in cx24123_set_symbolrate() [all …]
|
D | stb0899_drv.c | 1422 iter_scale /= (internal->srate / 1000000); in stb0899_set_iterations() 1444 i_params->srate = p->u.qpsk.symbol_rate; in stb0899_search() 1449 dprintk(state->verbose, FE_DEBUG, 1, "Frequency=%d, Srate=%d", i_params->freq, i_params->srate); in stb0899_search() 1451 if (INRANGE(i_params->srate, 1000000, 45000000)) { in stb0899_search() 1456 if (internal->srate > 15000000) in stb0899_search() 1458 else if (internal->srate > 5000000) in stb0899_search() 1465 if (i_params->srate <= 5000000) in stb0899_search() 1475 internal->srate = i_params->srate; in stb0899_search() 1482 internal->srch_range = SearchRange + 1500000 + (i_params->srate / 5); in stb0899_search() 1522 internal->srate = i_params->srate; in stb0899_search() [all …]
|
D | stb6100.c | 310 u32 srate = 0, fvco, nint, nfrac; in stb6100_set_frequency() local 321 srate = p.u.qpsk.symbol_rate; in stb6100_set_frequency() 331 if (srate >= 15000000) in stb6100_set_frequency() 333 else if (srate >= 5000000) in stb6100_set_frequency() 373 frequency, srate, (unsigned int)g, (unsigned int)odiv, in stb6100_set_frequency()
|
D | stv0288.c | 119 static int stv0288_set_symbolrate(struct dvb_frontend *fe, u32 srate) in stv0288_set_symbolrate() argument 125 if ((srate < 1000000) || (srate > 45000000)) in stv0288_set_symbolrate() 128 temp = (unsigned int)srate / 1000; in stv0288_set_symbolrate()
|
D | si21xx.c | 353 static int si21xx_set_symbolrate(struct dvb_frontend *fe, u32 srate) in si21xx_set_symbolrate() argument 360 dprintk("%s : srate = %i\n", __func__ , srate); in si21xx_set_symbolrate() 362 if ((srate < 1000000) || (srate > 45000000)) in si21xx_set_symbolrate() 365 data_rate = srate; in si21xx_set_symbolrate()
|
D | stb0899_priv.h | 158 u32 srate; /* Symbol rate */ member 165 u32 srate; /* Demod internal Symbol rate */ member
|
D | stv0299.h | 92 int (*set_symbol_rate)(struct dvb_frontend *fe, u32 srate, u32 ratio);
|
D | stb6100.h | 92 u32 srate; member
|
D | stv0297.c | 150 static void stv0297_set_symbolrate(struct stv0297_state *state, u32 srate) in stv0297_set_symbolrate() argument 154 tmp = 131072L * srate; /* 131072 = 2^17 */ in stv0297_set_symbolrate()
|
/drivers/media/dvb/b2c2/ |
D | flexcop-fe-tuner.c | 160 static int samsung_tbmu24112_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) in samsung_tbmu24112_set_symbol_rate() argument 165 if (srate < 1500000) { aclk = 0xb7; bclk = 0x47; } in samsung_tbmu24112_set_symbol_rate() 166 else if (srate < 3000000) { aclk = 0xb7; bclk = 0x4b; } in samsung_tbmu24112_set_symbol_rate() 167 else if (srate < 7000000) { aclk = 0xb7; bclk = 0x4f; } in samsung_tbmu24112_set_symbol_rate() 168 else if (srate < 14000000) { aclk = 0xb7; bclk = 0x53; } in samsung_tbmu24112_set_symbol_rate() 169 else if (srate < 30000000) { aclk = 0xb6; bclk = 0x53; } in samsung_tbmu24112_set_symbol_rate() 170 else if (srate < 45000000) { aclk = 0xb4; bclk = 0x51; } in samsung_tbmu24112_set_symbol_rate()
|
/drivers/media/dvb/ttpci/ |
D | budget-av.c | 473 static int philips_su1278_ty_ci_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in philips_su1278_ty_ci_set_symbol_rate() argument 480 if (srate < 2000000) in philips_su1278_ty_ci_set_symbol_rate() 482 else if (srate < 5000000) in philips_su1278_ty_ci_set_symbol_rate() 484 else if (srate < 15000000) in philips_su1278_ty_ci_set_symbol_rate() 486 else if (srate < 45000000) in philips_su1278_ty_ci_set_symbol_rate() 490 if (srate < 4000000) in philips_su1278_ty_ci_set_symbol_rate() 844 u32 srate, u32 ratio) in philips_sd1878_ci_set_symbol_rate() argument 851 if (srate < 2000000) in philips_sd1878_ci_set_symbol_rate() 853 else if (srate < 5000000) in philips_sd1878_ci_set_symbol_rate() 855 else if (srate < 15000000) in philips_sd1878_ci_set_symbol_rate() [all …]
|
D | budget-ci.c | 666 static int philips_su1278_tt_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in philips_su1278_tt_set_symbol_rate() argument 669 if (srate >= 10000000) { in philips_su1278_tt_set_symbol_rate()
|
/drivers/media/dvb/bt8xx/ |
D | dst.c | 456 static int dst_set_symbolrate(struct dst_state *state, u32 srate) in dst_set_symbolrate() argument 461 state->symbol_rate = srate; in dst_set_symbolrate() 465 dprintk(verbose, DST_INFO, 1, "set symrate %u", srate); in dst_set_symbolrate() 466 srate /= 1000; in dst_set_symbolrate() 469 sval = srate; in dst_set_symbolrate() 478 state->tx_tuna[5] = (u8) (srate >> 16) & 0x7f; in dst_set_symbolrate() 479 state->tx_tuna[6] = (u8) (srate >> 8); in dst_set_symbolrate() 480 state->tx_tuna[7] = (u8) srate; in dst_set_symbolrate() 484 if (srate > 8000) in dst_set_symbolrate() 490 state->tx_tuna[5] = (u8) (srate >> 8); in dst_set_symbolrate() [all …]
|
/drivers/media/dvb/ttusb-budget/ |
D | dvb-ttusb-budget.c | 1247 static int alps_stv0299_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_stv0299_set_symbol_rate() argument 1252 if (srate < 1500000) { in alps_stv0299_set_symbol_rate() 1255 } else if (srate < 3000000) { in alps_stv0299_set_symbol_rate() 1258 } else if (srate < 7000000) { in alps_stv0299_set_symbol_rate() 1261 } else if (srate < 14000000) { in alps_stv0299_set_symbol_rate() 1264 } else if (srate < 30000000) { in alps_stv0299_set_symbol_rate() 1267 } else if (srate < 45000000) { in alps_stv0299_set_symbol_rate()
|
/drivers/media/video/pvrusb2/ |
D | pvrusb2-hdw-internal.h | 383 VCREATE_DATA(srate);
|
D | pvrusb2-hdw.c | 975 VCREATE_FUNCS(srate) 1146 DEFREF(srate),
|
/drivers/media/dvb/dvb-usb/ |
D | opera1.c | 178 static int opera1_stv0299_set_symbol_rate(struct dvb_frontend *fe, u32 srate, in opera1_stv0299_set_symbol_rate() argument
|