/linux-4.19.296/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-4.19.296/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-4.19.296/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 …]
|
D | hid-roccat-isku.c | 45 int retval; in isku_get_actual_profile() local 47 retval = isku_receive(usb_dev, ISKU_COMMAND_ACTUAL_PROFILE, in isku_get_actual_profile() 49 return retval ? retval : buf.actual_profile; in isku_get_actual_profile() 78 int retval; in isku_sysfs_set_actual_profile() local 85 retval = kstrtoul(buf, 10, &profile); in isku_sysfs_set_actual_profile() 86 if (retval) in isku_sysfs_set_actual_profile() 87 return retval; in isku_sysfs_set_actual_profile() 94 retval = isku_set_actual_profile(usb_dev, profile); in isku_sysfs_set_actual_profile() 95 if (retval) { in isku_sysfs_set_actual_profile() 97 return retval; in isku_sysfs_set_actual_profile() [all …]
|
D | hid-roccat-koneplus.c | 64 int retval; in koneplus_get_actual_profile() local 66 retval = roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_ACTUAL_PROFILE, in koneplus_get_actual_profile() 69 return retval ? retval : buf.actual_profile; in koneplus_get_actual_profile() 93 int retval; in koneplus_sysfs_read() local 102 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in koneplus_sysfs_read() 105 if (retval) in koneplus_sysfs_read() 106 return retval; in koneplus_sysfs_read() 118 int retval; in koneplus_sysfs_write() local 124 retval = roccat_common2_send_with_status(usb_dev, command, in koneplus_sysfs_write() 128 if (retval) in koneplus_sysfs_write() [all …]
|
D | hid-roccat-lua.c | 36 int retval; in lua_sysfs_read() local 45 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in lua_sysfs_read() 48 return retval ? retval : real_size; in lua_sysfs_read() 58 int retval; in lua_sysfs_write() local 64 retval = roccat_common2_send(usb_dev, command, buf, real_size); in lua_sysfs_write() 67 return retval ? retval : real_size; in lua_sysfs_write() 123 int retval; in lua_init_specials() local 132 retval = lua_init_lua_device_struct(usb_dev, lua); in lua_init_specials() 133 if (retval) { in lua_init_specials() 138 retval = lua_create_sysfs_attributes(intf); in lua_init_specials() [all …]
|
D | hid-roccat-pyra.c | 65 int retval; in pyra_get_profile_settings() local 66 retval = pyra_send_control(usb_dev, number, in pyra_get_profile_settings() 68 if (retval) in pyra_get_profile_settings() 69 return retval; in pyra_get_profile_settings() 96 int retval; in pyra_sysfs_read() local 105 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in pyra_sysfs_read() 108 if (retval) in pyra_sysfs_read() 109 return retval; in pyra_sysfs_read() 121 int retval; in pyra_sysfs_write() local 127 retval = roccat_common2_send_with_status(usb_dev, command, (void *)buf, real_size); in pyra_sysfs_write() [all …]
|
D | hid-roccat-savu.c | 63 int retval; in savu_init_specials() local 78 retval = roccat_common2_device_init_struct(usb_dev, savu); in savu_init_specials() 79 if (retval) { in savu_init_specials() 84 retval = roccat_connect(savu_class, hdev, in savu_init_specials() 86 if (retval < 0) { in savu_init_specials() 89 savu->chrdev_minor = retval; in savu_init_specials() 96 return retval; in savu_init_specials() 117 int retval; in savu_probe() local 122 retval = hid_parse(hdev); in savu_probe() 123 if (retval) { in savu_probe() [all …]
|
D | hid-roccat-konepure.c | 83 int retval; in konepure_init_specials() local 98 retval = roccat_common2_device_init_struct(usb_dev, konepure); in konepure_init_specials() 99 if (retval) { in konepure_init_specials() 104 retval = roccat_connect(konepure_class, hdev, in konepure_init_specials() 106 if (retval < 0) { in konepure_init_specials() 109 konepure->chrdev_minor = retval; in konepure_init_specials() 116 return retval; in konepure_init_specials() 137 int retval; in konepure_probe() local 142 retval = hid_parse(hdev); in konepure_probe() 143 if (retval) { in konepure_probe() [all …]
|
/linux-4.19.296/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-4.19.296/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-4.19.296/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 …]
|
D | radio-si470x-usb.c | 210 int retval; in si470x_get_report() local 212 retval = usb_control_msg(radio->usbdev, in si470x_get_report() 219 if (retval < 0) in si470x_get_report() 222 retval); in si470x_get_report() 223 return retval; in si470x_get_report() 233 int retval; in si470x_set_report() local 235 retval = usb_control_msg(radio->usbdev, in si470x_set_report() 242 if (retval < 0) in si470x_set_report() 245 retval); in si470x_set_report() 246 return retval; in si470x_set_report() [all …]
|
/linux-4.19.296/fs/ |
D | binfmt_script.c | 38 int retval; in load_script() local 116 retval = remove_arg_zero(bprm); in load_script() 117 if (retval) in load_script() 118 return retval; in load_script() 119 retval = copy_strings_kernel(1, &bprm->interp, bprm); in load_script() 120 if (retval < 0) in load_script() 121 return retval; in load_script() 124 retval = copy_strings_kernel(1, &i_arg, bprm); in load_script() 125 if (retval < 0) in load_script() 126 return retval; in load_script() [all …]
|
D | fhandle.c | 21 long retval; in do_sys_name_to_handle() local 49 retval = exportfs_encode_fh(path->dentry, in do_sys_name_to_handle() 52 handle->handle_type = retval; in do_sys_name_to_handle() 57 (retval == FILEID_INVALID) || (retval == -ENOSPC)) { in do_sys_name_to_handle() 68 retval = -EOVERFLOW; in do_sys_name_to_handle() 70 retval = 0; in do_sys_name_to_handle() 75 retval = -EFAULT; in do_sys_name_to_handle() 77 return retval; in do_sys_name_to_handle() 142 int retval = 0; in do_handle_to_path() local 147 retval = PTR_ERR(path->mnt); in do_handle_to_path() [all …]
|
D | binfmt_em86.c | 30 int retval; in load_em86() local 70 retval = copy_strings_kernel(1, &bprm->filename, bprm); in load_em86() 71 if (retval < 0) return retval; in load_em86() 74 retval = copy_strings_kernel(1, &i_arg, bprm); in load_em86() 75 if (retval < 0) return retval; in load_em86() 78 retval = copy_strings_kernel(1, &i_name, bprm); in load_em86() 79 if (retval < 0) return retval; in load_em86() 93 retval = prepare_binprm(bprm); in load_em86() 94 if (retval < 0) in load_em86() 95 return retval; in load_em86()
|
/linux-4.19.296/drivers/pci/hotplug/ |
D | pci_hotplug_core.c | 53 int retval = 0; \ 57 retval = ops->get_##name(slot, value); \ 61 return retval; \ 71 int retval; in GET_STATUS() local 74 retval = get_power_status(pci_slot->hotplug, &value); in GET_STATUS() 75 if (retval) in GET_STATUS() 76 return retval; in GET_STATUS() 87 int retval = 0; in power_write_file() local 94 retval = -ENODEV; in power_write_file() 100 retval = slot->ops->disable_slot(slot); in power_write_file() [all …]
|
/linux-4.19.296/drivers/oprofile/ |
D | oprofile_files.c | 42 int retval; in timeout_write() local 47 retval = oprofilefs_ulong_from_user(&val, buf, count); in timeout_write() 48 if (retval <= 0) in timeout_write() 49 return retval; in timeout_write() 51 retval = oprofile_set_timeout(val); in timeout_write() 53 if (retval) in timeout_write() 54 return retval; in timeout_write() 78 int retval; in depth_write() local 86 retval = oprofilefs_ulong_from_user(&val, buf, count); in depth_write() 87 if (retval <= 0) in depth_write() [all …]
|
/linux-4.19.296/drivers/media/radio/ |
D | radio-mr800.c | 147 int retval; in amradio_send_cmd() local 159 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), in amradio_send_cmd() 162 if (retval < 0 || size != BUFFER_LENGTH) { in amradio_send_cmd() 166 return retval ? retval : -EIO; in amradio_send_cmd() 174 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), in amradio_send_cmd() 178 retval = usb_bulk_msg(radio->usbdev, usb_rcvbulkpipe(radio->usbdev, 0x81), in amradio_send_cmd() 181 if (retval == 0 && size == BUFFER_LENGTH) in amradio_send_cmd() 185 return retval ? retval : -EIO; in amradio_send_cmd() 204 int retval; in amradio_set_freq() local 215 retval = amradio_send_cmd(radio, AMRADIO_SET_FREQ, 0, buf, 3, false); in amradio_set_freq() [all …]
|
/linux-4.19.296/fs/9p/ |
D | vfs_addr.c | 59 int retval, err; in v9fs_fid_readpage() local 65 retval = v9fs_readpage_from_fscache(inode, page); in v9fs_fid_readpage() 66 if (retval == 0) in v9fs_fid_readpage() 67 return retval; in v9fs_fid_readpage() 71 retval = p9_client_read(fid, page_offset(page), &to, &err); in v9fs_fid_readpage() 74 retval = err; in v9fs_fid_readpage() 78 zero_user(page, retval, PAGE_SIZE - retval); in v9fs_fid_readpage() 83 retval = 0; in v9fs_fid_readpage() 87 return retval; in v9fs_fid_readpage() 195 int retval; in v9fs_vfs_writepage() local [all …]
|
/linux-4.19.296/drivers/media/radio/si4713/ |
D | radio-usb-si4713.c | 159 int retval; in si4713_send_startup_command() local 162 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in si4713_send_startup_command() 165 if (retval < 0) in si4713_send_startup_command() 166 return retval; in si4713_send_startup_command() 170 retval = usb_control_msg(radio->usbdev, usb_rcvctrlpipe(radio->usbdev, 0), in si4713_send_startup_command() 173 if (retval < 0) in si4713_send_startup_command() 174 return retval; in si4713_send_startup_command() 201 return retval; in si4713_send_startup_command() 245 int retval = 0; in si4713_start_seq() local 256 retval = si4713_send_startup_command(radio); in si4713_start_seq() [all …]
|
/linux-4.19.296/drivers/misc/ |
D | pch_phub.c | 363 int retval; in pch_phub_write_serial_rom_val() local 369 retval = pch_phub_write_serial_rom(chip, mem_addr, data); in pch_phub_write_serial_rom_val() 371 return retval; in pch_phub_write_serial_rom_val() 379 int retval; in pch_phub_gbe_serial_rom_conf() local 381 retval = pch_phub_write_serial_rom(chip, 0x0b, 0xbc); in pch_phub_gbe_serial_rom_conf() 382 retval |= pch_phub_write_serial_rom(chip, 0x0a, 0x10); in pch_phub_gbe_serial_rom_conf() 383 retval |= pch_phub_write_serial_rom(chip, 0x09, 0x01); in pch_phub_gbe_serial_rom_conf() 384 retval |= pch_phub_write_serial_rom(chip, 0x08, 0x02); in pch_phub_gbe_serial_rom_conf() 386 retval |= pch_phub_write_serial_rom(chip, 0x0f, 0x00); in pch_phub_gbe_serial_rom_conf() 387 retval |= pch_phub_write_serial_rom(chip, 0x0e, 0x00); in pch_phub_gbe_serial_rom_conf() [all …]
|