Home
last modified time | relevance | path

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

12345678910>>...17

/linux-6.6.21/arch/x86/lib/
Dmsr-smp.c10 struct msr_info *rv = info; in __rdmsr_on_cpu() local
14 if (rv->msrs) in __rdmsr_on_cpu()
15 reg = per_cpu_ptr(rv->msrs, this_cpu); in __rdmsr_on_cpu()
17 reg = &rv->reg; in __rdmsr_on_cpu()
19 rdmsr(rv->msr_no, reg->l, reg->h); in __rdmsr_on_cpu()
24 struct msr_info *rv = info; in __wrmsr_on_cpu() local
28 if (rv->msrs) in __wrmsr_on_cpu()
29 reg = per_cpu_ptr(rv->msrs, this_cpu); in __wrmsr_on_cpu()
31 reg = &rv->reg; in __wrmsr_on_cpu()
33 wrmsr(rv->msr_no, reg->l, reg->h); in __wrmsr_on_cpu()
[all …]
/linux-6.6.21/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.6.21/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.6.21/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.6.21/arch/arm/include/debug/
Dbrcmstb.S36 #define checkuart(rp, rv, family_id, family) \ argument
40 cmp rp, rv ; \
46 .macro addruart, rp, rv, tmp
48 ldr \rv, [\rp] @ linked addr is stored there
49 sub \rv, \rv, \rp @ offset between the two
51 sub \tmp, \rp, \rv @ actual brcmstb_uart_config
55 mov \rv, #0 @ yes; record init is done
56 str \rv, [\tmp]
59 mrc p15, 0, \rv, c0, c0, 0 @ get Main ID register
61 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.6.21/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.6.21/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.6.21/drivers/infiniband/sw/siw/
Dsiw_verbs.c51 int rv = -EINVAL; in siw_mmap() local
68 rv = remap_vmalloc_range(vma, entry->address, 0); in siw_mmap()
69 if (rv) { in siw_mmap()
77 return rv; in siw_mmap()
85 int rv; in siw_alloc_ucontext() local
88 rv = -ENOMEM; in siw_alloc_ucontext()
96 rv = -EINVAL; in siw_alloc_ucontext()
99 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_alloc_ucontext()
100 if (rv) in siw_alloc_ucontext()
110 siw_dbg(base_ctx->device, "failure %d. now %d context(s)\n", rv, in siw_alloc_ucontext()
[all …]
Dsiw_qp_tx.c300 int rv = kernel_sendmsg(s, &msg, &iov, 1, in siw_tx_ctrl() local
303 if (rv >= 0) { in siw_tx_ctrl()
304 c_tx->ctrl_sent += rv; in siw_tx_ctrl()
307 rv = 0; in siw_tx_ctrl()
309 rv = -EAGAIN; in siw_tx_ctrl()
311 return rv; in siw_tx_ctrl()
331 int i = 0, rv = 0, sent = 0; in siw_tcp_sendpages() local
345 rv = tcp_sendmsg_locked(sk, &msg, size); in siw_tcp_sendpages()
348 if (rv > 0) { in siw_tcp_sendpages()
349 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()
428 int rv = 0; in siw_proc_send() local
[all …]
/linux-6.6.21/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.6.21/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()
153 rv = -ENOMEM; in dlm_posix_lock()
169 rv = FILE_LOCK_DEFERRED; in dlm_posix_lock()
178 rv = wait_event_interruptible(recv_wq, (op->done != 0)); in dlm_posix_lock()
179 if (rv == -ERESTARTSYS) { in dlm_posix_lock()
190 rv = do_lock_cancel(&op->info); in dlm_posix_lock()
[all …]
/linux-6.6.21/arch/ia64/kernel/
Dbrl_emu.c61 struct illegal_op_return rv; in ia64_emulate_brl() local
64 rv.fkt = (unsigned long) -1; in ia64_emulate_brl()
71 return rv; in ia64_emulate_brl()
76 if (ia64_psr(regs)->ri != 1) return rv; in ia64_emulate_brl()
79 if ((bundle[0] & 0x1e) != 0x4) return rv; in ia64_emulate_brl()
97 if (btype != 0) return rv; in ia64_emulate_brl()
98 rv.fkt = 0; in ia64_emulate_brl()
106 return rv; in ia64_emulate_brl()
114 rv.fkt = 0; in ia64_emulate_brl()
122 return rv; in ia64_emulate_brl()
[all …]
/linux-6.6.21/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.6.21/tools/testing/selftests/kvm/s390x/
Dsync_regs_test.c79 int rv; in test_read_invalid() local
83 rv = _vcpu_run(vcpu); in test_read_invalid()
84 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_read_invalid()
86 rv); in test_read_invalid()
90 rv = _vcpu_run(vcpu); in test_read_invalid()
91 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_read_invalid()
93 rv); in test_read_invalid()
100 int rv; in test_set_invalid() local
104 rv = _vcpu_run(vcpu); in test_set_invalid()
105 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_set_invalid()
[all …]
/linux-6.6.21/tools/testing/selftests/proc/
Dproc-empty-vm.c190 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_maps() local
193 assert(rv == 0); in test_proc_pid_maps()
196 assert(rv == len); in test_proc_pid_maps()
219 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_numa_maps() local
221 assert(rv == 0); in test_proc_pid_numa_maps()
242 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_smaps() local
245 assert(rv == 0); in test_proc_pid_smaps()
249 assert(rv > len); in test_proc_pid_smaps()
298 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_smaps_rollup() local
300 assert(rv == sizeof(g_smaps_rollup) - 1); in test_proc_pid_smaps_rollup()
[all …]
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/arch/ia64/include/asm/sn/
Dsn_sal.h52 struct ia64_sal_retval rv; in sn_partition_reserved_page_pa() local
53 ia64_sal_oemcall_reentrant(&rv, SN_SAL_GET_PARTITION_ADDR, *cookie, in sn_partition_reserved_page_pa()
55 *cookie = rv.v0; in sn_partition_reserved_page_pa()
56 *addr = rv.v1; in sn_partition_reserved_page_pa()
57 *len = rv.v2; in sn_partition_reserved_page_pa()
58 return rv.status; in sn_partition_reserved_page_pa()
95 struct ia64_sal_retval rv; in sn_mq_watchlist_alloc() local
107 ia64_sal_oemcall_nolock(&rv, SN_SAL_WATCHLIST_ALLOC, addr, in sn_mq_watchlist_alloc()
110 if (rv.status < 0) in sn_mq_watchlist_alloc()
111 return rv.status; in sn_mq_watchlist_alloc()
[all …]

12345678910>>...17