Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 1203) sorted by relevance

12345678910>>...49

/linux/drivers/gpib/common/
H A Dgpib_os.c191 int retval; in push_status_byte() local
197 retval = pop_status_byte(board, device, &lost_byte); in push_status_byte()
198 if (retval < 0) in push_status_byte()
199 return retval; in push_status_byte()
280 int retval; in autopoll_all_devices() local
291 retval = serial_poll_all(board, serial_timeout); in autopoll_all_devices()
292 if (retval < 0) { in autopoll_all_devices()
295 return retval; in autopoll_all_devices()
307 return retval; in autopoll_all_devices()
416 int retval, cleanup_retval; in serial_poll_single() local
[all …]
/linux/drivers/hid/
H A Dhid-roccat-arvo.c34 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 Dhid-roccat-kone.c110 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 Dhid-roccat-kovaplus.c46 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 Dhid-roccat-isku.c40 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 …]
/linux/tools/tracing/rtla/src/
H A Dosnoise.c56 int retval; in osnoise_set_cpus() local
69 retval = tracefs_instance_file_write(NULL, "osnoise/cpus", buffer); in osnoise_set_cpus()
70 if (retval < 0) { in osnoise_set_cpus()
88 int retval; in osnoise_restore_cpus() local
102 retval = tracefs_instance_file_write(NULL, "osnoise/cpus", context->orig_cpus); in osnoise_restore_cpus()
103 if (retval < 0) in osnoise_restore_cpus()
132 long long retval; in osnoise_read_ll_config() local
140 retval = get_llong_from_str(buffer); in osnoise_read_ll_config()
142 debug_msg("reading %s returned %lld\n", rel_path, retval); in osnoise_read_ll_config()
146 return retval; in osnoise_read_ll_config()
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...]
/linux/drivers/media/usb/gspca/
H A Djl2005bcd.c76 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/drivers/gpib/ni_usb/
H A Dni_usb_gpib.c110 int retval; in ni_usb_nonblocking_send_bulk_msg() local
139 retval = usb_submit_urb(ni_priv->bulk_urb, GFP_KERNEL); in ni_usb_nonblocking_send_bulk_msg()
140 if (retval) { in ni_usb_nonblocking_send_bulk_msg()
145 retval); in ni_usb_nonblocking_send_bulk_msg()
147 return retval; in ni_usb_nonblocking_send_bulk_msg()
154 retval = -ETIMEDOUT; in ni_usb_nonblocking_send_bulk_msg()
156 retval = ni_priv->bulk_urb->status; in ni_usb_nonblocking_send_bulk_msg()
165 return retval; in ni_usb_nonblocking_send_bulk_msg()
171 int retval; in ni_usb_send_bulk_msg() local
174 retval = ni_usb_nonblocking_send_bulk_msg(ni_priv, data, data_length, actual_data_length, in ni_usb_send_bulk_msg()
[all …]
/linux/drivers/gpib/agilent_82357a/
H A Dagilent_82357a.c55 int retval; in agilent_82357a_send_bulk_msg() local
60 retval = mutex_lock_interruptible(&a_priv->bulk_alloc_lock); in agilent_82357a_send_bulk_msg()
61 if (retval) in agilent_82357a_send_bulk_msg()
62 return retval; in agilent_82357a_send_bulk_msg()
86 retval = usb_submit_urb(a_priv->bulk_urb, GFP_KERNEL); in agilent_82357a_send_bulk_msg()
87 if (retval) { in agilent_82357a_send_bulk_msg()
88 dev_err(&usb_dev->dev, "failed to submit bulk out urb, retval=%i\n", retval); in agilent_82357a_send_bulk_msg()
94 retval = -ERESTARTSYS; in agilent_82357a_send_bulk_msg()
98 retval = -ETIMEDOUT; in agilent_82357a_send_bulk_msg()
100 retval = a_priv->bulk_urb->status; in agilent_82357a_send_bulk_msg()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_check_mtu.c36 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/drivers/usb/misc/
H A Dusbtest.c466 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 …]
H A Dcytherm.c82 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 Dmincore_selftest.c32 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/rtc/
H A Dsysfs.c35 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 Drtc-ab8500.c64 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/media/radio/si470x/
H A Dradio-si470x-common.c195 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 Dradio-si470x-usb.c201 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/pci/hotplug/
H A Dpci_hotplug_core.c44 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 Djmp32.c20 { .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/net/usb/
H A Dipheth.c236 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/usb/core/
H A Dhcd-pci.c175 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/mfd/
H A Dcros_ec_dev.c187 int retval = -ENOMEM; in ec_device_probe() local
196 return retval; in ec_device_probe()
230 retval = dev_set_name(&ec->class_dev, "%s", ec_platform->ec_name); in ec_device_probe()
231 if (retval) { in ec_device_probe()
232 dev_err(dev, "dev_set_name failed => %d\n", retval); in ec_device_probe()
236 retval = device_add(&ec->class_dev); in ec_device_probe()
237 if (retval) in ec_device_probe()
242 retval = mfd_add_hotplug_devices(ec->dev, in ec_device_probe()
245 if (retval) in ec_device_probe()
247 cros_ec_sensorhub_cells->name, retval); in ec_device_probe()
[all …]
/linux/drivers/gpib/lpvo_usb_gpib/
H A Dlpvo_usb_gpib.c237 int retval; in send_command() local
244 retval = write_loop(GPIB_DEV, msg, leng); in send_command()
245 if (retval < 0) in send_command()
246 return retval; in send_command()
275 int retval; in set_control_line() local
280 retval = send_command(board, USB_GPIB_READ_LINES, 0); in set_control_line()
282 DIA_LOG(1, "old line values: %x\n", retval); in set_control_line()
284 if (retval == -EIO) in set_control_line()
285 return retval; in set_control_line()
287 msg[leng - 2] = value ? (retval & ~line) : retval | line; in set_control_line()
[all …]
/linux/sound/core/
H A Dcompress_offload.c325 int retval; in snd_compr_write() local
352 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
354 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write()
356 if (retval > 0) in snd_compr_write()
357 stream->runtime->total_bytes_available += retval; in snd_compr_write()
366 return retval; in snd_compr_write()
376 int retval; in snd_compr_read() local
407 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read()
410 if (retval > 0) in snd_compr_read()
411 stream->runtime->total_bytes_transferred += retval; in snd_compr_read()
[all …]
/linux/drivers/input/misc/
H A Duinput.c44 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 …]

12345678910>>...49