Lines Matching refs:retval
201 int retval; in si470x_get_report() local
203 retval = usb_control_msg(radio->usbdev, in si470x_get_report()
210 if (retval < 0) in si470x_get_report()
213 retval); in si470x_get_report()
214 return retval; in si470x_get_report()
224 int retval; in si470x_set_report() local
226 retval = usb_control_msg(radio->usbdev, in si470x_set_report()
233 if (retval < 0) in si470x_set_report()
236 retval); in si470x_set_report()
237 return retval; in si470x_set_report()
246 int retval; in si470x_get_register() local
250 retval = si470x_get_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_get_register()
252 if (retval >= 0) in si470x_get_register()
255 return (retval < 0) ? -EINVAL : 0; in si470x_get_register()
264 int retval; in si470x_set_register() local
269 retval = si470x_set_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_set_register()
271 return (retval < 0) ? -EINVAL : 0; in si470x_set_register()
285 int retval; in si470x_get_all_registers() local
290 retval = si470x_get_report(radio, radio->usb_buf, ENTIRE_REPORT_SIZE); in si470x_get_all_registers()
292 if (retval >= 0) in si470x_get_all_registers()
297 return (retval < 0) ? -EINVAL : 0; in si470x_get_all_registers()
312 int retval; in si470x_set_led_state() local
318 retval = si470x_set_report(radio, radio->usb_buf, LED_REPORT_SIZE); in si470x_set_led_state()
320 return (retval < 0) ? -EINVAL : 0; in si470x_set_led_state()
334 int retval; in si470x_get_scratch_page_versions() local
338 retval = si470x_get_report(radio, radio->usb_buf, SCRATCH_REPORT_SIZE); in si470x_get_scratch_page_versions()
340 if (retval < 0) in si470x_get_scratch_page_versions()
342 retval); in si470x_get_scratch_page_versions()
348 return (retval < 0) ? -EINVAL : 0; in si470x_get_scratch_page_versions()
365 int retval; in si470x_int_in_callback() local
465 retval = usb_submit_urb(radio->int_in_urb, GFP_ATOMIC); in si470x_int_in_callback()
466 if (retval) { in si470x_int_in_callback()
468 "resubmitting urb failed (%d)", retval); in si470x_int_in_callback()
523 int retval; in si470x_start_usb() local
538 retval = usb_submit_urb(radio->int_in_urb, GFP_KERNEL); in si470x_start_usb()
539 if (retval) { in si470x_start_usb()
541 "submitting int urb failed (%d)\n", retval); in si470x_start_usb()
547 retval = si470x_start(radio); in si470x_start_usb()
548 if (retval < 0) in si470x_start_usb()
549 return retval; in si470x_start_usb()
553 return retval; in si470x_start_usb()
569 int i, int_end_size, retval; in si470x_usb_driver_probe() local
575 retval = -ENOMEM; in si470x_usb_driver_probe()
580 retval = -ENOMEM; in si470x_usb_driver_probe()
605 retval = -EIO; in si470x_usb_driver_probe()
614 retval = -ENOMEM; in si470x_usb_driver_probe()
620 retval = -ENOMEM; in si470x_usb_driver_probe()
635 retval = usb_control_msg(radio->usbdev, in si470x_usb_driver_probe()
641 if (retval != 3 || in si470x_usb_driver_probe()
644 retval = -ENODEV; in si470x_usb_driver_probe()
649 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in si470x_usb_driver_probe()
650 if (retval < 0) { in si470x_usb_driver_probe()
661 retval = radio->hdl.error; in si470x_usb_driver_probe()
677 retval = -EIO; in si470x_usb_driver_probe()
694 retval = -EIO; in si470x_usb_driver_probe()
724 retval = -EIO; in si470x_usb_driver_probe()
735 retval = si470x_start_usb(radio); in si470x_usb_driver_probe()
736 if (retval < 0 && !radio->int_in_running) in si470x_usb_driver_probe()
738 else if (retval < 0) /* in case of radio->int_in_running == 1 */ in si470x_usb_driver_probe()
745 retval = video_register_device(&radio->videodev, VFL_TYPE_RADIO, in si470x_usb_driver_probe()
747 if (retval) { in si470x_usb_driver_probe()
770 return retval; in si470x_usb_driver_probe()