/kernel/linux/linux-5.10/arch/x86/lib/ |
D | msr-smp.c | 10 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 …]
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | max77650-charger.c | 91 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 …]
|
/kernel/linux/linux-5.10/lib/ |
D | kstrtox.c | 53 unsigned int rv; in _parse_integer_limit() local 56 rv = 0; in _parse_integer_limit() 77 rv |= KSTRTOX_OVERFLOW; in _parse_integer_limit() 80 rv++; in _parse_integer_limit() 84 return rv; in _parse_integer_limit() 95 unsigned int rv; in _kstrtoull() local 98 rv = _parse_integer(s, base, &_res); in _kstrtoull() 99 if (rv & KSTRTOX_OVERFLOW) in _kstrtoull() 101 if (rv == 0) in _kstrtoull() 103 s += rv; in _kstrtoull() [all …]
|
/kernel/linux/linux-5.10/drivers/char/ipmi/ |
D | ipmi_si_hotmod.c | 108 int rv; in parse_hotmod_str() local 112 rv = parse_str(hotmod_ops, &ival, "operation", &curr); in parse_hotmod_str() 113 if (rv) in parse_hotmod_str() 114 return rv; in parse_hotmod_str() 117 rv = parse_str(hotmod_si, &ival, "interface type", &curr); in parse_hotmod_str() 118 if (rv) in parse_hotmod_str() 119 return rv; in parse_hotmod_str() 122 rv = parse_str(hotmod_as, &ival, "address space", &curr); in parse_hotmod_str() 123 if (rv) in parse_hotmod_str() 124 return rv; in parse_hotmod_str() [all …]
|
D | ipmi_watchdog.c | 180 int rv = 0; in set_param_timeout() local 190 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_timeout() 192 return rv; in set_param_timeout() 211 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 …]
|
D | ipmi_poweroff.c | 52 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() 126 int rv; in ipmi_request_wait_for_response() local 131 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, &comp, in ipmi_request_wait_for_response() 133 if (rv) in ipmi_request_wait_for_response() 134 return rv; in ipmi_request_wait_for_response() 146 int rv; in ipmi_request_in_rc_mode() local 149 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, NULL, in ipmi_request_in_rc_mode() 151 if (rv) { in ipmi_request_in_rc_mode() [all …]
|
D | ipmi_devintf.c | 90 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 …]
|
/kernel/linux/linux-5.10/arch/arm/include/debug/ |
D | brcmstb.S | 45 #define checkuart(rp, rv, family_id, family) \ argument 49 cmp rp, rv ; \ 55 .macro addruart, rp, rv, tmp 57 ldr \rv, [\rp] @ linked addr is stored there 58 sub \rv, \rv, \rp @ offset between the two 60 sub \tmp, \rp, \rv @ actual brcmstb_uart_config 64 mov \rv, #0 @ yes; record init is done 65 str \rv, [\tmp] 68 mrc p15, 0, \rv, c0, c0, 0 @ get Main ID register 70 and \rv, \rv, \rp [all …]
|
D | tegra.S | 45 #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 …]
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
D | pf_in.c | 122 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 *)®s->ax; in get_reg_w8() 245 rv = (unsigned char *)®s->bx; in get_reg_w8() 248 rv = (unsigned char *)®s->cx; in get_reg_w8() 251 rv = (unsigned char *)®s->dx; in get_reg_w8() 255 rv = (unsigned char *)®s->r8; in get_reg_w8() 258 rv = (unsigned char *)®s->r9; in get_reg_w8() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/ |
D | siw_verbs.c | 50 int rv = -EINVAL; in siw_mmap() local 67 rv = remap_vmalloc_range(vma, entry->address, 0); in siw_mmap() 68 if (rv) { in siw_mmap() 76 return rv; in siw_mmap() 84 int rv; in siw_alloc_ucontext() local 87 rv = -ENOMEM; in siw_alloc_ucontext() 95 rv = -EINVAL; in siw_alloc_ucontext() 98 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_alloc_ucontext() 99 if (rv) in siw_alloc_ucontext() 109 siw_dbg(base_ctx->device, "failure %d. now %d context(s)\n", rv, in siw_alloc_ucontext() [all …]
|
D | siw_qp_tx.c | 301 int rv = kernel_sendmsg(s, &msg, &iov, 1, in siw_tx_ctrl() local 304 if (rv >= 0) { in siw_tx_ctrl() 305 c_tx->ctrl_sent += rv; in siw_tx_ctrl() 308 rv = 0; in siw_tx_ctrl() 310 rv = -EAGAIN; in siw_tx_ctrl() 312 return rv; in siw_tx_ctrl() 328 int i = 0, rv = 0, sent = 0, in siw_tcp_sendpages() local 340 rv = do_tcp_sendpages(sk, page[i], offset, bytes, flags); in siw_tcp_sendpages() 343 if (rv > 0) { in siw_tcp_sendpages() 344 size -= rv; in siw_tcp_sendpages() [all …]
|
D | siw_qp_rx.c | 36 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 …]
|
/kernel/linux/linux-5.10/drivers/usb/class/ |
D | cdc-wdm.c | 235 int rv = 0; in wdm_int_callback() local 299 rv = usb_submit_urb(desc->response, GFP_ATOMIC); in wdm_int_callback() 300 dev_dbg(&desc->intf->dev, "submit response URB %d\n", rv); in wdm_int_callback() 303 if (rv < 0) { in wdm_int_callback() 305 if (rv == -EPERM) in wdm_int_callback() 307 if (rv == -ENOMEM) { in wdm_int_callback() 309 rv = schedule_work(&desc->rxwork); in wdm_int_callback() 310 if (rv) in wdm_int_callback() 316 rv = usb_submit_urb(urb, GFP_ATOMIC); in wdm_int_callback() 317 if (rv) in wdm_int_callback() [all …]
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
D | brl_emu.c | 61 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 …]
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
D | xen-tpmfront.c | 255 int rv; in setup_ring() local 264 rv = xenbus_grant_ring(dev, priv->shr, 1, &gref); in setup_ring() 265 if (rv < 0) in setup_ring() 266 return rv; in setup_ring() 270 rv = xenbus_alloc_evtchn(dev, &priv->evtchn); in setup_ring() 271 if (rv) in setup_ring() 272 return rv; in setup_ring() 274 rv = bind_evtchn_to_irqhandler(priv->evtchn, tpmif_interrupt, 0, in setup_ring() 276 if (rv <= 0) { in setup_ring() 277 xenbus_dev_fatal(dev, rv, "allocating TPM irq"); in setup_ring() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/s390x/ |
D | sync_regs_test.c | 82 int rv, cap; in main() local 100 rv = _vcpu_run(vm, VCPU_ID); in main() 101 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 103 rv); in main() 107 rv = _vcpu_run(vm, VCPU_ID); in main() 108 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 110 rv); in main() 115 rv = _vcpu_run(vm, VCPU_ID); in main() 116 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 118 rv); in main() [all …]
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | tcp_clamp_kern.c | 31 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 …]
|
D | tcp_bufs_kern.c | 30 int rv = 0; in bpf_bufs() local 45 bpf_printk("Returning %d\n", rv); in bpf_bufs() 53 rv = rwnd_init; in bpf_bufs() 57 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, in bpf_bufs() 59 rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, in bpf_bufs() 67 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, in bpf_bufs() 69 rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, in bpf_bufs() 73 rv = -1; in bpf_bufs() 76 bpf_printk("Returning %d\n", rv); in bpf_bufs() 78 skops->reply = rv; in bpf_bufs()
|
/kernel/linux/linux-5.10/drivers/hid/intel-ish-hid/ |
D | ishtp-fw-loader.c | 253 int rv; in get_firmware_variant() local 257 rv = device_property_read_string(devc, "firmware-name", &val); in get_firmware_variant() 258 if (rv < 0) { in get_firmware_variant() 261 return rv; in get_firmware_variant() 282 int rv; in loader_cl_send() local 299 rv = ishtp_cl_send(loader_ishtp_cl, out_msg, out_size); in loader_cl_send() 300 if (rv < 0) { in loader_cl_send() 302 "ishtp_cl_send error %d\n", rv); in loader_cl_send() 303 return rv; in loader_cl_send() 469 int rv; in ish_query_loader_prop() local [all …]
|
/kernel/linux/linux-5.10/fs/dlm/ |
D | plock.c | 107 int rv; in dlm_posix_lock() local 115 rv = -ENOMEM; in dlm_posix_lock() 144 rv = wait_event_interruptible(recv_wq, (op->done != 0)); in dlm_posix_lock() 145 if (rv == -ERESTARTSYS) { in dlm_posix_lock() 156 rv = FILE_LOCK_DEFERRED; in dlm_posix_lock() 168 rv = op->info.rv; in dlm_posix_lock() 170 if (!rv) { in dlm_posix_lock() 179 return rv; in dlm_posix_lock() 191 int rv = 0; in dlm_plock_callback() local 207 if (op->info.rv) { in dlm_plock_callback() [all …]
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/sn/ |
D | sn_sal.h | 52 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 …]
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | ni_routes.c | 57 const u8 *rv = NULL; in ni_find_route_values() local 63 rv = &ni_all_route_values[i]->register_values[0][0]; in ni_find_route_values() 67 return rv; in ni_find_route_values() 102 const u8 *rv; in ni_find_device_routes() local 105 rv = ni_find_route_values(device_family); in ni_find_device_routes() 112 tables->route_values = rv; in ni_find_device_routes() 115 if (!rv || !dr) in ni_find_device_routes() 165 const u8 *rv = tables->route_values; in ni_count_valid_routes() local 167 if (RVi(rv, B(src), B(dest))) in ni_count_valid_routes() 171 (RVi(rv, B(src), B(NI_RGOUT0)) || in ni_count_valid_routes() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
D | read.c | 42 ssize_t rv; in f_reg() local 48 rv = read(fd, buf, sizeof(buf)); in f_reg() 49 assert((0 <= rv && rv <= sizeof(buf)) || rv == -1); in f_reg() 56 ssize_t rv; in f_reg_write() local 61 rv = write(fd, buf, len); in f_reg_write() 62 assert((0 <= rv && rv <= len) || rv == -1); in f_reg_write() 69 ssize_t rv; in f_lnk() local 71 rv = readlinkat(dirfd(d), filename, buf, sizeof(buf)); in f_lnk() 72 assert((0 <= rv && rv <= sizeof(buf)) || rv == -1); in f_lnk()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | vcc.c | 319 int rv = 0; in vcc_ldc_read() local 323 rv = ldc_rx_reset(vio->lp); in vcc_ldc_read() 324 vccdbg("VCC: reset rx q: rv=%d\n", rv); in vcc_ldc_read() 337 rv = ldc_read(vio->lp, &pkt, sizeof(pkt)); in vcc_ldc_read() 338 if (rv <= 0) in vcc_ldc_read() 341 vccdbg("VCC: ldc_read()=%d\n", rv); in vcc_ldc_read() 354 rv = -ECONNRESET; in vcc_ldc_read() 358 WARN_ON(rv != LDC_PACKET_SIZE); in vcc_ldc_read() 362 return rv; in vcc_ldc_read() 370 int rv; in vcc_rx_timer() local [all …]
|