Lines Matching refs:tuner_frequency
1031 int tuner_frequency = 0; in philips_tdm1316l_tuner_set_params() local
1035 tuner_frequency = p->frequency + 36130000; in philips_tdm1316l_tuner_set_params()
1036 if (tuner_frequency < 87000000) return -EINVAL; in philips_tdm1316l_tuner_set_params()
1037 else if (tuner_frequency < 130000000) cp = 3; in philips_tdm1316l_tuner_set_params()
1038 else if (tuner_frequency < 160000000) cp = 5; in philips_tdm1316l_tuner_set_params()
1039 else if (tuner_frequency < 200000000) cp = 6; in philips_tdm1316l_tuner_set_params()
1040 else if (tuner_frequency < 290000000) cp = 3; in philips_tdm1316l_tuner_set_params()
1041 else if (tuner_frequency < 420000000) cp = 5; in philips_tdm1316l_tuner_set_params()
1042 else if (tuner_frequency < 480000000) cp = 6; in philips_tdm1316l_tuner_set_params()
1043 else if (tuner_frequency < 620000000) cp = 3; in philips_tdm1316l_tuner_set_params()
1044 else if (tuner_frequency < 830000000) cp = 5; in philips_tdm1316l_tuner_set_params()
1045 else if (tuner_frequency < 895000000) cp = 7; in philips_tdm1316l_tuner_set_params()
1082 tuner_frequency = (((p->frequency / 1000) * 6) + 217280) / 1000; in philips_tdm1316l_tuner_set_params()
1085 tuner_buf[0] = tuner_frequency >> 8; in philips_tdm1316l_tuner_set_params()
1086 tuner_buf[1] = tuner_frequency & 0xff; in philips_tdm1316l_tuner_set_params()
1358 int tuner_frequency = 0; in dvbc_philips_tdm1316l_tuner_set_params() local
1362 tuner_frequency = p->frequency; in dvbc_philips_tdm1316l_tuner_set_params()
1363 if (tuner_frequency < 87000000) {return -EINVAL;} in dvbc_philips_tdm1316l_tuner_set_params()
1364 else if (tuner_frequency < 130000000) {cp = 3; band = 1;} in dvbc_philips_tdm1316l_tuner_set_params()
1365 else if (tuner_frequency < 160000000) {cp = 5; band = 1;} in dvbc_philips_tdm1316l_tuner_set_params()
1366 else if (tuner_frequency < 200000000) {cp = 6; band = 1;} in dvbc_philips_tdm1316l_tuner_set_params()
1367 else if (tuner_frequency < 290000000) {cp = 3; band = 2;} in dvbc_philips_tdm1316l_tuner_set_params()
1368 else if (tuner_frequency < 420000000) {cp = 5; band = 2;} in dvbc_philips_tdm1316l_tuner_set_params()
1369 else if (tuner_frequency < 480000000) {cp = 6; band = 2;} in dvbc_philips_tdm1316l_tuner_set_params()
1370 else if (tuner_frequency < 620000000) {cp = 3; band = 4;} in dvbc_philips_tdm1316l_tuner_set_params()
1371 else if (tuner_frequency < 830000000) {cp = 5; band = 4;} in dvbc_philips_tdm1316l_tuner_set_params()
1372 else if (tuner_frequency < 895000000) {cp = 7; band = 4;} in dvbc_philips_tdm1316l_tuner_set_params()
1380 tuner_frequency = ((p->frequency + 36125000) / 62500); in dvbc_philips_tdm1316l_tuner_set_params()
1383 tuner_buf[0] = tuner_frequency >> 8; in dvbc_philips_tdm1316l_tuner_set_params()
1384 tuner_buf[1] = tuner_frequency & 0xff; in dvbc_philips_tdm1316l_tuner_set_params()