Lines Matching refs:r
112 int i, r = 0; in wl1273_fm_write_fw() local
124 r = i2c_transfer(client->adapter, &msg, 1); in wl1273_fm_write_fw()
125 if (r < 0 && i < len + 1) in wl1273_fm_write_fw()
133 if (i == len || r == 1) in wl1273_fm_write_fw()
134 r = 0; in wl1273_fm_write_fw()
136 return r; in wl1273_fm_write_fw()
164 int r; in wl1273_fm_rds() local
169 r = core->read(core, WL1273_RDS_SYNC_GET, &val); in wl1273_fm_rds()
170 if (r) in wl1273_fm_rds()
171 return r; in wl1273_fm_rds()
180 r = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); in wl1273_fm_rds()
181 if (r != ARRAY_SIZE(msg)) { in wl1273_fm_rds()
184 __func__, r); in wl1273_fm_rds()
235 int r; in wl1273_fm_irq_thread_handler() local
237 r = core->read(core, WL1273_FLAG_GET, &flags); in wl1273_fm_irq_thread_handler()
238 if (r) in wl1273_fm_irq_thread_handler()
261 r = core->read(core, WL1273_RSSI_LVL_GET, &level); in wl1273_fm_irq_thread_handler()
262 if (r) in wl1273_fm_irq_thread_handler()
302 r = core->write(core, WL1273_TUNER_MODE_SET, in wl1273_fm_irq_thread_handler()
304 if (r) { in wl1273_fm_irq_thread_handler()
307 __func__, r); in wl1273_fm_irq_thread_handler()
311 r = core->read(core, WL1273_FREQ_SET, &freq); in wl1273_fm_irq_thread_handler()
312 if (r) in wl1273_fm_irq_thread_handler()
330 r = core->read(core, WL1273_CHANL_SET, &freq); in wl1273_fm_irq_thread_handler()
331 if (r) in wl1273_fm_irq_thread_handler()
349 int r = 0; in wl1273_fm_set_tx_freq() local
374 r = core->write(core, WL1273_CHANL_SET, freq / 10); in wl1273_fm_set_tx_freq()
375 if (r) in wl1273_fm_set_tx_freq()
376 return r; in wl1273_fm_set_tx_freq()
381 r = wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(2000)); in wl1273_fm_set_tx_freq()
382 if (!r) in wl1273_fm_set_tx_freq()
385 dev_dbg(radio->dev, "WL1273_CHANL_SET: %d\n", r); in wl1273_fm_set_tx_freq()
388 r = core->write(core, WL1273_POWER_ENB_SET, 1); in wl1273_fm_set_tx_freq()
389 if (r) in wl1273_fm_set_tx_freq()
390 return r; in wl1273_fm_set_tx_freq()
395 r = wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(1000)); in wl1273_fm_set_tx_freq()
396 if (!r) in wl1273_fm_set_tx_freq()
400 dev_dbg(radio->dev, "WL1273_POWER_ENB_SET: %d\n", r); in wl1273_fm_set_tx_freq()
408 int r, f; in wl1273_fm_set_rx_freq() local
414 r = -ERANGE; in wl1273_fm_set_rx_freq()
422 r = -ERANGE; in wl1273_fm_set_rx_freq()
435 r = core->write(core, WL1273_FREQ_SET, f); in wl1273_fm_set_rx_freq()
436 if (r) { in wl1273_fm_set_rx_freq()
441 r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_PRESET); in wl1273_fm_set_rx_freq()
442 if (r) { in wl1273_fm_set_rx_freq()
449 r = wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(2000)); in wl1273_fm_set_rx_freq()
450 if (!r) { in wl1273_fm_set_rx_freq()
460 return r; in wl1273_fm_set_rx_freq()
468 int r; in wl1273_fm_get_freq() local
471 r = core->read(core, WL1273_FREQ_SET, &f); in wl1273_fm_get_freq()
472 if (r) in wl1273_fm_get_freq()
473 return r; in wl1273_fm_get_freq()
481 r = core->read(core, WL1273_CHANL_SET, &f); in wl1273_fm_get_freq()
482 if (r) in wl1273_fm_get_freq()
483 return r; in wl1273_fm_get_freq()
507 int r; in wl1273_fm_upload_firmware_patch() local
525 r = wl1273_fm_write_fw(core, ptr + 1, packet_num); in wl1273_fm_upload_firmware_patch()
526 if (r) { in wl1273_fm_upload_firmware_patch()
527 dev_err(dev, "FW upload error: %d\n", r); in wl1273_fm_upload_firmware_patch()
534 dev_dbg(dev, "%s - download OK, r: %d\n", __func__, r); in wl1273_fm_upload_firmware_patch()
537 return r; in wl1273_fm_upload_firmware_patch()
545 int r = core->write(core, WL1273_POWER_SET, in wl1273_fm_stop() local
547 if (r) in wl1273_fm_stop()
549 __func__, r); in wl1273_fm_stop()
551 int r = core->write(core, WL1273_PUPD_SET, in wl1273_fm_stop() local
553 if (r) in wl1273_fm_stop()
555 "%s: PUPD_SET fails: %d\n", __func__, r); in wl1273_fm_stop()
571 int r = -EINVAL; in wl1273_fm_start() local
587 r = core->write(core, WL1273_POWER_SET, val); in wl1273_fm_start()
588 if (r) { in wl1273_fm_start()
591 r = core->write(core, WL1273_POWER_SET, val); in wl1273_fm_start()
592 if (r) { in wl1273_fm_start()
604 r = core->write(core, WL1273_PUPD_SET, WL1273_PUPD_SET_ON); in wl1273_fm_start()
605 if (r) { in wl1273_fm_start()
607 r = core->write(core, WL1273_PUPD_SET, in wl1273_fm_start()
609 if (r) { in wl1273_fm_start()
616 r = core->write(core, WL1273_RDS_DATA_ENB, 1); in wl1273_fm_start()
618 r = core->write(core, WL1273_RDS_DATA_ENB, 0); in wl1273_fm_start()
624 r = wl1273_fm_upload_firmware_patch(radio); in wl1273_fm_start()
625 if (r) in wl1273_fm_start()
638 r = core->write(core, WL1273_POWER_SET, val); in wl1273_fm_start()
639 if (r) { in wl1273_fm_start()
644 r = core->write(core, WL1273_PUPD_SET, in wl1273_fm_start()
646 if (r) { in wl1273_fm_start()
658 dev_dbg(dev, "%s: return: %d\n", __func__, r); in wl1273_fm_start()
659 return r; in wl1273_fm_start()
665 int r = 0; in wl1273_fm_suspend() local
669 r = core->write(core, WL1273_POWER_SET, in wl1273_fm_suspend()
672 r = core->write(core, WL1273_PUPD_SET, in wl1273_fm_suspend()
675 r = -EINVAL; in wl1273_fm_suspend()
677 if (r) { in wl1273_fm_suspend()
678 dev_err(radio->dev, "%s: POWER_SET fails: %d\n", __func__, r); in wl1273_fm_suspend()
683 return r; in wl1273_fm_suspend()
691 int r; in wl1273_fm_set_mode() local
698 r = -EPERM; in wl1273_fm_set_mode()
705 r = wl1273_fm_start(radio, mode); in wl1273_fm_set_mode()
706 if (r) { in wl1273_fm_set_mode()
713 r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); in wl1273_fm_set_mode()
714 if (r) { in wl1273_fm_set_mode()
721 r = wl1273_fm_set_rx_freq(radio, radio->rx_frequency); in wl1273_fm_set_mode()
722 if (r) { in wl1273_fm_set_mode()
723 dev_err(dev, "set freq fails: %d.\n", r); in wl1273_fm_set_mode()
727 r = core->set_volume(core, core->volume); in wl1273_fm_set_mode()
728 if (r) { in wl1273_fm_set_mode()
729 dev_err(dev, "set volume fails: %d.\n", r); in wl1273_fm_set_mode()
736 r = wl1273_fm_set_tx_freq(radio, radio->tx_frequency); in wl1273_fm_set_mode()
737 if (r) { in wl1273_fm_set_mode()
738 dev_err(dev, "set freq fails: %d.\n", r); in wl1273_fm_set_mode()
745 r = core->set_audio(core, core->audio_mode); in wl1273_fm_set_mode()
746 if (r) in wl1273_fm_set_mode()
751 r = wl1273_fm_stop(radio); in wl1273_fm_set_mode()
752 if (r) in wl1273_fm_set_mode()
753 dev_err(dev, "%s: Off fails: %d\n", __func__, r); in wl1273_fm_set_mode()
760 r = wl1273_fm_suspend(radio); in wl1273_fm_set_mode()
761 if (r) in wl1273_fm_set_mode()
762 dev_err(dev, "%s: Suspend fails: %d\n", __func__, r); in wl1273_fm_set_mode()
770 r = -EINVAL; in wl1273_fm_set_mode()
774 if (r) in wl1273_fm_set_mode()
777 return r; in wl1273_fm_set_mode()
786 int r = 0; in wl1273_fm_set_seek() local
794 r = wl1273_fm_set_rx_freq(radio, f + radio->spacing); in wl1273_fm_set_seek()
796 r = wl1273_fm_set_rx_freq(radio, radio->rangelow); in wl1273_fm_set_seek()
798 r = wl1273_fm_set_rx_freq(radio, f - radio->spacing); in wl1273_fm_set_seek()
800 r = wl1273_fm_set_rx_freq(radio, radio->rangehigh); in wl1273_fm_set_seek()
802 if (r) in wl1273_fm_set_seek()
811 r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); in wl1273_fm_set_seek()
812 if (r) in wl1273_fm_set_seek()
817 r = core->write(core, WL1273_SEARCH_LVL_SET, level); in wl1273_fm_set_seek()
818 if (r) in wl1273_fm_set_seek()
821 r = core->write(core, WL1273_SEARCH_DIR_SET, dir); in wl1273_fm_set_seek()
822 if (r) in wl1273_fm_set_seek()
825 r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_AUTO_SEEK); in wl1273_fm_set_seek()
826 if (r) in wl1273_fm_set_seek()
846 r = wl1273_fm_set_rx_freq(radio, f); in wl1273_fm_set_seek()
847 if (r) in wl1273_fm_set_seek()
853 r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_AUTO_SEEK); in wl1273_fm_set_seek()
854 if (r) in wl1273_fm_set_seek()
859 dev_dbg(radio->dev, "%s: Err: %d\n", __func__, r); in wl1273_fm_set_seek()
860 return r; in wl1273_fm_set_seek()
872 int r; in wl1273_fm_get_tx_ctune() local
878 r = core->read(core, WL1273_READ_FMANT_TUNE_VALUE, &val); in wl1273_fm_get_tx_ctune()
879 if (r) { in wl1273_fm_get_tx_ctune()
880 dev_err(dev, "%s: read error: %d\n", __func__, r); in wl1273_fm_get_tx_ctune()
900 int r; in wl1273_fm_set_preemphasis() local
920 r = -EINVAL; in wl1273_fm_set_preemphasis()
924 r = core->write(core, WL1273_PREMPH_SET, em); in wl1273_fm_set_preemphasis()
925 if (r) in wl1273_fm_set_preemphasis()
932 return r; in wl1273_fm_set_preemphasis()
938 int r; in wl1273_fm_rds_on() local
944 r = core->write(core, WL1273_POWER_SET, in wl1273_fm_rds_on()
946 if (r) in wl1273_fm_rds_on()
949 r = wl1273_fm_set_rx_freq(radio, radio->rx_frequency); in wl1273_fm_rds_on()
950 if (r) in wl1273_fm_rds_on()
951 dev_err(radio->dev, "set freq fails: %d.\n", r); in wl1273_fm_rds_on()
953 return r; in wl1273_fm_rds_on()
959 int r; in wl1273_fm_rds_off() local
966 r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); in wl1273_fm_rds_off()
967 if (r) in wl1273_fm_rds_off()
975 r = core->write(core, WL1273_POWER_SET, WL1273_POWER_SET_FM); in wl1273_fm_rds_off()
976 if (r) in wl1273_fm_rds_off()
979 r = wl1273_fm_set_rx_freq(radio, radio->rx_frequency); in wl1273_fm_rds_off()
980 if (r) in wl1273_fm_rds_off()
981 dev_err(radio->dev, "set freq fails: %d.\n", r); in wl1273_fm_rds_off()
985 return r; in wl1273_fm_rds_off()
990 int r = 0; in wl1273_fm_set_rds() local
998 r = core->write(core, WL1273_RDS_CNTRL_SET, 1); in wl1273_fm_set_rds()
999 return r; in wl1273_fm_set_rds()
1003 r = core->write(core, WL1273_RDS_DATA_ENB, 0); in wl1273_fm_set_rds()
1005 r = core->write(core, WL1273_RDS_DATA_ENB, 1); in wl1273_fm_set_rds()
1007 r = wl1273_fm_rds_off(radio); in wl1273_fm_set_rds()
1009 r = wl1273_fm_rds_on(radio); in wl1273_fm_set_rds()
1013 r = -EINVAL; in wl1273_fm_set_rds()
1016 if (!r) in wl1273_fm_set_rds()
1019 return r; in wl1273_fm_set_rds()
1028 int r; in wl1273_fm_fops_write() local
1047 r = -EBUSY; in wl1273_fm_fops_write()
1061 r = -EFAULT; in wl1273_fm_fops_write()
1071 r = val; in wl1273_fm_fops_write()
1075 return r; in wl1273_fm_fops_write()
1106 int r = 0; in wl1273_fm_fops_open() local
1119 r = core->write(core, WL1273_INT_MASK_SET, in wl1273_fm_fops_open()
1121 if (r) { in wl1273_fm_fops_open()
1131 return r; in wl1273_fm_fops_open()
1138 int r = 0; in wl1273_fm_fops_release() local
1151 r = core->write(core, in wl1273_fm_fops_release()
1154 if (r) { in wl1273_fm_fops_release()
1166 return r; in wl1273_fm_fops_release()
1172 int r = 0; in wl1273_fm_fops_read() local
1196 r = -EBUSY; in wl1273_fm_fops_read()
1201 r = core->read(core, WL1273_RDS_SYNC_GET, &val); in wl1273_fm_fops_read()
1202 if (r) { in wl1273_fm_fops_read()
1207 r = -ENODATA; in wl1273_fm_fops_read()
1214 r = -EWOULDBLOCK; in wl1273_fm_fops_read()
1222 r = -EINTR; in wl1273_fm_fops_read()
1248 r += RDS_BLOCK_SIZE; in wl1273_fm_fops_read()
1255 return r; in wl1273_fm_fops_read()
1323 int r; in wl1273_fm_set_tx_power() local
1332 r = core->write(core, WL1273_POWER_LEV_SET, 122 - power); in wl1273_fm_set_tx_power()
1333 if (r) in wl1273_fm_set_tx_power()
1340 return r; in wl1273_fm_set_tx_power()
1351 int r; in wl1273_fm_tx_set_spacing() local
1354 r = core->write(core, WL1273_SCAN_SPACING_SET, in wl1273_fm_tx_set_spacing()
1358 r = core->write(core, WL1273_SCAN_SPACING_SET, in wl1273_fm_tx_set_spacing()
1362 r = core->write(core, WL1273_SCAN_SPACING_SET, in wl1273_fm_tx_set_spacing()
1366 r = core->write(core, WL1273_SCAN_SPACING_SET, in wl1273_fm_tx_set_spacing()
1371 return r; in wl1273_fm_tx_set_spacing()
1415 int r = 0; in wl1273_fm_vidioc_s_ctrl() local
1425 r = core->write(core, in wl1273_fm_vidioc_s_ctrl()
1430 r = core->write(core, in wl1273_fm_vidioc_s_ctrl()
1433 r = core->write(core, WL1273_MUTE, 1); in wl1273_fm_vidioc_s_ctrl()
1435 r = core->write(core, WL1273_MUTE, 0); in wl1273_fm_vidioc_s_ctrl()
1442 r = wl1273_fm_set_mode(radio, WL1273_MODE_OFF); in wl1273_fm_vidioc_s_ctrl()
1444 r = core->set_volume(core, core->volume); in wl1273_fm_vidioc_s_ctrl()
1448 r = wl1273_fm_set_preemphasis(radio, ctrl->val); in wl1273_fm_vidioc_s_ctrl()
1452 r = wl1273_fm_set_tx_power(radio, ctrl->val); in wl1273_fm_vidioc_s_ctrl()
1462 return r; in wl1273_fm_vidioc_s_ctrl()
1503 int r; in wl1273_fm_vidioc_g_tuner() local
1531 r = core->read(core, WL1273_STEREO_GET, &val); in wl1273_fm_vidioc_g_tuner()
1532 if (r) in wl1273_fm_vidioc_g_tuner()
1540 r = core->read(core, WL1273_RSSI_LVL_GET, &val); in wl1273_fm_vidioc_g_tuner()
1541 if (r) in wl1273_fm_vidioc_g_tuner()
1549 r = core->read(core, WL1273_RDS_SYNC_GET, &val); in wl1273_fm_vidioc_g_tuner()
1550 if (r) in wl1273_fm_vidioc_g_tuner()
1558 return r; in wl1273_fm_vidioc_g_tuner()
1566 int r = 0; in wl1273_fm_vidioc_s_tuner() local
1582 r = wl1273_fm_set_mode(radio, WL1273_MODE_RX); in wl1273_fm_vidioc_s_tuner()
1583 if (r) in wl1273_fm_vidioc_s_tuner()
1587 r = wl1273_fm_set_rds(radio, WL1273_RDS_ON); in wl1273_fm_vidioc_s_tuner()
1589 r = wl1273_fm_set_rds(radio, WL1273_RDS_OFF); in wl1273_fm_vidioc_s_tuner()
1591 if (r) in wl1273_fm_vidioc_s_tuner()
1592 dev_warn(radio->dev, "%s: RDS fails: %d\n", __func__, r); in wl1273_fm_vidioc_s_tuner()
1595 r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_MONO); in wl1273_fm_vidioc_s_tuner()
1596 if (r < 0) { in wl1273_fm_vidioc_s_tuner()
1598 __func__, r); in wl1273_fm_vidioc_s_tuner()
1603 r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_STEREO); in wl1273_fm_vidioc_s_tuner()
1604 if (r < 0) { in wl1273_fm_vidioc_s_tuner()
1606 __func__, r); in wl1273_fm_vidioc_s_tuner()
1613 r = -EINVAL; in wl1273_fm_vidioc_s_tuner()
1620 return r; in wl1273_fm_vidioc_s_tuner()
1647 int r; in wl1273_fm_vidioc_s_frequency() local
1663 r = wl1273_fm_set_rx_freq(radio, in wl1273_fm_vidioc_s_frequency()
1665 if (r) in wl1273_fm_vidioc_s_frequency()
1667 ": set frequency failed with %d\n", r); in wl1273_fm_vidioc_s_frequency()
1669 r = wl1273_fm_set_tx_freq(radio, in wl1273_fm_vidioc_s_frequency()
1671 if (r) in wl1273_fm_vidioc_s_frequency()
1673 ": set frequency failed with %d\n", r); in wl1273_fm_vidioc_s_frequency()
1679 return r; in wl1273_fm_vidioc_s_frequency()
1689 int r; in wl1273_fm_vidioc_s_hw_freq_seek() local
1702 r = wl1273_fm_set_mode(radio, WL1273_MODE_RX); in wl1273_fm_vidioc_s_hw_freq_seek()
1703 if (r) in wl1273_fm_vidioc_s_hw_freq_seek()
1706 r = wl1273_fm_tx_set_spacing(radio, seek->spacing); in wl1273_fm_vidioc_s_hw_freq_seek()
1707 if (r) in wl1273_fm_vidioc_s_hw_freq_seek()
1708 dev_warn(radio->dev, "HW seek failed: %d\n", r); in wl1273_fm_vidioc_s_hw_freq_seek()
1710 r = wl1273_fm_set_seek(radio, seek->wrap_around, seek->seek_upward, in wl1273_fm_vidioc_s_hw_freq_seek()
1712 if (r) in wl1273_fm_vidioc_s_hw_freq_seek()
1713 dev_warn(radio->dev, "HW seek failed: %d\n", r); in wl1273_fm_vidioc_s_hw_freq_seek()
1717 return r; in wl1273_fm_vidioc_s_hw_freq_seek()
1725 int r = 0; in wl1273_fm_vidioc_s_modulator() local
1735 r = wl1273_fm_set_mode(radio, WL1273_MODE_TX); in wl1273_fm_vidioc_s_modulator()
1736 if (r) in wl1273_fm_vidioc_s_modulator()
1740 r = wl1273_fm_set_rds(radio, WL1273_RDS_ON); in wl1273_fm_vidioc_s_modulator()
1742 r = wl1273_fm_set_rds(radio, WL1273_RDS_OFF); in wl1273_fm_vidioc_s_modulator()
1745 r = core->write(core, WL1273_MONO_SET, WL1273_TX_MONO); in wl1273_fm_vidioc_s_modulator()
1747 r = core->write(core, WL1273_MONO_SET, in wl1273_fm_vidioc_s_modulator()
1749 if (r < 0) in wl1273_fm_vidioc_s_modulator()
1751 "MONO_SET fails: %d\n", r); in wl1273_fm_vidioc_s_modulator()
1755 return r; in wl1273_fm_vidioc_s_modulator()
1764 int r; in wl1273_fm_vidioc_g_modulator() local
1783 r = core->read(core, WL1273_MONO_SET, &val); in wl1273_fm_vidioc_g_modulator()
1784 if (r) in wl1273_fm_vidioc_g_modulator()
1806 int r; in wl1273_fm_vidioc_log_status() local
1820 r = core->read(core, WL1273_ASIC_ID_GET, &val); in wl1273_fm_vidioc_log_status()
1821 if (r) in wl1273_fm_vidioc_log_status()
1826 r = core->read(core, WL1273_ASIC_VER_GET, &val); in wl1273_fm_vidioc_log_status()
1827 if (r) in wl1273_fm_vidioc_log_status()
1832 r = core->read(core, WL1273_FIRM_VER_GET, &val); in wl1273_fm_vidioc_log_status()
1833 if (r) in wl1273_fm_vidioc_log_status()
1838 r = core->read(core, WL1273_BAND_SET, &val); in wl1273_fm_vidioc_log_status()
1839 if (r) in wl1273_fm_vidioc_log_status()
1845 r = core->read(core, WL1273_PUPD_SET, &val); in wl1273_fm_vidioc_log_status()
1846 if (r) in wl1273_fm_vidioc_log_status()
1851 r = core->read(core, WL1273_CHANL_SET, &val); in wl1273_fm_vidioc_log_status()
1852 if (r) in wl1273_fm_vidioc_log_status()
1859 r = core->read(core, WL1273_FREQ_SET, &val); in wl1273_fm_vidioc_log_status()
1860 if (r) in wl1273_fm_vidioc_log_status()
1865 r = core->read(core, WL1273_MOST_MODE_SET, &val); in wl1273_fm_vidioc_log_status()
1866 if (r) in wl1273_fm_vidioc_log_status()
1876 r = core->read(core, WL1273_MOST_BLEND_SET, &val); in wl1273_fm_vidioc_log_status()
1877 if (r) in wl1273_fm_vidioc_log_status()
1887 r = core->read(core, WL1273_STEREO_GET, &val); in wl1273_fm_vidioc_log_status()
1888 if (r) in wl1273_fm_vidioc_log_status()
1897 r = core->read(core, WL1273_RSSI_LVL_GET, &val); in wl1273_fm_vidioc_log_status()
1898 if (r) in wl1273_fm_vidioc_log_status()
1903 r = core->read(core, WL1273_POWER_SET, &val); in wl1273_fm_vidioc_log_status()
1904 if (r) in wl1273_fm_vidioc_log_status()
1909 r = core->read(core, WL1273_INT_MASK_SET, &val); in wl1273_fm_vidioc_log_status()
1910 if (r) in wl1273_fm_vidioc_log_status()
1915 r = core->read(core, WL1273_RDS_SYNC_GET, &val); in wl1273_fm_vidioc_log_status()
1916 if (r) in wl1273_fm_vidioc_log_status()
1927 r = core->read(core, WL1273_I2S_MODE_CONFIG_SET, &val); in wl1273_fm_vidioc_log_status()
1928 if (r) in wl1273_fm_vidioc_log_status()
1934 r = core->read(core, WL1273_VOLUME_SET, &val); in wl1273_fm_vidioc_log_status()
1935 if (r) in wl1273_fm_vidioc_log_status()
1999 int r = 0; in wl1273_fm_radio_probe() local
2005 r = -EINVAL; in wl1273_fm_radio_probe()
2011 r = -ENOMEM; in wl1273_fm_radio_probe()
2020 r = -ENOMEM; in wl1273_fm_radio_probe()
2043 r = radio->core->pdata->request_resources(radio->core->client); in wl1273_fm_radio_probe()
2044 if (r) { in wl1273_fm_radio_probe()
2052 r = request_threaded_irq(radio->core->client->irq, NULL, in wl1273_fm_radio_probe()
2056 if (r < 0) { in wl1273_fm_radio_probe()
2058 ": Unable to register IRQ handler: %d\n", r); in wl1273_fm_radio_probe()
2064 r = -EINVAL; in wl1273_fm_radio_probe()
2073 r = -ENOMEM; in wl1273_fm_radio_probe()
2081 r = v4l2_device_register(&pdev->dev, &radio->v4l2dev); in wl1273_fm_radio_probe()
2082 if (r) { in wl1273_fm_radio_probe()
2117 r = radio->ctrl_handler.error; in wl1273_fm_radio_probe()
2118 dev_err(&pdev->dev, "Ctrl handler error: %d\n", r); in wl1273_fm_radio_probe()
2126 r = video_register_device(&radio->videodev, VFL_TYPE_RADIO, radio_nr); in wl1273_fm_radio_probe()
2127 if (r) { in wl1273_fm_radio_probe()
2143 return r; in wl1273_fm_radio_probe()