/drivers/staging/rts5208/ |
D | rtsx_chip.c | 100 int retval; in rtsx_pre_handle_sdio_old() local 104 retval = rtsx_write_register(chip, CARD_PULL_CTL5, in rtsx_pre_handle_sdio_old() 108 if (retval) in rtsx_pre_handle_sdio_old() 109 return retval; in rtsx_pre_handle_sdio_old() 111 retval = rtsx_write_register(chip, FPGA_PULL_CTL, in rtsx_pre_handle_sdio_old() 114 if (retval) in rtsx_pre_handle_sdio_old() 115 return retval; in rtsx_pre_handle_sdio_old() 117 retval = rtsx_write_register(chip, CARD_SHARE_MODE, 0xFF, in rtsx_pre_handle_sdio_old() 119 if (retval) in rtsx_pre_handle_sdio_old() 120 return retval; in rtsx_pre_handle_sdio_old() [all …]
|
D | sd.c | 97 int retval; in sd_check_data0_status() local 100 retval = rtsx_read_register(chip, REG_SD_STAT1, &stat); in sd_check_data0_status() 101 if (retval) in sd_check_data0_status() 102 return retval; in sd_check_data0_status() 116 int retval; local 165 retval = rtsx_send_cmd(chip, SD_CARD, timeout); 166 if (retval < 0) { 175 if (retval == -ETIMEDOUT) { 177 retval = sd_check_data0_status(chip); 178 if (retval != STATUS_SUCCESS) { [all …]
|
D | ms.c | 43 int retval; in ms_transfer_tpc() local 63 retval = rtsx_send_cmd(chip, MS_CARD, 5000); in ms_transfer_tpc() 64 if (retval < 0) { in ms_transfer_tpc() 99 int retval; in ms_transfer_data() local 140 retval = rtsx_transfer_data(chip, MS_CARD, buf, buf_len, in ms_transfer_data() 142 if (retval < 0) { in ms_transfer_data() 144 if (retval == -ETIMEDOUT) in ms_transfer_data() 145 retval = STATUS_TIMEDOUT; in ms_transfer_data() 147 retval = STATUS_FAIL; in ms_transfer_data() 149 return retval; in ms_transfer_data() [all …]
|
D | spi.c | 28 int retval; in spi_init() local 30 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init() 33 if (retval) in spi_init() 34 return retval; in spi_init() 35 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init() 37 if (retval) in spi_init() 38 return retval; in spi_init() 46 int retval; in spi_set_init_para() local 48 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para() 50 if (retval) in spi_set_init_para() [all …]
|
D | xd.c | 44 int retval; in xd_set_init_para() local 51 retval = switch_clock(chip, xd_card->xd_clock); in xd_set_init_para() 52 if (retval != STATUS_SUCCESS) in xd_set_init_para() 61 int retval; in xd_switch_clock() local 63 retval = select_card(chip, XD_CARD); in xd_switch_clock() 64 if (retval != STATUS_SUCCESS) in xd_switch_clock() 67 retval = switch_clock(chip, xd_card->xd_clock); in xd_switch_clock() 68 if (retval != STATUS_SUCCESS) in xd_switch_clock() 76 int retval, i; in xd_read_id() local 90 retval = rtsx_send_cmd(chip, XD_CARD, 20); in xd_read_id() [all …]
|
/drivers/media/usb/gspca/ |
D | jl2005bcd.c | 76 int retval; in jl2005c_write2() local 79 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_write2() 82 if (retval < 0) in jl2005c_write2() 84 gspca_dev->usb_buf[0], retval); in jl2005c_write2() 85 return retval; in jl2005c_write2() 91 int retval; in jl2005c_read1() local 93 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_read1() 96 if (retval < 0) in jl2005c_read1() 98 gspca_dev->usb_buf[0], retval); in jl2005c_read1() 99 return retval; in jl2005c_read1() [all …]
|
/drivers/hid/ |
D | hid-roccat-arvo.c | 36 int retval; in arvo_sysfs_show_mode_key() local 39 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key() 42 if (retval) in arvo_sysfs_show_mode_key() 43 return retval; in arvo_sysfs_show_mode_key() 57 int retval; in arvo_sysfs_set_mode_key() local 59 retval = kstrtoul(buf, 10, &state); in arvo_sysfs_set_mode_key() 60 if (retval) in arvo_sysfs_set_mode_key() 61 return retval; in arvo_sysfs_set_mode_key() 67 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key() 70 if (retval) in arvo_sysfs_set_mode_key() [all …]
|
D | hid-roccat-kone.c | 113 int retval; in kone_check_write() local 123 retval = kone_receive(usb_dev, in kone_check_write() 125 if (retval) in kone_check_write() 126 return retval; in kone_check_write() 163 int retval; in kone_set_settings() local 165 retval = kone_send(usb_dev, kone_command_settings, in kone_set_settings() 167 if (retval) in kone_set_settings() 168 return retval; in kone_set_settings() 235 int retval; in kone_get_weight() local 238 retval = kone_receive(usb_dev, kone_command_weight, &data, 1); in kone_get_weight() [all …]
|
D | hid-roccat-kovaplus.c | 48 int retval; in kovaplus_send_control() local 60 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control() 63 return retval; in kovaplus_send_control() 75 int retval; in kovaplus_get_profile_settings() local 77 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings() 79 if (retval) in kovaplus_get_profile_settings() 80 return retval; in kovaplus_get_profile_settings() 89 int retval; in kovaplus_get_profile_buttons() local 91 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons() 93 if (retval) in kovaplus_get_profile_buttons() [all …]
|
/drivers/staging/pi433/ |
D | pi433_if.c | 365 int retval; in pi433_start_rx() local 372 retval = rf69_set_rx_cfg(dev, &dev->rx_cfg); in pi433_start_rx() 373 if (retval) in pi433_start_rx() 374 return retval; in pi433_start_rx() 377 retval = rf69_set_dio_mapping(dev->spi, DIO0, DIO_RSSI_DIO0); in pi433_start_rx() 378 if (retval < 0) in pi433_start_rx() 379 return retval; in pi433_start_rx() 384 retval = rf69_set_fifo_threshold(dev->spi, FIFO_SIZE - FIFO_THRESHOLD); in pi433_start_rx() 385 if (retval < 0) in pi433_start_rx() 386 return retval; in pi433_start_rx() [all …]
|
/drivers/usb/misc/ |
D | usbtest.c | 466 int retval = 0; in simple_io() local 470 while (retval == 0 && iterations-- > 0) { in simple_io() 476 retval = usb_submit_urb(urb, GFP_KERNEL); in simple_io() 477 if (retval != 0) in simple_io() 483 retval = (urb->status == -ENOENT ? in simple_io() 486 retval = urb->status; in simple_io() 490 if (retval == 0 && usb_pipein(urb->pipe)) in simple_io() 491 retval = simple_check_buf(tdev, urb); in simple_io() 507 if (expected != retval) in simple_io() 510 label, iterations, retval, expected); in simple_io() [all …]
|
D | cytherm.c | 82 int retval; in brightness_store() local 96 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS, in brightness_store() 98 if (retval) in brightness_store() 99 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store() 101 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS_SEM, in brightness_store() 103 if (retval) in brightness_store() 104 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store() 122 int retval; in temp_show() local 132 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); in temp_show() 133 if (retval) in temp_show() [all …]
|
/drivers/rtc/ |
D | sysfs.c | 34 ssize_t retval; in date_show() local 37 retval = rtc_read_time(to_rtc_device(dev), &tm); in date_show() 38 if (retval) in date_show() 39 return retval; in date_show() 48 ssize_t retval; in time_show() local 51 retval = rtc_read_time(to_rtc_device(dev), &tm); in time_show() 52 if (retval) in time_show() 53 return retval; in time_show() 62 ssize_t retval; in since_epoch_show() local 65 retval = rtc_read_time(to_rtc_device(dev), &tm); in since_epoch_show() [all …]
|
D | rtc-ab8500.c | 64 int retval, i; in ab8500_rtc_read_time() local 70 retval = abx500_set_register_interruptible(dev, in ab8500_rtc_read_time() 72 if (retval < 0) in ab8500_rtc_read_time() 73 return retval; in ab8500_rtc_read_time() 77 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time() 79 if (retval < 0) in ab8500_rtc_read_time() 80 return retval; in ab8500_rtc_read_time() 90 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time() 92 if (retval < 0) in ab8500_rtc_read_time() 93 return retval; in ab8500_rtc_read_time() [all …]
|
/drivers/usb/core/ |
D | hcd-pci.c | 178 int retval; in usb_hcd_pci_probe() local 198 retval = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_LEGACY | PCI_IRQ_MSI); in usb_hcd_pci_probe() 199 if (retval < 0) { in usb_hcd_pci_probe() 203 retval = -ENODEV; in usb_hcd_pci_probe() 211 retval = -ENOMEM; in usb_hcd_pci_probe() 225 retval = -EBUSY; in usb_hcd_pci_probe() 232 retval = -EFAULT; in usb_hcd_pci_probe() 253 retval = -EBUSY; in usb_hcd_pci_probe() 265 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe() 266 if (retval != 0) in usb_hcd_pci_probe() [all …]
|
/drivers/input/rmi4/ |
D | rmi_driver.c | 63 int retval = 0; in reset_one_function() local 70 retval = fh->reset(fn); in reset_one_function() 71 if (retval < 0) in reset_one_function() 73 retval); in reset_one_function() 76 return retval; in reset_one_function() 82 int retval = 0; in configure_one_function() local 89 retval = fh->config(fn); in configure_one_function() 90 if (retval < 0) in configure_one_function() 92 retval); in configure_one_function() 95 return retval; in configure_one_function() [all …]
|
D | rmi_2d_sensor.c | 228 int retval; in rmi_2d_sensor_of_probe() local 240 retval = rmi_of_property_read_u32(dev, &val, "syna,clip-x-low", 1); in rmi_2d_sensor_of_probe() 241 if (retval) in rmi_2d_sensor_of_probe() 242 return retval; in rmi_2d_sensor_of_probe() 246 retval = rmi_of_property_read_u32(dev, &val, "syna,clip-y-low", 1); in rmi_2d_sensor_of_probe() 247 if (retval) in rmi_2d_sensor_of_probe() 248 return retval; in rmi_2d_sensor_of_probe() 252 retval = rmi_of_property_read_u32(dev, &val, "syna,clip-x-high", 1); in rmi_2d_sensor_of_probe() 253 if (retval) in rmi_2d_sensor_of_probe() 254 return retval; in rmi_2d_sensor_of_probe() [all …]
|
/drivers/media/radio/si470x/ |
D | radio-si470x-common.c | 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() [all …]
|
D | radio-si470x-usb.c | 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() [all …]
|
/drivers/pci/hotplug/ |
D | pci_hotplug_core.c | 53 int retval = 0; \ 57 retval = ops->get_##name(slot, value); \ 59 return retval; \ 69 int retval; in GET_STATUS() local 72 retval = get_power_status(pci_slot->hotplug, &value); in GET_STATUS() 73 if (retval) in GET_STATUS() 74 return retval; in GET_STATUS() 85 int retval = 0; in power_write_file() local 92 retval = -ENODEV; in power_write_file() 98 retval = slot->ops->disable_slot(slot); in power_write_file() [all …]
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_packet_manager.c | 92 int retval; in pm_allocate_runlist_ib() local 101 retval = kfd_gtt_sa_allocate(pm->dqm->dev, *rl_buffer_size, in pm_allocate_runlist_ib() 104 if (retval) { in pm_allocate_runlist_ib() 117 return retval; in pm_allocate_runlist_ib() 127 int retval, processes_mapped; in pm_create_runlist_ib() local 134 rl_wptr = retval = processes_mapped = 0; in pm_create_runlist_ib() 136 retval = pm_allocate_runlist_ib(pm, &rl_buffer, rl_gpu_addr, in pm_create_runlist_ib() 138 if (retval) in pm_create_runlist_ib() 139 return retval; in pm_create_runlist_ib() 157 retval = pm->pmf->map_process(pm, &rl_buffer[rl_wptr], qpd); in pm_create_runlist_ib() [all …]
|
/drivers/input/misc/ |
D | uinput.c | 44 int retval; member 149 int retval; in uinput_request_send() local 151 retval = mutex_lock_interruptible(&udev->mutex); in uinput_request_send() 152 if (retval) in uinput_request_send() 153 return retval; in uinput_request_send() 156 retval = -ENODEV; in uinput_request_send() 170 return retval; in uinput_request_send() 176 int retval; in uinput_request_submit() local 178 retval = uinput_request_reserve_slot(udev, request); in uinput_request_submit() 179 if (retval) in uinput_request_submit() [all …]
|
/drivers/usb/host/ |
D | u132-hcd.c | 421 int retval; in read_roothub_info() local 422 retval = u132_read_pcimem(u132, revision, &revision); in read_roothub_info() 423 if (retval) { in read_roothub_info() 425 "ntrol\n", retval); in read_roothub_info() 426 return retval; in read_roothub_info() 434 retval = u132_read_pcimem(u132, control, &u132->hc_control); in read_roothub_info() 435 if (retval) { in read_roothub_info() 437 "ntrol\n", retval); in read_roothub_info() 438 return retval; in read_roothub_info() 440 retval = u132_read_pcimem(u132, roothub.status, in read_roothub_info() [all …]
|
/drivers/media/radio/ |
D | radio-mr800.c | 138 int retval; in amradio_send_cmd() local 150 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), in amradio_send_cmd() 153 if (retval < 0 || size != BUFFER_LENGTH) { in amradio_send_cmd() 157 return retval ? retval : -EIO; in amradio_send_cmd() 165 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), in amradio_send_cmd() 169 retval = usb_bulk_msg(radio->usbdev, usb_rcvbulkpipe(radio->usbdev, 0x81), in amradio_send_cmd() 172 if (retval == 0 && size == BUFFER_LENGTH) in amradio_send_cmd() 176 return retval ? retval : -EIO; in amradio_send_cmd() 195 int retval; in amradio_set_freq() local 206 retval = amradio_send_cmd(radio, AMRADIO_SET_FREQ, 0, buf, 3, false); in amradio_set_freq() [all …]
|
/drivers/video/fbdev/ |
D | cobalt_lcdfb.c | 77 int timeout = 10, retval = 0; in lcd_busy_wait() local 92 retval = -EBUSY; in lcd_busy_wait() 94 return retval; in lcd_busy_wait() 130 int len, retval = 0; in cobalt_lcdfb_read() local 143 retval = lcd_busy_wait(info); in cobalt_lcdfb_read() 144 if (retval < 0) in cobalt_lcdfb_read() 149 retval = lcd_busy_wait(info); in cobalt_lcdfb_read() 150 if (retval < 0) in cobalt_lcdfb_read() 160 if (retval < 0 && signal_pending(current)) in cobalt_lcdfb_read() 176 int len, retval = 0; in cobalt_lcdfb_write() local [all …]
|