/linux/arch/parisc/kernel/ |
H A D | firmware.c | 227 int retval; in pdc_add_valid() local 231 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid() 234 return retval; in pdc_add_valid() 246 int retval; in pdc_instr() local 250 retval = mem_pdc_call(PDC_INSTR, 0UL, __pa(pdc_result)); in pdc_instr() 255 return retval; in pdc_instr() 268 int retval; in pdc_chassis_info() local 274 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info() 280 return retval; in pdc_chassis_info() 293 int retval = 0; in pdc_pat_chassis_send_log() local [all …]
|
/linux/drivers/hid/ |
H A D | hid-roccat-arvo.c | 34 int retval; in arvo_sysfs_show_mode_key() local 37 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key() 40 if (retval) in arvo_sysfs_show_mode_key() 41 return retval; in arvo_sysfs_show_mode_key() 55 int retval; in arvo_sysfs_set_mode_key() local 57 retval = kstrtoul(buf, 10, &state); in arvo_sysfs_set_mode_key() 58 if (retval) in arvo_sysfs_set_mode_key() 59 return retval; in arvo_sysfs_set_mode_key() 65 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key() 68 if (retval) in arvo_sysfs_set_mode_key() [all …]
|
H A D | hid-roccat-kone.c | 110 int retval; in kone_check_write() local 120 retval = kone_receive(usb_dev, in kone_check_write() 122 if (retval) in kone_check_write() 123 return retval; in kone_check_write() 160 int retval; in kone_set_settings() local 162 retval = kone_send(usb_dev, kone_command_settings, in kone_set_settings() 164 if (retval) in kone_set_settings() 165 return retval; in kone_set_settings() 232 int retval; in kone_get_weight() local 235 retval = kone_receive(usb_dev, kone_command_weight, &data, 1); in kone_get_weight() [all …]
|
H A D | hid-roccat-kovaplus.c | 46 int retval; in kovaplus_send_control() local 58 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control() 61 return retval; in kovaplus_send_control() 73 int retval; in kovaplus_get_profile_settings() local 75 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings() 77 if (retval) in kovaplus_get_profile_settings() 78 return retval; in kovaplus_get_profile_settings() 87 int retval; in kovaplus_get_profile_buttons() local 89 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons() 91 if (retval) in kovaplus_get_profile_buttons() [all …]
|
/linux/drivers/media/usb/gspca/ |
H A 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 …]
|
/linux/tools/tracing/rtla/src/ |
H A D | osnoise.c | 52 int retval; in osnoise_set_cpus() local 65 retval = tracefs_instance_file_write(NULL, "osnoise/cpus", buffer); in osnoise_set_cpus() 66 if (retval < 0) { in osnoise_set_cpus() 84 int retval; in osnoise_restore_cpus() local 98 retval = tracefs_instance_file_write(NULL, "osnoise/cpus", context->orig_cpus); in osnoise_restore_cpus() 99 if (retval < 0) in osnoise_restore_cpus() 128 long long retval; in osnoise_read_ll_config() local 136 retval = get_llong_from_str(buffer); in osnoise_read_ll_config() 138 debug_msg("reading %s returned %lld\n", rel_path, retval); in osnoise_read_ll_config() 142 return retval; in osnoise_read_ll_config() [all …]
|
H A D | trace.c | 19 int retval; in enable_tracer_by_name() local 25 retval = tracefs_tracer_set(inst, tracer, tracer_name); in enable_tracer_by_name() 26 if (retval < 0) { in enable_tracer_by_name() 43 int retval; in disable_tracer() local 45 retval = tracefs_tracer_set(inst, t); in disable_tracer() 46 if (retval < 0) in disable_tracer() 76 int retval = -1; in save_trace_to_file() local 91 retval = read(in_fd, buffer, sizeof(buffer)); in save_trace_to_file() 92 if (retval <= 0) in save_trace_to_file() 95 retval = write(out_fd, buffer, retval); in save_trace_to_file() [all …]
|
/linux/sound/spi/ |
H A D | at73c213.c | 91 int retval; in snd_at73c213_write_reg() local 102 retval = spi_sync(chip->spi, &msg); in snd_at73c213_write_reg() 104 if (!retval) in snd_at73c213_write_reg() 107 return retval; in snd_at73c213_write_reg() 276 int retval = 0; in snd_at73c213_pcm_trigger() local 291 retval = -EINVAL; in snd_at73c213_pcm_trigger() 297 return retval; in snd_at73c213_pcm_trigger() 330 int retval; in snd_at73c213_pcm_new() local 332 retval = snd_pcm_new(chip->card, chip->card->shortname, in snd_at73c213_pcm_new() 334 if (retval < 0) in snd_at73c213_pcm_new() [all …]
|
/linux/net/sctp/ |
H A D | sm_make_chunk.c | 216 struct sctp_chunk *retval = NULL; in sctp_make_init() local 319 retval = sctp_make_control(asoc, SCTP_CID_INIT, 0, chunksize, gfp); in sctp_make_init() 320 if (!retval) in sctp_make_init() 323 retval->subh.init_hdr = in sctp_make_init() 324 sctp_addto_chunk(retval, sizeof(init), &init); in sctp_make_init() 325 retval->param_hdr.v = in sctp_make_init() 326 sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init() 337 sctp_addto_chunk(retval, sizeof(sat), &sat); in sctp_make_init() 338 sctp_addto_chunk(retval, num_types * sizeof(__u16), &types); in sctp_make_init() 341 sctp_addto_chunk(retval, sizeof(ecap_param), &ecap_param); in sctp_make_init() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_check_mtu.c | 35 int retval = XDP_PASS; /* Expected retval on successful test */ in xdp_use_helper() local 46 retval = XDP_ABORTED; in xdp_use_helper() 51 retval = XDP_DROP; in xdp_use_helper() 55 return retval; in xdp_use_helper() 65 int retval = XDP_ABORTED; /* Fail */ in xdp_exceed_mtu() local 75 retval = XDP_PASS; /* Success in exceeding MTU check */ in xdp_exceed_mtu() 77 retval = XDP_DROP; in xdp_exceed_mtu() 81 return retval; in xdp_exceed_mtu() 87 int retval = XDP_PASS; /* Expected retval on successful test */ in xdp_minus_delta() local 102 retval = XDP_ABORTED; in xdp_minus_delta() [all …]
|
/linux/fs/ext4/ |
H A D | migrate.c | 25 int retval = 0, needed; in finish_range() local 39 retval = PTR_ERR(path); in finish_range() 52 retval = ext4_datasem_ensure_credits(handle, inode, needed, needed, 0); in finish_range() 53 if (retval < 0) in finish_range() 57 retval = PTR_ERR(path); in finish_range() 62 return retval; in finish_range() 68 int retval; in update_extent_range() local 83 retval = finish_range(handle, inode, lb); in update_extent_range() 87 return retval; in update_extent_range() 96 int i, retval = 0; in update_ind_extent_range() local [all …]
|
/linux/drivers/rtc/ |
H A D | sysfs.c | 35 ssize_t retval; in date_show() local 38 retval = rtc_read_time(to_rtc_device(dev), &tm); in date_show() 39 if (retval) in date_show() 40 return retval; in date_show() 49 ssize_t retval; in time_show() local 52 retval = rtc_read_time(to_rtc_device(dev), &tm); in time_show() 53 if (retval) in time_show() 54 return retval; in time_show() 63 ssize_t retval; in since_epoch_show() local 66 retval = rtc_read_time(to_rtc_device(dev), &tm); in since_epoch_show() [all …]
|
H A 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 …]
|
/linux/drivers/usb/misc/ |
H A 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 …]
|
/linux/tools/testing/selftests/mincore/ |
H A D | mincore_selftest.c | 32 int retval; in TEST() local 40 retval = mincore(0, 0, vec); in TEST() 41 EXPECT_EQ(0, retval); in TEST() 45 retval = mincore(NULL, page_size, vec); in TEST() 46 EXPECT_EQ(-1, retval); in TEST() 58 retval = mincore(addr + 1, page_size, vec); in TEST() 59 EXPECT_EQ(-1, retval); in TEST() 64 retval = mincore(addr, -1, vec); in TEST() 65 EXPECT_EQ(-1, retval); in TEST() 70 retval = mincore(addr, page_size, NULL); in TEST() [all …]
|
/linux/drivers/media/radio/si470x/ |
H A 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 …]
|
H A 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 …]
|
/linux/drivers/input/rmi4/ |
H A 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 …]
|
/linux/drivers/net/usb/ |
H A D | ipheth.c | 216 int retval = -EINVAL; in ipheth_rcvbulk_callback_ncm() local 224 return retval; in ipheth_rcvbulk_callback_ncm() 231 return retval; in ipheth_rcvbulk_callback_ncm() 239 return retval; in ipheth_rcvbulk_callback_ncm() 249 return retval; in ipheth_rcvbulk_callback_ncm() 255 retval = ipheth_consume_skb(buf, len, dev); in ipheth_rcvbulk_callback_ncm() 256 if (retval != 0) in ipheth_rcvbulk_callback_ncm() 257 return retval; in ipheth_rcvbulk_callback_ncm() 268 int retval, status; in ipheth_rcvbulk_callback() local 307 retval = dev->rcvbulk_callback(urb); in ipheth_rcvbulk_callback() [all …]
|
/linux/tools/testing/selftests/bpf/verifier/ |
H A D | jmp32.c | 20 { .retval = 0, 23 { .retval = 2, 26 { .retval = 2, 52 { .retval = 0, 55 { .retval = 2, 58 { .retval = 2, 77 .retval = 2, 108 { .retval = 0, 111 { .retval = 2, 132 { .retval = 0, [all …]
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_packet_manager.c | 96 int retval; in pm_allocate_runlist_ib() local 105 retval = kfd_gtt_sa_allocate(node, *rl_buffer_size, &pm->ib_buffer_obj); in pm_allocate_runlist_ib() 107 if (retval) { in pm_allocate_runlist_ib() 120 return retval; in pm_allocate_runlist_ib() 132 int retval, processes_mapped; in pm_create_runlist_ib() local 139 rl_wptr = retval = processes_mapped = 0; in pm_create_runlist_ib() 141 retval = pm_allocate_runlist_ib(pm, &rl_buffer, rl_gpu_addr, in pm_create_runlist_ib() 143 if (retval) in pm_create_runlist_ib() 144 return retval; in pm_create_runlist_ib() 162 retval = pm->pmf->map_process(pm, &rl_buffer[rl_wptr], qpd); in pm_create_runlist_ib() [all …]
|
/linux/fs/9p/ |
H A D | acl.c | 63 int retval; in __v9fs_get_acl() local 70 retval = PTR_ERR(acl); in __v9fs_get_acl() 71 if (retval == -ENODATA || retval == -ENOSYS || retval == -EOPNOTSUPP) in __v9fs_get_acl() 80 int retval = 0; in v9fs_get_acl() local 99 retval = -EIO; in v9fs_get_acl() 107 return retval; in v9fs_get_acl() 157 int retval; in v9fs_iop_set_acl() local 165 retval = posix_acl_valid(inode->i_sb->s_user_ns, acl); in v9fs_iop_set_acl() 166 if (retval) in v9fs_iop_set_acl() 173 retval = -ENOMEM; in v9fs_iop_set_acl() [all …]
|
/linux/drivers/mfd/ |
H A D | cros_ec_dev.c | 179 int retval = -ENOMEM; in ec_device_probe() local 188 return retval; in ec_device_probe() 222 retval = dev_set_name(&ec->class_dev, "%s", ec_platform->ec_name); in ec_device_probe() 223 if (retval) { in ec_device_probe() 224 dev_err(dev, "dev_set_name failed => %d\n", retval); in ec_device_probe() 228 retval = device_add(&ec->class_dev); in ec_device_probe() 229 if (retval) in ec_device_probe() 234 retval = mfd_add_hotplug_devices(ec->dev, in ec_device_probe() 237 if (retval) in ec_device_probe() 239 cros_ec_sensorhub_cells->name, retval); in ec_device_probe() [all …]
|
/linux/drivers/staging/gpib/lpvo_usb_gpib/ |
H A D | lpvo_usb_gpib.c | 271 int retval; in send_command() local 278 retval = write_loop(GPIB_DEV, msg, leng); in send_command() 279 if (retval < 0) in send_command() 280 return retval; in send_command() 318 int retval; in set_control_line() local 323 retval = send_command(board, USB_GPIB_READ_LINES, 0); in set_control_line() 325 DIA_LOG(1, "old line values: %x\n", retval); in set_control_line() 327 if (retval == -EIO) in set_control_line() 328 return retval; in set_control_line() 330 msg[leng - 2] = value ? (retval & ~line) : retval | line; in set_control_line() [all …]
|
/linux/sound/core/ |
H A D | compress_offload.c | 301 int retval; in snd_compr_write() local 328 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write() 330 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write() 332 if (retval > 0) in snd_compr_write() 333 stream->runtime->total_bytes_available += retval; in snd_compr_write() 342 return retval; in snd_compr_write() 352 int retval; in snd_compr_read() local 383 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read() 386 if (retval > 0) in snd_compr_read() 387 stream->runtime->total_bytes_transferred += retval; in snd_compr_read() [all …]
|