/Linux-v4.19/drivers/staging/rts5208/ |
D | rtsx_chip.c | 111 int retval; in rtsx_pre_handle_sdio_old() local 115 retval = rtsx_write_register(chip, CARD_PULL_CTL5, in rtsx_pre_handle_sdio_old() 119 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() 127 return retval; in rtsx_pre_handle_sdio_old() 130 retval = rtsx_write_register(chip, CARD_SHARE_MODE, 0xFF, in rtsx_pre_handle_sdio_old() 132 if (retval) { in rtsx_pre_handle_sdio_old() 133 return retval; in rtsx_pre_handle_sdio_old() [all …]
|
D | sd.c | 108 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() 113 return retval; in sd_check_data0_status() 128 int retval; local 177 retval = rtsx_send_cmd(chip, SD_CARD, timeout); 178 if (retval < 0) { 187 if (retval == -ETIMEDOUT) { 189 retval = sd_check_data0_status(chip); 190 if (retval != STATUS_SUCCESS) { [all …]
|
D | spi.c | 39 int retval; in spi_init() local 41 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init() 44 if (retval) { in spi_init() 45 return retval; in spi_init() 47 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init() 49 if (retval) { in spi_init() 50 return retval; in spi_init() 59 int retval; in spi_set_init_para() local 61 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para() 63 if (retval) { in spi_set_init_para() [all …]
|
D | ms.c | 54 int retval; in ms_transfer_tpc() local 74 retval = rtsx_send_cmd(chip, MS_CARD, 5000); in ms_transfer_tpc() 75 if (retval < 0) { in ms_transfer_tpc() 110 int retval; in ms_transfer_data() local 152 retval = rtsx_transfer_data(chip, MS_CARD, buf, buf_len, in ms_transfer_data() 154 if (retval < 0) { in ms_transfer_data() 156 if (retval == -ETIMEDOUT) in ms_transfer_data() 157 retval = STATUS_TIMEDOUT; in ms_transfer_data() 159 retval = STATUS_FAIL; in ms_transfer_data() 161 return retval; in ms_transfer_data() [all …]
|
D | xd.c | 55 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() 73 int retval; in xd_switch_clock() local 75 retval = select_card(chip, XD_CARD); in xd_switch_clock() 76 if (retval != STATUS_SUCCESS) { in xd_switch_clock() 80 retval = switch_clock(chip, xd_card->xd_clock); in xd_switch_clock() 81 if (retval != STATUS_SUCCESS) { in xd_switch_clock() 90 int retval, i; in xd_read_id() local 104 retval = rtsx_send_cmd(chip, XD_CARD, 20); in xd_read_id() [all …]
|
/Linux-v4.19/arch/parisc/kernel/ |
D | firmware.c | 224 int retval; in pdc_add_valid() local 228 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid() 231 return retval; in pdc_add_valid() 243 int retval; in pdc_instr() local 247 retval = mem_pdc_call(PDC_INSTR, 0UL, __pa(pdc_result)); in pdc_instr() 252 return retval; in pdc_instr() 265 int retval; in pdc_chassis_info() local 271 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info() 277 return retval; in pdc_chassis_info() 289 int retval = 0; in pdc_pat_chassis_send_log() local [all …]
|
/Linux-v4.19/fs/reiserfs/ |
D | namei.c | 123 int retval; in search_by_entry_key() local 125 retval = search_item(sb, key, path); in search_by_entry_key() 126 switch (retval) { in search_by_entry_key() 140 return retval; in search_by_entry_key() 164 retval = bin_search_in_dir_item(de, cpu_key_k_offset(key)); in search_by_entry_key() 166 if (retval != NAME_NOT_FOUND) { in search_by_entry_key() 174 return retval; in search_by_entry_key() 211 int retval = NAME_NOT_FOUND; in reiserfs_match() local 215 retval = in reiserfs_match() 219 return retval; in reiserfs_match() [all …]
|
/Linux-v4.19/drivers/media/usb/gspca/ |
D | jl2005bcd.c | 85 int retval; in jl2005c_write2() local 88 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_write2() 91 if (retval < 0) in jl2005c_write2() 93 gspca_dev->usb_buf[0], retval); in jl2005c_write2() 94 return retval; in jl2005c_write2() 100 int retval; in jl2005c_read1() local 102 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_read1() 105 if (retval < 0) in jl2005c_read1() 107 gspca_dev->usb_buf[0], retval); in jl2005c_read1() 108 return retval; in jl2005c_read1() [all …]
|
/Linux-v4.19/drivers/hid/ |
D | hid-roccat-arvo.c | 39 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 …]
|
D | hid-roccat-kone.c | 116 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 …]
|
D | hid-roccat-kovaplus.c | 51 int retval; in kovaplus_send_control() local 63 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control() 66 return retval; in kovaplus_send_control() 78 int retval; in kovaplus_get_profile_settings() local 80 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings() 82 if (retval) in kovaplus_get_profile_settings() 83 return retval; in kovaplus_get_profile_settings() 92 int retval; in kovaplus_get_profile_buttons() local 94 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons() 96 if (retval) in kovaplus_get_profile_buttons() [all …]
|
/Linux-v4.19/drivers/usb/misc/ |
D | cytherm.c | 96 int retval; in brightness_store() local 110 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS, in brightness_store() 112 if (retval) in brightness_store() 113 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store() 115 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS_SEM, in brightness_store() 117 if (retval) in brightness_store() 118 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store() 136 int retval; in temp_show() local 146 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); in temp_show() 147 if (retval) in temp_show() [all …]
|
D | usbtest.c | 458 int retval = 0; in simple_io() local 462 while (retval == 0 && iterations-- > 0) { in simple_io() 468 retval = usb_submit_urb(urb, GFP_KERNEL); in simple_io() 469 if (retval != 0) in simple_io() 475 retval = (urb->status == -ENOENT ? in simple_io() 478 retval = urb->status; in simple_io() 482 if (retval == 0 && usb_pipein(urb->pipe)) in simple_io() 483 retval = simple_check_buf(tdev, urb); in simple_io() 499 if (expected != retval) in simple_io() 502 label, iterations, retval, expected); in simple_io() [all …]
|
/Linux-v4.19/drivers/staging/pi433/ |
D | pi433_if.c | 379 int retval; in pi433_start_rx() local 386 retval = rf69_set_rx_cfg(dev, &dev->rx_cfg); in pi433_start_rx() 387 if (retval) in pi433_start_rx() 388 return retval; in pi433_start_rx() 391 retval = rf69_set_dio_mapping(dev->spi, DIO0, DIO_RSSI_DIO0); in pi433_start_rx() 392 if (retval < 0) in pi433_start_rx() 393 return retval; in pi433_start_rx() 398 retval = rf69_set_fifo_threshold(dev->spi, FIFO_SIZE - FIFO_THRESHOLD); in pi433_start_rx() 399 if (retval < 0) in pi433_start_rx() 400 return retval; in pi433_start_rx() [all …]
|
/Linux-v4.19/fs/ext4/ |
D | migrate.c | 25 int retval = 0, needed; in finish_range() local 39 retval = PTR_ERR(path); in finish_range() 59 retval = ext4_journal_restart(handle, needed); in finish_range() 61 if (retval) in finish_range() 64 retval = ext4_journal_extend(handle, needed); in finish_range() 65 if (retval) { in finish_range() 70 retval = ext4_journal_restart(handle, needed); in finish_range() 72 if (retval) in finish_range() 76 retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); in finish_range() 82 return retval; in finish_range() [all …]
|
/Linux-v4.19/drivers/rtc/ |
D | rtc-sysfs.c | 38 ssize_t retval; in date_show() local 41 retval = rtc_read_time(to_rtc_device(dev), &tm); in date_show() 42 if (retval == 0) { in date_show() 43 retval = sprintf(buf, "%04d-%02d-%02d\n", in date_show() 47 return retval; in date_show() 54 ssize_t retval; in time_show() local 57 retval = rtc_read_time(to_rtc_device(dev), &tm); in time_show() 58 if (retval == 0) { in time_show() 59 retval = sprintf(buf, "%02d:%02d:%02d\n", in time_show() 63 return retval; in time_show() [all …]
|
D | rtc-ab8500.c | 82 int retval, i; in ab8500_rtc_read_time() local 88 retval = abx500_set_register_interruptible(dev, in ab8500_rtc_read_time() 90 if (retval < 0) in ab8500_rtc_read_time() 91 return retval; in ab8500_rtc_read_time() 95 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time() 97 if (retval < 0) in ab8500_rtc_read_time() 98 return retval; in ab8500_rtc_read_time() 108 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time() 110 if (retval < 0) in ab8500_rtc_read_time() 111 return retval; in ab8500_rtc_read_time() [all …]
|
/Linux-v4.19/net/sctp/ |
D | sm_make_chunk.c | 232 struct sctp_chunk *retval = NULL; in sctp_make_init() local 333 retval = sctp_make_control(asoc, SCTP_CID_INIT, 0, chunksize, gfp); in sctp_make_init() 334 if (!retval) in sctp_make_init() 337 retval->subh.init_hdr = in sctp_make_init() 338 sctp_addto_chunk(retval, sizeof(init), &init); in sctp_make_init() 339 retval->param_hdr.v = in sctp_make_init() 340 sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init() 351 sctp_addto_chunk(retval, sizeof(sat), &sat); in sctp_make_init() 352 sctp_addto_chunk(retval, num_types * sizeof(__u16), &types); in sctp_make_init() 354 sctp_addto_chunk(retval, sizeof(ecap_param), &ecap_param); in sctp_make_init() [all …]
|
/Linux-v4.19/sound/spi/ |
D | at73c213.c | 94 int retval; in snd_at73c213_write_reg() local 105 retval = spi_sync(chip->spi, &msg); in snd_at73c213_write_reg() 107 if (!retval) in snd_at73c213_write_reg() 110 return retval; in snd_at73c213_write_reg() 283 int retval = 0; in snd_at73c213_pcm_trigger() local 298 retval = -EINVAL; in snd_at73c213_pcm_trigger() 304 return retval; in snd_at73c213_pcm_trigger() 339 int retval; in snd_at73c213_pcm_new() local 341 retval = snd_pcm_new(chip->card, chip->card->shortname, in snd_at73c213_pcm_new() 343 if (retval < 0) in snd_at73c213_pcm_new() [all …]
|
/Linux-v4.19/drivers/input/touchscreen/ |
D | bu21013_ts.c | 260 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 …]
|
/Linux-v4.19/fs/ |
D | binfmt_script.c | 22 int retval; in load_script() local 77 retval = remove_arg_zero(bprm); in load_script() 78 if (retval) in load_script() 79 return retval; in load_script() 80 retval = copy_strings_kernel(1, &bprm->interp, bprm); in load_script() 81 if (retval < 0) in load_script() 82 return retval; in load_script() 85 retval = copy_strings_kernel(1, &i_arg, bprm); in load_script() 86 if (retval < 0) in load_script() 87 return retval; in load_script() [all …]
|
/Linux-v4.19/drivers/usb/core/ |
D | hcd-pci.c | 176 int retval; in usb_hcd_pci_probe() local 200 retval = -ENODEV; in usb_hcd_pci_probe() 208 retval = -ENOMEM; in usb_hcd_pci_probe() 222 retval = -EBUSY; in usb_hcd_pci_probe() 228 retval = -EFAULT; in usb_hcd_pci_probe() 249 retval = -EBUSY; in usb_hcd_pci_probe() 261 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe() 262 if (retval != 0) in usb_hcd_pci_probe() 269 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe() 270 if (retval != 0) in usb_hcd_pci_probe() [all …]
|
/Linux-v4.19/drivers/media/radio/si470x/ |
D | radio-si470x-common.c | 204 int retval; in si470x_set_chan() local 208 retval = radio->get_register(radio, POWERCFG); in si470x_set_chan() 209 if (retval) in si470x_set_chan() 210 return retval; in si470x_set_chan() 220 retval = radio->set_register(radio, CHANNEL); in si470x_set_chan() 221 if (retval < 0) in si470x_set_chan() 239 retval = radio->set_register(radio, CHANNEL); in si470x_set_chan() 242 return retval; in si470x_set_chan() 270 int chan, retval; in si470x_get_freq() local 273 retval = radio->get_register(radio, READCHAN); in si470x_get_freq() [all …]
|
/Linux-v4.19/sound/core/ |
D | compress_offload.c | 299 int retval; in snd_compr_write() local 325 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write() 327 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write() 329 if (retval > 0) in snd_compr_write() 330 stream->runtime->total_bytes_available += retval; in snd_compr_write() 340 return retval; in snd_compr_write() 350 int retval; in snd_compr_read() local 367 retval = -EBADFD; in snd_compr_read() 370 retval = -EPIPE; in snd_compr_read() 381 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read() [all …]
|
/Linux-v4.19/drivers/input/rmi4/ |
D | rmi_driver.c | 66 int retval = 0; in reset_one_function() local 73 retval = fh->reset(fn); in reset_one_function() 74 if (retval < 0) in reset_one_function() 76 retval); in reset_one_function() 79 return retval; in reset_one_function() 85 int retval = 0; in configure_one_function() local 92 retval = fh->config(fn); in configure_one_function() 93 if (retval < 0) in configure_one_function() 95 retval); in configure_one_function() 98 return retval; in configure_one_function() [all …]
|