Lines Matching refs:band

179 static int si470x_set_band(struct si470x_device *radio, int band)  in si470x_set_band()  argument
181 if (radio->band == band) in si470x_set_band()
184 radio->band = band; in si470x_set_band()
186 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band()
268 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow; in si470x_get_freq()
281 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq()
282 bands[radio->band].rangehigh); in si470x_set_freq()
284 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio); in si470x_set_freq()
297 int band, retval; in si470x_set_seek() local
304 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek()
305 if (bands[band].rangelow == seek->rangelow && in si470x_set_seek()
306 bands[band].rangehigh == seek->rangehigh) in si470x_set_seek()
309 if (band == ARRAY_SIZE(bands)) in si470x_set_seek()
312 band = 1; /* If nothing is specified seek 76 - 108 Mhz */ in si470x_set_seek()
314 if (radio->band != band) { in si470x_set_seek()
318 retval = si470x_set_band(radio, band); in si470x_set_seek()
392 ((radio->band << 6) & SYSCONFIG2_BAND) |/* BAND */ in si470x_start()
711 if (freq->frequency < bands[radio->band].rangelow || in si470x_vidioc_s_frequency()
712 freq->frequency > bands[radio->band].rangehigh) { in si470x_vidioc_s_frequency()
743 struct v4l2_frequency_band *band) in si470x_vidioc_enum_freq_bands() argument
745 if (band->tuner != 0) in si470x_vidioc_enum_freq_bands()
747 if (band->index >= ARRAY_SIZE(bands)) in si470x_vidioc_enum_freq_bands()
749 *band = bands[band->index]; in si470x_vidioc_enum_freq_bands()