| /linux/drivers/char/ipmi/ |
| H A D | ipmi_si_hotmod.c | 107 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 …]
|
| H A D | ipmi_watchdog.c | 181 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 …]
|
| H A 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() 142 int rv; in handle_send_req() local 162 rv = ipmi_validate_addr(&addr, req->addr_len); in handle_send_req() 163 if (rv) in handle_send_req() 168 rv = -EMSGSIZE; in handle_send_req() 175 rv = -EFAULT; in handle_send_req() 182 rv = ipmi_request_settime(user, in handle_send_req() [all …]
|
| H A D | ipmi_msghandler.c | 756 int rv = 0; in ipmi_smi_watcher_register() local 762 rv = ipmi_init_msghandler(); in ipmi_smi_watcher_register() 763 if (rv) in ipmi_smi_watcher_register() 764 return rv; in ipmi_smi_watcher_register() 782 rv = -ENOMEM; in ipmi_smi_watcher_register() 788 rv = -ENOMEM; in ipmi_smi_watcher_register() 814 return rv; in ipmi_smi_watcher_register() 964 int rv = 0; in deliver_response() local 972 rv = -EINVAL; in deliver_response() 993 return rv; in deliver_response() [all …]
|
| /linux/arch/arm/include/debug/ |
| H A D | brcmstb.S | 37 #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 …]
|
| H A 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 …]
|
| /linux/arch/x86/mm/ |
| H A 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 …]
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-empty-vm.c | 71 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 …]
|
| H A D | read.c | 42 ssize_t rv; in f_reg() local 50 rv = read(fd, buf, sizeof(buf)); in f_reg() 51 assert((0 <= rv && rv <= sizeof(buf)) || rv == -1); in f_reg() 58 ssize_t rv; in f_reg_write() local 63 rv = write(fd, buf, len); in f_reg_write() 64 assert((0 <= rv && rv <= len) || rv == -1); in f_reg_write() 71 ssize_t rv; in f_lnk() local 73 rv = readlinkat(dirfd(d), filename, buf, sizeof(buf)); in f_lnk() 74 assert((0 <= rv && rv <= sizeof(buf)) || rv == -1); in f_lnk()
|
| /linux/drivers/usb/class/ |
| H A D | cdc-wdm.c | 254 int rv = 0; in wdm_int_callback() local 318 rv = usb_submit_urb(desc->response, GFP_ATOMIC); in wdm_int_callback() 319 dev_dbg(&desc->intf->dev, "submit response URB %d\n", rv); in wdm_int_callback() 322 if (rv < 0) { in wdm_int_callback() 324 if (rv == -EPERM) in wdm_int_callback() 326 if (rv == -ENOMEM) { in wdm_int_callback() 328 rv = schedule_work(&desc->rxwork); in wdm_int_callback() 329 if (rv) in wdm_int_callback() 335 rv = usb_submit_urb(urb, GFP_ATOMIC); in wdm_int_callback() 336 if (rv) in wdm_int_callback() [all …]
|
| H A D | usbtmc.c | 273 int rv; in usbtmc_ioctl_abort_bulk_in_tag() local 282 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in_tag() 289 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in_tag() 290 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in_tag() 299 rv = 0; in usbtmc_ioctl_abort_bulk_in_tag() 310 rv = -ENOMSG; in usbtmc_ioctl_abort_bulk_in_tag() 317 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in_tag() 328 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in_tag() 339 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in_tag() 340 dev_err(dev, "usb_bulk_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in_tag() [all …]
|
| /linux/fs/dlm/ |
| H A D | plock.c | 103 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/drivers/infiniband/sw/siw/ |
| H A D | siw_qp_tx.c | 301 int rv = siw_sendmsg(s, flags, &iov, 1, iov.iov_len); 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 347 rv = tcp_sendmsg_locked(sk, &msg, bytes); in siw_tcp_sendpages() 350 if (rv > 0) { in siw_tcp_sendpages() 351 size -= rv; in siw_tcp_sendpages() [all …]
|
| H A 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() 411 int rv; in siw_rx_data() local [all …]
|
| H A D | siw_cm.c | 520 int rv; in siw_send_mpareqrep() local 547 rv = kernel_sendmsg(s, &msg, iov, iovec_num + 1, mpa_len); in siw_send_mpareqrep() 549 return rv < 0 ? rv : 0; in siw_send_mpareqrep() 654 int version, rv; in siw_proc_mpareq() local 657 rv = siw_recv_mpa_rr(cep); in siw_proc_mpareq() 658 if (rv) in siw_proc_mpareq() 659 return rv; in siw_proc_mpareq() 748 rv = siw_cm_upcall(cep, IW_CM_EVENT_CONNECT_REQUEST, 0); in siw_proc_mpareq() 749 if (rv) in siw_proc_mpareq() 752 return rv; in siw_proc_mpareq() [all …]
|
| /linux/drivers/char/tpm/ |
| H A D | xen-tpmfront.c | 256 int rv; in setup_ring() local 258 rv = xenbus_setup_ring(dev, GFP_KERNEL, (void **)&priv->shr, 1, in setup_ring() 260 if (rv < 0) in setup_ring() 261 return rv; in setup_ring() 263 rv = xenbus_alloc_evtchn(dev, &priv->evtchn); in setup_ring() 264 if (rv) in setup_ring() 265 return rv; in setup_ring() 267 rv = bind_evtchn_to_irqhandler(priv->evtchn, tpmif_interrupt, 0, in setup_ring() 269 if (rv <= 0) { in setup_ring() 270 xenbus_dev_fatal(dev, rv, "allocating TPM irq"); in setup_ring() [all …]
|
| /linux/drivers/tty/ |
| H A D | vcc.c | 311 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/drivers/hid/intel-ish-hid/ |
| H A D | ishtp-fw-loader.c | 257 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 …]
|
| H A D | ishtp-hid-client.c | 374 int rv; in hid_ishtp_set_feature() local 379 rv = ishtp_hid_link_ready_wait(client_data); in hid_ishtp_set_feature() 380 if (rv) { in hid_ishtp_set_feature() 399 rv = ishtp_cl_send(client_data->hid_ishtp_cl, buf, len); in hid_ishtp_set_feature() 400 if (rv) in hid_ishtp_set_feature() 420 int rv; in hid_ishtp_get_report() local 424 rv = ishtp_hid_link_ready_wait(client_data); in hid_ishtp_get_report() 425 if (rv) { in hid_ishtp_get_report() 445 rv = ishtp_cl_send(client_data->hid_ishtp_cl, (uint8_t *)&msg, in hid_ishtp_get_report() 447 if (rv) in hid_ishtp_get_report() [all …]
|
| /linux/drivers/comedi/drivers/ |
| H A D | ni_routes.c | 55 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/drivers/firmware/efi/test/ |
| H A D | efi_test.c | 149 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 …]
|
| /linux/samples/bpf/ |
| H A 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 …]
|
| H A 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()
|
| /linux/drivers/hwmon/ |
| H A D | lm80.c | 161 int rv; in lm80_update_device() local 173 rv = lm80_read_value(client, LM80_REG_IN(i)); in lm80_update_device() 174 if (rv < 0) in lm80_update_device() 176 data->in[i_input][i] = rv; in lm80_update_device() 178 rv = lm80_read_value(client, LM80_REG_IN_MIN(i)); in lm80_update_device() 179 if (rv < 0) in lm80_update_device() 181 data->in[i_min][i] = rv; in lm80_update_device() 183 rv = lm80_read_value(client, LM80_REG_IN_MAX(i)); in lm80_update_device() 184 if (rv < 0) in lm80_update_device() 186 data->in[i_max][i] = rv; in lm80_update_device() [all …]
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_init.c | 192 int rv = -ENODEV; in csio_pci_init() local 205 rv = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in csio_pci_init() 206 if (rv) in csio_pci_init() 207 rv = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in csio_pci_init() 208 if (rv) { in csio_pci_init() 209 rv = -ENODEV; in csio_pci_init() 221 return rv; in csio_pci_init() 260 int rv; in csio_create_queues() local 267 rv = csio_wr_iq_create(hw, NULL, hw->intr_iq_idx, in csio_create_queues() 269 if (rv != 0) { in csio_create_queues() [all …]
|