Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 25 of 428) sorted by relevance

12345678910>>...18

/linux-6.12.1/arch/x86/lib/
Dmsr-smp.c10 struct msr_info *rv = info; in __rdmsr_on_cpu() local
13 if (rv->msrs) in __rdmsr_on_cpu()
14 reg = this_cpu_ptr(rv->msrs); in __rdmsr_on_cpu()
16 reg = &rv->reg; in __rdmsr_on_cpu()
18 rdmsr(rv->msr_no, reg->l, reg->h); in __rdmsr_on_cpu()
23 struct msr_info *rv = info; in __wrmsr_on_cpu() local
26 if (rv->msrs) in __wrmsr_on_cpu()
27 reg = this_cpu_ptr(rv->msrs); in __wrmsr_on_cpu()
29 reg = &rv->reg; in __wrmsr_on_cpu()
31 wrmsr(rv->msr_no, reg->l, reg->h); in __wrmsr_on_cpu()
[all …]
/linux-6.12.1/lib/
Dkstrtox.c56 unsigned int rv; in _parse_integer_limit() local
59 rv = 0; in _parse_integer_limit()
80 rv |= KSTRTOX_OVERFLOW; in _parse_integer_limit()
83 rv++; in _parse_integer_limit()
87 return rv; in _parse_integer_limit()
99 unsigned int rv; in _kstrtoull() local
102 rv = _parse_integer(s, base, &_res); in _kstrtoull()
103 if (rv & KSTRTOX_OVERFLOW) in _kstrtoull()
105 if (rv == 0) in _kstrtoull()
107 s += rv; in _kstrtoull()
[all …]
/linux-6.12.1/drivers/char/ipmi/
Dipmi_si_hotmod.c107 int rv; in parse_hotmod_str() local
111 rv = parse_str(hotmod_ops, &ival, "operation", &curr); in parse_hotmod_str()
112 if (rv) in parse_hotmod_str()
113 return rv; in parse_hotmod_str()
116 rv = parse_str(hotmod_si, &ival, "interface type", &curr); in parse_hotmod_str()
117 if (rv) in parse_hotmod_str()
118 return rv; in parse_hotmod_str()
121 rv = parse_str(hotmod_as, &ival, "address space", &curr); in parse_hotmod_str()
122 if (rv) in parse_hotmod_str()
123 return rv; in parse_hotmod_str()
[all …]
Dipmi_poweroff.c52 int rv = param_set_int(val, kp); in set_param_ifnum() local
53 if (rv) in set_param_ifnum()
54 return rv; in set_param_ifnum()
122 int rv; in ipmi_request_wait_for_response() local
127 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, &comp, in ipmi_request_wait_for_response()
129 if (rv) in ipmi_request_wait_for_response()
130 return rv; in ipmi_request_wait_for_response()
142 int rv; in ipmi_request_in_rc_mode() local
145 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, NULL, in ipmi_request_in_rc_mode()
147 if (rv) { in ipmi_request_in_rc_mode()
[all …]
Dipmi_watchdog.c181 int rv = 0; in set_param_timeout() local
191 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_timeout()
193 return rv; in set_param_timeout()
212 int rv = 0; in set_param_str() local
220 rv = fn(s, NULL); in set_param_str()
221 if (rv) in set_param_str()
226 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_str()
229 return rv; in set_param_str()
235 int rv, len; in get_param_str() local
237 rv = fn(NULL, buffer); in get_param_str()
[all …]
Dipmi_devintf.c90 int rv; in ipmi_open() local
97 rv = ipmi_create_user(if_num, in ipmi_open()
101 if (rv) { in ipmi_open()
119 return rv; in ipmi_open()
125 int rv; in ipmi_release() local
128 rv = ipmi_destroy_user(priv->user); in ipmi_release()
129 if (rv) in ipmi_release()
130 return rv; in ipmi_release()
145 int rv; in handle_send_req() local
165 rv = ipmi_validate_addr(&addr, req->addr_len); in handle_send_req()
[all …]
/linux-6.12.1/drivers/power/supply/
Dmax77650-charger.c91 int i, rv; in max77650_charger_set_vchgin_min() local
95 rv = regmap_update_bits(chg->map, in max77650_charger_set_vchgin_min()
99 if (rv) in max77650_charger_set_vchgin_min()
100 return rv; in max77650_charger_set_vchgin_min()
112 int i, rv; in max77650_charger_set_ichgin_lim() local
116 rv = regmap_update_bits(chg->map, in max77650_charger_set_ichgin_lim()
120 if (rv) in max77650_charger_set_ichgin_lim()
121 return rv; in max77650_charger_set_ichgin_lim()
132 int rv; in max77650_charger_enable() local
134 rv = regmap_update_bits(chg->map, in max77650_charger_enable()
[all …]
/linux-6.12.1/arch/arm/include/debug/
Dbrcmstb.S37 #define checkuart(rp, rv, family_id, family) \ argument
41 cmp rp, rv ; \
47 .macro addruart, rp, rv, tmp
49 ldr \rv, [\rp] @ linked addr is stored there
50 sub \rv, \rv, \rp @ offset between the two
52 sub \tmp, \rp, \rv @ actual brcmstb_uart_config
56 mov \rv, #0 @ yes; record init is done
57 str \rv, [\tmp]
60 mrc p15, 0, \rv, c0, c0, 0 @ get Main ID register
62 and \rv, \rv, \rp
[all …]
Dtegra.S45 #define checkuart(rp, rv, lhu, bit, uart) \ argument
67 .macro addruart, rp, rv, tmp
69 ldr \rv, [\rp] @ linked addr is stored there
70 sub \rv, \rv, \rp @ offset between the two
72 sub \tmp, \rp, \rv @ actual tegra_uart_config
76 mov \rv, #0 @ yes; record init is done
77 str \rv, [\tmp]
83 lsr \rv, \rp, #18 @ 19:18 are console type
84 and \rv, \rv, #3
85 cmp \rv, #2 @ 2 and 3 mean DCC, UART
[all …]
/linux-6.12.1/drivers/hwmon/pmbus/
Dfsp-3y.c76 int rv; in set_page() local
87 rv = i2c_smbus_write_byte_data(client, PMBUS_PAGE, page_real); in set_page()
88 if (rv < 0) in set_page()
89 return rv; in set_page()
110 int rv; in fsp3y_read_byte_data() local
118 rv = set_page(client, page); in fsp3y_read_byte_data()
119 if (rv < 0) in fsp3y_read_byte_data()
120 return rv; in fsp3y_read_byte_data()
129 int rv; in fsp3y_read_word_data() local
155 rv = set_page(client, page); in fsp3y_read_word_data()
[all …]
/linux-6.12.1/arch/x86/mm/
Dpf_in.c122 rv = type; \
133 enum reason_type rv = OTHERS; in get_ins_type() local
144 return rv; in get_ins_type()
238 unsigned char *rv = NULL; in get_reg_w8() local
242 rv = (unsigned char *)&regs->ax; in get_reg_w8()
245 rv = (unsigned char *)&regs->bx; in get_reg_w8()
248 rv = (unsigned char *)&regs->cx; in get_reg_w8()
251 rv = (unsigned char *)&regs->dx; in get_reg_w8()
255 rv = (unsigned char *)&regs->r8; in get_reg_w8()
258 rv = (unsigned char *)&regs->r9; in get_reg_w8()
[all …]
/linux-6.12.1/tools/testing/selftests/proc/
Dproc-empty-vm.c71 long rv = syscall(SYS_pkey_alloc, 0, 0); in protection_key_support() local
72 if (rv > 0) { in protection_key_support()
73 syscall(SYS_pkey_free, (int)rv); in protection_key_support()
75 } else if (rv == -1 && errno == ENOSYS) { in protection_key_support()
77 } else if (rv == -1 && errno == EINVAL) { in protection_key_support()
81 fprintf(stderr, "%s: error: rv %ld, errno %d\n", __func__, rv, errno); in protection_key_support()
225 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_maps() local
228 assert(rv == 0); in test_proc_pid_maps()
231 assert(rv == len); in test_proc_pid_maps()
254 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_numa_maps() local
[all …]
/linux-6.12.1/drivers/infiniband/sw/siw/
Dsiw_verbs.c60 int rv = -EINVAL; in siw_mmap() local
77 rv = remap_vmalloc_range(vma, entry->address, 0); in siw_mmap()
78 if (rv) in siw_mmap()
83 return rv; in siw_mmap()
91 int rv; in siw_alloc_ucontext() local
94 rv = -ENOMEM; in siw_alloc_ucontext()
102 rv = -EINVAL; in siw_alloc_ucontext()
105 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_alloc_ucontext()
106 if (rv) in siw_alloc_ucontext()
116 siw_dbg(base_ctx->device, "failure %d. now %d context(s)\n", rv, in siw_alloc_ucontext()
[all …]
Dsiw_qp_tx.c295 int rv = kernel_sendmsg(s, &msg, &iov, 1, iov.iov_len); in siw_tx_ctrl() local
297 if (rv >= 0) { in siw_tx_ctrl()
298 c_tx->ctrl_sent += rv; in siw_tx_ctrl()
301 rv = 0; in siw_tx_ctrl()
303 rv = -EAGAIN; in siw_tx_ctrl()
305 return rv; in siw_tx_ctrl()
325 int i = 0, rv = 0, sent = 0; in siw_tcp_sendpages() local
341 rv = tcp_sendmsg_locked(sk, &msg, size); in siw_tcp_sendpages()
344 if (rv > 0) { in siw_tcp_sendpages()
345 size -= rv; in siw_tcp_sendpages()
[all …]
Dsiw_qp_rx.c36 int pg_off, bytes, rv; in siw_rx_umem() local
57 rv = skb_copy_bits(srx->skb, srx->skb_offset, dest + pg_off, in siw_rx_umem()
60 if (unlikely(rv)) { in siw_rx_umem()
66 qp_id(rx_qp(srx)), __func__, len, p, rv); in siw_rx_umem()
106 int rv; in siw_rx_kva() local
110 rv = skb_copy_bits(srx->skb, srx->skb_offset, kva, len); in siw_rx_kva()
111 if (unlikely(rv)) { in siw_rx_kva()
113 qp_id(rx_qp(srx)), __func__, len, kva, rv); in siw_rx_kva()
115 return rv; in siw_rx_kva()
411 int rv; in siw_rx_data() local
[all …]
/linux-6.12.1/drivers/usb/class/
Dcdc-wdm.c249 int rv = 0; in wdm_int_callback() local
313 rv = usb_submit_urb(desc->response, GFP_ATOMIC); in wdm_int_callback()
314 dev_dbg(&desc->intf->dev, "submit response URB %d\n", rv); in wdm_int_callback()
317 if (rv < 0) { in wdm_int_callback()
319 if (rv == -EPERM) in wdm_int_callback()
321 if (rv == -ENOMEM) { in wdm_int_callback()
323 rv = schedule_work(&desc->rxwork); in wdm_int_callback()
324 if (rv) in wdm_int_callback()
330 rv = usb_submit_urb(urb, GFP_ATOMIC); in wdm_int_callback()
331 if (rv) in wdm_int_callback()
[all …]
/linux-6.12.1/fs/dlm/
Dplock.c103 int rv; in do_lock_cancel() local
116 rv = op->info.rv; in do_lock_cancel()
119 return rv; in do_lock_cancel()
128 int rv; in dlm_posix_lock() local
136 rv = -ENOMEM; in dlm_posix_lock()
154 rv = -ENOMEM; in dlm_posix_lock()
167 rv = FILE_LOCK_DEFERRED; in dlm_posix_lock()
174 rv = wait_event_interruptible(recv_wq, (op->done != 0)); in dlm_posix_lock()
175 if (rv == -ERESTARTSYS) { in dlm_posix_lock()
186 rv = do_lock_cancel(&op->info); in dlm_posix_lock()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Dsync_regs_test.c77 int rv; in test_read_invalid() local
81 rv = _vcpu_run(vcpu); in test_read_invalid()
82 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_read_invalid()
84 rv); in test_read_invalid()
88 rv = _vcpu_run(vcpu); in test_read_invalid()
89 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_read_invalid()
91 rv); in test_read_invalid()
98 int rv; in test_set_invalid() local
102 rv = _vcpu_run(vcpu); in test_set_invalid()
103 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_set_invalid()
[all …]
/linux-6.12.1/drivers/char/tpm/
Dxen-tpmfront.c255 int rv; in setup_ring() local
257 rv = xenbus_setup_ring(dev, GFP_KERNEL, (void **)&priv->shr, 1, in setup_ring()
259 if (rv < 0) in setup_ring()
260 return rv; in setup_ring()
262 rv = xenbus_alloc_evtchn(dev, &priv->evtchn); in setup_ring()
263 if (rv) in setup_ring()
264 return rv; in setup_ring()
266 rv = bind_evtchn_to_irqhandler(priv->evtchn, tpmif_interrupt, 0, in setup_ring()
268 if (rv <= 0) { in setup_ring()
269 xenbus_dev_fatal(dev, rv, "allocating TPM irq"); in setup_ring()
[all …]
/linux-6.12.1/drivers/tty/
Dvcc.c311 int rv = 0; in vcc_ldc_read() local
315 rv = ldc_rx_reset(vio->lp); in vcc_ldc_read()
316 vccdbg("VCC: reset rx q: rv=%d\n", rv); in vcc_ldc_read()
329 rv = ldc_read(vio->lp, &pkt, sizeof(pkt)); in vcc_ldc_read()
330 if (rv <= 0) in vcc_ldc_read()
333 vccdbg("VCC: ldc_read()=%d\n", rv); in vcc_ldc_read()
346 rv = -ECONNRESET; in vcc_ldc_read()
350 WARN_ON(rv != LDC_PACKET_SIZE); in vcc_ldc_read()
354 return rv; in vcc_ldc_read()
362 int rv; in vcc_rx_timer() local
[all …]
/linux-6.12.1/drivers/hid/intel-ish-hid/
Dishtp-fw-loader.c257 int rv; in get_firmware_variant() local
261 rv = device_property_read_string(devc, "firmware-name", &val); in get_firmware_variant()
262 if (rv < 0) { in get_firmware_variant()
265 return rv; in get_firmware_variant()
287 int rv; in loader_cl_send() local
304 rv = ishtp_cl_send(loader_ishtp_cl, out_msg, out_size); in loader_cl_send()
305 if (rv < 0) { in loader_cl_send()
307 "ishtp_cl_send error %d\n", rv); in loader_cl_send()
308 return rv; in loader_cl_send()
474 int rv; in ish_query_loader_prop() local
[all …]
/linux-6.12.1/drivers/media/pci/mgb4/
Dmgb4_core.c185 int rv, id; in init_spi() local
213 rv = -EINVAL; in init_spi()
249 rv = -EINVAL; in init_spi()
258 return rv; in init_spi()
286 int rv, id; in init_i2c() local
314 rv = -ENOMEM; in init_i2c()
324 rv = PTR_ERR(mgbdev->i2c_pdev); in init_i2c()
331 rv = -EINVAL; in init_i2c()
346 return rv; in init_i2c()
362 int rv; in get_serial_number() local
[all …]
/linux-6.12.1/drivers/comedi/drivers/
Dni_routes.c55 const u8 *rv = NULL; in ni_find_route_values() local
60 rv = &ni_all_route_values[i]->register_values[0][0]; in ni_find_route_values()
64 return rv; in ni_find_route_values()
98 const u8 *rv; in ni_find_device_routes() local
101 rv = ni_find_route_values(device_family); in ni_find_device_routes()
108 tables->route_values = rv; in ni_find_device_routes()
111 if (!rv || !dr) in ni_find_device_routes()
161 const u8 *rv = tables->route_values; in ni_count_valid_routes() local
163 if (RVi(rv, B(src), B(dest))) in ni_count_valid_routes()
167 (RVi(rv, B(src), B(NI_RGOUT0)) || in ni_count_valid_routes()
[all …]
/linux-6.12.1/samples/bpf/
Dtcp_clamp_kern.c31 int rv = 0; in bpf_clamp() local
58 rv = to_init; in bpf_clamp()
62 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, in bpf_clamp()
64 rv += bpf_setsockopt(skops, SOL_SOCKET, in bpf_clamp()
69 rv = bpf_setsockopt(skops, SOL_TCP, in bpf_clamp()
75 rv = bpf_setsockopt(skops, SOL_TCP, in bpf_clamp()
78 rv += bpf_setsockopt(skops, SOL_SOCKET, in bpf_clamp()
81 rv += bpf_setsockopt(skops, SOL_SOCKET, in bpf_clamp()
86 rv = -1; in bpf_clamp()
89 rv = -1; in bpf_clamp()
[all …]
/linux-6.12.1/drivers/firmware/efi/test/
Defi_test.c149 int rv = 0; in efi_runtime_get_variable() local
167 rv = copy_ucs2_from_user(&name, getvariable.variable_name); in efi_runtime_get_variable()
168 if (rv) in efi_runtime_get_variable()
169 return rv; in efi_runtime_get_variable()
188 rv = -EFAULT; in efi_runtime_get_variable()
195 rv = -EFAULT; in efi_runtime_get_variable()
199 rv = -EINVAL; in efi_runtime_get_variable()
204 rv = -EINVAL; in efi_runtime_get_variable()
210 rv = -EFAULT; in efi_runtime_get_variable()
216 rv = -EFAULT; in efi_runtime_get_variable()
[all …]

12345678910>>...18