Lines Matching refs:band
194 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument
196 if (radio->band == band) in si470x_set_band()
199 radio->band = band; in si470x_set_band()
201 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band()
274 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow; in si470x_get_freq()
287 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq()
288 bands[radio->band].rangehigh); in si470x_set_freq()
290 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio); in si470x_set_freq()
302 int band, retval; in si470x_set_seek() local
309 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek()
310 if (bands[band].rangelow == seek->rangelow && in si470x_set_seek()
311 bands[band].rangehigh == seek->rangehigh) in si470x_set_seek()
314 if (band == ARRAY_SIZE(bands)) in si470x_set_seek()
317 band = 1; /* If nothing is specified seek 76 - 108 Mhz */ in si470x_set_seek()
319 if (radio->band != band) { in si470x_set_seek()
323 retval = si470x_set_band(radio, band); in si470x_set_seek()
393 ((radio->band << 6) & SYSCONFIG2_BAND) |/* BAND */ in si470x_start()
691 if (freq->frequency < bands[radio->band].rangelow || in si470x_vidioc_s_frequency()
692 freq->frequency > bands[radio->band].rangehigh) { in si470x_vidioc_s_frequency()
723 struct v4l2_frequency_band *band) in si470x_vidioc_enum_freq_bands() argument
725 if (band->tuner != 0) in si470x_vidioc_enum_freq_bands()
727 if (band->index >= ARRAY_SIZE(bands)) in si470x_vidioc_enum_freq_bands()
729 *band = bands[band->index]; in si470x_vidioc_enum_freq_bands()