Lines Matching refs:shift_freq
1080 int shift_freq = 0; in x_tune2() local
1094 shift_freq = shift_frequency_khz * 1000; in x_tune2()
1100 if (shift_freq >= 0) in x_tune2()
1101 shift_freq = (shift_freq + 183 / 2) / 183; in x_tune2()
1103 shift_freq = (shift_freq - 183 / 2) / 183; in x_tune2()
1106 if (shift_freq >= 0) in x_tune2()
1107 shift_freq = (shift_freq + 178 / 2) / 178; in x_tune2()
1109 shift_freq = (shift_freq - 178 / 2) / 178; in x_tune2()
1113 shift_freq += in x_tune2()
1116 if (shift_freq > 32767) in x_tune2()
1117 shift_freq = 32767; in x_tune2()
1118 else if (shift_freq < -32768) in x_tune2()
1119 shift_freq = -32768; in x_tune2()
1121 data[0] = (shift_freq >> 8) & 0xff; in x_tune2()
1122 data[1] = shift_freq & 0xff; in x_tune2()
1136 shift_freq = -shift_frequency_khz; in x_tune2()
1143 if (shift_freq >= 0) in x_tune2()
1144 shift_freq = in x_tune2()
1145 (shift_freq * 1000 + in x_tune2()
1148 shift_freq = in x_tune2()
1149 (shift_freq * 1000 - in x_tune2()
1153 if (shift_freq >= 0) in x_tune2()
1154 shift_freq = in x_tune2()
1155 (shift_freq * 1000 + in x_tune2()
1158 shift_freq = in x_tune2()
1159 (shift_freq * 1000 - in x_tune2()
1168 if (shift_freq >= 0) in x_tune2()
1169 shift_freq = in x_tune2()
1170 (shift_freq * 1000 + in x_tune2()
1173 shift_freq = in x_tune2()
1174 (shift_freq * 1000 - in x_tune2()
1178 if (shift_freq >= 0) in x_tune2()
1179 shift_freq = in x_tune2()
1180 (shift_freq * 1000 + in x_tune2()
1183 shift_freq = in x_tune2()
1184 (shift_freq * 1000 - in x_tune2()
1190 shift_freq += cxd2880_convert2s_complement(data[0], 8); in x_tune2()
1192 if (shift_freq > 127) in x_tune2()
1193 shift_freq = 127; in x_tune2()
1194 else if (shift_freq < -128) in x_tune2()
1195 shift_freq = -128; in x_tune2()
1197 data[0] = shift_freq & 0xff; in x_tune2()