Lines Matching refs:retval
214 int retval; in si470x_get_report() local
216 retval = usb_control_msg(radio->usbdev, in si470x_get_report()
223 if (retval < 0) in si470x_get_report()
226 retval); in si470x_get_report()
227 return retval; in si470x_get_report()
237 int retval; in si470x_set_report() local
239 retval = usb_control_msg(radio->usbdev, in si470x_set_report()
246 if (retval < 0) in si470x_set_report()
249 retval); in si470x_set_report()
250 return retval; in si470x_set_report()
259 int retval; in si470x_get_register() local
263 retval = si470x_get_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_get_register()
265 if (retval >= 0) in si470x_get_register()
268 return (retval < 0) ? -EINVAL : 0; in si470x_get_register()
277 int retval; in si470x_set_register() local
282 retval = si470x_set_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_set_register()
284 return (retval < 0) ? -EINVAL : 0; in si470x_set_register()
298 int retval; in si470x_get_all_registers() local
303 retval = si470x_get_report(radio, radio->usb_buf, ENTIRE_REPORT_SIZE); in si470x_get_all_registers()
305 if (retval >= 0) in si470x_get_all_registers()
310 return (retval < 0) ? -EINVAL : 0; in si470x_get_all_registers()
325 int retval; in si470x_set_led_state() local
331 retval = si470x_set_report(radio, radio->usb_buf, LED_REPORT_SIZE); in si470x_set_led_state()
333 return (retval < 0) ? -EINVAL : 0; in si470x_set_led_state()
347 int retval; in si470x_get_scratch_page_versions() local
351 retval = si470x_get_report(radio, radio->usb_buf, SCRATCH_REPORT_SIZE); in si470x_get_scratch_page_versions()
353 if (retval < 0) in si470x_get_scratch_page_versions()
355 "si470x_get_report returned %d\n", retval); in si470x_get_scratch_page_versions()
361 return (retval < 0) ? -EINVAL : 0; in si470x_get_scratch_page_versions()
378 int retval; in si470x_int_in_callback() local
478 retval = usb_submit_urb(radio->int_in_urb, GFP_ATOMIC); in si470x_int_in_callback()
479 if (retval) { in si470x_int_in_callback()
481 "resubmitting urb failed (%d)", retval); in si470x_int_in_callback()
539 int retval; in si470x_start_usb() local
554 retval = usb_submit_urb(radio->int_in_urb, GFP_KERNEL); in si470x_start_usb()
555 if (retval) { in si470x_start_usb()
557 "submitting int urb failed (%d)\n", retval); in si470x_start_usb()
563 retval = si470x_start(radio); in si470x_start_usb()
564 if (retval < 0) in si470x_start_usb()
565 return retval; in si470x_start_usb()
569 return retval; in si470x_start_usb()
585 int i, int_end_size, retval = 0; in si470x_usb_driver_probe() local
591 retval = -ENOMEM; in si470x_usb_driver_probe()
596 retval = -ENOMEM; in si470x_usb_driver_probe()
615 retval = -EIO; in si470x_usb_driver_probe()
624 retval = -ENOMEM; in si470x_usb_driver_probe()
630 retval = -ENOMEM; in si470x_usb_driver_probe()
645 retval = usb_control_msg(radio->usbdev, in si470x_usb_driver_probe()
651 if (retval != 3 || in si470x_usb_driver_probe()
654 retval = -ENODEV; in si470x_usb_driver_probe()
659 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in si470x_usb_driver_probe()
660 if (retval < 0) { in si470x_usb_driver_probe()
671 retval = radio->hdl.error; in si470x_usb_driver_probe()
684 retval = -EIO; in si470x_usb_driver_probe()
701 retval = -EIO; in si470x_usb_driver_probe()
732 retval = -EIO; in si470x_usb_driver_probe()
743 retval = si470x_start_usb(radio); in si470x_usb_driver_probe()
744 if (retval < 0) in si470x_usb_driver_probe()
751 retval = video_register_device(&radio->videodev, VFL_TYPE_RADIO, in si470x_usb_driver_probe()
753 if (retval) { in si470x_usb_driver_probe()
774 return retval; in si470x_usb_driver_probe()