| /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-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 …]
|
| H A D | hid-roccat-isku.c | 40 int retval; in isku_get_actual_profile() local 42 retval = isku_receive(usb_dev, ISKU_COMMAND_ACTUAL_PROFILE, in isku_get_actual_profile() 44 return retval ? retval : buf.actual_profile; in isku_get_actual_profile() 73 int retval; in isku_sysfs_set_actual_profile() local 80 retval = kstrtoul(buf, 10, &profile); in isku_sysfs_set_actual_profile() 81 if (retval) in isku_sysfs_set_actual_profile() 82 return retval; in isku_sysfs_set_actual_profile() 89 retval = isku_set_actual_profile(usb_dev, profile); in isku_sysfs_set_actual_profile() 90 if (retval) { in isku_sysfs_set_actual_profile() 92 return retval; in isku_sysfs_set_actual_profile() [all …]
|
| H A D | hid-roccat-koneplus.c | 59 int retval; in koneplus_get_actual_profile() local 61 retval = roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_ACTUAL_PROFILE, in koneplus_get_actual_profile() 64 return retval ? retval : buf.actual_profile; in koneplus_get_actual_profile() 88 int retval; in koneplus_sysfs_read() local 97 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in koneplus_sysfs_read() 100 if (retval) in koneplus_sysfs_read() 101 return retval; in koneplus_sysfs_read() 113 int retval; in koneplus_sysfs_write() local 119 retval = roccat_common2_send_with_status(usb_dev, command, in koneplus_sysfs_write() 123 if (retval) in koneplus_sysfs_write() [all …]
|
| /linux/tools/tracing/rtla/src/ |
| H A D | osnoise.c | 58 int retval; in osnoise_set_cpus() 71 retval = tracefs_instance_file_write(NULL, "osnoise/cpus", buffer); in osnoise_set_cpus() 72 if (retval < 0) { in osnoise_set_cpus() 90 int retval; in osnoise_restore_cpus() 104 retval = tracefs_instance_file_write(NULL, "osnoise/cpus", context->orig_cpus); in osnoise_restore_cpus() 105 if (retval < 0) in osnoise_restore_cpus() 134 long long retval; in osnoise_read_ll_config() 142 retval = get_llong_from_str(buffer); in osnoise_read_ll_config() 144 debug_msg("reading %s returned %lld\n", rel_path, retval); in osnoise_read_ll_config() 148 return retval; 56 int retval; osnoise_set_cpus() local 88 int retval; osnoise_restore_cpus() local 132 long long retval; osnoise_read_ll_config() local 157 long long retval; osnoise_write_ll_config() local 222 int retval; __osnoise_write_runtime() local 238 int retval; __osnoise_write_period() local 264 int retval; osnoise_set_runtime_period() local 314 int retval; osnoise_restore_runtime_period() local 376 int retval; osnoise_set_timerlat_period_us() local 395 int retval; osnoise_restore_timerlat_period_us() local 455 int retval; osnoise_set_stop_us() local 474 int retval; osnoise_restore_stop_us() local 534 int retval; osnoise_set_stop_total_us() local 553 int retval; osnoise_restore_stop_total_us() local 614 int retval; osnoise_set_print_stack() local 633 int retval; osnoise_restore_print_stack() local 693 int retval; osnoise_set_tracing_thresh() local 712 int retval; osnoise_restore_tracing_thresh() local 745 int retval = 0; osnoise_options_get_option() local 803 int retval; osnoise_set_irq_disable() local 822 int retval; osnoise_restore_irq_disable() local 864 int retval; osnoise_set_workload() local 883 int retval; osnoise_restore_workload() local 1020 int retval; osnoise_init_tool() local 1046 int retval; osnoise_init_trace_tool() local 1112 int retval; osnoise_apply_config() local 1158 int retval; osnoise_enable() local [all...] |
| H A D | common.c | 66 int retval, i; in common_apply_config() local 71 retval = osnoise_set_cpus(tool->context, params->cpus ? params->cpus : "all"); in common_apply_config() 72 if (retval) { in common_apply_config() 83 retval = sched_setaffinity(getpid(), sizeof(params->hk_cpu_set), in common_apply_config() 85 if (retval == -1) { in common_apply_config() 105 retval = osnoise_set_workload(tool->context, params->kernel_workload); in common_apply_config() 106 if (retval < -1) { in common_apply_config() 156 int retval; in run_tool() local 177 retval = ops->apply_config(tool); in run_tool() 178 if (retval) { in run_tool() [all …]
|
| H A D | timerlat_u.c | 38 int retval; in timerlat_u_main() local 46 retval = sched_setaffinity(gettid(), sizeof(set), &set); in timerlat_u_main() 47 if (retval == -1) { in timerlat_u_main() 53 retval = sched_setscheduler(0, SCHED_FIFO, &sp); in timerlat_u_main() 54 if (retval < 0) in timerlat_u_main() 57 retval = __set_sched_attr(getpid(), params->sched_param); in timerlat_u_main() 58 if (retval) { in timerlat_u_main() 65 retval = set_pid_cgroup(gettid(), params->cgroup_name); in timerlat_u_main() 66 if (!retval) { in timerlat_u_main() 68 pthread_exit(&retval); in timerlat_u_main() 105 int i, retval; timerlat_u_send_kill() local 138 int retval = 1; timerlat_u_dispatcher() local [all...] |
| H A D | trace.c | 18 int retval; in enable_tracer_by_name() 24 retval = tracefs_tracer_set(inst, tracer, tracer_name); in enable_tracer_by_name() 25 if (retval < 0) { in enable_tracer_by_name() 42 int retval; in disable_tracer() 44 retval = tracefs_tracer_set(inst, t); in disable_tracer() 45 if (retval < 0) in disable_tracer() 75 int retval = -1; in save_trace_to_file() 120 retval = 0; in collect_registered_events() 125 return retval; in collect_registered_events() 334 int retval; in trace_event_disable_filter() local 19 int retval; enable_tracer_by_name() local 43 int retval; disable_tracer() local 76 int retval = -1; save_trace_to_file() local 362 int retval, index, out_fd; trace_event_save_hist() local 412 int retval; trace_event_disable_trigger() local 465 int retval; trace_event_enable_filter() local 500 int retval; trace_event_enable_trigger() local 536 int retval; trace_events_enable() local 580 int retval; trace_set_buffer_size() local [all...] |
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_check_mtu.c | 36 int retval = XDP_PASS; /* Expected retval on successful test */ in xdp_use_helper() 47 retval = XDP_ABORTED; in xdp_use_helper() 52 retval = XDP_DROP; in xdp_use_helper() 56 return retval; in xdp_use_helper() 66 int retval = XDP_ABORTED; /* Fail */ in xdp_exceed_mtu() 76 retval = XDP_PASS; /* Success in exceeding MTU check */ in xdp_exceed_mtu() 78 retval = XDP_DROP; in xdp_exceed_mtu() 82 return retval; in xdp_exceed_mtu() 88 int retval in xdp_minus_delta() 35 int retval = XDP_PASS; /* Expected retval on successful test */ xdp_use_helper() local 65 int retval = XDP_ABORTED; /* Fail */ xdp_exceed_mtu() local 87 int retval = XDP_PASS; /* Expected retval on successful test */ xdp_minus_delta() local 111 int retval = XDP_PASS; /* Expected retval on successful test */ xdp_input_len() local 135 int retval = XDP_ABORTED; /* Fail */ xdp_input_len_exceed() local 159 int retval = BPF_OK; /* Expected retval on successful test */ tc_use_helper() local 179 int retval = BPF_DROP; /* Fail */ tc_exceed_mtu() local 207 int retval = BPF_DROP; /* Fail */ tc_exceed_mtu_da() local 229 int retval = BPF_OK; /* Expected retval on successful test */ tc_minus_delta() local 251 int retval = BPF_OK; /* Expected retval on successful test */ tc_input_len() local 271 int retval = BPF_DROP; /* Fail */ tc_input_len_exceed() local [all...] |
| /linux/net/sctp/ |
| H A D | sm_make_chunk.c | 208 struct sctp_chunk *retval = NULL; in sctp_make_init() local 311 retval = sctp_make_control(asoc, SCTP_CID_INIT, 0, chunksize, gfp); in sctp_make_init() 312 if (!retval) in sctp_make_init() 315 retval->subh.init_hdr = in sctp_make_init() 316 sctp_addto_chunk(retval, sizeof(init), &init); in sctp_make_init() 317 retval->param_hdr.v = in sctp_make_init() 318 sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init() 329 sctp_addto_chunk(retval, sizeof(sat), &sat); in sctp_make_init() 330 sctp_addto_chunk(retval, num_types * sizeof(__u16), &types); in sctp_make_init() 333 sctp_addto_chunk(retval, sizeof(ecap_param), &ecap_param); in sctp_make_init() [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/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 in TEST() 87 int retval; TEST() local 143 int retval; TEST() local 192 int retval; TEST() local 293 int retval; TEST() 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/mfd/ |
| H A D | cros_ec_dev.c | 182 int retval = -ENOMEM; in ec_device_probe() local 191 return retval; in ec_device_probe() 207 retval = cros_ec_read_features(ec); in ec_device_probe() 208 if (retval < 0) in ec_device_probe() 228 retval = dev_set_name(&ec->class_dev, "%s", ec_platform->ec_name); in ec_device_probe() 229 if (retval) { in ec_device_probe() 230 dev_err(dev, "dev_set_name failed => %d\n", retval); in ec_device_probe() 234 retval = device_add(&ec->class_dev); in ec_device_probe() 235 if (retval) in ec_device_probe() 242 retval = mfd_add_hotplug_devices(ec->dev, in ec_device_probe() [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 …]
|
| /linux/drivers/net/usb/ |
| H A D | ipheth.c | 236 int retval = -EINVAL; in ipheth_rcvbulk_callback_ncm() local 243 return retval; in ipheth_rcvbulk_callback_ncm() 271 return retval; in ipheth_rcvbulk_callback_ncm() 276 retval = ipheth_consume_skb(buf, dg_len, dev); in ipheth_rcvbulk_callback_ncm() 277 if (retval != 0) in ipheth_rcvbulk_callback_ncm() 278 return retval; in ipheth_rcvbulk_callback_ncm() 283 return retval; in ipheth_rcvbulk_callback_ncm() 289 int retval, status; in ipheth_rcvbulk_callback() local 328 retval = dev->rcvbulk_callback(urb); in ipheth_rcvbulk_callback() 329 if (retval != 0) { in ipheth_rcvbulk_callback() [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | pci_hotplug_core.c | 44 int retval = 0; \ 46 retval = ops->get_##name(slot, value); \ 47 return retval; \ 57 int retval; in GET_STATUS() local 60 retval = get_power_status(pci_slot->hotplug, &value); in GET_STATUS() 61 if (retval) in GET_STATUS() 62 return retval; in GET_STATUS() 73 int retval = 0; in power_write_file() local 82 retval = slot->ops->disable_slot(slot); in power_write_file() 87 retval = slot->ops->enable_slot(slot); in power_write_file() [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, 107 { .retval = 0, 110 { .retval = 2, 131 { .retval = 0, [all …]
|
| /linux/drivers/usb/core/ |
| H A D | hcd-pci.c | 175 int retval; in usb_hcd_pci_probe() local 192 retval = pci_alloc_irq_vectors(dev, 1, 1, in usb_hcd_pci_probe() 194 if (retval < 0) { in usb_hcd_pci_probe() 198 retval = -ENODEV; in usb_hcd_pci_probe() 206 retval = -ENOMEM; in usb_hcd_pci_probe() 219 retval = -EBUSY; in usb_hcd_pci_probe() 226 retval = -EFAULT; in usb_hcd_pci_probe() 247 retval = -EBUSY; in usb_hcd_pci_probe() 259 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe() 260 if (retval != 0) in usb_hcd_pci_probe() [all …]
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_driver.c | 65 int retval = 0; in reset_one_function() local 72 retval = fh->reset(fn); in reset_one_function() 73 if (retval < 0) in reset_one_function() 75 retval); in reset_one_function() 78 return retval; in reset_one_function() 84 int retval = 0; in configure_one_function() local 91 retval = fh->config(fn); in configure_one_function() 92 if (retval < 0) in configure_one_function() 94 retval); in configure_one_function() 97 return retval; in configure_one_function() [all …]
|
| /linux/sound/core/ |
| H A D | compress_offload.c | 330 int retval; in snd_compr_write() local 357 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write() 359 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write() 361 if (retval > 0) in snd_compr_write() 362 stream->runtime->total_bytes_available += retval; in snd_compr_write() 371 return retval; in snd_compr_write() 381 int retval; in snd_compr_read() local 412 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read() 415 if (retval > 0) in snd_compr_read() 416 stream->runtime->total_bytes_transferred += retval; in snd_compr_read() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A 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 146 retval = lcd_busy_wait(info); in cobalt_lcdfb_read() 147 if (retval < 0) in cobalt_lcdfb_read() 152 retval = lcd_busy_wait(info); in cobalt_lcdfb_read() 153 if (retval < 0) in cobalt_lcdfb_read() 163 if (retval < 0 && signal_pending(current)) in cobalt_lcdfb_read() 179 int len, retval = 0; in cobalt_lcdfb_write() local [all …]
|
| /linux/drivers/media/radio/ |
| H A 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 …]
|
| /linux/drivers/input/misc/ |
| H A D | uinput.c | 46 int retval; member 155 int retval = 0; in uinput_request_send() local 160 retval = -ENODEV; in uinput_request_send() 174 return retval; in uinput_request_send() 180 int retval; in uinput_request_submit() local 189 retval = uinput_request_reserve_slot(udev, request); in uinput_request_submit() 190 if (retval) in uinput_request_submit() 191 return retval; in uinput_request_submit() 193 retval = uinput_request_send(udev, request); in uinput_request_submit() 194 if (retval) in uinput_request_submit() [all …]
|