Lines Matching refs:retval
195 int retval; in si470x_set_chan() local
199 retval = radio->get_register(radio, POWERCFG); in si470x_set_chan()
200 if (retval) in si470x_set_chan()
201 return retval; in si470x_set_chan()
211 retval = radio->set_register(radio, CHANNEL); in si470x_set_chan()
212 if (retval < 0) in si470x_set_chan()
230 retval = radio->set_register(radio, CHANNEL); in si470x_set_chan()
233 return retval; in si470x_set_chan()
261 int chan, retval; in si470x_get_freq() local
264 retval = radio->get_register(radio, READCHAN); in si470x_get_freq()
270 return retval; in si470x_get_freq()
297 int band, retval; in si470x_set_seek() local
315 retval = si470x_get_freq(radio, &freq); in si470x_set_seek()
316 if (retval) in si470x_set_seek()
317 return retval; in si470x_set_seek()
318 retval = si470x_set_band(radio, band); in si470x_set_seek()
319 if (retval) in si470x_set_seek()
320 return retval; in si470x_set_seek()
321 retval = si470x_set_freq(radio, freq); in si470x_set_seek()
322 if (retval) in si470x_set_seek()
323 return retval; in si470x_set_seek()
336 retval = radio->set_register(radio, POWERCFG); in si470x_set_seek()
337 if (retval < 0) in si470x_set_seek()
338 return retval; in si470x_set_seek()
355 retval = radio->set_register(radio, POWERCFG); in si470x_set_seek()
358 if (retval == 0 && timed_out) in si470x_set_seek()
360 return retval; in si470x_set_seek()
369 int retval; in si470x_start() local
374 retval = radio->set_register(radio, POWERCFG); in si470x_start()
375 if (retval < 0) in si470x_start()
385 retval = radio->set_register(radio, SYSCONFIG1); in si470x_start()
386 if (retval < 0) in si470x_start()
395 retval = radio->set_register(radio, SYSCONFIG2); in si470x_start()
396 if (retval < 0) in si470x_start()
400 retval = si470x_set_chan(radio, in si470x_start()
404 return retval; in si470x_start()
414 int retval; in si470x_stop() local
418 retval = radio->set_register(radio, SYSCONFIG1); in si470x_stop()
419 if (retval < 0) in si470x_stop()
426 retval = radio->set_register(radio, POWERCFG); in si470x_stop()
429 return retval; in si470x_stop()
439 int retval; in si470x_rds_on() local
443 retval = radio->set_register(radio, SYSCONFIG1); in si470x_rds_on()
444 if (retval < 0) in si470x_rds_on()
447 return retval; in si470x_rds_on()
463 int retval = 0; in si470x_fops_read() local
473 retval = -EWOULDBLOCK; in si470x_fops_read()
478 retval = -EINTR; in si470x_fops_read()
504 retval += 3; in si470x_fops_read()
508 return retval; in si470x_fops_read()
520 __poll_t retval = v4l2_ctrl_poll(file, pts); in si470x_fops_poll() local
530 retval |= EPOLLIN | EPOLLRDNORM; in si470x_fops_poll()
533 return retval; in si470x_fops_poll()
604 int retval = 0; in si470x_vidioc_g_tuner() local
610 retval = radio->get_register(radio, STATUSRSSI); in si470x_vidioc_g_tuner()
611 if (retval < 0) in si470x_vidioc_g_tuner()
612 return retval; in si470x_vidioc_g_tuner()
653 return retval; in si470x_vidioc_g_tuner()
706 int retval; in si470x_vidioc_s_frequency() local
714 retval = si470x_set_band(radio, 1); in si470x_vidioc_s_frequency()
715 if (retval) in si470x_vidioc_s_frequency()
716 return retval; in si470x_vidioc_s_frequency()