Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 937) sorted by relevance

12345678910>>...38

/drivers/staging/rts5208/
Drtsx_chip.c111 int retval; in rtsx_pre_handle_sdio_old() local
115 retval = rtsx_write_register(chip, CARD_PULL_CTL5, in rtsx_pre_handle_sdio_old()
118 if (retval) { in rtsx_pre_handle_sdio_old()
120 return retval; in rtsx_pre_handle_sdio_old()
123 retval = rtsx_write_register(chip, FPGA_PULL_CTL, in rtsx_pre_handle_sdio_old()
126 if (retval) { in rtsx_pre_handle_sdio_old()
128 return retval; in rtsx_pre_handle_sdio_old()
131 retval = rtsx_write_register(chip, CARD_SHARE_MODE, 0xFF, in rtsx_pre_handle_sdio_old()
133 if (retval) { in rtsx_pre_handle_sdio_old()
135 return retval; in rtsx_pre_handle_sdio_old()
[all …]
Dsd.c108 int retval; in sd_check_data0_status() local
111 retval = rtsx_read_register(chip, REG_SD_STAT1, &stat); in sd_check_data0_status()
112 if (retval) { in sd_check_data0_status()
114 return retval; in sd_check_data0_status()
130 int retval; local
178 retval = rtsx_send_cmd(chip, SD_CARD, timeout);
179 if (retval < 0) {
188 if (retval == -ETIMEDOUT) {
190 retval = sd_check_data0_status(chip);
191 if (retval != STATUS_SUCCESS) {
[all …]
Dms.c55 int retval; in ms_transfer_tpc() local
75 retval = rtsx_send_cmd(chip, MS_CARD, 5000); in ms_transfer_tpc()
76 if (retval < 0) { in ms_transfer_tpc()
115 int retval; in ms_transfer_data() local
159 retval = rtsx_transfer_data(chip, MS_CARD, buf, buf_len, in ms_transfer_data()
161 if (retval < 0) { in ms_transfer_data()
163 if (retval == -ETIMEDOUT) in ms_transfer_data()
164 retval = STATUS_TIMEDOUT; in ms_transfer_data()
166 retval = STATUS_FAIL; in ms_transfer_data()
169 return retval; in ms_transfer_data()
[all …]
Dspi.c39 int retval; in spi_init() local
41 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init()
44 if (retval) { in spi_init()
46 return retval; in spi_init()
48 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init()
50 if (retval) { in spi_init()
52 return retval; in spi_init()
61 int retval; in spi_set_init_para() local
63 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para()
65 if (retval) { in spi_set_init_para()
[all …]
Dxd.c55 int retval; in xd_set_init_para() local
62 retval = switch_clock(chip, xd_card->xd_clock); in xd_set_init_para()
63 if (retval != STATUS_SUCCESS) { in xd_set_init_para()
74 int retval; in xd_switch_clock() local
76 retval = select_card(chip, XD_CARD); in xd_switch_clock()
77 if (retval != STATUS_SUCCESS) { in xd_switch_clock()
82 retval = switch_clock(chip, xd_card->xd_clock); in xd_switch_clock()
83 if (retval != STATUS_SUCCESS) { in xd_switch_clock()
93 int retval, i; in xd_read_id() local
107 retval = rtsx_send_cmd(chip, XD_CARD, 20); in xd_read_id()
[all …]
/drivers/media/usb/gspca/
Djl2005bcd.c89 int retval; in jl2005c_write2() local
92 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_write2()
95 if (retval < 0) in jl2005c_write2()
97 gspca_dev->usb_buf[0], retval); in jl2005c_write2()
98 return retval; in jl2005c_write2()
104 int retval; in jl2005c_read1() local
106 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_read1()
109 if (retval < 0) in jl2005c_read1()
111 gspca_dev->usb_buf[0], retval); in jl2005c_read1()
112 return retval; in jl2005c_read1()
[all …]
/drivers/hid/
Dhid-roccat-arvo.c39 int retval; in arvo_sysfs_show_mode_key() local
42 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key()
45 if (retval) in arvo_sysfs_show_mode_key()
46 return retval; in arvo_sysfs_show_mode_key()
60 int retval; in arvo_sysfs_set_mode_key() local
62 retval = kstrtoul(buf, 10, &state); in arvo_sysfs_set_mode_key()
63 if (retval) in arvo_sysfs_set_mode_key()
64 return retval; in arvo_sysfs_set_mode_key()
70 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key()
73 if (retval) in arvo_sysfs_set_mode_key()
[all …]
Dhid-roccat-kone.c116 int retval; in kone_check_write() local
126 retval = kone_receive(usb_dev, in kone_check_write()
128 if (retval) in kone_check_write()
129 return retval; in kone_check_write()
166 int retval; in kone_set_settings() local
168 retval = kone_send(usb_dev, kone_command_settings, in kone_set_settings()
170 if (retval) in kone_set_settings()
171 return retval; in kone_set_settings()
238 int retval; in kone_get_weight() local
241 retval = kone_receive(usb_dev, kone_command_weight, &data, 1); in kone_get_weight()
[all …]
Dhid-roccat-kovaplus.c49 int retval; in kovaplus_send_control() local
61 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control()
64 return retval; in kovaplus_send_control()
76 int retval; in kovaplus_get_profile_settings() local
78 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings()
80 if (retval) in kovaplus_get_profile_settings()
81 return retval; in kovaplus_get_profile_settings()
90 int retval; in kovaplus_get_profile_buttons() local
92 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons()
94 if (retval) in kovaplus_get_profile_buttons()
[all …]
/drivers/rtc/
Drtc-sysfs.c37 ssize_t retval; in date_show() local
40 retval = rtc_read_time(to_rtc_device(dev), &tm); in date_show()
41 if (retval == 0) { in date_show()
42 retval = sprintf(buf, "%04d-%02d-%02d\n", in date_show()
46 return retval; in date_show()
53 ssize_t retval; in time_show() local
56 retval = rtc_read_time(to_rtc_device(dev), &tm); in time_show()
57 if (retval == 0) { in time_show()
58 retval = sprintf(buf, "%02d:%02d:%02d\n", in time_show()
62 return retval; in time_show()
[all …]
Drtc-ab8500.c91 int retval, i; in ab8500_rtc_read_time() local
97 retval = abx500_set_register_interruptible(dev, in ab8500_rtc_read_time()
99 if (retval < 0) in ab8500_rtc_read_time()
100 return retval; in ab8500_rtc_read_time()
104 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time()
106 if (retval < 0) in ab8500_rtc_read_time()
107 return retval; in ab8500_rtc_read_time()
117 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time()
119 if (retval < 0) in ab8500_rtc_read_time()
120 return retval; in ab8500_rtc_read_time()
[all …]
/drivers/usb/misc/
Dcytherm.c101 int retval; in set_brightness() local
115 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS, in set_brightness()
117 if (retval) in set_brightness()
118 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in set_brightness()
120 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS_SEM, in set_brightness()
122 if (retval) in set_brightness()
123 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in set_brightness()
143 int retval; in show_temp() local
153 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); in show_temp()
154 if (retval) in show_temp()
[all …]
Dusbtest.c464 int retval = 0; in simple_io() local
468 while (retval == 0 && iterations-- > 0) { in simple_io()
474 retval = usb_submit_urb(urb, GFP_KERNEL); in simple_io()
475 if (retval != 0) in simple_io()
481 retval = (urb->status == -ENOENT ? in simple_io()
484 retval = urb->status; in simple_io()
488 if (retval == 0 && usb_pipein(urb->pipe)) in simple_io()
489 retval = simple_check_buf(tdev, urb); in simple_io()
505 if (expected != retval) in simple_io()
508 label, iterations, retval, expected); in simple_io()
[all …]
/drivers/media/radio/si470x/
Dradio-si470x-common.c210 int retval; in si470x_set_chan() local
217 retval = si470x_set_register(radio, CHANNEL); in si470x_set_chan()
218 if (retval < 0) in si470x_set_chan()
236 retval = si470x_set_register(radio, CHANNEL); in si470x_set_chan()
239 return retval; in si470x_set_chan()
267 int chan, retval; in si470x_get_freq() local
270 retval = si470x_get_register(radio, READCHAN); in si470x_get_freq()
276 return retval; in si470x_get_freq()
302 int band, retval; in si470x_set_seek() local
320 retval = si470x_get_freq(radio, &freq); in si470x_set_seek()
[all …]
Dradio-si470x-usb.c214 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()
[all …]
/drivers/input/touchscreen/
Dbu21013_ts.c260 int retval; in bu21013_gpio_irq() local
263 retval = bu21013_do_touch_report(data); in bu21013_gpio_irq()
264 if (retval < 0) { in bu21013_gpio_irq()
287 int retval; in bu21013_init_chip() local
290 retval = i2c_smbus_write_byte_data(i2c, BU21013_RESET_REG, in bu21013_init_chip()
292 if (retval < 0) { in bu21013_init_chip()
294 return retval; in bu21013_init_chip()
298 retval = i2c_smbus_write_byte_data(i2c, BU21013_SENSOR_0_7_REG, in bu21013_init_chip()
300 if (retval < 0) { in bu21013_init_chip()
302 return retval; in bu21013_init_chip()
[all …]
/drivers/input/rmi4/
Drmi_i2c.c68 int retval; in rmi_set_page() local
70 retval = i2c_master_send(client, txbuf, sizeof(txbuf)); in rmi_set_page()
71 if (retval != sizeof(txbuf)) { in rmi_set_page()
73 "%s: set page failed: %d.", __func__, retval); in rmi_set_page()
74 return (retval < 0) ? retval : -EIO; in rmi_set_page()
88 int retval; in rmi_i2c_write_block() local
101 retval = -ENOMEM; in rmi_i2c_write_block()
110 retval = rmi_set_page(rmi_i2c, RMI_I2C_PAGE(addr)); in rmi_i2c_write_block()
111 if (retval) in rmi_i2c_write_block()
115 retval = i2c_master_send(client, rmi_i2c->tx_buf, tx_size); in rmi_i2c_write_block()
[all …]
Drmi_driver.c54 int retval = 0; in reset_one_function() local
61 retval = fh->reset(fn); in reset_one_function()
62 if (retval < 0) in reset_one_function()
64 retval); in reset_one_function()
67 return retval; in reset_one_function()
73 int retval = 0; in configure_one_function() local
80 retval = fh->config(fn); in configure_one_function()
81 if (retval < 0) in configure_one_function()
83 retval); in configure_one_function()
86 return retval; in configure_one_function()
[all …]
/drivers/staging/vme/devices/
Dvme_pio2_core.c55 int retval; in pio2_set_led() local
66 retval = vme_master_write(card->window, &reg, 1, PIO2_REGS_CTRL); in pio2_set_led()
67 if (retval < 0) in pio2_set_led()
68 return retval; in pio2_set_led()
77 int vec, i, channel, retval; in pio2_int() local
92 retval = vme_master_read(card->window, &reg, 1, in pio2_int()
94 if (retval < 0) { in pio2_int()
126 int retval = 0; in pio2_reset_card() local
130 retval = vme_master_write(card->window, &data, 1, PIO2_REGS_CTRL); in pio2_reset_card()
131 if (retval < 0) in pio2_reset_card()
[all …]
Dvme_pio2_cntr.c26 int retval; in pio2_cntr_irq_set() local
30 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_CTRL[id]); in pio2_cntr_irq_set()
31 if (retval < 0) in pio2_cntr_irq_set()
32 return retval; in pio2_cntr_irq_set()
35 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_DATA[id]); in pio2_cntr_irq_set()
36 if (retval < 0) in pio2_cntr_irq_set()
37 return retval; in pio2_cntr_irq_set()
40 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_DATA[id]); in pio2_cntr_irq_set()
41 if (retval < 0) in pio2_cntr_irq_set()
42 return retval; in pio2_cntr_irq_set()
[all …]
/drivers/usb/core/
Dhcd-pci.c189 int retval; in usb_hcd_pci_probe() local
213 retval = -ENODEV; in usb_hcd_pci_probe()
221 retval = -ENOMEM; in usb_hcd_pci_probe()
235 retval = -EBUSY; in usb_hcd_pci_probe()
241 retval = -EFAULT; in usb_hcd_pci_probe()
262 retval = -EBUSY; in usb_hcd_pci_probe()
274 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
275 if (retval != 0) in usb_hcd_pci_probe()
282 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
283 if (retval != 0) in usb_hcd_pci_probe()
[all …]
/drivers/staging/mt29f_spinand/
Dmt29f_spinand.c129 int retval; in spinand_read_id() local
137 retval = spinand_cmd(spi_nand, &cmd); in spinand_read_id()
138 if (retval < 0) { in spinand_read_id()
139 dev_err(&spi_nand->dev, "error %d reading id\n", retval); in spinand_read_id()
140 return retval; in spinand_read_id()
144 return retval; in spinand_read_id()
179 int retval; in wait_till_ready() local
184 retval = spinand_read_status(spi_nand, &stat); in wait_till_ready()
185 if (retval < 0) in wait_till_ready()
209 int retval; in spinand_get_otp() local
[all …]
/drivers/pci/hotplug/
Dpci_hotplug_core.c70 int retval = 0; \
74 retval = ops->get_##name(slot, value); \
78 return retval; \
88 int retval; in GET_STATUS() local
91 retval = get_power_status(pci_slot->hotplug, &value); in GET_STATUS()
92 if (retval) in GET_STATUS()
93 return retval; in GET_STATUS()
104 int retval = 0; in power_write_file() local
111 retval = -ENODEV; in power_write_file()
117 retval = slot->ops->disable_slot(slot); in power_write_file()
[all …]
/drivers/input/misc/
Duinput.c114 int retval; in uinput_request_send() local
116 retval = mutex_lock_interruptible(&udev->mutex); in uinput_request_send()
117 if (retval) in uinput_request_send()
118 return retval; in uinput_request_send()
121 retval = -ENODEV; in uinput_request_send()
135 return retval; in uinput_request_send()
154 return request->retval; in uinput_request_submit()
171 request->retval = -ENODEV; in uinput_flush_requests()
465 int retval; in uinput_setup_device_legacy() local
471 retval = uinput_allocate_device(udev); in uinput_setup_device_legacy()
[all …]
/drivers/usb/host/
Du132-hcd.c428 int retval; in read_roothub_info() local
429 retval = u132_read_pcimem(u132, revision, &revision); in read_roothub_info()
430 if (retval) { in read_roothub_info()
432 "ntrol\n", retval); in read_roothub_info()
433 return retval; in read_roothub_info()
441 retval = u132_read_pcimem(u132, control, &u132->hc_control); in read_roothub_info()
442 if (retval) { in read_roothub_info()
444 "ntrol\n", retval); in read_roothub_info()
445 return retval; in read_roothub_info()
447 retval = u132_read_pcimem(u132, roothub.status, in read_roothub_info()
[all …]

12345678910>>...38