rv 731 arch/arm/mach-davinci/da830.c int rv; rv 745 arch/arm/mach-davinci/da830.c rv = davinci_timer_register(clk, &da830_timer_cfg); rv 746 arch/arm/mach-davinci/da830.c WARN(rv, "Unable to register the timer: %d\n", rv); rv 653 arch/arm/mach-davinci/da850.c int rv; rv 668 arch/arm/mach-davinci/da850.c rv = davinci_timer_register(clk, &da850_timer_cfg); rv 669 arch/arm/mach-davinci/da850.c WARN(rv, "Unable to register the timer: %d\n", rv); rv 736 arch/arm/mach-davinci/dm355.c int rv; rv 752 arch/arm/mach-davinci/dm355.c rv = davinci_timer_register(clk, &dm355_timer_cfg); rv 753 arch/arm/mach-davinci/dm355.c WARN(rv, "Unable to register the timer: %d\n", rv); rv 672 arch/arm/mach-davinci/dm644x.c int rv; rv 688 arch/arm/mach-davinci/dm644x.c rv = davinci_timer_register(clk, &dm644x_timer_cfg); rv 689 arch/arm/mach-davinci/dm644x.c WARN(rv, "Unable to register the timer: %d\n", rv); rv 655 arch/arm/mach-davinci/dm646x.c int rv; rv 672 arch/arm/mach-davinci/dm646x.c rv = davinci_timer_register(clk, &dm646x_timer_cfg); rv 673 arch/arm/mach-davinci/dm646x.c WARN(rv, "Unable to register the timer: %d\n", rv); rv 160 arch/arm64/include/asm/cputype.h u32 rv = midr & (MIDR_REVISION_MASK | MIDR_VARIANT_MASK); rv 162 arch/arm64/include/asm/cputype.h return _model == model && rv >= rv_min && rv <= rv_max; rv 147 arch/ia64/include/asm/processor.h __u64 rv : 16; rv 52 arch/ia64/include/asm/sn/sn_sal.h struct ia64_sal_retval rv; rv 53 arch/ia64/include/asm/sn/sn_sal.h ia64_sal_oemcall_reentrant(&rv, SN_SAL_GET_PARTITION_ADDR, *cookie, rv 55 arch/ia64/include/asm/sn/sn_sal.h *cookie = rv.v0; rv 56 arch/ia64/include/asm/sn/sn_sal.h *addr = rv.v1; rv 57 arch/ia64/include/asm/sn/sn_sal.h *len = rv.v2; rv 58 arch/ia64/include/asm/sn/sn_sal.h return rv.status; rv 95 arch/ia64/include/asm/sn/sn_sal.h struct ia64_sal_retval rv; rv 107 arch/ia64/include/asm/sn/sn_sal.h ia64_sal_oemcall_nolock(&rv, SN_SAL_WATCHLIST_ALLOC, addr, rv 110 arch/ia64/include/asm/sn/sn_sal.h if (rv.status < 0) rv 111 arch/ia64/include/asm/sn/sn_sal.h return rv.status; rv 119 arch/ia64/include/asm/sn/sn_sal.h struct ia64_sal_retval rv; rv 120 arch/ia64/include/asm/sn/sn_sal.h ia64_sal_oemcall_nolock(&rv, SN_SAL_WATCHLIST_FREE, blade, rv 122 arch/ia64/include/asm/sn/sn_sal.h return rv.status; rv 61 arch/ia64/kernel/brl_emu.c struct illegal_op_return rv; rv 64 arch/ia64/kernel/brl_emu.c rv.fkt = (unsigned long) -1; rv 71 arch/ia64/kernel/brl_emu.c return rv; rv 76 arch/ia64/kernel/brl_emu.c if (ia64_psr(regs)->ri != 1) return rv; rv 79 arch/ia64/kernel/brl_emu.c if ((bundle[0] & 0x1e) != 0x4) return rv; rv 97 arch/ia64/kernel/brl_emu.c if (btype != 0) return rv; rv 98 arch/ia64/kernel/brl_emu.c rv.fkt = 0; rv 106 arch/ia64/kernel/brl_emu.c return rv; rv 114 arch/ia64/kernel/brl_emu.c rv.fkt = 0; rv 122 arch/ia64/kernel/brl_emu.c return rv; rv 133 arch/ia64/kernel/brl_emu.c rv.fkt = (unsigned long) &ia64_set_b1; rv 136 arch/ia64/kernel/brl_emu.c rv.fkt = (unsigned long) &ia64_set_b2; rv 139 arch/ia64/kernel/brl_emu.c rv.fkt = (unsigned long) &ia64_set_b3; rv 142 arch/ia64/kernel/brl_emu.c rv.fkt = (unsigned long) &ia64_set_b4; rv 145 arch/ia64/kernel/brl_emu.c rv.fkt = (unsigned long) &ia64_set_b5; rv 154 arch/ia64/kernel/brl_emu.c rv.arg1 = next_ip; rv 182 arch/ia64/kernel/brl_emu.c return rv; rv 216 arch/ia64/kernel/brl_emu.c return rv; rv 391 arch/ia64/kernel/traps.c struct illegal_op_return rv; rv 398 arch/ia64/kernel/traps.c rv = ia64_emulate_brl(®s, ec); rv 399 arch/ia64/kernel/traps.c if (rv.fkt != (unsigned long) -1) rv 400 arch/ia64/kernel/traps.c return rv; rv 405 arch/ia64/kernel/traps.c rv.fkt = 0; rv 407 arch/ia64/kernel/traps.c return rv; rv 412 arch/ia64/kernel/traps.c return rv; rv 874 arch/m68k/atari/config.c int rv = 0; rv 884 arch/m68k/atari/config.c rv = platform_add_devices(atari_ethernat_devices, rv 899 arch/m68k/atari/config.c if (error && !rv) rv 900 arch/m68k/atari/config.c rv = error; rv 915 arch/m68k/atari/config.c return rv; rv 370 arch/mips/alchemy/common/clock.c int scale, int maxdiv, unsigned long *rv) rv 387 arch/mips/alchemy/common/clock.c if (rv) rv 388 arch/mips/alchemy/common/clock.c *rv = div2; rv 367 arch/mips/alchemy/common/dbdma.c u32 rv; rv 374 arch/mips/alchemy/common/dbdma.c rv = 0; rv 377 arch/mips/alchemy/common/dbdma.c rv = stp->dev_devwidth; rv 381 arch/mips/alchemy/common/dbdma.c rv = dtp->dev_devwidth; rv 385 arch/mips/alchemy/common/dbdma.c return rv; rv 718 arch/mips/alchemy/common/dbdma.c u32 rv; rv 743 arch/mips/alchemy/common/dbdma.c rv = dp->dscr_stat; rv 749 arch/mips/alchemy/common/dbdma.c return rv; rv 828 arch/mips/alchemy/common/dbdma.c u32 rv; rv 834 arch/mips/alchemy/common/dbdma.c rv = cp->ddma_bytecnt; rv 837 arch/mips/alchemy/common/dbdma.c return rv; rv 118 arch/mips/cavium-octeon/csrc-octeon.c unsigned long long rv; rv 132 arch/mips/cavium-octeon/csrc-octeon.c : [rv] "=&r" (rv), [t1] "=&r" (t1), [t2] "=&r" (t2), [t3] "=&r" (t3) rv 135 arch/mips/cavium-octeon/csrc-octeon.c return rv; rv 1224 arch/mips/cavium-octeon/octeon-irq.c int rv; rv 1234 arch/mips/cavium-octeon/octeon-irq.c rv = octeon_irq_set_ciu_mapping(virq, line, bit, 0, rv 1238 arch/mips/cavium-octeon/octeon-irq.c rv = octeon_irq_set_ciu_mapping(virq, line, bit, 0, rv 1243 arch/mips/cavium-octeon/octeon-irq.c rv = octeon_irq_set_ciu_mapping(virq, line, bit, 0, rv 1247 arch/mips/cavium-octeon/octeon-irq.c rv = octeon_irq_set_ciu_mapping(virq, line, bit, 0, rv 1251 arch/mips/cavium-octeon/octeon-irq.c return rv; rv 1671 arch/mips/math-emu/cp1emu.c } rv; /* resulting value */ rv 1740 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FS(ir)); rv 1749 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FS(ir)); rv 1758 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FS(ir)); rv 1766 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FT(ir)); rv 1767 arch/mips/math-emu/cp1emu.c if (rv.w & 0x1) rv 1768 arch/mips/math-emu/cp1emu.c rv.w = 0; rv 1770 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FS(ir)); rv 1778 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FT(ir)); rv 1779 arch/mips/math-emu/cp1emu.c if (rv.w & 0x1) rv 1780 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FS(ir)); rv 1782 arch/mips/math-emu/cp1emu.c rv.w = 0; rv 1795 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_maddf(fd, fs, ft); rv 1809 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_msubf(fd, fs, ft); rv 1821 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_rint(fs); rv 1833 arch/mips/math-emu/cp1emu.c rv.w = ieee754sp_2008class(fs); rv 1847 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fmin(fs, ft); rv 1860 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fmina(fs, ft); rv 1873 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fmax(fs, ft); rv 1886 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fmaxa(fs, ft); rv 1903 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FS(ir)); rv 1911 arch/mips/math-emu/cp1emu.c rv.s = (*handler.b) (fs, ft); rv 1915 arch/mips/math-emu/cp1emu.c rv.s = (*handler.u) (fs); rv 1947 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fsp(fs); rv 1954 arch/mips/math-emu/cp1emu.c rv.w = ieee754sp_tint(fs); rv 1977 arch/mips/math-emu/cp1emu.c rv.w = ieee754sp_tint(fs); rv 1989 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FT(ir)); rv 1991 arch/mips/math-emu/cp1emu.c SPFROMREG(rv.s, MIPSInst_FS(ir)); rv 2000 arch/mips/math-emu/cp1emu.c rv.l = ieee754sp_tlong(fs); rv 2023 arch/mips/math-emu/cp1emu.c rv.l = ieee754sp_tlong(fs); rv 2036 arch/mips/math-emu/cp1emu.c rv.w = ieee754sp_cmp(fs, ft, rv 2113 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FS(ir)); rv 2121 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FS(ir)); rv 2129 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FS(ir)); rv 2137 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FT(ir)); rv 2138 arch/mips/math-emu/cp1emu.c if (rv.l & 0x1) rv 2139 arch/mips/math-emu/cp1emu.c rv.l = 0; rv 2141 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FS(ir)); rv 2149 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FT(ir)); rv 2150 arch/mips/math-emu/cp1emu.c if (rv.l & 0x1) rv 2151 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FS(ir)); rv 2153 arch/mips/math-emu/cp1emu.c rv.l = 0; rv 2166 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_maddf(fd, fs, ft); rv 2180 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_msubf(fd, fs, ft); rv 2192 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_rint(fs); rv 2204 arch/mips/math-emu/cp1emu.c rv.l = ieee754dp_2008class(fs); rv 2218 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fmin(fs, ft); rv 2231 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fmina(fs, ft); rv 2244 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fmax(fs, ft); rv 2257 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fmaxa(fs, ft); rv 2274 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FS(ir)); rv 2282 arch/mips/math-emu/cp1emu.c rv.d = (*handler.b) (fs, ft); rv 2286 arch/mips/math-emu/cp1emu.c rv.d = (*handler.u) (fs); rv 2295 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fdp(fs); rv 2305 arch/mips/math-emu/cp1emu.c rv.w = ieee754dp_tint(fs); /* wrong */ rv 2328 arch/mips/math-emu/cp1emu.c rv.w = ieee754dp_tint(fs); rv 2340 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FT(ir)); rv 2342 arch/mips/math-emu/cp1emu.c DPFROMREG(rv.d, MIPSInst_FS(ir)); rv 2351 arch/mips/math-emu/cp1emu.c rv.l = ieee754dp_tlong(fs); rv 2374 arch/mips/math-emu/cp1emu.c rv.l = ieee754dp_tlong(fs); rv 2387 arch/mips/math-emu/cp1emu.c rv.w = ieee754dp_cmp(fs, ft, rv 2415 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fint(fs.bits); rv 2422 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fint(fs.bits); rv 2527 arch/mips/math-emu/cp1emu.c rv.w = 0; rv 2537 arch/mips/math-emu/cp1emu.c rv.w = -1; /* true, all 1s */ rv 2552 arch/mips/math-emu/cp1emu.c rv.w = -1; /* true, all 1s */ rv 2581 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_flong(bits); rv 2587 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_flong(bits); rv 2687 arch/mips/math-emu/cp1emu.c rv.l = 0; rv 2697 arch/mips/math-emu/cp1emu.c rv.l = -1LL; /* true, all 1s */ rv 2712 arch/mips/math-emu/cp1emu.c rv.l = -1LL; /* true, all 1s */ rv 2756 arch/mips/math-emu/cp1emu.c if (rv.w) rv 2763 arch/mips/math-emu/cp1emu.c DPTOREG(rv.d, MIPSInst_FD(ir)); rv 2766 arch/mips/math-emu/cp1emu.c SPTOREG(rv.s, MIPSInst_FD(ir)); rv 2769 arch/mips/math-emu/cp1emu.c SITOREG(rv.w, MIPSInst_FD(ir)); rv 2775 arch/mips/math-emu/cp1emu.c DITOREG(rv.l, MIPSInst_FD(ir)); rv 309 arch/mips/mm/c-octeon.c int rv = raw_notifier_call_chain(&co_cache_error_chain, val, NULL); rv 310 arch/mips/mm/c-octeon.c if ((rv & ~NOTIFY_STOP_MASK) != NOTIFY_OK) { rv 1110 arch/mips/mm/tlbex.c struct mips_huge_tlb_info rv; rv 1115 arch/mips/mm/tlbex.c rv.huge_pte = scratch; rv 1116 arch/mips/mm/tlbex.c rv.restore_scratch = 0; rv 1117 arch/mips/mm/tlbex.c rv.need_reload_pte = false; rv 1275 arch/mips/mm/tlbex.c rv.restore_scratch = 1; rv 1284 arch/mips/mm/tlbex.c rv.restore_scratch = 1; rv 1289 arch/mips/mm/tlbex.c return rv; rv 471 arch/mips/netlogic/xlp/nlm_hal.c int i, n, rv; rv 475 arch/mips/netlogic/xlp/nlm_hal.c rv = 0; rv 477 arch/mips/netlogic/xlp/nlm_hal.c if (rv + 1 >= nentries) rv 503 arch/mips/netlogic/xlp/nlm_hal.c dram_map[rv] = base; rv 504 arch/mips/netlogic/xlp/nlm_hal.c dram_map[rv + 1] = lim; rv 505 arch/mips/netlogic/xlp/nlm_hal.c rv += 2; rv 507 arch/mips/netlogic/xlp/nlm_hal.c return rv; rv 72 arch/mips/netlogic/xlr/fmn.c int bucket, rv; rv 90 arch/mips/netlogic/xlr/fmn.c rv = nlm_fmn_receive(bucket, &size, &code, &src_stnid, rv 92 arch/mips/netlogic/xlr/fmn.c if (rv != 0) rv 69 arch/parisc/include/asm/psw.h unsigned int rv:2; rv 2917 arch/powerpc/kernel/prom_init.c int rv; rv 2925 arch/powerpc/kernel/prom_init.c rv = prom_getprop(node, "phy-handle", prop, sizeof(prop)); rv 2926 arch/powerpc/kernel/prom_init.c if (!rv) rv 2984 arch/powerpc/kernel/prom_init.c int rv, len; rv 2991 arch/powerpc/kernel/prom_init.c rv = prom_getprop(node, "model", prop, sizeof(prop)); rv 2992 arch/powerpc/kernel/prom_init.c if (rv == PROM_ERROR) rv 3001 arch/powerpc/kernel/prom_init.c rv = prom_getprop(node, "device_type", prop, sizeof(prop)); rv 3002 arch/powerpc/kernel/prom_init.c if (rv != PROM_ERROR && (prom_strcmp(prop, "chrp") == 0)) rv 3007 arch/powerpc/kernel/prom_init.c rv = prom_getprop(node, "CODEGEN,description", prop, sizeof(prop)); rv 3008 arch/powerpc/kernel/prom_init.c if (rv != PROM_ERROR && (prom_strstr(prop, "CHRP"))) rv 3027 arch/powerpc/kernel/prom_init.c rv = prom_getprop(node, "interrupts", prop, sizeof(prop)); rv 3028 arch/powerpc/kernel/prom_init.c if (rv == PROM_ERROR) { rv 141 arch/powerpc/kvm/book3s_hv_builtin.c int rv = H_SUCCESS; /* => don't yield */ rv 149 arch/powerpc/kvm/book3s_hv_builtin.c rv = H_TOO_HARD; /* => do yield */ rv 154 arch/powerpc/kvm/book3s_hv_builtin.c return rv; rv 200 arch/powerpc/platforms/pseries/reconfig.c int length, rv = 0; rv 222 arch/powerpc/platforms/pseries/reconfig.c rv = -ENOMEM; rv 228 arch/powerpc/platforms/pseries/reconfig.c rv = -EINVAL; rv 232 arch/powerpc/platforms/pseries/reconfig.c rv = pSeries_reconfig_add_node(path, prop); rv 235 arch/powerpc/platforms/pseries/reconfig.c if (rv) rv 237 arch/powerpc/platforms/pseries/reconfig.c return rv; rv 243 arch/powerpc/platforms/pseries/reconfig.c int rv = -ENODEV; rv 246 arch/powerpc/platforms/pseries/reconfig.c rv = pSeries_reconfig_remove_node(node); rv 249 arch/powerpc/platforms/pseries/reconfig.c return rv; rv 361 arch/powerpc/platforms/pseries/reconfig.c int rv; rv 371 arch/powerpc/platforms/pseries/reconfig.c rv = -EINVAL; rv 378 arch/powerpc/platforms/pseries/reconfig.c rv = do_add_node(tmp, count - (tmp - kbuf)); rv 380 arch/powerpc/platforms/pseries/reconfig.c rv = do_remove_node(tmp); rv 382 arch/powerpc/platforms/pseries/reconfig.c rv = do_add_property(tmp, count - (tmp - kbuf)); rv 384 arch/powerpc/platforms/pseries/reconfig.c rv = do_remove_property(tmp, count - (tmp - kbuf)); rv 386 arch/powerpc/platforms/pseries/reconfig.c rv = do_update_property(tmp, count - (tmp - kbuf)); rv 388 arch/powerpc/platforms/pseries/reconfig.c rv = -EINVAL; rv 391 arch/powerpc/platforms/pseries/reconfig.c return rv ? rv : count; rv 40 arch/powerpc/xmon/nonstdio.c int rv = 0; rv 45 arch/powerpc/xmon/nonstdio.c return rv; rv 52 arch/powerpc/xmon/nonstdio.c rv += udbg_write(p, q - p + 1); rv 80 arch/powerpc/xmon/nonstdio.c return rv + udbg_write(p, nb - (p - ptr)); rv 434 arch/sparc/kernel/mdesc.c int rv; rv 452 arch/sparc/kernel/mdesc.c rv = get_info_func(a, a_node, &a_node_info); rv 453 arch/sparc/kernel/mdesc.c if (rv != 0) { rv 461 arch/sparc/kernel/mdesc.c rv = get_info_func(b, b_node, &b_node_info); rv 462 arch/sparc/kernel/mdesc.c if (rv != 0) rv 551 arch/sparc/kernel/mdesc.c int rv; rv 567 arch/sparc/kernel/mdesc.c rv = get_info_func(hp, hp_node, &hp_node_info); rv 568 arch/sparc/kernel/mdesc.c if (rv != 0) rv 587 arch/sparc/kernel/mdesc.c int rv; rv 602 arch/sparc/kernel/mdesc.c rv = get_info_func(hp, node, node_info); rv 603 arch/sparc/kernel/mdesc.c if (rv != 0) { rv 99 arch/um/drivers/vde_user.c int rv; rv 104 arch/um/drivers/vde_user.c rv = vde_recv(vconn, buf, len, 0); rv 105 arch/um/drivers/vde_user.c if (rv < 0) { rv 110 arch/um/drivers/vde_user.c else if (rv == 0) rv 113 arch/um/drivers/vde_user.c return rv; rv 262 arch/x86/boot/string.c unsigned int rv; rv 265 arch/x86/boot/string.c rv = 0; rv 286 arch/x86/boot/string.c rv |= KSTRTOX_OVERFLOW; rv 289 arch/x86/boot/string.c rv++; rv 293 arch/x86/boot/string.c return rv; rv 299 arch/x86/boot/string.c unsigned int rv; rv 302 arch/x86/boot/string.c rv = _parse_integer(s, base, &_res); rv 303 arch/x86/boot/string.c if (rv & KSTRTOX_OVERFLOW) rv 305 arch/x86/boot/string.c if (rv == 0) rv 307 arch/x86/boot/string.c s += rv; rv 147 arch/x86/boot/video-mode.c int rv; rv 158 arch/x86/boot/video-mode.c rv = raw_set_mode(mode, &real_mode); rv 159 arch/x86/boot/video-mode.c if (rv) rv 160 arch/x86/boot/video-mode.c return rv; rv 495 arch/x86/kernel/reboot.c int rv; rv 509 arch/x86/kernel/reboot.c rv = dmi_check_system(reboot_dmi_table); rv 511 arch/x86/kernel/reboot.c if (!rv && efi_reboot_required() && !efi_runtime_disabled()) rv 10 arch/x86/lib/msr-smp.c struct msr_info *rv = info; rv 14 arch/x86/lib/msr-smp.c if (rv->msrs) rv 15 arch/x86/lib/msr-smp.c reg = per_cpu_ptr(rv->msrs, this_cpu); rv 17 arch/x86/lib/msr-smp.c reg = &rv->reg; rv 19 arch/x86/lib/msr-smp.c rdmsr(rv->msr_no, reg->l, reg->h); rv 24 arch/x86/lib/msr-smp.c struct msr_info *rv = info; rv 28 arch/x86/lib/msr-smp.c if (rv->msrs) rv 29 arch/x86/lib/msr-smp.c reg = per_cpu_ptr(rv->msrs, this_cpu); rv 31 arch/x86/lib/msr-smp.c reg = &rv->reg; rv 33 arch/x86/lib/msr-smp.c wrmsr(rv->msr_no, reg->l, reg->h); rv 39 arch/x86/lib/msr-smp.c struct msr_info rv; rv 41 arch/x86/lib/msr-smp.c memset(&rv, 0, sizeof(rv)); rv 43 arch/x86/lib/msr-smp.c rv.msr_no = msr_no; rv 44 arch/x86/lib/msr-smp.c err = smp_call_function_single(cpu, __rdmsr_on_cpu, &rv, 1); rv 45 arch/x86/lib/msr-smp.c *l = rv.reg.l; rv 46 arch/x86/lib/msr-smp.c *h = rv.reg.h; rv 55 arch/x86/lib/msr-smp.c struct msr_info rv; rv 57 arch/x86/lib/msr-smp.c memset(&rv, 0, sizeof(rv)); rv 59 arch/x86/lib/msr-smp.c rv.msr_no = msr_no; rv 60 arch/x86/lib/msr-smp.c err = smp_call_function_single(cpu, __rdmsr_on_cpu, &rv, 1); rv 61 arch/x86/lib/msr-smp.c *q = rv.reg.q; rv 70 arch/x86/lib/msr-smp.c struct msr_info rv; rv 72 arch/x86/lib/msr-smp.c memset(&rv, 0, sizeof(rv)); rv 74 arch/x86/lib/msr-smp.c rv.msr_no = msr_no; rv 75 arch/x86/lib/msr-smp.c rv.reg.l = l; rv 76 arch/x86/lib/msr-smp.c rv.reg.h = h; rv 77 arch/x86/lib/msr-smp.c err = smp_call_function_single(cpu, __wrmsr_on_cpu, &rv, 1); rv 86 arch/x86/lib/msr-smp.c struct msr_info rv; rv 88 arch/x86/lib/msr-smp.c memset(&rv, 0, sizeof(rv)); rv 90 arch/x86/lib/msr-smp.c rv.msr_no = msr_no; rv 91 arch/x86/lib/msr-smp.c rv.reg.q = q; rv 93 arch/x86/lib/msr-smp.c err = smp_call_function_single(cpu, __wrmsr_on_cpu, &rv, 1); rv 103 arch/x86/lib/msr-smp.c struct msr_info rv; rv 106 arch/x86/lib/msr-smp.c memset(&rv, 0, sizeof(rv)); rv 108 arch/x86/lib/msr-smp.c rv.msrs = msrs; rv 109 arch/x86/lib/msr-smp.c rv.msr_no = msr_no; rv 114 arch/x86/lib/msr-smp.c msr_func(&rv); rv 116 arch/x86/lib/msr-smp.c smp_call_function_many(mask, msr_func, &rv, 1); rv 156 arch/x86/lib/msr-smp.c struct msr_info_completion *rv = info; rv 158 arch/x86/lib/msr-smp.c rv->msr.err = rdmsr_safe(rv->msr.msr_no, &rv->msr.reg.l, &rv->msr.reg.h); rv 159 arch/x86/lib/msr-smp.c complete(&rv->done); rv 164 arch/x86/lib/msr-smp.c struct msr_info *rv = info; rv 166 arch/x86/lib/msr-smp.c rv->err = wrmsr_safe(rv->msr_no, rv->reg.l, rv->reg.h); rv 171 arch/x86/lib/msr-smp.c struct msr_info_completion rv; rv 174 arch/x86/lib/msr-smp.c .info = &rv, rv 178 arch/x86/lib/msr-smp.c memset(&rv, 0, sizeof(rv)); rv 179 arch/x86/lib/msr-smp.c init_completion(&rv.done); rv 180 arch/x86/lib/msr-smp.c rv.msr.msr_no = msr_no; rv 184 arch/x86/lib/msr-smp.c wait_for_completion(&rv.done); rv 185 arch/x86/lib/msr-smp.c err = rv.msr.err; rv 187 arch/x86/lib/msr-smp.c *l = rv.msr.reg.l; rv 188 arch/x86/lib/msr-smp.c *h = rv.msr.reg.h; rv 197 arch/x86/lib/msr-smp.c struct msr_info rv; rv 199 arch/x86/lib/msr-smp.c memset(&rv, 0, sizeof(rv)); rv 201 arch/x86/lib/msr-smp.c rv.msr_no = msr_no; rv 202 arch/x86/lib/msr-smp.c rv.reg.l = l; rv 203 arch/x86/lib/msr-smp.c rv.reg.h = h; rv 204 arch/x86/lib/msr-smp.c err = smp_call_function_single(cpu, __wrmsr_safe_on_cpu, &rv, 1); rv 206 arch/x86/lib/msr-smp.c return err ? err : rv.err; rv 213 arch/x86/lib/msr-smp.c struct msr_info rv; rv 215 arch/x86/lib/msr-smp.c memset(&rv, 0, sizeof(rv)); rv 217 arch/x86/lib/msr-smp.c rv.msr_no = msr_no; rv 218 arch/x86/lib/msr-smp.c rv.reg.q = q; rv 220 arch/x86/lib/msr-smp.c err = smp_call_function_single(cpu, __wrmsr_safe_on_cpu, &rv, 1); rv 222 arch/x86/lib/msr-smp.c return err ? err : rv.err; rv 244 arch/x86/lib/msr-smp.c struct msr_regs_info *rv = info; rv 246 arch/x86/lib/msr-smp.c rv->err = rdmsr_safe_regs(rv->regs); rv 251 arch/x86/lib/msr-smp.c struct msr_regs_info *rv = info; rv 253 arch/x86/lib/msr-smp.c rv->err = wrmsr_safe_regs(rv->regs); rv 259 arch/x86/lib/msr-smp.c struct msr_regs_info rv; rv 261 arch/x86/lib/msr-smp.c rv.regs = regs; rv 262 arch/x86/lib/msr-smp.c rv.err = -EIO; rv 263 arch/x86/lib/msr-smp.c err = smp_call_function_single(cpu, __rdmsr_safe_regs_on_cpu, &rv, 1); rv 265 arch/x86/lib/msr-smp.c return err ? err : rv.err; rv 272 arch/x86/lib/msr-smp.c struct msr_regs_info rv; rv 274 arch/x86/lib/msr-smp.c rv.regs = regs; rv 275 arch/x86/lib/msr-smp.c rv.err = -EIO; rv 276 arch/x86/lib/msr-smp.c err = smp_call_function_single(cpu, __wrmsr_safe_regs_on_cpu, &rv, 1); rv 278 arch/x86/lib/msr-smp.c return err ? err : rv.err; rv 122 arch/x86/mm/pf_in.c rv = type; \ rv 133 arch/x86/mm/pf_in.c enum reason_type rv = OTHERS; rv 144 arch/x86/mm/pf_in.c return rv; rv 238 arch/x86/mm/pf_in.c unsigned char *rv = NULL; rv 242 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->ax; rv 245 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->bx; rv 248 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->cx; rv 251 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->dx; rv 255 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->r8; rv 258 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->r9; rv 261 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->r10; rv 264 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->r11; rv 267 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->r12; rv 270 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->r13; rv 273 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->r14; rv 276 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->r15; rv 283 arch/x86/mm/pf_in.c if (rv) rv 284 arch/x86/mm/pf_in.c return rv; rv 293 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->si; rv 296 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->di; rv 299 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->bp; rv 302 arch/x86/mm/pf_in.c rv = (unsigned char *)®s->sp; rv 310 arch/x86/mm/pf_in.c rv = 1 + (unsigned char *)®s->ax; rv 313 arch/x86/mm/pf_in.c rv = 1 + (unsigned char *)®s->bx; rv 316 arch/x86/mm/pf_in.c rv = 1 + (unsigned char *)®s->cx; rv 319 arch/x86/mm/pf_in.c rv = 1 + (unsigned char *)®s->dx; rv 326 arch/x86/mm/pf_in.c if (!rv) rv 329 arch/x86/mm/pf_in.c return rv; rv 334 arch/x86/mm/pf_in.c unsigned long *rv = NULL; rv 338 arch/x86/mm/pf_in.c rv = ®s->ax; rv 341 arch/x86/mm/pf_in.c rv = ®s->bx; rv 344 arch/x86/mm/pf_in.c rv = ®s->cx; rv 347 arch/x86/mm/pf_in.c rv = ®s->dx; rv 350 arch/x86/mm/pf_in.c rv = ®s->sp; rv 353 arch/x86/mm/pf_in.c rv = ®s->bp; rv 356 arch/x86/mm/pf_in.c rv = ®s->si; rv 359 arch/x86/mm/pf_in.c rv = ®s->di; rv 363 arch/x86/mm/pf_in.c rv = ®s->r8; rv 366 arch/x86/mm/pf_in.c rv = ®s->r9; rv 369 arch/x86/mm/pf_in.c rv = ®s->r10; rv 372 arch/x86/mm/pf_in.c rv = ®s->r11; rv 375 arch/x86/mm/pf_in.c rv = ®s->r12; rv 378 arch/x86/mm/pf_in.c rv = ®s->r13; rv 381 arch/x86/mm/pf_in.c rv = ®s->r14; rv 384 arch/x86/mm/pf_in.c rv = ®s->r15; rv 391 arch/x86/mm/pf_in.c return rv; rv 415 arch/x86/pci/mmconfig-shared.c void *context, void **rv) rv 205 arch/x86/platform/efi/efi.c int rv; rv 225 arch/x86/platform/efi/efi.c rv = efi_memmap_init_early(&data); rv 226 arch/x86/platform/efi/efi.c if (rv) rv 227 arch/x86/platform/efi/efi.c return rv; rv 473 arch/x86/platform/efi/efi.c int rv; rv 491 arch/x86/platform/efi/efi.c rv = efi_runtime_init64(); rv 493 arch/x86/platform/efi/efi.c rv = efi_runtime_init32(); rv 495 arch/x86/platform/efi/efi.c if (rv) rv 496 arch/x86/platform/efi/efi.c return rv; rv 59 block/badblocks.c int rv; rv 75 block/badblocks.c rv = 0; rv 110 block/badblocks.c if (rv != -1 && BB_ACK(p[lo])) rv 111 block/badblocks.c rv = 1; rv 113 block/badblocks.c rv = -1; rv 124 block/badblocks.c return rv; rv 168 block/badblocks.c int rv = 0; rv 289 block/badblocks.c rv = 1; rv 313 block/badblocks.c return rv; rv 336 block/badblocks.c int rv = 0; rv 381 block/badblocks.c rv = -ENOSPC; rv 422 block/badblocks.c return rv; rv 497 drivers/acpi/acpi_processor.c void **rv) rv 637 drivers/acpi/acpi_processor.c void **rv) rv 972 drivers/acpi/apei/ghes.c int rv; rv 975 drivers/acpi/apei/ghes.c rv = ghes_in_nmi_spool_from_list(&ghes_sea, FIX_APEI_GHES_SEA); rv 978 drivers/acpi/apei/ghes.c return rv; rv 97 drivers/acpi/ioapic.c void *context, void **rv) rv 197 drivers/acpi/ioapic.c *(acpi_status *)rv = AE_ERROR; rv 1733 drivers/acpi/osl.c int rv; rv 1735 drivers/acpi/osl.c rv = acpi_os_map_generic_address(&acpi_gbl_FADT.reset_register); rv 1736 drivers/acpi/osl.c pr_debug(PREFIX "%s: map reset_reg status %d\n", __func__, rv); rv 87 drivers/acpi/pci_slot.c register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) rv 151 drivers/acpi/processor_core.c phys_cpuid_t rv; rv 158 drivers/acpi/processor_core.c rv = map_madt_entry(madt, 1, acpi_id); rv 162 drivers/acpi/processor_core.c return rv; rv 160 drivers/acpi/processor_pdc.c early_init_pdc(acpi_handle handle, u32 lvl, void *context, void **rv) rv 63 drivers/acpi/video_detect.c find_video(acpi_handle handle, u32 lvl, void *context, void **rv) rv 393 drivers/ata/pata_mpc52xx.c int pio, rv; rv 397 drivers/ata/pata_mpc52xx.c rv = mpc52xx_ata_compute_pio_timings(priv, adev->devno, pio); rv 399 drivers/ata/pata_mpc52xx.c if (rv) { rv 411 drivers/ata/pata_mpc52xx.c int rv; rv 415 drivers/ata/pata_mpc52xx.c rv = mpc52xx_ata_compute_udma_timings(priv, adev->devno, dma); rv 418 drivers/ata/pata_mpc52xx.c rv = mpc52xx_ata_compute_mdma_timings(priv, adev->devno, dma); rv 421 drivers/ata/pata_mpc52xx.c if (rv) { rv 678 drivers/ata/pata_mpc52xx.c int rv, task_irq; rv 693 drivers/ata/pata_mpc52xx.c rv = of_address_to_resource(op->dev.of_node, 0, &res_mem); rv 694 drivers/ata/pata_mpc52xx.c if (rv) { rv 696 drivers/ata/pata_mpc52xx.c return rv; rv 741 drivers/ata/pata_mpc52xx.c rv = -ENOMEM; rv 764 drivers/ata/pata_mpc52xx.c rv = -ENOMEM; rv 769 drivers/ata/pata_mpc52xx.c rv = devm_request_irq(&op->dev, task_irq, &mpc52xx_ata_task_irq, 0, rv 771 drivers/ata/pata_mpc52xx.c if (rv) { rv 778 drivers/ata/pata_mpc52xx.c rv = mpc52xx_ata_hw_init(priv); rv 779 drivers/ata/pata_mpc52xx.c if (rv) { rv 785 drivers/ata/pata_mpc52xx.c rv = mpc52xx_ata_init_one(&op->dev, priv, res_mem.start, rv 787 drivers/ata/pata_mpc52xx.c if (rv) { rv 799 drivers/ata/pata_mpc52xx.c return rv; rv 835 drivers/ata/pata_mpc52xx.c int rv; rv 837 drivers/ata/pata_mpc52xx.c rv = mpc52xx_ata_hw_init(priv); rv 838 drivers/ata/pata_mpc52xx.c if (rv) { rv 840 drivers/ata/pata_mpc52xx.c return rv; rv 749 drivers/ata/pata_octeon_cf.c enum hrtimer_restart rv = HRTIMER_NORESTART; rv 766 drivers/ata/pata_octeon_cf.c rv = HRTIMER_RESTART; rv 774 drivers/ata/pata_octeon_cf.c return rv; rv 851 drivers/ata/pata_octeon_cf.c int rv = -ENOMEM; rv 915 drivers/ata/pata_octeon_cf.c return rv; rv 931 drivers/ata/pata_octeon_cf.c return rv; rv 936 drivers/ata/pata_octeon_cf.c return rv; rv 995 drivers/ata/pata_octeon_cf.c rv = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); rv 996 drivers/ata/pata_octeon_cf.c if (rv) rv 997 drivers/ata/pata_octeon_cf.c return rv; rv 571 drivers/block/drbd/drbd_actlog.c int rv; rv 574 drivers/block/drbd/drbd_actlog.c rv = (al_ext->refcnt == 0); rv 575 drivers/block/drbd/drbd_actlog.c if (likely(rv)) rv 579 drivers/block/drbd/drbd_actlog.c return rv; rv 944 drivers/block/drbd/drbd_actlog.c int rv; rv 947 drivers/block/drbd/drbd_actlog.c rv = lc_is_used(device->act_log, enr); rv 950 drivers/block/drbd/drbd_actlog.c return rv; rv 616 drivers/block/drbd/drbd_int.h void (*done)(struct drbd_device *device, int rv); rv 1728 drivers/block/drbd/drbd_int.h union drbd_state rv; rv 1730 drivers/block/drbd/drbd_int.h rv.i = device->state.i; rv 1731 drivers/block/drbd/drbd_int.h rv.susp = resource->susp; rv 1732 drivers/block/drbd/drbd_int.h rv.susp_nod = resource->susp_nod; rv 1733 drivers/block/drbd/drbd_int.h rv.susp_fen = resource->susp_fen; rv 1735 drivers/block/drbd/drbd_int.h return rv; rv 2284 drivers/block/drbd/drbd_int.h bool rv = false; rv 2287 drivers/block/drbd/drbd_int.h rv = may_inc_ap_bio(device); rv 2288 drivers/block/drbd/drbd_int.h if (rv) rv 2292 drivers/block/drbd/drbd_int.h return rv; rv 1846 drivers/block/drbd/drbd_main.c int rv, sent = 0; rv 1862 drivers/block/drbd/drbd_main.c rv = sock_sendmsg(sock, &msg); rv 1863 drivers/block/drbd/drbd_main.c if (rv == -EAGAIN) { rv 1869 drivers/block/drbd/drbd_main.c if (rv == -EINTR) { rv 1871 drivers/block/drbd/drbd_main.c rv = 0; rv 1873 drivers/block/drbd/drbd_main.c if (rv < 0) rv 1875 drivers/block/drbd/drbd_main.c sent += rv; rv 1881 drivers/block/drbd/drbd_main.c if (rv <= 0) { rv 1882 drivers/block/drbd/drbd_main.c if (rv != -EAGAIN) { rv 1885 drivers/block/drbd/drbd_main.c rv); rv 1916 drivers/block/drbd/drbd_main.c int rv = 0; rv 1925 drivers/block/drbd/drbd_main.c rv = -EROFS; rv 1927 drivers/block/drbd/drbd_main.c rv = -EMEDIUMTYPE; rv 1930 drivers/block/drbd/drbd_main.c if (!rv) rv 1935 drivers/block/drbd/drbd_main.c return rv; rv 3312 drivers/block/drbd/drbd_main.c int i, rv = NO_ERROR; rv 3335 drivers/block/drbd/drbd_main.c rv = ERR_IO_MD_DISK; rv 3345 drivers/block/drbd/drbd_main.c rv = ERR_MD_UNCLEAN; rv 3349 drivers/block/drbd/drbd_main.c rv = ERR_MD_INVALID; rv 3392 drivers/block/drbd/drbd_main.c rv = NO_ERROR; rv 3406 drivers/block/drbd/drbd_main.c return rv; rv 3537 drivers/block/drbd/drbd_main.c int rv = -EIO; rv 3543 drivers/block/drbd/drbd_main.c rv = drbd_bm_write(device); rv 3545 drivers/block/drbd/drbd_main.c if (!rv) { rv 3550 drivers/block/drbd/drbd_main.c return rv; rv 3571 drivers/block/drbd/drbd_main.c int rv = -EIO; rv 3582 drivers/block/drbd/drbd_main.c rv = work->io_fn(device); rv 3591 drivers/block/drbd/drbd_main.c work->done(device, rv); rv 3660 drivers/block/drbd/drbd_main.c int rv; rv 3668 drivers/block/drbd/drbd_main.c rv = io_fn(device); rv 3674 drivers/block/drbd/drbd_main.c return rv; rv 621 drivers/block/drbd/drbd_nl.c enum drbd_state_rv rv = SS_UNKNOWN_ERROR; rv 644 drivers/block/drbd/drbd_nl.c rv = _drbd_request_state_holding_state_mutex(device, mask, val, CS_WAIT_COMPLETE); rv 648 drivers/block/drbd/drbd_nl.c if (rv == SS_CW_FAILED_BY_PEER && mask.pdsk != 0) { rv 654 drivers/block/drbd/drbd_nl.c if (rv == SS_NO_UP_TO_DATE_DISK && force && rv 663 drivers/block/drbd/drbd_nl.c if (rv == SS_NO_UP_TO_DATE_DISK && rv 674 drivers/block/drbd/drbd_nl.c if (rv == SS_NOTHING_TO_DO) rv 676 drivers/block/drbd/drbd_nl.c if (rv == SS_PRIMARY_NOP && mask.pdsk == 0) { rv 685 drivers/block/drbd/drbd_nl.c if (rv == SS_TWO_PRIMARIES) { rv 699 drivers/block/drbd/drbd_nl.c if (rv < SS_SUCCESS) { rv 700 drivers/block/drbd/drbd_nl.c rv = _drbd_request_state(device, mask, val, rv 702 drivers/block/drbd/drbd_nl.c if (rv < SS_SUCCESS) rv 708 drivers/block/drbd/drbd_nl.c if (rv < SS_SUCCESS) rv 757 drivers/block/drbd/drbd_nl.c return rv; rv 945 drivers/block/drbd/drbd_nl.c enum determine_dev_size rv = DS_UNCHANGED; rv 992 drivers/block/drbd/drbd_nl.c rv = DS_ERROR_SHRINK; rv 995 drivers/block/drbd/drbd_nl.c rv = DS_ERROR_SPACE_MD; rv 996 drivers/block/drbd/drbd_nl.c if (rv != DS_UNCHANGED) rv 1014 drivers/block/drbd/drbd_nl.c rv = DS_ERROR; rv 1020 drivers/block/drbd/drbd_nl.c if (rv <= DS_ERROR) rv 1067 drivers/block/drbd/drbd_nl.c rv = prev.last_agreed_sect ? DS_GREW : DS_GREW_FROM_ZERO; rv 1069 drivers/block/drbd/drbd_nl.c rv = DS_SHRUNK; rv 1088 drivers/block/drbd/drbd_nl.c return rv; rv 1806 drivers/block/drbd/drbd_nl.c enum drbd_state_rv rv; rv 1973 drivers/block/drbd/drbd_nl.c rv = _drbd_request_state(device, NS(disk, D_ATTACHING), CS_VERBOSE); rv 1974 drivers/block/drbd/drbd_nl.c retcode = rv; /* FIXME: Type mismatch. */ rv 1976 drivers/block/drbd/drbd_nl.c if (rv < SS_SUCCESS) rv 2168 drivers/block/drbd/drbd_nl.c rv = _drbd_set_state(device, ns, CS_VERBOSE, NULL); rv 2171 drivers/block/drbd/drbd_nl.c if (rv < SS_SUCCESS) rv 2261 drivers/block/drbd/drbd_nl.c bool rv = false; rv 2271 drivers/block/drbd/drbd_nl.c rv = true; rv 2277 drivers/block/drbd/drbd_nl.c return rv; rv 2283 drivers/block/drbd/drbd_nl.c bool rv = false; rv 2291 drivers/block/drbd/drbd_nl.c rv = true; rv 2297 drivers/block/drbd/drbd_nl.c return rv; rv 2347 drivers/block/drbd/drbd_nl.c enum drbd_ret_code rv; rv 2352 drivers/block/drbd/drbd_nl.c rv = _check_net_options(connection, rcu_dereference(connection->net_conf), new_net_conf); rv 2364 drivers/block/drbd/drbd_nl.c return rv; rv 2393 drivers/block/drbd/drbd_nl.c enum drbd_ret_code rv; rv 2395 drivers/block/drbd/drbd_nl.c rv = alloc_shash(&crypto->csums_tfm, new_net_conf->csums_alg, rv 2397 drivers/block/drbd/drbd_nl.c if (rv != NO_ERROR) rv 2398 drivers/block/drbd/drbd_nl.c return rv; rv 2399 drivers/block/drbd/drbd_nl.c rv = alloc_shash(&crypto->verify_tfm, new_net_conf->verify_alg, rv 2401 drivers/block/drbd/drbd_nl.c if (rv != NO_ERROR) rv 2402 drivers/block/drbd/drbd_nl.c return rv; rv 2403 drivers/block/drbd/drbd_nl.c rv = alloc_shash(&crypto->integrity_tfm, new_net_conf->integrity_alg, rv 2405 drivers/block/drbd/drbd_nl.c if (rv != NO_ERROR) rv 2406 drivers/block/drbd/drbd_nl.c return rv; rv 2411 drivers/block/drbd/drbd_nl.c rv = alloc_shash(&crypto->cram_hmac_tfm, hmac_name, rv 2415 drivers/block/drbd/drbd_nl.c return rv; rv 2720 drivers/block/drbd/drbd_nl.c enum drbd_state_rv rv; rv 2723 drivers/block/drbd/drbd_nl.c rv = conn_request_state(connection, NS(conn, C_DISCONNECTING), rv 2726 drivers/block/drbd/drbd_nl.c switch (rv) { rv 2733 drivers/block/drbd/drbd_nl.c rv = conn_request_state(connection, NS2(conn, C_DISCONNECTING, pdsk, D_OUTDATED), 0); rv 2735 drivers/block/drbd/drbd_nl.c if (rv == SS_OUTDATE_WO_CONN) /* lost connection before graceful disconnect succeeded */ rv 2736 drivers/block/drbd/drbd_nl.c rv = conn_request_state(connection, NS(conn, C_DISCONNECTING), CS_VERBOSE); rv 2746 drivers/block/drbd/drbd_nl.c rv = conn_request_state(connection, NS2(conn, C_DISCONNECTING, rv 2748 drivers/block/drbd/drbd_nl.c if (rv == SS_IS_DISKLESS || rv == SS_LOWER_THAN_OUTDATED) { rv 2749 drivers/block/drbd/drbd_nl.c rv = conn_request_state(connection, NS(conn, C_DISCONNECTING), rv 2757 drivers/block/drbd/drbd_nl.c if (rv >= SS_SUCCESS) { rv 2780 drivers/block/drbd/drbd_nl.c return rv; rv 2788 drivers/block/drbd/drbd_nl.c enum drbd_state_rv rv; rv 2810 drivers/block/drbd/drbd_nl.c rv = conn_try_disconnect(connection, parms.force_disconnect); rv 2811 drivers/block/drbd/drbd_nl.c if (rv < SS_SUCCESS) rv 2812 drivers/block/drbd/drbd_nl.c retcode = rv; /* FIXME: Type mismatch. */ rv 3082 drivers/block/drbd/drbd_nl.c int rv; rv 3084 drivers/block/drbd/drbd_nl.c rv = drbd_bmio_set_n_write(device); rv 3086 drivers/block/drbd/drbd_nl.c return rv; rv 513 drivers/block/drbd/drbd_receiver.c int rv; rv 515 drivers/block/drbd/drbd_receiver.c rv = drbd_recv_short(connection->data.socket, buf, size, 0); rv 517 drivers/block/drbd/drbd_receiver.c if (rv < 0) { rv 518 drivers/block/drbd/drbd_receiver.c if (rv == -ECONNRESET) rv 520 drivers/block/drbd/drbd_receiver.c else if (rv != -ERESTARTSYS) rv 521 drivers/block/drbd/drbd_receiver.c drbd_err(connection, "sock_recvmsg returned %d\n", rv); rv 522 drivers/block/drbd/drbd_receiver.c } else if (rv == 0) { rv 537 drivers/block/drbd/drbd_receiver.c if (rv != size) rv 541 drivers/block/drbd/drbd_receiver.c return rv; rv 928 drivers/block/drbd/drbd_receiver.c enum drbd_state_rv rv; rv 1117 drivers/block/drbd/drbd_receiver.c rv = conn_request_state(connection, NS(conn, C_WF_REPORT_PARAMS), CS_VERBOSE); rv 1118 drivers/block/drbd/drbd_receiver.c if (rv < SS_SUCCESS || connection->cstate != C_WF_REPORT_PARAMS) { rv 1362 drivers/block/drbd/drbd_receiver.c enum finish_epoch rv = FE_STILL_LIVE; rv 1404 drivers/block/drbd/drbd_receiver.c if (rv == FE_STILL_LIVE) rv 1405 drivers/block/drbd/drbd_receiver.c rv = FE_DESTROYED; rv 1410 drivers/block/drbd/drbd_receiver.c if (rv == FE_STILL_LIVE) rv 1411 drivers/block/drbd/drbd_receiver.c rv = FE_RECYCLED; rv 1423 drivers/block/drbd/drbd_receiver.c return rv; rv 1771 drivers/block/drbd/drbd_receiver.c int rv; rv 1780 drivers/block/drbd/drbd_receiver.c rv = drbd_may_finish_epoch(connection, connection->current_epoch, EV_GOT_BARRIER_NR); rv 1789 drivers/block/drbd/drbd_receiver.c if (rv == FE_RECYCLED) rv 2345 drivers/block/drbd/drbd_receiver.c bool rv = false; rv 2351 drivers/block/drbd/drbd_receiver.c rv = true; rv 2357 drivers/block/drbd/drbd_receiver.c return rv; rv 3054 drivers/block/drbd/drbd_receiver.c int self, peer, rv = -100; rv 3078 drivers/block/drbd/drbd_receiver.c rv = -1; rv 3082 drivers/block/drbd/drbd_receiver.c rv = 1; rv 3088 drivers/block/drbd/drbd_receiver.c rv = 1; rv 3092 drivers/block/drbd/drbd_receiver.c rv = -1; rv 3101 drivers/block/drbd/drbd_receiver.c rv = test_bit(RESOLVE_CONFLICTS, &peer_device->connection->flags) rv 3105 drivers/block/drbd/drbd_receiver.c if (ch_peer == 0) { rv = 1; break; } rv 3106 drivers/block/drbd/drbd_receiver.c if (ch_self == 0) { rv = -1; break; } rv 3113 drivers/block/drbd/drbd_receiver.c rv = -1; rv 3115 drivers/block/drbd/drbd_receiver.c rv = 1; rv 3118 drivers/block/drbd/drbd_receiver.c rv = test_bit(RESOLVE_CONFLICTS, &peer_device->connection->flags) rv 3122 drivers/block/drbd/drbd_receiver.c rv = -1; rv 3125 drivers/block/drbd/drbd_receiver.c rv = 1; rv 3128 drivers/block/drbd/drbd_receiver.c return rv; rv 3137 drivers/block/drbd/drbd_receiver.c int hg, rv = -100; rv 3157 drivers/block/drbd/drbd_receiver.c rv = hg; rv 3159 drivers/block/drbd/drbd_receiver.c rv = hg; rv 3162 drivers/block/drbd/drbd_receiver.c rv = drbd_asb_recover_0p(peer_device); rv 3179 drivers/block/drbd/drbd_receiver.c rv = hg; rv 3182 drivers/block/drbd/drbd_receiver.c rv = hg; rv 3185 drivers/block/drbd/drbd_receiver.c return rv; rv 3194 drivers/block/drbd/drbd_receiver.c int hg, rv = -100; rv 3212 drivers/block/drbd/drbd_receiver.c rv = drbd_asb_recover_0p(peer_device); rv 3229 drivers/block/drbd/drbd_receiver.c rv = hg; rv 3232 drivers/block/drbd/drbd_receiver.c rv = hg; rv 3235 drivers/block/drbd/drbd_receiver.c return rv; rv 3491 drivers/block/drbd/drbd_receiver.c enum drbd_conns rv = C_MASK; rv 3638 drivers/block/drbd/drbd_receiver.c rv = C_WF_BITMAP_S; rv 3640 drivers/block/drbd/drbd_receiver.c rv = C_WF_BITMAP_T; rv 3642 drivers/block/drbd/drbd_receiver.c rv = C_CONNECTED; rv 3649 drivers/block/drbd/drbd_receiver.c return rv; rv 4389 drivers/block/drbd/drbd_receiver.c enum drbd_state_rv rv; rv 4408 drivers/block/drbd/drbd_receiver.c rv = drbd_change_state(device, CS_VERBOSE, mask, val); rv 4409 drivers/block/drbd/drbd_receiver.c drbd_send_sr_reply(peer_device, rv); rv 4420 drivers/block/drbd/drbd_receiver.c enum drbd_state_rv rv; rv 4434 drivers/block/drbd/drbd_receiver.c rv = conn_request_state(connection, mask, val, CS_VERBOSE | CS_LOCAL_ONLY | CS_IGN_OUTD_FAIL); rv 4435 drivers/block/drbd/drbd_receiver.c conn_send_sr_reply(connection, rv); rv 4448 drivers/block/drbd/drbd_receiver.c int rv; rv 4610 drivers/block/drbd/drbd_receiver.c rv = _drbd_set_state(device, ns, cs_flags, NULL); rv 4614 drivers/block/drbd/drbd_receiver.c if (rv < SS_SUCCESS) { rv 4926 drivers/block/drbd/drbd_receiver.c enum drbd_state_rv rv; rv 4932 drivers/block/drbd/drbd_receiver.c rv = _drbd_request_state(device, NS(conn, C_WF_SYNC_UUID), CS_VERBOSE); rv 4933 drivers/block/drbd/drbd_receiver.c D_ASSERT(device, rv == SS_SUCCESS); rv 5423 drivers/block/drbd/drbd_receiver.c int err, rv; rv 5437 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5442 drivers/block/drbd/drbd_receiver.c rv = crypto_shash_setkey(connection->cram_hmac_tfm, (u8 *)secret, key_len); rv 5443 drivers/block/drbd/drbd_receiver.c if (rv) { rv 5444 drivers/block/drbd/drbd_receiver.c drbd_err(connection, "crypto_shash_setkey() failed with %d\n", rv); rv 5445 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5453 drivers/block/drbd/drbd_receiver.c rv = 0; rv 5456 drivers/block/drbd/drbd_receiver.c rv = !conn_send_command(connection, sock, P_AUTH_CHALLENGE, 0, rv 5458 drivers/block/drbd/drbd_receiver.c if (!rv) rv 5463 drivers/block/drbd/drbd_receiver.c rv = 0; rv 5470 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5476 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5482 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5489 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5495 drivers/block/drbd/drbd_receiver.c rv = 0; rv 5501 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5509 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5513 drivers/block/drbd/drbd_receiver.c rv = crypto_shash_digest(desc, peers_ch, pi.size, response); rv 5514 drivers/block/drbd/drbd_receiver.c if (rv) { rv 5515 drivers/block/drbd/drbd_receiver.c drbd_err(connection, "crypto_hash_digest() failed with %d\n", rv); rv 5516 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5521 drivers/block/drbd/drbd_receiver.c rv = 0; rv 5524 drivers/block/drbd/drbd_receiver.c rv = !conn_send_command(connection, sock, P_AUTH_RESPONSE, 0, rv 5526 drivers/block/drbd/drbd_receiver.c if (!rv) rv 5531 drivers/block/drbd/drbd_receiver.c rv = 0; rv 5538 drivers/block/drbd/drbd_receiver.c rv = 0; rv 5544 drivers/block/drbd/drbd_receiver.c rv = 0; rv 5550 drivers/block/drbd/drbd_receiver.c rv = 0; rv 5557 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5561 drivers/block/drbd/drbd_receiver.c rv = crypto_shash_digest(desc, my_challenge, CHALLENGE_LEN, rv 5563 drivers/block/drbd/drbd_receiver.c if (rv) { rv 5564 drivers/block/drbd/drbd_receiver.c drbd_err(connection, "crypto_hash_digest() failed with %d\n", rv); rv 5565 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5569 drivers/block/drbd/drbd_receiver.c rv = !memcmp(response, right_response, resp_size); rv 5571 drivers/block/drbd/drbd_receiver.c if (rv) rv 5575 drivers/block/drbd/drbd_receiver.c rv = -1; rv 5586 drivers/block/drbd/drbd_receiver.c return rv; rv 6016 drivers/block/drbd/drbd_receiver.c int rv; rv 6024 drivers/block/drbd/drbd_receiver.c rv = sched_setscheduler(current, SCHED_RR, ¶m); rv 6025 drivers/block/drbd/drbd_receiver.c if (rv < 0) rv 6026 drivers/block/drbd/drbd_receiver.c drbd_err(connection, "drbd_ack_receiver: ERROR set priority, ret=%d\n", rv); rv 6043 drivers/block/drbd/drbd_receiver.c rv = drbd_recv_short(connection->meta.socket, buf, expect-received, 0); rv 6055 drivers/block/drbd/drbd_receiver.c if (likely(rv > 0)) { rv 6056 drivers/block/drbd/drbd_receiver.c received += rv; rv 6057 drivers/block/drbd/drbd_receiver.c buf += rv; rv 6058 drivers/block/drbd/drbd_receiver.c } else if (rv == 0) { rv 6073 drivers/block/drbd/drbd_receiver.c } else if (rv == -EAGAIN) { rv 6084 drivers/block/drbd/drbd_receiver.c } else if (rv == -EINTR) { rv 6091 drivers/block/drbd/drbd_receiver.c drbd_err(connection, "sock_recvmsg returned %d\n", rv); rv 572 drivers/block/drbd/drbd_req.c int p, rv = 0; rv 822 drivers/block/drbd/drbd_req.c rv = MR_READ; rv 824 drivers/block/drbd/drbd_req.c rv = MR_WRITE; rv 853 drivers/block/drbd/drbd_req.c rv = req->rq_state & RQ_WRITE ? MR_WRITE : MR_READ; rv 889 drivers/block/drbd/drbd_req.c return rv; rv 301 drivers/block/drbd/drbd_req.h int rv; rv 304 drivers/block/drbd/drbd_req.h rv = __req_mod(req, what, &m); rv 308 drivers/block/drbd/drbd_req.h return rv; rv 321 drivers/block/drbd/drbd_req.h int rv; rv 324 drivers/block/drbd/drbd_req.h rv = __req_mod(req, what, &m); rv 330 drivers/block/drbd/drbd_req.h return rv; rv 297 drivers/block/drbd/drbd_state.c bool rv = true; rv 306 drivers/block/drbd/drbd_state.c rv = false; rv 312 drivers/block/drbd/drbd_state.c return rv; rv 435 drivers/block/drbd/drbd_state.c bool rv = true; rv 440 drivers/block/drbd/drbd_state.c rv = false; rv 445 drivers/block/drbd/drbd_state.c return rv; rv 494 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv; rv 498 drivers/block/drbd/drbd_state.c rv = _drbd_set_state(device, ns, f, NULL); rv 501 drivers/block/drbd/drbd_state.c return rv; rv 522 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv; rv 533 drivers/block/drbd/drbd_state.c rv = is_valid_transition(os, ns); rv 534 drivers/block/drbd/drbd_state.c if (rv >= SS_SUCCESS) rv 535 drivers/block/drbd/drbd_state.c rv = SS_UNKNOWN_ERROR; /* cont waiting, otherwise fail. */ rv 538 drivers/block/drbd/drbd_state.c rv = SS_CW_NO_NEED; rv 539 drivers/block/drbd/drbd_state.c if (rv == SS_UNKNOWN_ERROR) { rv 540 drivers/block/drbd/drbd_state.c rv = is_valid_state(device, ns); rv 541 drivers/block/drbd/drbd_state.c if (rv >= SS_SUCCESS) { rv 542 drivers/block/drbd/drbd_state.c rv = is_valid_soft_transition(os, ns, first_peer_device(device)->connection); rv 543 drivers/block/drbd/drbd_state.c if (rv >= SS_SUCCESS) rv 544 drivers/block/drbd/drbd_state.c rv = SS_UNKNOWN_ERROR; /* cont waiting, otherwise fail. */ rv 549 drivers/block/drbd/drbd_state.c return rv; rv 569 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv; rv 582 drivers/block/drbd/drbd_state.c rv = is_valid_transition(os, ns); rv 583 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) { rv 589 drivers/block/drbd/drbd_state.c rv = is_valid_state(device, ns); rv 590 drivers/block/drbd/drbd_state.c if (rv == SS_SUCCESS) rv 591 drivers/block/drbd/drbd_state.c rv = is_valid_soft_transition(os, ns, first_peer_device(device)->connection); rv 594 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) { rv 596 drivers/block/drbd/drbd_state.c print_st_err(device, os, ns, rv); rv 601 drivers/block/drbd/drbd_state.c rv = SS_CW_FAILED_BY_PEER; rv 603 drivers/block/drbd/drbd_state.c print_st_err(device, os, ns, rv); rv 608 drivers/block/drbd/drbd_state.c (rv = _req_st_cond(device, mask, val))); rv 610 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) { rv 612 drivers/block/drbd/drbd_state.c print_st_err(device, os, ns, rv); rv 617 drivers/block/drbd/drbd_state.c rv = _drbd_set_state(device, ns, f, &done); rv 619 drivers/block/drbd/drbd_state.c rv = _drbd_set_state(device, ns, f, &done); rv 624 drivers/block/drbd/drbd_state.c if (f & CS_WAIT_COMPLETE && rv == SS_SUCCESS) { rv 635 drivers/block/drbd/drbd_state.c return rv; rv 652 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv; rv 655 drivers/block/drbd/drbd_state.c (rv = drbd_req_state(device, mask, val, f)) != SS_IN_TRANSIENT_STATE); rv 657 drivers/block/drbd/drbd_state.c return rv; rv 681 drivers/block/drbd/drbd_state.c int ret, rv; rv 685 drivers/block/drbd/drbd_state.c (rv = request_detach(device)) != SS_IN_TRANSIENT_STATE); rv 691 drivers/block/drbd/drbd_state.c if (rv == SS_IS_DISKLESS) rv 692 drivers/block/drbd/drbd_state.c rv = SS_NOTHING_TO_DO; rv 694 drivers/block/drbd/drbd_state.c rv = ERR_INTR; rv 696 drivers/block/drbd/drbd_state.c return rv; rv 703 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv; rv 708 drivers/block/drbd/drbd_state.c (rv = drbd_req_state(device, mask, val, f)) != SS_IN_TRANSIENT_STATE, rv 712 drivers/block/drbd/drbd_state.c return rv; rv 828 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv = SS_SUCCESS; rv 842 drivers/block/drbd/drbd_state.c rv = SS_TWO_PRIMARIES; rv 844 drivers/block/drbd/drbd_state.c rv = SS_O_VOL_PEER_PRI; rv 848 drivers/block/drbd/drbd_state.c if (rv <= 0) rv 851 drivers/block/drbd/drbd_state.c rv = SS_DEVICE_IN_USE; rv 854 drivers/block/drbd/drbd_state.c rv = SS_NO_UP_TO_DATE_DISK; rv 858 drivers/block/drbd/drbd_state.c rv = SS_PRIMARY_NOP; rv 861 drivers/block/drbd/drbd_state.c rv = SS_NO_UP_TO_DATE_DISK; rv 864 drivers/block/drbd/drbd_state.c rv = SS_NO_LOCAL_DISK; rv 867 drivers/block/drbd/drbd_state.c rv = SS_NO_REMOTE_DISK; rv 870 drivers/block/drbd/drbd_state.c rv = SS_NO_UP_TO_DATE_DISK; rv 877 drivers/block/drbd/drbd_state.c rv = SS_CONNECTED_OUTDATES; rv 881 drivers/block/drbd/drbd_state.c rv = SS_NO_VERIFY_ALG; rv 885 drivers/block/drbd/drbd_state.c rv = SS_NOT_SUPPORTED; rv 888 drivers/block/drbd/drbd_state.c rv = SS_NO_UP_TO_DATE_DISK; rv 892 drivers/block/drbd/drbd_state.c rv = SS_NEED_CONNECTION; rv 895 drivers/block/drbd/drbd_state.c rv = SS_CONNECTED_OUTDATES; rv 900 drivers/block/drbd/drbd_state.c return rv; rv 914 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv = SS_SUCCESS; rv 918 drivers/block/drbd/drbd_state.c rv = SS_RESYNC_RUNNING; rv 921 drivers/block/drbd/drbd_state.c rv = SS_ALREADY_STANDALONE; rv 924 drivers/block/drbd/drbd_state.c rv = SS_IS_DISKLESS; rv 927 drivers/block/drbd/drbd_state.c rv = SS_NO_NET_CONFIG; rv 930 drivers/block/drbd/drbd_state.c rv = SS_LOWER_THAN_OUTDATED; rv 933 drivers/block/drbd/drbd_state.c rv = SS_IN_TRANSIENT_STATE; rv 940 drivers/block/drbd/drbd_state.c rv = SS_IN_TRANSIENT_STATE; rv 949 drivers/block/drbd/drbd_state.c rv = SS_IN_TRANSIENT_STATE; rv 952 drivers/block/drbd/drbd_state.c rv = SS_NEED_CONNECTION; rv 956 drivers/block/drbd/drbd_state.c rv = SS_RESYNC_RUNNING; rv 960 drivers/block/drbd/drbd_state.c rv = SS_NEED_CONNECTION; rv 964 drivers/block/drbd/drbd_state.c rv = SS_NEED_CONNECTION; /* No NetworkFailure -> SyncTarget etc... */ rv 968 drivers/block/drbd/drbd_state.c rv = SS_OUTDATE_WO_CONN; rv 970 drivers/block/drbd/drbd_state.c return rv; rv 1016 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv; rv 1018 drivers/block/drbd/drbd_state.c rv = is_valid_conn_transition(os.conn, ns.conn); rv 1022 drivers/block/drbd/drbd_state.c rv = SS_IS_DISKLESS; rv 1024 drivers/block/drbd/drbd_state.c return rv; rv 1267 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv = SS_SUCCESS; rv 1278 drivers/block/drbd/drbd_state.c rv = is_valid_transition(os, ns); rv 1279 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) rv 1280 drivers/block/drbd/drbd_state.c return rv; rv 1286 drivers/block/drbd/drbd_state.c rv = is_valid_state(device, ns); rv 1287 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) { rv 1291 drivers/block/drbd/drbd_state.c if (is_valid_state(device, os) == rv) rv 1292 drivers/block/drbd/drbd_state.c rv = is_valid_soft_transition(os, ns, connection); rv 1294 drivers/block/drbd/drbd_state.c rv = is_valid_soft_transition(os, ns, connection); rv 1297 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) { rv 1299 drivers/block/drbd/drbd_state.c print_st_err(device, os, ns, rv); rv 1300 drivers/block/drbd/drbd_state.c return rv; rv 1484 drivers/block/drbd/drbd_state.c return rv; rv 1502 drivers/block/drbd/drbd_state.c static void abw_start_sync(struct drbd_device *device, int rv) rv 1504 drivers/block/drbd/drbd_state.c if (rv) { rv 1524 drivers/block/drbd/drbd_state.c int rv; rv 1532 drivers/block/drbd/drbd_state.c rv = io_fn(device); rv 1537 drivers/block/drbd/drbd_state.c return rv; rv 2154 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv = SS_SUCCESS; rv 2171 drivers/block/drbd/drbd_state.c rv = is_valid_transition(os, ns); rv 2173 drivers/block/drbd/drbd_state.c if (rv >= SS_SUCCESS && !(flags & CS_HARD)) { rv 2174 drivers/block/drbd/drbd_state.c rv = is_valid_state(device, ns); rv 2175 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) { rv 2176 drivers/block/drbd/drbd_state.c if (is_valid_state(device, os) == rv) rv 2177 drivers/block/drbd/drbd_state.c rv = is_valid_soft_transition(os, ns, connection); rv 2179 drivers/block/drbd/drbd_state.c rv = is_valid_soft_transition(os, ns, connection); rv 2182 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) { rv 2184 drivers/block/drbd/drbd_state.c print_st_err(device, os, ns, rv); rv 2190 drivers/block/drbd/drbd_state.c return rv; rv 2206 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv; rv 2230 drivers/block/drbd/drbd_state.c rv = _drbd_set_state(device, ns, flags, NULL); rv 2231 drivers/block/drbd/drbd_state.c BUG_ON(rv < SS_SUCCESS); rv 2268 drivers/block/drbd/drbd_state.c enum drbd_state_rv err, rv = SS_UNKNOWN_ERROR; /* continue waiting */; rv 2271 drivers/block/drbd/drbd_state.c rv = SS_CW_SUCCESS; rv 2274 drivers/block/drbd/drbd_state.c rv = SS_CW_FAILED_BY_PEER; rv 2278 drivers/block/drbd/drbd_state.c return rv; rv 2287 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv = SS_SUCCESS; rv 2295 drivers/block/drbd/drbd_state.c rv = is_valid_conn_transition(oc, val.conn); rv 2296 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) rv 2300 drivers/block/drbd/drbd_state.c rv = conn_is_valid_transition(connection, mask, val, flags); rv 2301 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) rv 2318 drivers/block/drbd/drbd_state.c rv = SS_CW_FAILED_BY_PEER; rv 2331 drivers/block/drbd/drbd_state.c (rv = _conn_rq_cond(connection, mask, val)), rv 2334 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS) rv 2369 drivers/block/drbd/drbd_state.c if (rv < SS_SUCCESS && flags & CS_VERBOSE) { rv 2370 drivers/block/drbd/drbd_state.c drbd_err(connection, "State change failed: %s\n", drbd_set_st_err_str(rv)); rv 2374 drivers/block/drbd/drbd_state.c return rv; rv 2381 drivers/block/drbd/drbd_state.c enum drbd_state_rv rv; rv 2384 drivers/block/drbd/drbd_state.c rv = _conn_request_state(connection, mask, val, flags); rv 2387 drivers/block/drbd/drbd_state.c return rv; rv 448 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 454 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 463 drivers/block/mtip32xx/mtip32xx.c return rv; rv 508 drivers/block/mtip32xx/mtip32xx.c int group, tag, bit, reissue, rv; rv 566 drivers/block/mtip32xx/mtip32xx.c rv = mtip_read_log_page(dd->port, ATA_LOG_SATA_NCQ, rv 569 drivers/block/mtip32xx/mtip32xx.c if (rv) { rv 743 drivers/block/mtip32xx/mtip32xx.c int rv = IRQ_NONE; rv 749 drivers/block/mtip32xx/mtip32xx.c rv = IRQ_HANDLED; rv 804 drivers/block/mtip32xx/mtip32xx.c return rv; rv 817 drivers/block/mtip32xx/mtip32xx.c return rv; rv 974 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 1022 drivers/block/mtip32xx/mtip32xx.c rv = -EIO; rv 1030 drivers/block/mtip32xx/mtip32xx.c rv = -ENXIO; rv 1034 drivers/block/mtip32xx/mtip32xx.c rv = -EAGAIN; rv 1040 drivers/block/mtip32xx/mtip32xx.c rv = -ENXIO; rv 1043 drivers/block/mtip32xx/mtip32xx.c rv = -EAGAIN; rv 1050 drivers/block/mtip32xx/mtip32xx.c if (rv >= 0 && mtip_pause_ncq(port, fis)) { rv 1052 drivers/block/mtip32xx/mtip32xx.c return rv; rv 1056 drivers/block/mtip32xx/mtip32xx.c return rv; rv 1131 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 1158 drivers/block/mtip32xx/mtip32xx.c rv = -1; rv 1193 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 1199 drivers/block/mtip32xx/mtip32xx.c return rv; rv 1213 drivers/block/mtip32xx/mtip32xx.c int rv; rv 1227 drivers/block/mtip32xx/mtip32xx.c rv = mtip_exec_internal_command(port, rv 1236 drivers/block/mtip32xx/mtip32xx.c if (rv) rv 1240 drivers/block/mtip32xx/mtip32xx.c return rv; rv 1329 drivers/block/mtip32xx/mtip32xx.c int rv, i; rv 1349 drivers/block/mtip32xx/mtip32xx.c rv = mtip_get_smart_data(port, port->smart_buf, port->smart_buf_dma); rv 1350 drivers/block/mtip32xx/mtip32xx.c if (rv) { rv 1352 drivers/block/mtip32xx/mtip32xx.c return rv; rv 1365 drivers/block/mtip32xx/mtip32xx.c rv = -EINVAL; rv 1368 drivers/block/mtip32xx/mtip32xx.c return rv; rv 1563 drivers/block/mtip32xx/mtip32xx.c int rv = 0, xfer_sz = command[3]; rv 1620 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 1641 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 1649 drivers/block/mtip32xx/mtip32xx.c return rv; rv 1667 drivers/block/mtip32xx/mtip32xx.c unsigned int rv = 0; rv 1679 drivers/block/mtip32xx/mtip32xx.c rv = 1; rv 1683 drivers/block/mtip32xx/mtip32xx.c rv = 1; rv 1688 drivers/block/mtip32xx/mtip32xx.c rv = 1; rv 1693 drivers/block/mtip32xx/mtip32xx.c rv = 1; rv 1696 drivers/block/mtip32xx/mtip32xx.c return rv; rv 2243 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 2260 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 2263 drivers/block/mtip32xx/mtip32xx.c return rv ? rv : *offset; rv 2273 drivers/block/mtip32xx/mtip32xx.c int n, rv = 0; rv 2327 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 2330 drivers/block/mtip32xx/mtip32xx.c return rv ? rv : *offset; rv 2339 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 2359 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 2362 drivers/block/mtip32xx/mtip32xx.c return rv ? rv : *offset; rv 2808 drivers/block/mtip32xx/mtip32xx.c int rv; rv 2821 drivers/block/mtip32xx/mtip32xx.c rv = mtip_read_log_page(dd->port, ATA_LOG_SATA_NCQ, rv 2824 drivers/block/mtip32xx/mtip32xx.c if (rv) { rv 2857 drivers/block/mtip32xx/mtip32xx.c return rv; rv 2871 drivers/block/mtip32xx/mtip32xx.c int rv; rv 2878 drivers/block/mtip32xx/mtip32xx.c rv = -EIO; rv 2913 drivers/block/mtip32xx/mtip32xx.c rv = mtip_dma_alloc(dd); rv 2914 drivers/block/mtip32xx/mtip32xx.c if (rv < 0) rv 2938 drivers/block/mtip32xx/mtip32xx.c rv = -ENODEV; rv 2946 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 2955 drivers/block/mtip32xx/mtip32xx.c rv = -EIO; rv 2968 drivers/block/mtip32xx/mtip32xx.c rv = request_irq(dd->pdev->irq, mtip_irq_handler, IRQF_SHARED, rv 2970 drivers/block/mtip32xx/mtip32xx.c if (rv) { rv 2984 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 2988 drivers/block/mtip32xx/mtip32xx.c return rv; rv 3007 drivers/block/mtip32xx/mtip32xx.c return rv; rv 3012 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 3023 drivers/block/mtip32xx/mtip32xx.c rv = mtip_standby_immediate(dd->port); rv 3024 drivers/block/mtip32xx/mtip32xx.c if (rv) rv 3028 drivers/block/mtip32xx/mtip32xx.c return rv; rv 3578 drivers/block/mtip32xx/mtip32xx.c int rv = 0, wait_for_rebuild = 0; rv 3587 drivers/block/mtip32xx/mtip32xx.c rv = -EINVAL; rv 3595 drivers/block/mtip32xx/mtip32xx.c rv = -EINVAL; rv 3599 drivers/block/mtip32xx/mtip32xx.c rv = ida_alloc(&rssd_index_ida, GFP_KERNEL); rv 3600 drivers/block/mtip32xx/mtip32xx.c if (rv < 0) rv 3602 drivers/block/mtip32xx/mtip32xx.c index = rv; rv 3604 drivers/block/mtip32xx/mtip32xx.c rv = rssd_disk_name_format("rssd", rv 3608 drivers/block/mtip32xx/mtip32xx.c if (rv) rv 3631 drivers/block/mtip32xx/mtip32xx.c rv = blk_mq_alloc_tag_set(&dd->tags); rv 3632 drivers/block/mtip32xx/mtip32xx.c if (rv) { rv 3643 drivers/block/mtip32xx/mtip32xx.c rv = -ENOMEM; rv 3656 drivers/block/mtip32xx/mtip32xx.c rv = -EINVAL; rv 3681 drivers/block/mtip32xx/mtip32xx.c rv = -EIO; rv 3702 drivers/block/mtip32xx/mtip32xx.c return rv; /* service thread created for handling rebuild */ rv 3713 drivers/block/mtip32xx/mtip32xx.c rv = -EFAULT; rv 3718 drivers/block/mtip32xx/mtip32xx.c rv = wait_for_rebuild; rv 3720 drivers/block/mtip32xx/mtip32xx.c return rv; rv 3746 drivers/block/mtip32xx/mtip32xx.c return rv; rv 3999 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 4030 drivers/block/mtip32xx/mtip32xx.c rv = pcim_enable_device(pdev); rv 4031 drivers/block/mtip32xx/mtip32xx.c if (rv < 0) { rv 4037 drivers/block/mtip32xx/mtip32xx.c rv = pcim_iomap_regions(pdev, 1 << MTIP_ABAR, MTIP_DRV_NAME); rv 4038 drivers/block/mtip32xx/mtip32xx.c if (rv < 0) { rv 4043 drivers/block/mtip32xx/mtip32xx.c rv = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); rv 4044 drivers/block/mtip32xx/mtip32xx.c if (rv) { rv 4064 drivers/block/mtip32xx/mtip32xx.c rv = -ENOMEM; rv 4123 drivers/block/mtip32xx/mtip32xx.c rv = pci_enable_msi(pdev); rv 4124 drivers/block/mtip32xx/mtip32xx.c if (rv) { rv 4133 drivers/block/mtip32xx/mtip32xx.c rv = mtip_block_initialize(dd); rv 4134 drivers/block/mtip32xx/mtip32xx.c if (rv < 0) { rv 4145 drivers/block/mtip32xx/mtip32xx.c if (rv != MTIP_FTL_REBUILD_MAGIC) rv 4148 drivers/block/mtip32xx/mtip32xx.c rv = 0; /* device in rebuild state, return 0 from probe */ rv 4174 drivers/block/mtip32xx/mtip32xx.c return rv; rv 4176 drivers/block/mtip32xx/mtip32xx.c return rv; rv 4251 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 4263 drivers/block/mtip32xx/mtip32xx.c rv = mtip_block_suspend(dd); rv 4264 drivers/block/mtip32xx/mtip32xx.c if (rv < 0) { rv 4267 drivers/block/mtip32xx/mtip32xx.c return rv; rv 4280 drivers/block/mtip32xx/mtip32xx.c return rv; rv 4292 drivers/block/mtip32xx/mtip32xx.c int rv = 0; rv 4309 drivers/block/mtip32xx/mtip32xx.c rv = pcim_enable_device(pdev); rv 4310 drivers/block/mtip32xx/mtip32xx.c if (rv < 0) { rv 4321 drivers/block/mtip32xx/mtip32xx.c rv = mtip_block_resume(dd); rv 4322 drivers/block/mtip32xx/mtip32xx.c if (rv < 0) rv 4328 drivers/block/mtip32xx/mtip32xx.c return rv; rv 1635 drivers/block/null_blk_main.c int rv; rv 1641 drivers/block/null_blk_main.c rv = -ENOMEM; rv 1649 drivers/block/null_blk_main.c rv = setup_queues(nullb); rv 1650 drivers/block/null_blk_main.c if (rv) rv 1656 drivers/block/null_blk_main.c rv = 0; rv 1659 drivers/block/null_blk_main.c rv = null_init_tag_set(nullb, nullb->tag_set); rv 1662 drivers/block/null_blk_main.c if (rv) rv 1671 drivers/block/null_blk_main.c rv = -ENOMEM; rv 1678 drivers/block/null_blk_main.c rv = -ENOMEM; rv 1682 drivers/block/null_blk_main.c rv = init_driver_queues(nullb); rv 1683 drivers/block/null_blk_main.c if (rv) rv 1698 drivers/block/null_blk_main.c rv = null_zone_init(dev); rv 1699 drivers/block/null_blk_main.c if (rv) rv 1725 drivers/block/null_blk_main.c rv = null_gendisk_register(nullb); rv 1726 drivers/block/null_blk_main.c if (rv) rv 1748 drivers/block/null_blk_main.c return rv; rv 286 drivers/block/paride/kbic.c int rv; rv 288 drivers/block/paride/kbic.c rv = paride_register(&k951); rv 289 drivers/block/paride/kbic.c if (rv < 0) rv 290 drivers/block/paride/kbic.c return rv; rv 291 drivers/block/paride/kbic.c rv = paride_register(&k971); rv 292 drivers/block/paride/kbic.c if (rv < 0) rv 294 drivers/block/paride/kbic.c return rv; rv 620 drivers/char/ipmi/ipmi_bt_sm.c int rv; rv 636 drivers/char/ipmi/ipmi_bt_sm.c rv = bt_start_transaction(bt, GetBT_CAP, sizeof(GetBT_CAP)); rv 637 drivers/char/ipmi/ipmi_bt_sm.c if (rv) { rv 639 drivers/char/ipmi/ipmi_bt_sm.c "Can't start capabilities transaction: %d\n", rv); rv 655 drivers/char/ipmi/ipmi_bt_sm.c rv = bt_get_result(bt, BT_CAP, sizeof(BT_CAP)); rv 657 drivers/char/ipmi/ipmi_bt_sm.c if (rv < 8) { rv 658 drivers/char/ipmi/ipmi_bt_sm.c dev_warn(bt->io->dev, "bt cap response too short: %d\n", rv); rv 90 drivers/char/ipmi/ipmi_devintf.c int rv; rv 97 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_create_user(if_num, rv 101 drivers/char/ipmi/ipmi_devintf.c if (rv) { rv 119 drivers/char/ipmi/ipmi_devintf.c return rv; rv 125 drivers/char/ipmi/ipmi_devintf.c int rv; rv 128 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_destroy_user(priv->user); rv 129 drivers/char/ipmi/ipmi_devintf.c if (rv) rv 130 drivers/char/ipmi/ipmi_devintf.c return rv; rv 145 drivers/char/ipmi/ipmi_devintf.c int rv; rv 165 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_validate_addr(&addr, req->addr_len); rv 166 drivers/char/ipmi/ipmi_devintf.c if (rv) rv 171 drivers/char/ipmi/ipmi_devintf.c rv = -EMSGSIZE; rv 178 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 185 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_request_settime(user, rv 195 drivers/char/ipmi/ipmi_devintf.c return rv; rv 207 drivers/char/ipmi/ipmi_devintf.c int rv = 0, rv2 = 0; rv 223 drivers/char/ipmi/ipmi_devintf.c rv = -EAGAIN; rv 233 drivers/char/ipmi/ipmi_devintf.c rv = -EINVAL; rv 238 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 260 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 268 drivers/char/ipmi/ipmi_devintf.c rv = copyout(rsp, to); rv 269 drivers/char/ipmi/ipmi_devintf.c if (rv) rv 284 drivers/char/ipmi/ipmi_devintf.c return rv; rv 296 drivers/char/ipmi/ipmi_devintf.c int rv = -EINVAL; rv 309 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 318 drivers/char/ipmi/ipmi_devintf.c rv = handle_send_req(priv->user, &req, retries, retry_time_ms); rv 327 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 331 drivers/char/ipmi/ipmi_devintf.c rv = handle_send_req(priv->user, rv 344 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 346 drivers/char/ipmi/ipmi_devintf.c rv = handle_recv(priv, cmd == IPMICTL_RECEIVE_MSG_TRUNC, rv 356 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 360 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_register_for_cmd(priv->user, val.netfn, val.cmd, rv 370 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 374 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_unregister_for_cmd(priv->user, val.netfn, val.cmd, rv 384 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 388 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_register_for_cmd(priv->user, val.netfn, val.cmd, rv 398 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 402 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_unregister_for_cmd(priv->user, val.netfn, val.cmd, rv 412 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 416 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_set_gets_events(priv->user, val); rv 426 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 430 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_set_my_address(priv->user, 0, val); rv 439 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_get_my_address(priv->user, 0, &rval); rv 440 drivers/char/ipmi/ipmi_devintf.c if (rv) rv 446 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 457 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 461 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_set_my_LUN(priv->user, 0, val); rv 470 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_get_my_LUN(priv->user, 0, &rval); rv 471 drivers/char/ipmi/ipmi_devintf.c if (rv) rv 477 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 488 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 501 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 505 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_get_my_address(priv->user, val.channel, &val.value); rv 506 drivers/char/ipmi/ipmi_devintf.c if (rv) rv 510 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 521 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 525 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_set_my_LUN(priv->user, val.channel, val.value); rv 534 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 538 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_get_my_LUN(priv->user, val.channel, &val.value); rv 539 drivers/char/ipmi/ipmi_devintf.c if (rv) rv 543 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 554 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 562 drivers/char/ipmi/ipmi_devintf.c rv = 0; rv 576 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 580 drivers/char/ipmi/ipmi_devintf.c rv = 0; rv 590 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 593 drivers/char/ipmi/ipmi_devintf.c rv = 0; rv 602 drivers/char/ipmi/ipmi_devintf.c rv = -EFAULT; rv 605 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_set_maintenance_mode(priv->user, mode); rv 610 drivers/char/ipmi/ipmi_devintf.c rv = -ENOTTY; rv 614 drivers/char/ipmi/ipmi_devintf.c return rv; rv 855 drivers/char/ipmi/ipmi_devintf.c int rv; rv 868 drivers/char/ipmi/ipmi_devintf.c rv = register_chrdev(ipmi_major, DEVICE_NAME, &ipmi_fops); rv 869 drivers/char/ipmi/ipmi_devintf.c if (rv < 0) { rv 872 drivers/char/ipmi/ipmi_devintf.c return rv; rv 876 drivers/char/ipmi/ipmi_devintf.c ipmi_major = rv; rv 879 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_smi_watcher_register(&smi_watcher); rv 880 drivers/char/ipmi/ipmi_devintf.c if (rv) { rv 884 drivers/char/ipmi/ipmi_devintf.c return rv; rv 748 drivers/char/ipmi/ipmi_msghandler.c int index, rv; rv 754 drivers/char/ipmi/ipmi_msghandler.c rv = ipmi_init_msghandler(); rv 755 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 756 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 898 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 906 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 926 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 930 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1024 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 1057 drivers/char/ipmi/ipmi_msghandler.c rv = -EAGAIN; rv 1060 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1078 drivers/char/ipmi/ipmi_msghandler.c int rv = -ENODEV; rv 1094 drivers/char/ipmi/ipmi_msghandler.c rv = 0; rv 1099 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1107 drivers/char/ipmi/ipmi_msghandler.c int rv = -ENODEV; rv 1124 drivers/char/ipmi/ipmi_msghandler.c rv = 0; rv 1128 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1136 drivers/char/ipmi/ipmi_msghandler.c int rv = -ENODEV; rv 1157 drivers/char/ipmi/ipmi_msghandler.c rv = 0; rv 1164 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1183 drivers/char/ipmi/ipmi_msghandler.c int rv, index; rv 1201 drivers/char/ipmi/ipmi_msghandler.c rv = ipmi_init_msghandler(); rv 1202 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 1203 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1215 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 1221 drivers/char/ipmi/ipmi_msghandler.c rv = init_srcu_struct(&new_user->release_barrier); rv 1222 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 1226 drivers/char/ipmi/ipmi_msghandler.c rv = -ENODEV; rv 1253 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1259 drivers/char/ipmi/ipmi_msghandler.c int rv, index; rv 1274 drivers/char/ipmi/ipmi_msghandler.c rv = -ENOTTY; rv 1276 drivers/char/ipmi/ipmi_msghandler.c rv = intf->handlers->get_smi_info(intf->send_info, data); rv 1279 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1377 drivers/char/ipmi/ipmi_msghandler.c int rv, index; rv 1383 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(user->intf, NULL, &id, NULL, NULL); rv 1384 drivers/char/ipmi/ipmi_msghandler.c if (!rv) { rv 1390 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1398 drivers/char/ipmi/ipmi_msghandler.c int index, rv = 0; rv 1405 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 1412 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1420 drivers/char/ipmi/ipmi_msghandler.c int index, rv = 0; rv 1427 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 1434 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1442 drivers/char/ipmi/ipmi_msghandler.c int index, rv = 0; rv 1449 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 1456 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1464 drivers/char/ipmi/ipmi_msghandler.c int index, rv = 0; rv 1471 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 1478 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1509 drivers/char/ipmi/ipmi_msghandler.c int rv = 0, index; rv 1534 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 1545 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1651 drivers/char/ipmi/ipmi_msghandler.c int rv = 0, index; rv 1659 drivers/char/ipmi/ipmi_msghandler.c rv = -ENOMEM; rv 1670 drivers/char/ipmi/ipmi_msghandler.c rv = -EBUSY; rv 1680 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 1685 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1697 drivers/char/ipmi/ipmi_msghandler.c int i, rv = -ENOENT, index; rv 1711 drivers/char/ipmi/ipmi_msghandler.c rv = 0; rv 1730 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 1950 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 2025 drivers/char/ipmi/ipmi_msghandler.c rv = intf_next_seq(intf, rv 2032 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2072 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2089 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 2144 drivers/char/ipmi/ipmi_msghandler.c rv = intf_next_seq(intf, rv 2151 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2190 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2215 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 2222 drivers/char/ipmi/ipmi_msghandler.c rv = -ENOMEM; rv 2235 drivers/char/ipmi/ipmi_msghandler.c rv = -ENOMEM; rv 2242 drivers/char/ipmi/ipmi_msghandler.c rv = -ENODEV; rv 2258 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_req_sysintf(intf, addr, msgid, msg, smi_msg, rv 2261 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_req_ipmb(intf, addr, msgid, msg, smi_msg, recv_msg, rv 2265 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_req_lan(intf, addr, msgid, msg, smi_msg, recv_msg, rv 2270 drivers/char/ipmi/ipmi_msghandler.c rv = -EINVAL; rv 2273 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 2285 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2311 drivers/char/ipmi/ipmi_msghandler.c int rv, index; rv 2320 drivers/char/ipmi/ipmi_msghandler.c rv = check_addr(user->intf, addr, &saddr, &lun); rv 2321 drivers/char/ipmi/ipmi_msghandler.c if (!rv) rv 2322 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_request(user, rv 2336 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2350 drivers/char/ipmi/ipmi_msghandler.c int rv, index; rv 2359 drivers/char/ipmi/ipmi_msghandler.c rv = check_addr(user->intf, addr, &saddr, &lun); rv 2360 drivers/char/ipmi/ipmi_msghandler.c if (!rv) rv 2361 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_request(user, rv 2375 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2382 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2393 drivers/char/ipmi/ipmi_msghandler.c rv = ipmi_demangle_device_id(msg->msg.netfn, msg->msg.cmd, rv 2395 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 2396 drivers/char/ipmi/ipmi_msghandler.c dev_warn(intf->si_dev, "device id demangle failed: %d\n", rv); rv 2441 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2447 drivers/char/ipmi/ipmi_msghandler.c rv = send_get_device_id_cmd(intf); rv 2448 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2449 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2454 drivers/char/ipmi/ipmi_msghandler.c rv = -EIO; /* Something went wrong in the fetch. */ rv 2461 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2477 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 2516 drivers/char/ipmi/ipmi_msghandler.c rv = __get_device_id(intf, bmc); rv 2517 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2572 drivers/char/ipmi/ipmi_msghandler.c if (rv && prev_dyn_id_set) { rv 2573 drivers/char/ipmi/ipmi_msghandler.c rv = 0; /* Ignore failures if we have previous data. */ rv 2576 drivers/char/ipmi/ipmi_msghandler.c if (!rv) { rv 2588 drivers/char/ipmi/ipmi_msghandler.c if (!rv) { rv 2603 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2619 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2621 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2622 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2623 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2635 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2637 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2638 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2639 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2650 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2652 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2653 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2654 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2666 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2668 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2669 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2670 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2683 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2685 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2686 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2687 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2701 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2703 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2704 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2705 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2718 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2720 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2721 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2722 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2734 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2736 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2737 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2738 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2750 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2752 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2753 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2754 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2770 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2772 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, NULL, &guid_set, &guid); rv 2773 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2774 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2802 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2807 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); rv 2808 drivers/char/ipmi/ipmi_msghandler.c return (!rv && id.aux_firmware_revision_set) ? mode : 0; rv 2813 drivers/char/ipmi/ipmi_msghandler.c rv = bmc_get_device_id(NULL, bmc, NULL, &guid_set, NULL); rv 2814 drivers/char/ipmi/ipmi_msghandler.c return (!rv && guid_set) ? mode : 0; rv 2837 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2843 drivers/char/ipmi/ipmi_msghandler.c rv = bmc->dyn_guid_set && guid_equal(&bmc->guid, guid); rv 2844 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2845 drivers/char/ipmi/ipmi_msghandler.c rv = kref_get_unless_zero(&bmc->usecount); rv 2846 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2875 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 2881 drivers/char/ipmi/ipmi_msghandler.c rv = (bmc->id.product_id == cid->product_id rv 2883 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 2884 drivers/char/ipmi/ipmi_msghandler.c rv = kref_get_unless_zero(&bmc->usecount); rv 2885 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 2978 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 3026 drivers/char/ipmi/ipmi_msghandler.c rv = -ENOMEM; rv 3041 drivers/char/ipmi/ipmi_msghandler.c rv = ida_simple_get(&ipmi_bmc_ida, 0, 0, GFP_KERNEL); rv 3042 drivers/char/ipmi/ipmi_msghandler.c if (rv < 0) { rv 3048 drivers/char/ipmi/ipmi_msghandler.c bmc->pdev.id = rv; rv 3058 drivers/char/ipmi/ipmi_msghandler.c rv = platform_device_register(&bmc->pdev); rv 3059 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 3062 drivers/char/ipmi/ipmi_msghandler.c rv); rv 3077 drivers/char/ipmi/ipmi_msghandler.c rv = sysfs_create_link(&intf->si_dev->kobj, &bmc->pdev.dev.kobj, "bmc"); rv 3078 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 3079 drivers/char/ipmi/ipmi_msghandler.c dev_err(intf->si_dev, "Unable to create bmc symlink: %d\n", rv); rv 3087 drivers/char/ipmi/ipmi_msghandler.c rv = -ENOMEM; rv 3089 drivers/char/ipmi/ipmi_msghandler.c rv); rv 3093 drivers/char/ipmi/ipmi_msghandler.c rv = sysfs_create_link(&bmc->pdev.dev.kobj, &intf->si_dev->kobj, rv 3095 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 3099 drivers/char/ipmi/ipmi_msghandler.c rv); rv 3109 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 3201 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 3206 drivers/char/ipmi/ipmi_msghandler.c rv = send_guid_cmd(intf, 0); rv 3207 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 3252 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 3301 drivers/char/ipmi/ipmi_msghandler.c rv = send_channel_info_cmd(intf, intf->curr_channel); rv 3304 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 3308 drivers/char/ipmi/ipmi_msghandler.c intf->curr_channel, rv); rv 3324 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 3342 drivers/char/ipmi/ipmi_msghandler.c rv = send_channel_info_cmd(intf, 0); rv 3343 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 3346 drivers/char/ipmi/ipmi_msghandler.c rv); rv 3398 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 3407 drivers/char/ipmi/ipmi_msghandler.c rv = ipmi_init_msghandler(); rv 3408 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 3409 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 3415 drivers/char/ipmi/ipmi_msghandler.c rv = init_srcu_struct(&intf->users_srcu); rv 3416 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 3418 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 3485 drivers/char/ipmi/ipmi_msghandler.c rv = handlers->start_processing(send_info, intf); rv 3486 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 3489 drivers/char/ipmi/ipmi_msghandler.c rv = __bmc_get_device_id(intf, NULL, &id, NULL, NULL, i); rv 3490 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 3491 drivers/char/ipmi/ipmi_msghandler.c dev_err(si_dev, "Unable to get the device id: %d\n", rv); rv 3496 drivers/char/ipmi/ipmi_msghandler.c rv = __scan_channels(intf, &id); rv 3498 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 3527 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 3695 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 3755 drivers/char/ipmi/ipmi_msghandler.c rv = -1; rv 3766 drivers/char/ipmi/ipmi_msghandler.c rv = 1; rv 3801 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 3875 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 3915 drivers/char/ipmi/ipmi_msghandler.c rv = 0; rv 3923 drivers/char/ipmi/ipmi_msghandler.c rv = 1; rv 3961 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 3974 drivers/char/ipmi/ipmi_msghandler.c int rv = 0; rv 4023 drivers/char/ipmi/ipmi_msghandler.c rv = 0; rv 4032 drivers/char/ipmi/ipmi_msghandler.c rv = 1; rv 4068 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 4095 drivers/char/ipmi/ipmi_msghandler.c int rv = 0, deliver_count = 0, index; rv 4137 drivers/char/ipmi/ipmi_msghandler.c rv = 1; rv 4168 drivers/char/ipmi/ipmi_msghandler.c rv = 1; rv 4188 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 4430 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 4443 drivers/char/ipmi/ipmi_msghandler.c rv = handle_one_recv_msg(intf, smi_msg); rv 4446 drivers/char/ipmi/ipmi_msghandler.c if (rv > 0) { rv 4457 drivers/char/ipmi/ipmi_msghandler.c if (rv == 0) rv 4804 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *rv; rv 4805 drivers/char/ipmi/ipmi_msghandler.c rv = kmalloc(sizeof(struct ipmi_smi_msg), GFP_ATOMIC); rv 4806 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 4807 drivers/char/ipmi/ipmi_msghandler.c rv->done = free_smi_msg; rv 4808 drivers/char/ipmi/ipmi_msghandler.c rv->user_data = NULL; rv 4811 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 4823 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *rv; rv 4825 drivers/char/ipmi/ipmi_msghandler.c rv = kmalloc(sizeof(struct ipmi_recv_msg), GFP_ATOMIC); rv 4826 drivers/char/ipmi/ipmi_msghandler.c if (rv) { rv 4827 drivers/char/ipmi/ipmi_msghandler.c rv->user = NULL; rv 4828 drivers/char/ipmi/ipmi_msghandler.c rv->done = free_recv_msg; rv 4831 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 4863 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 4868 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_request(NULL, rv 4880 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 5122 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 5127 drivers/char/ipmi/ipmi_msghandler.c rv = driver_register(&ipmidriver.driver); rv 5128 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 5132 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 5143 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 5146 drivers/char/ipmi/ipmi_msghandler.c rv = ipmi_register_driver(); rv 5147 drivers/char/ipmi/ipmi_msghandler.c if (rv) rv 5163 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 5168 drivers/char/ipmi/ipmi_msghandler.c int rv; rv 5173 drivers/char/ipmi/ipmi_msghandler.c rv = ipmi_register_driver(); rv 5176 drivers/char/ipmi/ipmi_msghandler.c return rv; rv 19 drivers/char/ipmi/ipmi_plat_data.c int rv; rv 98 drivers/char/ipmi/ipmi_plat_data.c rv = platform_device_add_resources(pdev, r, num_r); rv 99 drivers/char/ipmi/ipmi_plat_data.c if (rv) { rv 101 drivers/char/ipmi/ipmi_plat_data.c "Unable to add hard-code resources: %d\n", rv); rv 105 drivers/char/ipmi/ipmi_plat_data.c rv = platform_device_add_properties(pdev, pr); rv 106 drivers/char/ipmi/ipmi_plat_data.c if (rv) { rv 108 drivers/char/ipmi/ipmi_plat_data.c "Unable to add hard-code properties: %d\n", rv); rv 112 drivers/char/ipmi/ipmi_plat_data.c rv = platform_device_add(pdev); rv 113 drivers/char/ipmi/ipmi_plat_data.c if (rv) { rv 115 drivers/char/ipmi/ipmi_plat_data.c "Unable to add hard-code device: %d\n", rv); rv 52 drivers/char/ipmi/ipmi_poweroff.c int rv = param_set_int(val, kp); rv 53 drivers/char/ipmi/ipmi_poweroff.c if (rv) rv 54 drivers/char/ipmi/ipmi_poweroff.c return rv; rv 126 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 131 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, &comp, rv 133 drivers/char/ipmi/ipmi_poweroff.c if (rv) rv 134 drivers/char/ipmi/ipmi_poweroff.c return rv; rv 146 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 149 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, NULL, rv 151 drivers/char/ipmi/ipmi_poweroff.c if (rv) { rv 153 drivers/char/ipmi/ipmi_poweroff.c return rv; rv 188 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 202 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_in_rc_mode(user, rv 205 drivers/char/ipmi/ipmi_poweroff.c if (rv && rv != IPMI_UNKNOWN_ERR_COMPLETION_CODE) rv 206 drivers/char/ipmi/ipmi_poweroff.c pr_err("Unable to send ATCA, IPMI error 0x%x\n", rv); rv 215 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 233 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_wait_for_response(user, rv 243 drivers/char/ipmi/ipmi_poweroff.c return !rv; rv 250 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 273 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_in_rc_mode(user, rv 282 drivers/char/ipmi/ipmi_poweroff.c if (rv && rv != IPMI_UNKNOWN_ERR_COMPLETION_CODE) { rv 284 drivers/char/ipmi/ipmi_poweroff.c rv); rv 321 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 344 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_in_rc_mode(user, rv 347 drivers/char/ipmi/ipmi_poweroff.c if (rv) rv 359 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_in_rc_mode(user, rv 362 drivers/char/ipmi/ipmi_poweroff.c if (rv) rv 394 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_in_rc_mode(user, rv 397 drivers/char/ipmi/ipmi_poweroff.c if (rv) rv 408 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_in_rc_mode(user, rv 411 drivers/char/ipmi/ipmi_poweroff.c if (rv) rv 472 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 497 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_in_rc_mode(user, rv 500 drivers/char/ipmi/ipmi_poweroff.c if (rv) { rv 504 drivers/char/ipmi/ipmi_poweroff.c rv); rv 510 drivers/char/ipmi/ipmi_poweroff.c rv); rv 560 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 569 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_create_user(if_num, &ipmi_poweroff_handler, NULL, rv 571 drivers/char/ipmi/ipmi_poweroff.c if (rv) { rv 572 drivers/char/ipmi/ipmi_poweroff.c pr_err("could not create IPMI user, error %d\n", rv); rv 590 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_request_wait_for_response(ipmi_user, rv 593 drivers/char/ipmi/ipmi_poweroff.c if (rv) { rv 595 drivers/char/ipmi/ipmi_poweroff.c rv); rv 688 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 699 drivers/char/ipmi/ipmi_poweroff.c rv = -ENOMEM; rv 704 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_smi_watcher_register(&smi_watcher); rv 707 drivers/char/ipmi/ipmi_poweroff.c if (rv) { rv 709 drivers/char/ipmi/ipmi_poweroff.c pr_err("Unable to register SMI watcher: %d\n", rv); rv 715 drivers/char/ipmi/ipmi_poweroff.c return rv; rv 721 drivers/char/ipmi/ipmi_poweroff.c int rv; rv 730 drivers/char/ipmi/ipmi_poweroff.c rv = ipmi_destroy_user(ipmi_user); rv 731 drivers/char/ipmi/ipmi_poweroff.c if (rv) rv 732 drivers/char/ipmi/ipmi_poweroff.c pr_err("could not cleanup the IPMI user: 0x%x\n", rv); rv 108 drivers/char/ipmi/ipmi_si_hotmod.c int rv; rv 112 drivers/char/ipmi/ipmi_si_hotmod.c rv = parse_str(hotmod_ops, &ival, "operation", &curr); rv 113 drivers/char/ipmi/ipmi_si_hotmod.c if (rv) rv 114 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 117 drivers/char/ipmi/ipmi_si_hotmod.c rv = parse_str(hotmod_si, &ival, "interface type", &curr); rv 118 drivers/char/ipmi/ipmi_si_hotmod.c if (rv) rv 119 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 122 drivers/char/ipmi/ipmi_si_hotmod.c rv = parse_str(hotmod_as, &ival, "address space", &curr); rv 123 drivers/char/ipmi/ipmi_si_hotmod.c if (rv) rv 124 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 132 drivers/char/ipmi/ipmi_si_hotmod.c rv = kstrtoul(curr, 0, &h->addr); rv 133 drivers/char/ipmi/ipmi_si_hotmod.c if (rv) { rv 134 drivers/char/ipmi/ipmi_si_hotmod.c pr_warn("Invalid hotmod address '%s': %d\n", curr, rv); rv 135 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 150 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "rsp", &h->regspacing); rv 151 drivers/char/ipmi/ipmi_si_hotmod.c if (rv < 0) rv 152 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 153 drivers/char/ipmi/ipmi_si_hotmod.c else if (rv) rv 155 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "rsi", &h->regsize); rv 156 drivers/char/ipmi/ipmi_si_hotmod.c if (rv < 0) rv 157 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 158 drivers/char/ipmi/ipmi_si_hotmod.c else if (rv) rv 160 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "rsh", &h->regshift); rv 161 drivers/char/ipmi/ipmi_si_hotmod.c if (rv < 0) rv 162 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 163 drivers/char/ipmi/ipmi_si_hotmod.c else if (rv) rv 165 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "irq", &h->irq); rv 166 drivers/char/ipmi/ipmi_si_hotmod.c if (rv < 0) rv 167 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 168 drivers/char/ipmi/ipmi_si_hotmod.c else if (rv) rv 170 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "ipmb", &h->slave_addr); rv 171 drivers/char/ipmi/ipmi_si_hotmod.c if (rv < 0) rv 172 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 173 drivers/char/ipmi/ipmi_si_hotmod.c else if (rv) rv 189 drivers/char/ipmi/ipmi_si_hotmod.c int rv; rv 215 drivers/char/ipmi/ipmi_si_hotmod.c rv = parse_hotmod_str(curr, &op, &h); rv 216 drivers/char/ipmi/ipmi_si_hotmod.c if (rv) rv 238 drivers/char/ipmi/ipmi_si_hotmod.c rv = len; rv 241 drivers/char/ipmi/ipmi_si_hotmod.c return rv; rv 310 drivers/char/ipmi/ipmi_si_intf.c int rv; rv 314 drivers/char/ipmi/ipmi_si_intf.c rv = SI_SM_IDLE; rv 324 drivers/char/ipmi/ipmi_si_intf.c rv = SI_SM_CALL_WITHOUT_DELAY; rv 334 drivers/char/ipmi/ipmi_si_intf.c rv = SI_SM_CALL_WITHOUT_DELAY; rv 337 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 1276 drivers/char/ipmi/ipmi_si_intf.c int rv; rv 1281 drivers/char/ipmi/ipmi_si_intf.c rv = request_irq(io->irq, rv 1286 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 1297 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 1332 drivers/char/ipmi/ipmi_si_intf.c int rv = 0; rv 1346 drivers/char/ipmi/ipmi_si_intf.c rv = wait_for_msg_done(smi_info); rv 1347 drivers/char/ipmi/ipmi_si_intf.c if (rv) rv 1354 drivers/char/ipmi/ipmi_si_intf.c rv = ipmi_demangle_device_id(resp[0] >> 2, resp[1], rv 1359 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 1367 drivers/char/ipmi/ipmi_si_intf.c int rv; rv 1377 drivers/char/ipmi/ipmi_si_intf.c rv = wait_for_msg_done(smi_info); rv 1378 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 1381 drivers/char/ipmi/ipmi_si_intf.c rv); rv 1395 drivers/char/ipmi/ipmi_si_intf.c rv = -EINVAL; rv 1403 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 1414 drivers/char/ipmi/ipmi_si_intf.c int rv; rv 1425 drivers/char/ipmi/ipmi_si_intf.c rv = wait_for_msg_done(smi_info); rv 1426 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 1429 drivers/char/ipmi/ipmi_si_intf.c rv); rv 1442 drivers/char/ipmi/ipmi_si_intf.c rv = -EINVAL; rv 1447 drivers/char/ipmi/ipmi_si_intf.c rv = 1; rv 1451 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 1462 drivers/char/ipmi/ipmi_si_intf.c int rv; rv 1464 drivers/char/ipmi/ipmi_si_intf.c rv = get_global_enables(smi_info, &enables); rv 1465 drivers/char/ipmi/ipmi_si_intf.c if (!rv) { rv 1471 drivers/char/ipmi/ipmi_si_intf.c rv = set_global_enables(smi_info, enables); rv 1474 drivers/char/ipmi/ipmi_si_intf.c if (rv < 0) { rv 1476 drivers/char/ipmi/ipmi_si_intf.c "Cannot check clearing the rcv irq: %d\n", rv); rv 1480 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 1499 drivers/char/ipmi/ipmi_si_intf.c int rv; rv 1504 drivers/char/ipmi/ipmi_si_intf.c rv = get_global_enables(smi_info, &enables); rv 1505 drivers/char/ipmi/ipmi_si_intf.c if (!rv) { rv 1507 drivers/char/ipmi/ipmi_si_intf.c rv = set_global_enables(smi_info, enables); rv 1510 drivers/char/ipmi/ipmi_si_intf.c if (rv < 0) { rv 1512 drivers/char/ipmi/ipmi_si_intf.c "Cannot check setting the rcv irq: %d\n", rv); rv 1516 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 1533 drivers/char/ipmi/ipmi_si_intf.c int rv = 0; rv 1543 drivers/char/ipmi/ipmi_si_intf.c rv = wait_for_msg_done(smi_info); rv 1544 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 1557 drivers/char/ipmi/ipmi_si_intf.c rv = -EINVAL; rv 1572 drivers/char/ipmi/ipmi_si_intf.c rv = wait_for_msg_done(smi_info); rv 1573 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 1585 drivers/char/ipmi/ipmi_si_intf.c rv = -EINVAL; rv 1594 drivers/char/ipmi/ipmi_si_intf.c rv = -ENOENT; rv 1600 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 1873 drivers/char/ipmi/ipmi_si_intf.c int rv = 0; rv 1920 drivers/char/ipmi/ipmi_si_intf.c rv = -EBUSY; rv 1933 drivers/char/ipmi/ipmi_si_intf.c rv = try_smi_init(new_smi); rv 1936 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 1946 drivers/char/ipmi/ipmi_si_intf.c int rv = 0; rv 1971 drivers/char/ipmi/ipmi_si_intf.c rv = -EIO; rv 1980 drivers/char/ipmi/ipmi_si_intf.c rv = EIO; rv 1987 drivers/char/ipmi/ipmi_si_intf.c rv = -ENOMEM; rv 1994 drivers/char/ipmi/ipmi_si_intf.c rv = new_smi->io.io_setup(&new_smi->io); rv 1995 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 2005 drivers/char/ipmi/ipmi_si_intf.c rv = -ENODEV; rv 2013 drivers/char/ipmi/ipmi_si_intf.c rv = try_get_dev_id(new_smi); rv 2014 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 2035 drivers/char/ipmi/ipmi_si_intf.c rv = try_enable_event_buffer(new_smi); rv 2036 drivers/char/ipmi/ipmi_si_intf.c if (rv == 0) rv 2055 drivers/char/ipmi/ipmi_si_intf.c rv = device_add_group(new_smi->io.dev, &ipmi_si_dev_attr_group); rv 2056 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 2059 drivers/char/ipmi/ipmi_si_intf.c rv); rv 2064 drivers/char/ipmi/ipmi_si_intf.c rv = ipmi_register_smi(&handlers, rv 2068 drivers/char/ipmi/ipmi_si_intf.c if (rv) { rv 2071 drivers/char/ipmi/ipmi_si_intf.c rv); rv 2084 drivers/char/ipmi/ipmi_si_intf.c if (rv && new_smi->io.io_cleanup) { rv 2089 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 2242 drivers/char/ipmi/ipmi_si_intf.c int rv = -ENOENT; rv 2248 drivers/char/ipmi/ipmi_si_intf.c rv = 0; rv 2254 drivers/char/ipmi/ipmi_si_intf.c return rv; rv 72 drivers/char/ipmi/ipmi_si_pci.c int rv; rv 100 drivers/char/ipmi/ipmi_si_pci.c rv = pci_enable_device(pdev); rv 101 drivers/char/ipmi/ipmi_si_pci.c if (rv) { rv 103 drivers/char/ipmi/ipmi_si_pci.c return rv; rv 131 drivers/char/ipmi/ipmi_si_pci.c rv = ipmi_si_add_smi(&io); rv 132 drivers/char/ipmi/ipmi_si_pci.c if (rv) rv 135 drivers/char/ipmi/ipmi_si_pci.c return rv; rv 162 drivers/char/ipmi/ipmi_si_pci.c int rv = pci_register_driver(&ipmi_pci_driver); rv 163 drivers/char/ipmi/ipmi_si_pci.c if (rv) rv 164 drivers/char/ipmi/ipmi_si_pci.c pr_err("Unable to register PCI driver: %d\n", rv); rv 140 drivers/char/ipmi/ipmi_si_platform.c int rv; rv 142 drivers/char/ipmi/ipmi_si_platform.c rv = device_property_read_u8(&pdev->dev, "addr-source", &addr_source); rv 143 drivers/char/ipmi/ipmi_si_platform.c if (rv) rv 156 drivers/char/ipmi/ipmi_si_platform.c rv = device_property_read_u8(&pdev->dev, "ipmi-type", &type); rv 157 drivers/char/ipmi/ipmi_si_platform.c if (rv) rv 179 drivers/char/ipmi/ipmi_si_platform.c rv = device_property_read_u8(&pdev->dev, "reg-size", ®size); rv 180 drivers/char/ipmi/ipmi_si_platform.c if (!rv) rv 184 drivers/char/ipmi/ipmi_si_platform.c rv = device_property_read_u8(&pdev->dev, "reg-shift", ®shift); rv 185 drivers/char/ipmi/ipmi_si_platform.c if (!rv) rv 191 drivers/char/ipmi/ipmi_si_platform.c rv = device_property_read_u8(&pdev->dev, "slave-addr", &slave_addr); rv 192 drivers/char/ipmi/ipmi_si_platform.c if (rv) rv 325 drivers/char/ipmi/ipmi_si_platform.c int rv = -EINVAL; rv 359 drivers/char/ipmi/ipmi_si_platform.c rv = -ENODEV; rv 371 drivers/char/ipmi/ipmi_si_platform.c rv = -EINVAL; rv 399 drivers/char/ipmi/ipmi_si_platform.c return rv; rv 471 drivers/char/ipmi/ipmi_si_platform.c int rv = platform_driver_register(&ipmi_platform_driver); rv 472 drivers/char/ipmi/ipmi_si_platform.c if (rv) rv 473 drivers/char/ipmi/ipmi_si_platform.c pr_err("Unable to register driver: %d\n", rv); rv 539 drivers/char/ipmi/ipmi_ssif.c int rv; rv 544 drivers/char/ipmi/ipmi_ssif.c rv = ssif_i2c_send(ssif_info, msg_done_handler, I2C_SMBUS_READ, rv 547 drivers/char/ipmi/ipmi_ssif.c if (rv < 0) { rv 628 drivers/char/ipmi/ipmi_ssif.c int rv; rv 674 drivers/char/ipmi/ipmi_ssif.c rv = ssif_i2c_send(ssif_info, msg_done_handler, I2C_SMBUS_READ, rv 677 drivers/char/ipmi/ipmi_ssif.c if (rv < 0) { rv 746 drivers/char/ipmi/ipmi_ssif.c rv = ssif_i2c_send(ssif_info, msg_done_handler, rv 751 drivers/char/ipmi/ipmi_ssif.c if (rv < 0) { rv 916 drivers/char/ipmi/ipmi_ssif.c int rv; rv 980 drivers/char/ipmi/ipmi_ssif.c rv = ssif_i2c_send(ssif_info, msg_written_handler, rv 983 drivers/char/ipmi/ipmi_ssif.c if (rv < 0) { rv 1020 drivers/char/ipmi/ipmi_ssif.c int rv; rv 1042 drivers/char/ipmi/ipmi_ssif.c rv = ssif_i2c_send(ssif_info, msg_written_handler, I2C_SMBUS_WRITE, rv 1044 drivers/char/ipmi/ipmi_ssif.c if (rv && (ssif_info->ssif_debug & SSIF_DEBUG_MSG)) rv 1047 drivers/char/ipmi/ipmi_ssif.c return rv; rv 1081 drivers/char/ipmi/ipmi_ssif.c int rv; rv 1086 drivers/char/ipmi/ipmi_ssif.c rv = start_send(ssif_info, rv 1089 drivers/char/ipmi/ipmi_ssif.c if (rv) { rv 1389 drivers/char/ipmi/ipmi_ssif.c int rv; rv 1399 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 2, msg, &len, resp); rv 1400 drivers/char/ipmi/ipmi_ssif.c if (rv) rv 1401 drivers/char/ipmi/ipmi_ssif.c rv = -ENODEV; rv 1405 drivers/char/ipmi/ipmi_ssif.c return rv; rv 1672 drivers/char/ipmi/ipmi_ssif.c int rv = 0; rv 1707 drivers/char/ipmi/ipmi_ssif.c rv = ssif_check_and_remove(client, ssif_info); rv 1709 drivers/char/ipmi/ipmi_ssif.c if (!rv && ssif_info->addr_source == SI_ACPI) { rv 1710 drivers/char/ipmi/ipmi_ssif.c rv = ssif_add_infos(client); rv 1711 drivers/char/ipmi/ipmi_ssif.c if (rv) { rv 1715 drivers/char/ipmi/ipmi_ssif.c } else if (rv) { rv 1734 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 3, msg, &len, resp); rv 1735 drivers/char/ipmi/ipmi_ssif.c if (!rv && (len >= 3) && (resp[2] == 0)) { rv 1778 drivers/char/ipmi/ipmi_ssif.c rv, len, resp[2]); rv 1792 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 3, msg, &len, resp); rv 1793 drivers/char/ipmi/ipmi_ssif.c if (rv || (len < 3) || (resp[2] != 0)) rv 1796 drivers/char/ipmi/ipmi_ssif.c rv, len, resp[2]); rv 1801 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 2, msg, &len, resp); rv 1802 drivers/char/ipmi/ipmi_ssif.c if (rv || (len < 4) || (resp[2] != 0)) { rv 1805 drivers/char/ipmi/ipmi_ssif.c rv, len, resp[2]); rv 1806 drivers/char/ipmi/ipmi_ssif.c rv = 0; /* Not fatal */ rv 1821 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 3, msg, &len, resp); rv 1822 drivers/char/ipmi/ipmi_ssif.c if (rv || (len < 2)) { rv 1825 drivers/char/ipmi/ipmi_ssif.c rv, len, resp[2]); rv 1826 drivers/char/ipmi/ipmi_ssif.c rv = 0; /* Not fatal */ rv 1843 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 3, msg, &len, resp); rv 1844 drivers/char/ipmi/ipmi_ssif.c if (rv || (len < 2)) { rv 1847 drivers/char/ipmi/ipmi_ssif.c rv, len, resp[2]); rv 1848 drivers/char/ipmi/ipmi_ssif.c rv = 0; /* Not fatal */ rv 1894 drivers/char/ipmi/ipmi_ssif.c rv = PTR_ERR(ssif_info->thread); rv 1897 drivers/char/ipmi/ipmi_ssif.c rv); rv 1903 drivers/char/ipmi/ipmi_ssif.c rv = device_add_group(&ssif_info->client->dev, rv 1905 drivers/char/ipmi/ipmi_ssif.c if (rv) { rv 1908 drivers/char/ipmi/ipmi_ssif.c rv); rv 1912 drivers/char/ipmi/ipmi_ssif.c rv = ipmi_register_smi(&ssif_info->handlers, rv 1916 drivers/char/ipmi/ipmi_ssif.c if (rv) { rv 1918 drivers/char/ipmi/ipmi_ssif.c "Unable to register device: error %d\n", rv); rv 1923 drivers/char/ipmi/ipmi_ssif.c if (rv) { rv 1928 drivers/char/ipmi/ipmi_ssif.c "Unable to start IPMI SSIF: %d\n", rv); rv 1933 drivers/char/ipmi/ipmi_ssif.c return rv; rv 1962 drivers/char/ipmi/ipmi_ssif.c int rv = 0; rv 1966 drivers/char/ipmi/ipmi_ssif.c rv = -EEXIST; rv 1972 drivers/char/ipmi/ipmi_ssif.c rv = -ENOMEM; rv 1980 drivers/char/ipmi/ipmi_ssif.c rv = -ENOMEM; rv 2005 drivers/char/ipmi/ipmi_ssif.c return rv; rv 2065 drivers/char/ipmi/ipmi_ssif.c int rv; rv 2070 drivers/char/ipmi/ipmi_ssif.c rv = device_property_read_u16(&pdev->dev, "i2c-addr", &i2c_addr); rv 2071 drivers/char/ipmi/ipmi_ssif.c if (rv) { rv 2076 drivers/char/ipmi/ipmi_ssif.c rv = device_property_read_u8(&pdev->dev, "slave-addr", &slave_addr); rv 2077 drivers/char/ipmi/ipmi_ssif.c if (rv) rv 2146 drivers/char/ipmi/ipmi_ssif.c int rv; rv 2155 drivers/char/ipmi/ipmi_ssif.c rv = new_ssif_client(addr[i], adapter_name[i], rv 2158 drivers/char/ipmi/ipmi_ssif.c if (rv) rv 2168 drivers/char/ipmi/ipmi_ssif.c rv = platform_driver_register(&ipmi_driver); rv 2169 drivers/char/ipmi/ipmi_ssif.c if (rv) rv 2170 drivers/char/ipmi/ipmi_ssif.c pr_err("Unable to register driver: %d\n", rv); rv 2177 drivers/char/ipmi/ipmi_ssif.c rv = i2c_add_driver(&ssif_i2c_driver); rv 2178 drivers/char/ipmi/ipmi_ssif.c if (!rv) rv 2181 drivers/char/ipmi/ipmi_ssif.c return rv; rv 180 drivers/char/ipmi/ipmi_watchdog.c int rv = 0; rv 190 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); rv 192 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 211 drivers/char/ipmi/ipmi_watchdog.c int rv = 0; rv 220 drivers/char/ipmi/ipmi_watchdog.c rv = fn(s, NULL); rv 221 drivers/char/ipmi/ipmi_watchdog.c if (rv) rv 226 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); rv 229 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 235 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 237 drivers/char/ipmi/ipmi_watchdog.c rv = fn(NULL, buffer); rv 238 drivers/char/ipmi/ipmi_watchdog.c if (rv) rv 239 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 246 drivers/char/ipmi/ipmi_watchdog.c int rv = param_set_int(val, kp); rv 247 drivers/char/ipmi/ipmi_watchdog.c if (rv) rv 248 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 361 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 401 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_request_supply_msgs(watchdog_user, rv 409 drivers/char/ipmi/ipmi_watchdog.c if (rv) rv 410 drivers/char/ipmi/ipmi_watchdog.c pr_warn("set timeout error: %d\n", rv); rv 414 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 420 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 427 drivers/char/ipmi/ipmi_watchdog.c rv = __ipmi_set_timeout(&smi_msg, rv 430 drivers/char/ipmi/ipmi_watchdog.c if (rv) rv 431 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 438 drivers/char/ipmi/ipmi_watchdog.c rv = __ipmi_heartbeat(); rv 440 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 445 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 448 drivers/char/ipmi/ipmi_watchdog.c rv = _ipmi_set_timeout(do_heartbeat); rv 451 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 476 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 494 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_request_supply_msgs(watchdog_user, rv 502 drivers/char/ipmi/ipmi_watchdog.c if (rv) rv 522 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 528 drivers/char/ipmi/ipmi_watchdog.c rv = __ipmi_set_timeout(&panic_halt_smi_msg, rv 531 drivers/char/ipmi/ipmi_watchdog.c if (rv) { rv 545 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 567 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_request_supply_msgs(watchdog_user, rv 575 drivers/char/ipmi/ipmi_watchdog.c if (rv) { rv 576 drivers/char/ipmi/ipmi_watchdog.c pr_warn("heartbeat send failure: %d\n", rv); rv 577 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 587 drivers/char/ipmi/ipmi_watchdog.c rv = -EIO; rv 599 drivers/char/ipmi/ipmi_watchdog.c rv = _ipmi_set_timeout(IPMI_SET_TIMEOUT_NO_HB); rv 600 drivers/char/ipmi/ipmi_watchdog.c if (rv) { rv 613 drivers/char/ipmi/ipmi_watchdog.c rv = -EINVAL; rv 617 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 622 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 630 drivers/char/ipmi/ipmi_watchdog.c rv = _ipmi_set_timeout(IPMI_SET_TIMEOUT_FORCE_HB); rv 638 drivers/char/ipmi/ipmi_watchdog.c rv = _ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); rv 640 drivers/char/ipmi/ipmi_watchdog.c rv = __ipmi_heartbeat(); rv 643 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 648 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 651 drivers/char/ipmi/ipmi_watchdog.c rv = _ipmi_heartbeat(); rv 654 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 750 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 768 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_heartbeat(); rv 769 drivers/char/ipmi/ipmi_watchdog.c if (rv) rv 770 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 780 drivers/char/ipmi/ipmi_watchdog.c int rv = 0; rv 793 drivers/char/ipmi/ipmi_watchdog.c rv = -EAGAIN; rv 808 drivers/char/ipmi/ipmi_watchdog.c rv = -ERESTARTSYS; rv 817 drivers/char/ipmi/ipmi_watchdog.c if (rv == 0) { rv 819 drivers/char/ipmi/ipmi_watchdog.c rv = -EFAULT; rv 821 drivers/char/ipmi/ipmi_watchdog.c rv = 1; rv 824 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 975 drivers/char/ipmi/ipmi_watchdog.c int rv = -EBUSY; rv 985 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_create_user(ipmi_intf, &ipmi_hndlrs, NULL, &watchdog_user); rv 986 drivers/char/ipmi/ipmi_watchdog.c if (rv < 0) { rv 991 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_get_version(watchdog_user, rv 994 drivers/char/ipmi/ipmi_watchdog.c if (rv) { rv 1000 drivers/char/ipmi/ipmi_watchdog.c rv = misc_register(&ipmi_wdog_miscdev); rv 1001 drivers/char/ipmi/ipmi_watchdog.c if (rv < 0) { rv 1024 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_FORCE_HB); rv 1025 drivers/char/ipmi/ipmi_watchdog.c if (rv) { rv 1027 drivers/char/ipmi/ipmi_watchdog.c rv); rv 1028 drivers/char/ipmi/ipmi_watchdog.c rv = 0; rv 1046 drivers/char/ipmi/ipmi_watchdog.c if ((start_now) && (rv == 0)) { rv 1061 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 1086 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_destroy_user(loc_user); rv 1087 drivers/char/ipmi/ipmi_watchdog.c if (rv) rv 1088 drivers/char/ipmi/ipmi_watchdog.c pr_warn("error unlinking from IPMI: %d\n", rv); rv 1256 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 1267 drivers/char/ipmi/ipmi_watchdog.c rv = register_nmi_handler(NMI_UNKNOWN, ipmi_nmi, 0, rv 1269 drivers/char/ipmi/ipmi_watchdog.c if (rv) { rv 1283 drivers/char/ipmi/ipmi_watchdog.c int rv; rv 1305 drivers/char/ipmi/ipmi_watchdog.c rv = ipmi_smi_watcher_register(&smi_watcher); rv 1306 drivers/char/ipmi/ipmi_watchdog.c if (rv) { rv 1313 drivers/char/ipmi/ipmi_watchdog.c return rv; rv 867 drivers/char/random.c unsigned long rv; rv 876 drivers/char/random.c if (!arch_get_random_seed_long(&rv) && rv 877 drivers/char/random.c !arch_get_random_long(&rv)) { rv 878 drivers/char/random.c rv = random_get_entropy(); rv 881 drivers/char/random.c crng->state[i] ^= rv; rv 1020 drivers/char/random.c unsigned long rv; rv 1021 drivers/char/random.c if (!arch_get_random_seed_long(&rv) && rv 1022 drivers/char/random.c !arch_get_random_long(&rv)) rv 1023 drivers/char/random.c rv = random_get_entropy(); rv 1024 drivers/char/random.c crng->state[i+4] ^= buf.key[i] ^ rv; rv 1933 drivers/char/random.c unsigned long rv; rv 1937 drivers/char/random.c for (i = r->poolinfo->poolbytes; i > 0; i -= sizeof(rv)) { rv 1938 drivers/char/random.c if (!arch_get_random_seed_long(&rv) && rv 1939 drivers/char/random.c !arch_get_random_long(&rv)) rv 1940 drivers/char/random.c rv = random_get_entropy(); rv 1941 drivers/char/random.c mix_pool_bytes(r, &rv, sizeof(rv)); rv 255 drivers/char/tpm/xen-tpmfront.c int rv; rv 264 drivers/char/tpm/xen-tpmfront.c rv = xenbus_grant_ring(dev, priv->shr, 1, &gref); rv 265 drivers/char/tpm/xen-tpmfront.c if (rv < 0) rv 266 drivers/char/tpm/xen-tpmfront.c return rv; rv 270 drivers/char/tpm/xen-tpmfront.c rv = xenbus_alloc_evtchn(dev, &priv->evtchn); rv 271 drivers/char/tpm/xen-tpmfront.c if (rv) rv 272 drivers/char/tpm/xen-tpmfront.c return rv; rv 274 drivers/char/tpm/xen-tpmfront.c rv = bind_evtchn_to_irqhandler(priv->evtchn, tpmif_interrupt, 0, rv 276 drivers/char/tpm/xen-tpmfront.c if (rv <= 0) { rv 277 drivers/char/tpm/xen-tpmfront.c xenbus_dev_fatal(dev, rv, "allocating TPM irq"); rv 278 drivers/char/tpm/xen-tpmfront.c return rv; rv 280 drivers/char/tpm/xen-tpmfront.c priv->irq = rv; rv 283 drivers/char/tpm/xen-tpmfront.c rv = xenbus_transaction_start(&xbt); rv 284 drivers/char/tpm/xen-tpmfront.c if (rv) { rv 285 drivers/char/tpm/xen-tpmfront.c xenbus_dev_fatal(dev, rv, "starting transaction"); rv 286 drivers/char/tpm/xen-tpmfront.c return rv; rv 289 drivers/char/tpm/xen-tpmfront.c rv = xenbus_printf(xbt, dev->nodename, rv 291 drivers/char/tpm/xen-tpmfront.c if (rv) { rv 296 drivers/char/tpm/xen-tpmfront.c rv = xenbus_printf(xbt, dev->nodename, "event-channel", "%u", rv 298 drivers/char/tpm/xen-tpmfront.c if (rv) { rv 303 drivers/char/tpm/xen-tpmfront.c rv = xenbus_printf(xbt, dev->nodename, "feature-protocol-v2", "1"); rv 304 drivers/char/tpm/xen-tpmfront.c if (rv) { rv 309 drivers/char/tpm/xen-tpmfront.c rv = xenbus_transaction_end(xbt, 0); rv 310 drivers/char/tpm/xen-tpmfront.c if (rv == -EAGAIN) rv 312 drivers/char/tpm/xen-tpmfront.c if (rv) { rv 313 drivers/char/tpm/xen-tpmfront.c xenbus_dev_fatal(dev, rv, "completing transaction"); rv 314 drivers/char/tpm/xen-tpmfront.c return rv; rv 324 drivers/char/tpm/xen-tpmfront.c xenbus_dev_error(dev, rv, "%s", message); rv 326 drivers/char/tpm/xen-tpmfront.c return rv; rv 350 drivers/char/tpm/xen-tpmfront.c int rv; rv 358 drivers/char/tpm/xen-tpmfront.c rv = setup_chip(&dev->dev, priv); rv 359 drivers/char/tpm/xen-tpmfront.c if (rv) { rv 361 drivers/char/tpm/xen-tpmfront.c return rv; rv 364 drivers/char/tpm/xen-tpmfront.c rv = setup_ring(dev, priv); rv 365 drivers/char/tpm/xen-tpmfront.c if (rv) { rv 367 drivers/char/tpm/xen-tpmfront.c return rv; rv 33 drivers/clk/clk-bd718x7.c int rv; rv 36 drivers/clk/clk-bd718x7.c rv = bd71837_clk_set(hw, 0); rv 37 drivers/clk/clk-bd718x7.c if (rv) rv 38 drivers/clk/clk-bd718x7.c dev_dbg(&c->pdev->dev, "Failed to disable 32K clk (%d)\n", rv); rv 249 drivers/clocksource/timer-davinci.c int rv; rv 251 drivers/clocksource/timer-davinci.c rv = clk_prepare_enable(clk); rv 252 drivers/clocksource/timer-davinci.c if (rv) { rv 254 drivers/clocksource/timer-davinci.c return rv; rv 297 drivers/clocksource/timer-davinci.c rv = request_irq(timer_cfg->irq[DAVINCI_TIMER_CLOCKEVENT_IRQ].start, rv 300 drivers/clocksource/timer-davinci.c if (rv) { rv 302 drivers/clocksource/timer-davinci.c return rv; rv 326 drivers/clocksource/timer-davinci.c rv = clocksource_register_hz(&davinci_clocksource.dev, tick_rate); rv 327 drivers/clocksource/timer-davinci.c if (rv) { rv 329 drivers/clocksource/timer-davinci.c return rv; rv 342 drivers/clocksource/timer-davinci.c int rv; rv 344 drivers/clocksource/timer-davinci.c rv = of_address_to_resource(np, 0, &timer_cfg.reg); rv 345 drivers/clocksource/timer-davinci.c if (rv) { rv 347 drivers/clocksource/timer-davinci.c return rv; rv 350 drivers/clocksource/timer-davinci.c rv = of_irq_to_resource_table(np, timer_cfg.irq, rv 352 drivers/clocksource/timer-davinci.c if (rv != DAVINCI_TIMER_NUM_IRQS) { rv 354 drivers/clocksource/timer-davinci.c return rv; rv 363 drivers/clocksource/timer-davinci.c rv = davinci_timer_register(clk, &timer_cfg); rv 364 drivers/clocksource/timer-davinci.c if (rv) rv 367 drivers/clocksource/timer-davinci.c return rv; rv 373 drivers/dma/bestcomm/bestcomm.c int rv; rv 386 drivers/dma/bestcomm/bestcomm.c rv = -ENODEV; rv 389 drivers/dma/bestcomm/bestcomm.c rv = bcom_sram_init(ofn_sram, DRIVER_NAME); rv 392 drivers/dma/bestcomm/bestcomm.c if (rv) { rv 401 drivers/dma/bestcomm/bestcomm.c rv = -ENOMEM; rv 412 drivers/dma/bestcomm/bestcomm.c rv = -EINVAL; rv 420 drivers/dma/bestcomm/bestcomm.c rv = -EBUSY; rv 429 drivers/dma/bestcomm/bestcomm.c rv = -ENOMEM; rv 434 drivers/dma/bestcomm/bestcomm.c rv = bcom_engine_init(); rv 435 drivers/dma/bestcomm/bestcomm.c if (rv) rv 457 drivers/dma/bestcomm/bestcomm.c return rv; rv 43 drivers/dma/bestcomm/sram.c int rv; rv 67 drivers/dma/bestcomm/sram.c rv = -EINVAL; rv 80 drivers/dma/bestcomm/sram.c rv = -EBUSY; rv 92 drivers/dma/bestcomm/sram.c rv = -ENOMEM; rv 132 drivers/dma/bestcomm/sram.c return rv; rv 905 drivers/dma/ppc4xx/adma.c u32 rv, i; rv 912 drivers/dma/ppc4xx/adma.c while ((rv = ioread32(&dma_reg->csfpl))) { rv 913 drivers/dma/ppc4xx/adma.c i = rv & DMA_CDB_ADDR_MSK; rv 937 drivers/dma/ppc4xx/adma.c if (rv & DMA_CDB_STATUS_MSK) { rv 941 drivers/dma/ppc4xx/adma.c dma_addr_t phys = rv & ~DMA_CDB_MSK; rv 974 drivers/dma/ppc4xx/adma.c rv = ioread32(&dma_reg->dsts); rv 975 drivers/dma/ppc4xx/adma.c if (rv) { rv 977 drivers/dma/ppc4xx/adma.c chan->device->id, rv); rv 979 drivers/dma/ppc4xx/adma.c iowrite32(rv, &dma_reg->dsts); rv 985 drivers/dma/ppc4xx/adma.c rv = ioread32be(&xor_reg->sr); rv 986 drivers/dma/ppc4xx/adma.c iowrite32be(rv, &xor_reg->sr); rv 988 drivers/dma/ppc4xx/adma.c if (rv & (XOR_IE_ICBIE_BIT|XOR_IE_ICIE_BIT|XOR_IE_RPTIE_BIT)) { rv 989 drivers/dma/ppc4xx/adma.c if (rv & XOR_IE_RPTIE_BIT) { rv 1001 drivers/dma/ppc4xx/adma.c pr_err("XOR ERR 0x%x status\n", rv); rv 755 drivers/firmware/arm_sdei.c int rv; rv 759 drivers/firmware/arm_sdei.c rv = sdei_mask_local_cpu(); rv 763 drivers/firmware/arm_sdei.c rv = sdei_unmask_local_cpu(); rv 769 drivers/firmware/arm_sdei.c if (rv) rv 770 drivers/firmware/arm_sdei.c return notifier_from_errno(rv); rv 222 drivers/firmware/efi/capsule.c int rv, reset_type; rv 225 drivers/firmware/efi/capsule.c rv = efi_capsule_supported(guid, flags, imagesize, &reset_type); rv 226 drivers/firmware/efi/capsule.c if (rv) rv 227 drivers/firmware/efi/capsule.c return rv; rv 239 drivers/firmware/efi/capsule.c rv = -ENOMEM; rv 272 drivers/firmware/efi/capsule.c rv = efi_capsule_update_locked(capsule, sg_pages, reset_type); rv 276 drivers/firmware/efi/capsule.c for (i = 0; rv && i < sg_count; i++) { rv 282 drivers/firmware/efi/capsule.c return rv; rv 161 drivers/firmware/efi/test/efi_test.c int rv = 0; rv 179 drivers/firmware/efi/test/efi_test.c rv = copy_ucs2_from_user(&name, getvariable.variable_name); rv 180 drivers/firmware/efi/test/efi_test.c if (rv) rv 181 drivers/firmware/efi/test/efi_test.c return rv; rv 200 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 207 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 211 drivers/firmware/efi/test/efi_test.c rv = -EINVAL; rv 216 drivers/firmware/efi/test/efi_test.c rv = -EINVAL; rv 222 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 228 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 233 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 237 drivers/firmware/efi/test/efi_test.c return rv; rv 249 drivers/firmware/efi/test/efi_test.c int rv = 0; rv 260 drivers/firmware/efi/test/efi_test.c rv = copy_ucs2_from_user(&name, setvariable.variable_name); rv 261 drivers/firmware/efi/test/efi_test.c if (rv) rv 262 drivers/firmware/efi/test/efi_test.c return rv; rv 276 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 280 drivers/firmware/efi/test/efi_test.c rv = status == EFI_SUCCESS ? 0 : -EINVAL; rv 286 drivers/firmware/efi/test/efi_test.c return rv; rv 424 drivers/firmware/efi/test/efi_test.c int rv = 0; rv 450 drivers/firmware/efi/test/efi_test.c rv = get_ucs2_strsize_from_user( rv 453 drivers/firmware/efi/test/efi_test.c if (rv) rv 454 drivers/firmware/efi/test/efi_test.c return rv; rv 463 drivers/firmware/efi/test/efi_test.c rv = copy_ucs2_from_user_len(&name, rv 467 drivers/firmware/efi/test/efi_test.c if (rv) rv 468 drivers/firmware/efi/test/efi_test.c return rv; rv 474 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 482 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 486 drivers/firmware/efi/test/efi_test.c rv = -EINVAL; rv 493 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 500 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 508 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 513 drivers/firmware/efi/test/efi_test.c return rv; rv 615 drivers/firmware/efi/test/efi_test.c int rv = 0; rv 638 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 643 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 656 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 661 drivers/firmware/efi/test/efi_test.c rv = -EINVAL; rv 666 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 671 drivers/firmware/efi/test/efi_test.c rv = -EFAULT; rv 675 drivers/firmware/efi/test/efi_test.c return rv; rv 1207 drivers/firmware/efi/vars.c int rv; rv 1214 drivers/firmware/efi/vars.c rv = -EINVAL; rv 1219 drivers/firmware/efi/vars.c rv = -EINVAL; rv 1226 drivers/firmware/efi/vars.c rv = 0; rv 1229 drivers/firmware/efi/vars.c return rv; rv 69 drivers/gpio/gpio-max77650.c int rv, regval; rv 73 drivers/gpio/gpio-max77650.c rv = regmap_update_bits(chip->map, MAX77650_REG_CNFG_GPIO, rv 75 drivers/gpio/gpio-max77650.c if (rv) rv 76 drivers/gpio/gpio-max77650.c dev_err(gc->parent, "cannot set GPIO value: %d\n", rv); rv 84 drivers/gpio/gpio-max77650.c int rv; rv 86 drivers/gpio/gpio-max77650.c rv = regmap_read(chip->map, MAX77650_REG_CNFG_GPIO, &val); rv 87 drivers/gpio/gpio-max77650.c if (rv) rv 88 drivers/gpio/gpio-max77650.c return rv; rv 98 drivers/gpio/gpio-max77650.c int rv; rv 100 drivers/gpio/gpio-max77650.c rv = regmap_read(chip->map, MAX77650_REG_CNFG_GPIO, &val); rv 101 drivers/gpio/gpio-max77650.c if (rv) rv 102 drivers/gpio/gpio-max77650.c return rv; rv 380 drivers/gpio/gpio-ml-ioh.c int rv; rv 396 drivers/gpio/gpio-ml-ioh.c rv = devm_irq_setup_generic_chip(chip->dev, gc, IRQ_MSK(num), rv 400 drivers/gpio/gpio-ml-ioh.c return rv; rv 229 drivers/gpio/gpio-mockup.c int rv, val, curr, irq, irq_type; rv 239 drivers/gpio/gpio-mockup.c rv = kstrtoint_from_user(usr_buf, size, 0, &val); rv 240 drivers/gpio/gpio-mockup.c if (rv) rv 241 drivers/gpio/gpio-mockup.c return rv; rv 378 drivers/gpio/gpio-mockup.c int rv, base; rv 383 drivers/gpio/gpio-mockup.c rv = device_property_read_u32(dev, "gpio-base", &base); rv 384 drivers/gpio/gpio-mockup.c if (rv) rv 387 drivers/gpio/gpio-mockup.c rv = device_property_read_u16(dev, "nr-gpios", &ngpio); rv 388 drivers/gpio/gpio-mockup.c if (rv) rv 389 drivers/gpio/gpio-mockup.c return rv; rv 391 drivers/gpio/gpio-mockup.c rv = device_property_read_string(dev, "chip-name", &name); rv 392 drivers/gpio/gpio-mockup.c if (rv) rv 430 drivers/gpio/gpio-mockup.c rv = gpio_mockup_name_lines(dev, chip); rv 431 drivers/gpio/gpio-mockup.c if (rv) rv 432 drivers/gpio/gpio-mockup.c return rv; rv 435 drivers/gpio/gpio-mockup.c rv = devm_irq_sim_init(dev, &chip->irqsim, gc->ngpio); rv 436 drivers/gpio/gpio-mockup.c if (rv < 0) rv 437 drivers/gpio/gpio-mockup.c return rv; rv 439 drivers/gpio/gpio-mockup.c rv = devm_gpiochip_add_data(dev, &chip->gc, chip); rv 440 drivers/gpio/gpio-mockup.c if (rv) rv 441 drivers/gpio/gpio-mockup.c return rv; rv 348 drivers/gpio/gpio-mxc.c int rv; rv 366 drivers/gpio/gpio-mxc.c rv = devm_irq_setup_generic_chip(port->dev, gc, IRQ_MSK(32), rv 370 drivers/gpio/gpio-mxc.c return rv; rv 196 drivers/gpio/gpio-mxs.c int rv; rv 230 drivers/gpio/gpio-mxs.c rv = devm_irq_setup_generic_chip(port->dev, gc, IRQ_MSK(32), rv 234 drivers/gpio/gpio-mxs.c return rv; rv 319 drivers/gpio/gpio-pch.c int rv; rv 334 drivers/gpio/gpio-pch.c rv = devm_irq_setup_generic_chip(chip->dev, gc, IRQ_MSK(num), rv 338 drivers/gpio/gpio-pch.c return rv; rv 305 drivers/gpio/gpio-sta2x11.c int rv; rv 321 drivers/gpio/gpio-sta2x11.c rv = devm_irq_setup_generic_chip(chip->dev, gc, rv 324 drivers/gpio/gpio-sta2x11.c if (rv) rv 325 drivers/gpio/gpio-sta2x11.c return rv; rv 90 drivers/gpio/gpio-thunderx.c bool rv = thunderx_gpio_is_gpio_nowarn(txgpio, line); rv 92 drivers/gpio/gpio-thunderx.c WARN_RATELIMIT(!rv, "Pin %d not available for GPIO\n", line); rv 94 drivers/gpio/gpio-thunderx.c return rv; rv 1222 drivers/gpio/gpiolib.c int rv; rv 1234 drivers/gpio/gpiolib.c rv = gpiod_hog(desc, hog->line_name, hog->lflags, hog->dflags); rv 1235 drivers/gpio/gpiolib.c if (rv) rv 1237 drivers/gpio/gpiolib.c __func__, chip->label, hog->chip_hwnum, rv); rv 63 drivers/gpu/drm/i915/display/intel_tv.c u16 rv, gv, bv, av; rv 191 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200, rv 201 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x037a, .gv = 0x033d, .bv = 0x06f6, .av = 0x0200, rv 211 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x035a, .gv = 0x0322, .bv = 0x06e1, .av = 0x0200, rv 221 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x0399, .gv = 0x0356, .bv = 0x070a, .av = 0x0200, rv 231 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x0353, .gv = 0x031c, .bv = 0x06dc, .av = 0x0200, rv 241 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x0390, .gv = 0x034f, .bv = 0x0705, .av = 0x0200, rv 251 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200, rv 261 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x037a, .gv = 0x033d, .bv = 0x06f6, .av = 0x0200, rv 271 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x0340, .gv = 0x030c, .bv = 0x06d0, .av = 0x0200, rv 281 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x037a, .gv = 0x033d, .bv = 0x06f6, .av = 0x0200, rv 294 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x0100, .gv = 0x03ad, .bv = 0x074d, .av = 0x0200, rv 300 drivers/gpu/drm/i915/display/intel_tv.c .rv = 0x0100, .gv = 0x03d1, .bv = 0x06bc, .av = 0x0200, rv 1410 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_CSC_V, (color_conversion->rv << 16) | rv 102 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c u32 rv = (nvkm_rd32(device, c->regp) & rm) >> c->regs; rv 104 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c nvkm_wo32(fctx, c->ctxp + data, cv | (rv << c->ctxs)); rv 527 drivers/hid/intel-ish-hid/ipc/ipc.c int rv; rv 529 drivers/hid/intel-ish-hid/ipc/ipc.c rv = ish_fw_reset_handler(ishtp_dev); rv 530 drivers/hid/intel-ish-hid/ipc/ipc.c if (!rv) { rv 540 drivers/hid/intel-ish-hid/ipc/ipc.c rv); rv 730 drivers/hid/intel-ish-hid/ipc/ipc.c int rv; rv 736 drivers/hid/intel-ish-hid/ipc/ipc.c rv = pci_reset_function(pdev); rv 737 drivers/hid/intel-ish-hid/ipc/ipc.c if (!rv) rv 781 drivers/hid/intel-ish-hid/ipc/ipc.c int rv = 0; rv 796 drivers/hid/intel-ish-hid/ipc/ipc.c rv = ipc_send_mng_msg(dev, MNG_RESET_NOTIFY, &ipc_mng_msg, rv 798 drivers/hid/intel-ish-hid/ipc/ipc.c if (rv) { rv 800 drivers/hid/intel-ish-hid/ipc/ipc.c return rv; rv 807 drivers/hid/intel-ish-hid/ipc/ipc.c rv = -ENODEV; rv 810 drivers/hid/intel-ish-hid/ipc/ipc.c return rv; rv 253 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 257 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = device_property_read_string(devc, "firmware-name", &val); rv 258 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 261 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 282 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 299 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = ishtp_cl_send(loader_ishtp_cl, out_msg, out_size); rv 300 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 302 drivers/hid/intel-ish-hid/ishtp-fw-loader.c "ishtp_cl_send error %d\n", rv); rv 303 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 469 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 476 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = loader_cl_send(client_data, rv 481 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 483 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 487 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv != sizeof(struct loader_xfer_query_response)) { rv 490 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv, sizeof(struct loader_xfer_query_response)); rv 550 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 590 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = loader_cl_send(client_data, rv 595 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 609 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 631 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 668 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = -ENOMEM; rv 708 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = loader_cl_send(client_data, rv 713 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 730 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 766 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 778 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = -ENOMEM; rv 783 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = get_firmware_variant(client_data, filename); rv 784 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) rv 787 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = request_firmware(&fw, filename, cl_data_to_dev(client_data)); rv 788 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) rv 793 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = ish_query_loader_prop(client_data, fw, &fw_info); rv 794 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) rv 801 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = ish_fw_xfer_direct_dma(client_data, fw, fw_info); rv 803 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = ish_fw_xfer_ishtp(client_data, fw); rv 807 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = -EINVAL; rv 809 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) rv 814 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = ish_fw_start(client_data); rv 815 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) rv 834 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv); rv 838 drivers/hid/intel-ish-hid/ishtp-fw-loader.c "ISH host firmware load failed %d\n", rv); rv 840 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 861 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 868 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = ishtp_cl_link(loader_ishtp_cl); rv 869 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 871 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 884 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = -ENOENT; rv 892 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = ishtp_cl_connect(loader_ishtp_cl); rv 893 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 906 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 922 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 947 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = loader_init(loader_ishtp_cl, 1); rv 948 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 969 drivers/hid/intel-ish-hid/ishtp-fw-loader.c int rv; rv 993 drivers/hid/intel-ish-hid/ishtp-fw-loader.c rv = loader_init(loader_ishtp_cl, 0); rv 994 drivers/hid/intel-ish-hid/ishtp-fw-loader.c if (rv < 0) { rv 996 drivers/hid/intel-ish-hid/ishtp-fw-loader.c return rv; rv 367 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 372 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_hid_link_ready_wait(client_data); rv 373 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) { rv 392 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(client_data->hid_ishtp_cl, buf, len); rv 393 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) rv 413 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 417 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_hid_link_ready_wait(client_data); rv 418 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) { rv 438 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(client_data->hid_ishtp_cl, (uint8_t *)&msg, rv 440 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) rv 488 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 493 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(hid_ishtp_cl, (unsigned char *)&msg, rv 495 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) rv 496 drivers/hid/intel-ish-hid/ishtp-hid-client.c return rv; rv 507 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(hid_ishtp_cl, rv 543 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 550 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(hid_ishtp_cl, (unsigned char *) &msg, rv 552 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) rv 553 drivers/hid/intel-ish-hid/ishtp-hid-client.c return rv; rv 590 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 597 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(hid_ishtp_cl, (unsigned char *) &msg, rv 599 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) rv 600 drivers/hid/intel-ish-hid/ishtp-hid-client.c return rv; rv 640 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 645 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_link(hid_ishtp_cl); rv 646 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) { rv 670 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_connect(hid_ishtp_cl); rv 671 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) { rv 682 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_enum_enum_devices(hid_ishtp_cl); rv 683 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) rv 692 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_get_hid_descriptor(hid_ishtp_cl, i); rv 693 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) rv 696 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_get_report_descriptor(hid_ishtp_cl, i); rv 697 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) rv 701 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_hid_probe(i, client_data); rv 702 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) { rv 705 drivers/hid/intel-ish-hid/ishtp-hid-client.c i, rv); rv 722 drivers/hid/intel-ish-hid/ishtp-hid-client.c return rv; rv 746 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 770 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = hid_ishtp_cl_init(hid_ishtp_cl, 1); rv 771 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (!rv) rv 775 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) { rv 796 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 823 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = hid_ishtp_cl_init(hid_ishtp_cl, 0); rv 824 drivers/hid/intel-ish-hid/ishtp-hid-client.c if (rv) { rv 826 drivers/hid/intel-ish-hid/ishtp-hid-client.c return rv; rv 941 drivers/hid/intel-ish-hid/ishtp-hid-client.c int rv; rv 944 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_driver_register(&hid_ishtp_cl_driver, THIS_MODULE); rv 946 drivers/hid/intel-ish-hid/ishtp-hid-client.c return rv; rv 25 drivers/hid/intel-ish-hid/ishtp-hid.c int rv; rv 27 drivers/hid/intel-ish-hid/ishtp-hid.c rv = hid_parse_report(hid, client_data->report_descr[hid_data->index], rv 29 drivers/hid/intel-ish-hid/ishtp-hid.c if (rv) rv 30 drivers/hid/intel-ish-hid/ishtp-hid.c return rv; rv 148 drivers/hid/intel-ish-hid/ishtp-hid.c int rv; rv 152 drivers/hid/intel-ish-hid/ishtp-hid.c rv = ishtp_hid_link_ready_wait(hid_data->client_data); rv 153 drivers/hid/intel-ish-hid/ishtp-hid.c if (rv) rv 154 drivers/hid/intel-ish-hid/ishtp-hid.c return rv; rv 209 drivers/hid/intel-ish-hid/ishtp-hid.c int rv; rv 215 drivers/hid/intel-ish-hid/ishtp-hid.c rv = PTR_ERR(hid); rv 221 drivers/hid/intel-ish-hid/ishtp-hid.c rv = -ENOMEM; rv 243 drivers/hid/intel-ish-hid/ishtp-hid.c rv = hid_add_device(hid); rv 244 drivers/hid/intel-ish-hid/ishtp-hid.c if (rv) rv 255 drivers/hid/intel-ish-hid/ishtp-hid.c return rv; rv 706 drivers/hid/intel-ish-hid/ishtp/bus.c int rv; rv 711 drivers/hid/intel-ish-hid/ishtp/bus.c rv = -ENOENT; rv 718 drivers/hid/intel-ish-hid/ishtp/bus.c rv = 0; rv 723 drivers/hid/intel-ish-hid/ishtp/bus.c return rv; rv 267 drivers/hid/intel-ish-hid/ishtp/hbm.c int rv; rv 286 drivers/hid/intel-ish-hid/ishtp/hbm.c rv = ishtp_write_message(dev, &hdr, &flow_ctrl); rv 287 drivers/hid/intel-ish-hid/ishtp/hbm.c if (!rv) { rv 301 drivers/hid/intel-ish-hid/ishtp/hbm.c return rv; rv 84 drivers/hwmon/adc128d818.c int i, rv; rv 90 drivers/hwmon/adc128d818.c rv = i2c_smbus_read_word_swapped(client, rv 92 drivers/hwmon/adc128d818.c if (rv < 0) rv 94 drivers/hwmon/adc128d818.c data->in[0][i] = rv >> 4; rv 96 drivers/hwmon/adc128d818.c rv = i2c_smbus_read_byte_data(client, rv 98 drivers/hwmon/adc128d818.c if (rv < 0) rv 100 drivers/hwmon/adc128d818.c data->in[1][i] = rv << 4; rv 102 drivers/hwmon/adc128d818.c rv = i2c_smbus_read_byte_data(client, rv 104 drivers/hwmon/adc128d818.c if (rv < 0) rv 106 drivers/hwmon/adc128d818.c data->in[2][i] = rv << 4; rv 110 drivers/hwmon/adc128d818.c rv = i2c_smbus_read_word_swapped(client, rv 112 drivers/hwmon/adc128d818.c if (rv < 0) rv 114 drivers/hwmon/adc128d818.c data->temp[0] = rv >> 7; rv 116 drivers/hwmon/adc128d818.c rv = i2c_smbus_read_byte_data(client, rv 118 drivers/hwmon/adc128d818.c if (rv < 0) rv 120 drivers/hwmon/adc128d818.c data->temp[1] = rv << 1; rv 122 drivers/hwmon/adc128d818.c rv = i2c_smbus_read_byte_data(client, rv 124 drivers/hwmon/adc128d818.c if (rv < 0) rv 126 drivers/hwmon/adc128d818.c data->temp[2] = rv << 1; rv 129 drivers/hwmon/adc128d818.c rv = i2c_smbus_read_byte_data(client, ADC128_REG_ALARM); rv 130 drivers/hwmon/adc128d818.c if (rv < 0) rv 132 drivers/hwmon/adc128d818.c data->alarms |= rv; rv 140 drivers/hwmon/adc128d818.c ret = ERR_PTR(rv); rv 161 drivers/hwmon/lm80.c int rv; rv 173 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_IN(i)); rv 174 drivers/hwmon/lm80.c if (rv < 0) rv 176 drivers/hwmon/lm80.c data->in[i_input][i] = rv; rv 178 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_IN_MIN(i)); rv 179 drivers/hwmon/lm80.c if (rv < 0) rv 181 drivers/hwmon/lm80.c data->in[i_min][i] = rv; rv 183 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_IN_MAX(i)); rv 184 drivers/hwmon/lm80.c if (rv < 0) rv 186 drivers/hwmon/lm80.c data->in[i_max][i] = rv; rv 189 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_FAN1); rv 190 drivers/hwmon/lm80.c if (rv < 0) rv 192 drivers/hwmon/lm80.c data->fan[f_input][0] = rv; rv 194 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_FAN_MIN(1)); rv 195 drivers/hwmon/lm80.c if (rv < 0) rv 197 drivers/hwmon/lm80.c data->fan[f_min][0] = rv; rv 199 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_FAN2); rv 200 drivers/hwmon/lm80.c if (rv < 0) rv 202 drivers/hwmon/lm80.c data->fan[f_input][1] = rv; rv 204 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_FAN_MIN(2)); rv 205 drivers/hwmon/lm80.c if (rv < 0) rv 207 drivers/hwmon/lm80.c data->fan[f_min][1] = rv; rv 209 drivers/hwmon/lm80.c prev_rv = rv = lm80_read_value(client, LM80_REG_TEMP); rv 210 drivers/hwmon/lm80.c if (rv < 0) rv 212 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_RES); rv 213 drivers/hwmon/lm80.c if (rv < 0) rv 215 drivers/hwmon/lm80.c data->temp[t_input] = (prev_rv << 8) | (rv & 0xf0); rv 218 drivers/hwmon/lm80.c rv = lm80_read_value(client, temp_regs[i]); rv 219 drivers/hwmon/lm80.c if (rv < 0) rv 221 drivers/hwmon/lm80.c data->temp[i] = rv << 8; rv 224 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_FANDIV); rv 225 drivers/hwmon/lm80.c if (rv < 0) rv 227 drivers/hwmon/lm80.c data->fan_div[0] = (rv >> 2) & 0x03; rv 228 drivers/hwmon/lm80.c data->fan_div[1] = (rv >> 4) & 0x03; rv 230 drivers/hwmon/lm80.c prev_rv = rv = lm80_read_value(client, LM80_REG_ALARM1); rv 231 drivers/hwmon/lm80.c if (rv < 0) rv 233 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_ALARM2); rv 234 drivers/hwmon/lm80.c if (rv < 0) rv 236 drivers/hwmon/lm80.c data->alarms = prev_rv + (rv << 8); rv 245 drivers/hwmon/lm80.c ret = ERR_PTR(rv); rv 351 drivers/hwmon/lm80.c int rv; rv 353 drivers/hwmon/lm80.c rv = kstrtoul(buf, 10, &val); rv 354 drivers/hwmon/lm80.c if (rv < 0) rv 355 drivers/hwmon/lm80.c return rv; rv 383 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_FANDIV); rv 384 drivers/hwmon/lm80.c if (rv < 0) { rv 386 drivers/hwmon/lm80.c return rv; rv 388 drivers/hwmon/lm80.c reg = (rv & ~(3 << (2 * (nr + 1)))) rv 600 drivers/hwmon/lm80.c int rv; rv 613 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_FAN_MIN(1)); rv 614 drivers/hwmon/lm80.c if (rv < 0) rv 615 drivers/hwmon/lm80.c return rv; rv 616 drivers/hwmon/lm80.c data->fan[f_min][0] = rv; rv 617 drivers/hwmon/lm80.c rv = lm80_read_value(client, LM80_REG_FAN_MIN(2)); rv 618 drivers/hwmon/lm80.c if (rv < 0) rv 619 drivers/hwmon/lm80.c return rv; rv 620 drivers/hwmon/lm80.c data->fan[f_min][1] = rv; rv 135 drivers/hwmon/max16065.c int rv; rv 137 drivers/hwmon/max16065.c rv = i2c_smbus_read_word_swapped(client, reg); rv 138 drivers/hwmon/max16065.c if (unlikely(rv < 0)) rv 139 drivers/hwmon/max16065.c return rv; rv 140 drivers/hwmon/max16065.c return rv >> 6; rv 73 drivers/hwmon/max31790.c int rv; rv 78 drivers/hwmon/max31790.c rv = i2c_smbus_read_byte_data(client, rv 80 drivers/hwmon/max31790.c if (rv < 0) rv 82 drivers/hwmon/max31790.c data->fault_status = rv & 0x3F; rv 84 drivers/hwmon/max31790.c rv = i2c_smbus_read_byte_data(client, rv 86 drivers/hwmon/max31790.c if (rv < 0) rv 88 drivers/hwmon/max31790.c data->fault_status |= (rv & 0x3F) << 6; rv 91 drivers/hwmon/max31790.c rv = i2c_smbus_read_word_swapped(client, rv 93 drivers/hwmon/max31790.c if (rv < 0) rv 95 drivers/hwmon/max31790.c data->tach[i] = rv; rv 99 drivers/hwmon/max31790.c rv = i2c_smbus_read_word_swapped(client, rv 102 drivers/hwmon/max31790.c if (rv < 0) rv 104 drivers/hwmon/max31790.c data->tach[NR_CHANNEL + i] = rv; rv 106 drivers/hwmon/max31790.c rv = i2c_smbus_read_word_swapped(client, rv 108 drivers/hwmon/max31790.c if (rv < 0) rv 110 drivers/hwmon/max31790.c data->pwm[i] = rv; rv 112 drivers/hwmon/max31790.c rv = i2c_smbus_read_word_swapped(client, rv 114 drivers/hwmon/max31790.c if (rv < 0) rv 116 drivers/hwmon/max31790.c data->target_count[i] = rv; rv 127 drivers/hwmon/max31790.c ret = ERR_PTR(rv); rv 432 drivers/hwmon/max31790.c int i, rv; rv 435 drivers/hwmon/max31790.c rv = i2c_smbus_read_byte_data(client, rv 437 drivers/hwmon/max31790.c if (rv < 0) rv 438 drivers/hwmon/max31790.c return rv; rv 439 drivers/hwmon/max31790.c data->fan_config[i] = rv; rv 441 drivers/hwmon/max31790.c rv = i2c_smbus_read_byte_data(client, rv 443 drivers/hwmon/max31790.c if (rv < 0) rv 444 drivers/hwmon/max31790.c return rv; rv 445 drivers/hwmon/max31790.c data->fan_dynamics[i] = rv; rv 91 drivers/hwmon/pmbus/max31785.c int rv; rv 93 drivers/hwmon/pmbus/max31785.c rv = pmbus_get_fan_rate_device(client, page, 0, percent); rv 94 drivers/hwmon/pmbus/max31785.c if (rv < 0) rv 95 drivers/hwmon/pmbus/max31785.c return rv; rv 96 drivers/hwmon/pmbus/max31785.c else if (rv >= 0x8000) rv 98 drivers/hwmon/pmbus/max31785.c else if (rv >= 0x2711) rv 101 drivers/hwmon/pmbus/max31785.c return rv; rv 132 drivers/hwmon/pmbus/max31785.c int rv; rv 139 drivers/hwmon/pmbus/max31785.c rv = max31785_read_long_data(client, page - MAX31785_NR_PAGES, rv 141 drivers/hwmon/pmbus/max31785.c if (rv < 0) rv 142 drivers/hwmon/pmbus/max31785.c return rv; rv 144 drivers/hwmon/pmbus/max31785.c rv = (val >> 16) & 0xffff; rv 153 drivers/hwmon/pmbus/max31785.c rv = (page >= MAX31785_NR_PAGES) ? -ENOTSUPP : -ENODATA; rv 156 drivers/hwmon/pmbus/max31785.c rv = max31785_get_pwm(client, page); rv 159 drivers/hwmon/pmbus/max31785.c rv = max31785_get_pwm_mode(client, page); rv 162 drivers/hwmon/pmbus/max31785.c rv = -ENODATA; rv 166 drivers/hwmon/pmbus/max31785.c return rv; rv 211 drivers/hwmon/pmbus/max34440.c int page, rv; rv 214 drivers/hwmon/pmbus/max34440.c rv = i2c_smbus_write_byte_data(client, PMBUS_PAGE, page); rv 215 drivers/hwmon/pmbus/max34440.c if (rv < 0) rv 216 drivers/hwmon/pmbus/max34440.c return rv; rv 218 drivers/hwmon/pmbus/max34440.c rv = i2c_smbus_read_word_data(client, rv 220 drivers/hwmon/pmbus/max34440.c if (rv < 0) rv 221 drivers/hwmon/pmbus/max34440.c return rv; rv 223 drivers/hwmon/pmbus/max34440.c switch (rv & MAX34451_MFR_CHANNEL_CONFIG_SEL_MASK) { rv 467 drivers/hwmon/pmbus/max34440.c int rv; rv 477 drivers/hwmon/pmbus/max34440.c rv = max34451_set_supported_funcs(client, data); rv 478 drivers/hwmon/pmbus/max34440.c if (rv) rv 479 drivers/hwmon/pmbus/max34440.c return rv; rv 152 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 158 drivers/hwmon/pmbus/pmbus_core.c rv = i2c_smbus_write_byte_data(client, PMBUS_PAGE, page); rv 159 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 160 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 162 drivers/hwmon/pmbus/pmbus_core.c rv = i2c_smbus_read_byte_data(client, PMBUS_PAGE); rv 163 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 164 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 166 drivers/hwmon/pmbus/pmbus_core.c if (rv != page) rv 178 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 180 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_set_page(client, page); rv 181 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 182 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 209 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 211 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_set_page(client, page); rv 212 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 213 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 225 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 231 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_update_fan(client, page, id, bit, bit, word); rv 234 drivers/hwmon/pmbus/pmbus_core.c rv = -ENXIO; rv 238 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 268 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 278 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_write_byte_data(client, page, rv 280 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 281 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 291 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 293 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_set_page(client, page); rv 294 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 295 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 303 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 309 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_get_fan_rate_device(client, page, id, rpm); rv 312 drivers/hwmon/pmbus/pmbus_core.c rv = -ENXIO; rv 316 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 343 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 345 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_set_page(client, page); rv 346 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 347 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 355 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 357 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_set_page(client, page); rv 358 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 359 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 369 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 371 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_read_byte_data(client, page, reg); rv 372 drivers/hwmon/pmbus/pmbus_core.c if (rv < 0) rv 373 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 375 drivers/hwmon/pmbus/pmbus_core.c tmp = (rv & ~mask) | (value & mask); rv 377 drivers/hwmon/pmbus/pmbus_core.c if (tmp != rv) rv 378 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_write_byte_data(client, page, reg, tmp); rv 380 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 498 drivers/hwmon/pmbus/pmbus_core.c int rv; rv 501 drivers/hwmon/pmbus/pmbus_core.c rv = func(client, page, reg); rv 502 drivers/hwmon/pmbus/pmbus_core.c if (rv >= 0 && !(data->flags & PMBUS_SKIP_STATUS_CHECK)) rv 503 drivers/hwmon/pmbus/pmbus_core.c rv = pmbus_check_status_cml(client); rv 505 drivers/hwmon/pmbus/pmbus_core.c return rv >= 0; rv 697 drivers/hwmon/pmbus/pmbus_core.c long rv = 0; rv 702 drivers/hwmon/pmbus/pmbus_core.c rv = DIV_ROUND_CLOSEST(160000 - (val - 2) * 625, 100); rv 706 drivers/hwmon/pmbus/pmbus_core.c rv = 250 + (val - 1) * 5; rv 710 drivers/hwmon/pmbus/pmbus_core.c rv = 500 + (val - 1) * 10; rv 713 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 967 drivers/hwmon/pmbus/pmbus_core.c ssize_t rv = count; rv 979 drivers/hwmon/pmbus/pmbus_core.c rv = ret; rv 983 drivers/hwmon/pmbus/pmbus_core.c return rv; rv 161 drivers/hwmon/smm665.c int rv, val; rv 163 drivers/hwmon/smm665.c rv = i2c_smbus_read_byte_data(client, reg); rv 164 drivers/hwmon/smm665.c if (rv < 0) rv 165 drivers/hwmon/smm665.c return rv; rv 166 drivers/hwmon/smm665.c val = rv << 8; rv 167 drivers/hwmon/smm665.c rv = i2c_smbus_read_byte_data(client, reg + 1); rv 168 drivers/hwmon/smm665.c if (rv < 0) rv 169 drivers/hwmon/smm665.c return rv; rv 170 drivers/hwmon/smm665.c val |= rv; rv 180 drivers/hwmon/smm665.c int rv; rv 196 drivers/hwmon/smm665.c rv = i2c_smbus_read_byte_data(client, adc << 3); rv 197 drivers/hwmon/smm665.c if (rv != -ENXIO) { rv 204 drivers/hwmon/smm665.c "Unexpected return code %d when setting ADC index", rv); rv 205 drivers/hwmon/smm665.c return (rv < 0) ? rv : -EIO; rv 219 drivers/hwmon/smm665.c rv = i2c_smbus_read_word_swapped(client, 0); rv 220 drivers/hwmon/smm665.c if (rv < 0) { rv 221 drivers/hwmon/smm665.c dev_dbg(&client->dev, "Failed to read ADC value: error %d", rv); rv 222 drivers/hwmon/smm665.c return rv; rv 227 drivers/hwmon/smm665.c radc = (rv >> 11) & 0x0f; rv 234 drivers/hwmon/smm665.c return rv & SMM665_ADC_MASK; rv 459 drivers/infiniband/sw/siw/siw_cm.c int rv; rv 486 drivers/infiniband/sw/siw/siw_cm.c rv = kernel_sendmsg(s, &msg, iov, iovec_num + 1, mpa_len); rv 488 drivers/infiniband/sw/siw/siw_cm.c return rv < 0 ? rv : 0; rv 593 drivers/infiniband/sw/siw/siw_cm.c int version, rv; rv 596 drivers/infiniband/sw/siw/siw_cm.c rv = siw_recv_mpa_rr(cep); rv 597 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 598 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 687 drivers/infiniband/sw/siw/siw_cm.c rv = siw_cm_upcall(cep, IW_CM_EVENT_CONNECT_REQUEST, 0); rv 688 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 691 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 721 drivers/infiniband/sw/siw/siw_cm.c int rv; rv 727 drivers/infiniband/sw/siw/siw_cm.c rv = siw_recv_mpa_rr(cep); rv 728 drivers/infiniband/sw/siw/siw_cm.c if (rv != -EAGAIN) rv 730 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 737 drivers/infiniband/sw/siw/siw_cm.c rv = -EPROTO; rv 744 drivers/infiniband/sw/siw/siw_cm.c rv = -EPROTO; rv 822 drivers/infiniband/sw/siw/siw_cm.c rv = -ENOMEM; rv 850 drivers/infiniband/sw/siw/siw_cm.c rv = -EPROTO; rv 873 drivers/infiniband/sw/siw/siw_cm.c rv = -EINVAL; rv 877 drivers/infiniband/sw/siw/siw_cm.c rv = siw_qp_modify(qp, &qp_attrs, qp_attr_mask); rv 885 drivers/infiniband/sw/siw/siw_cm.c rv = siw_qp_mpa_rts(qp, mpa_p2p_mode); rv 886 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 889 drivers/infiniband/sw/siw/siw_cm.c if (!rv) { rv 890 drivers/infiniband/sw/siw/siw_cm.c rv = siw_cm_upcall(cep, IW_CM_EVENT_CONNECT_REPLY, 0); rv 891 drivers/infiniband/sw/siw/siw_cm.c if (!rv) rv 900 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 912 drivers/infiniband/sw/siw/siw_cm.c int rv = 0; /* debug only. should disappear */ rv 938 drivers/infiniband/sw/siw/siw_cm.c rv = kernel_accept(s, &new_s, O_NONBLOCK); rv 939 drivers/infiniband/sw/siw/siw_cm.c if (rv != 0) { rv 943 drivers/infiniband/sw/siw/siw_cm.c siw_dbg_cep(cep, "kernel_accept() error: %d\n", rv); rv 953 drivers/infiniband/sw/siw/siw_cm.c rv = kernel_setsockopt(new_s, SOL_TCP, TCP_NODELAY, rv 955 drivers/infiniband/sw/siw/siw_cm.c if (rv) { rv 956 drivers/infiniband/sw/siw/siw_cm.c siw_dbg_cep(cep, "setsockopt NODELAY error: %d\n", rv); rv 962 drivers/infiniband/sw/siw/siw_cm.c rv = siw_cm_queue_work(new_cep, SIW_CM_WORK_MPATIMEOUT); rv 963 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 978 drivers/infiniband/sw/siw/siw_cm.c rv = siw_proc_mpareq(new_cep); rv 981 drivers/infiniband/sw/siw/siw_cm.c if (rv != -EAGAIN) { rv 984 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 999 drivers/infiniband/sw/siw/siw_cm.c siw_dbg_cep(cep, "error %d\n", rv); rv 1006 drivers/infiniband/sw/siw/siw_cm.c int release_cep = 0, rv = 0; rv 1029 drivers/infiniband/sw/siw/siw_cm.c rv = siw_proc_mpareq(cep); rv 1031 drivers/infiniband/sw/siw/siw_cm.c rv = -EFAULT; rv 1035 drivers/infiniband/sw/siw/siw_cm.c if (rv != -EAGAIN) { rv 1038 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 1043 drivers/infiniband/sw/siw/siw_cm.c rv = siw_proc_mpareply(cep); rv 1058 drivers/infiniband/sw/siw/siw_cm.c if (rv && rv != EAGAIN) rv 1315 drivers/infiniband/sw/siw/siw_cm.c int rv, flags = 0, s_val = 1; rv 1322 drivers/infiniband/sw/siw/siw_cm.c rv = kernel_setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&s_val, rv 1324 drivers/infiniband/sw/siw/siw_cm.c if (rv < 0) rv 1325 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 1327 drivers/infiniband/sw/siw/siw_cm.c rv = s->ops->bind(s, laddr, size); rv 1328 drivers/infiniband/sw/siw/siw_cm.c if (rv < 0) rv 1329 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 1331 drivers/infiniband/sw/siw/siw_cm.c rv = s->ops->connect(s, raddr, size, flags); rv 1333 drivers/infiniband/sw/siw/siw_cm.c return rv < 0 ? rv : 0; rv 1346 drivers/infiniband/sw/siw/siw_cm.c int version = mpa_version, rv; rv 1372 drivers/infiniband/sw/siw/siw_cm.c rv = -EINVAL; rv 1392 drivers/infiniband/sw/siw/siw_cm.c rv = sock_create(v4 ? AF_INET : AF_INET6, SOCK_STREAM, IPPROTO_TCP, &s); rv 1393 drivers/infiniband/sw/siw/siw_cm.c if (rv < 0) rv 1401 drivers/infiniband/sw/siw/siw_cm.c rv = kernel_bindconnect(s, laddr, raddr); rv 1402 drivers/infiniband/sw/siw/siw_cm.c if (rv != 0) { rv 1403 drivers/infiniband/sw/siw/siw_cm.c siw_dbg_qp(qp, "kernel_bindconnect: error %d\n", rv); rv 1409 drivers/infiniband/sw/siw/siw_cm.c rv = kernel_setsockopt(s, SOL_TCP, TCP_NODELAY, (char *)&val, rv 1411 drivers/infiniband/sw/siw/siw_cm.c if (rv) { rv 1412 drivers/infiniband/sw/siw/siw_cm.c siw_dbg_qp(qp, "setsockopt NODELAY error: %d\n", rv); rv 1418 drivers/infiniband/sw/siw/siw_cm.c rv = -ENOMEM; rv 1438 drivers/infiniband/sw/siw/siw_cm.c rv = siw_cm_alloc_work(cep, 4); rv 1439 drivers/infiniband/sw/siw/siw_cm.c if (rv != 0) { rv 1440 drivers/infiniband/sw/siw/siw_cm.c rv = -ENOMEM; rv 1500 drivers/infiniband/sw/siw/siw_cm.c rv = siw_send_mpareqrep(cep, params->private_data, pd_len); rv 1506 drivers/infiniband/sw/siw/siw_cm.c if (rv >= 0) { rv 1507 drivers/infiniband/sw/siw/siw_cm.c rv = siw_cm_queue_work(cep, SIW_CM_WORK_MPATIMEOUT); rv 1508 drivers/infiniband/sw/siw/siw_cm.c if (!rv) { rv 1515 drivers/infiniband/sw/siw/siw_cm.c siw_dbg(id->device, "failed: %d\n", rv); rv 1543 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 1566 drivers/infiniband/sw/siw/siw_cm.c int rv, max_priv_data = MPA_MAX_PRIVDATA; rv 1598 drivers/infiniband/sw/siw/siw_cm.c rv = -EINVAL; rv 1615 drivers/infiniband/sw/siw/siw_cm.c rv = -EINVAL; rv 1627 drivers/infiniband/sw/siw/siw_cm.c rv = -EINVAL; rv 1638 drivers/infiniband/sw/siw/siw_cm.c rv = -EINVAL; rv 1648 drivers/infiniband/sw/siw/siw_cm.c rv = -ENOMEM; rv 1692 drivers/infiniband/sw/siw/siw_cm.c rv = siw_qp_modify(qp, &qp_attrs, rv 1698 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 1704 drivers/infiniband/sw/siw/siw_cm.c rv = siw_send_mpareqrep(cep, params->private_data, rv 1706 drivers/infiniband/sw/siw/siw_cm.c if (rv != 0) rv 1713 drivers/infiniband/sw/siw/siw_cm.c rv = siw_cm_upcall(cep, IW_CM_EVENT_ESTABLISHED, 0); rv 1714 drivers/infiniband/sw/siw/siw_cm.c if (rv) rv 1741 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 1798 drivers/infiniband/sw/siw/siw_cm.c int rv = 0, s_val; rv 1803 drivers/infiniband/sw/siw/siw_cm.c rv = sock_create(addr_family, SOCK_STREAM, IPPROTO_TCP, &s); rv 1804 drivers/infiniband/sw/siw/siw_cm.c if (rv < 0) rv 1805 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 1811 drivers/infiniband/sw/siw/siw_cm.c rv = kernel_setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&s_val, rv 1813 drivers/infiniband/sw/siw/siw_cm.c if (rv) { rv 1814 drivers/infiniband/sw/siw/siw_cm.c siw_dbg(id->device, "setsockopt error: %d\n", rv); rv 1824 drivers/infiniband/sw/siw/siw_cm.c rv = s->ops->bind(s, (struct sockaddr *)laddr, rv 1833 drivers/infiniband/sw/siw/siw_cm.c rv = s->ops->bind(s, (struct sockaddr *)laddr, rv 1836 drivers/infiniband/sw/siw/siw_cm.c if (rv) { rv 1837 drivers/infiniband/sw/siw/siw_cm.c siw_dbg(id->device, "socket bind error: %d\n", rv); rv 1842 drivers/infiniband/sw/siw/siw_cm.c rv = -ENOMEM; rv 1847 drivers/infiniband/sw/siw/siw_cm.c rv = siw_cm_alloc_work(cep, backlog); rv 1848 drivers/infiniband/sw/siw/siw_cm.c if (rv) { rv 1851 drivers/infiniband/sw/siw/siw_cm.c rv, backlog); rv 1854 drivers/infiniband/sw/siw/siw_cm.c rv = s->ops->listen(s, backlog); rv 1855 drivers/infiniband/sw/siw/siw_cm.c if (rv) { rv 1856 drivers/infiniband/sw/siw/siw_cm.c siw_dbg(id->device, "listen error %d\n", rv); rv 1886 drivers/infiniband/sw/siw/siw_cm.c rv = -ENOMEM; rv 1899 drivers/infiniband/sw/siw/siw_cm.c siw_dbg(id->device, "failed: %d\n", rv); rv 1917 drivers/infiniband/sw/siw/siw_cm.c return rv; rv 67 drivers/infiniband/sw/siw/siw_main.c int rv; rv 69 drivers/infiniband/sw/siw/siw_main.c rv = ib_register_device(base_dev, name); rv 70 drivers/infiniband/sw/siw/siw_main.c if (rv) { rv 71 drivers/infiniband/sw/siw/siw_main.c pr_warn("siw: device registration error %d\n", rv); rv 72 drivers/infiniband/sw/siw/siw_main.c return rv; rv 307 drivers/infiniband/sw/siw/siw_main.c int rv; rv 386 drivers/infiniband/sw/siw/siw_main.c rv = ib_device_set_netdev(base_dev, netdev, 1); rv 387 drivers/infiniband/sw/siw/siw_main.c if (rv) rv 537 drivers/infiniband/sw/siw/siw_main.c int rv = -ENOMEM; rv 556 drivers/infiniband/sw/siw/siw_main.c rv = siw_device_register(sdev, basedev_name); rv 557 drivers/infiniband/sw/siw/siw_main.c if (rv) rv 560 drivers/infiniband/sw/siw/siw_main.c return rv; rv 574 drivers/infiniband/sw/siw/siw_main.c int rv; rv 580 drivers/infiniband/sw/siw/siw_main.c rv = -EINVAL; rv 583 drivers/infiniband/sw/siw/siw_main.c rv = siw_init_cpulist(); rv 584 drivers/infiniband/sw/siw/siw_main.c if (rv) rv 587 drivers/infiniband/sw/siw/siw_main.c rv = siw_cm_init(); rv 588 drivers/infiniband/sw/siw/siw_main.c if (rv) rv 593 drivers/infiniband/sw/siw/siw_main.c rv = -ENOMEM; rv 606 drivers/infiniband/sw/siw/siw_main.c rv = -EOPNOTSUPP; rv 610 drivers/infiniband/sw/siw/siw_main.c rv = register_netdevice_notifier(&siw_netdev_nb); rv 611 drivers/infiniband/sw/siw/siw_main.c if (rv) rv 629 drivers/infiniband/sw/siw/siw_main.c pr_info("SoftIWARP attach failed. Error: %d\n", rv); rv 634 drivers/infiniband/sw/siw/siw_main.c return rv; rv 227 drivers/infiniband/sw/siw/siw_mem.c int rv = E_ACCESS_OK; rv 230 drivers/infiniband/sw/siw/siw_mem.c rv = -E_BASE_BOUNDS; rv 237 drivers/infiniband/sw/siw/siw_mem.c rv = -E_STAG_INVALID; rv 245 drivers/infiniband/sw/siw/siw_mem.c rv = -E_STAG_INVALID; rv 248 drivers/infiniband/sw/siw/siw_mem.c rv = siw_check_mem(pd, *mem, sge->laddr + off, perms, len); rv 249 drivers/infiniband/sw/siw/siw_mem.c if (unlikely(rv)) rv 259 drivers/infiniband/sw/siw/siw_mem.c return rv; rv 296 drivers/infiniband/sw/siw/siw_mem.c int rv = 0; rv 304 drivers/infiniband/sw/siw/siw_mem.c rv = -EACCES; rv 316 drivers/infiniband/sw/siw/siw_mem.c return rv; rv 375 drivers/infiniband/sw/siw/siw_mem.c int num_pages, num_chunks, i, rv = 0; rv 405 drivers/infiniband/sw/siw/siw_mem.c rv = -ENOMEM; rv 413 drivers/infiniband/sw/siw/siw_mem.c rv = -ENOMEM; rv 422 drivers/infiniband/sw/siw/siw_mem.c rv = -ENOMEM; rv 429 drivers/infiniband/sw/siw/siw_mem.c rv = get_user_pages(first_page_va, nents, rv 432 drivers/infiniband/sw/siw/siw_mem.c if (rv < 0) rv 435 drivers/infiniband/sw/siw/siw_mem.c umem->num_pages += rv; rv 436 drivers/infiniband/sw/siw/siw_mem.c atomic64_add(rv, &mm_s->pinned_vm); rv 437 drivers/infiniband/sw/siw/siw_mem.c first_page_va += rv * PAGE_SIZE; rv 438 drivers/infiniband/sw/siw/siw_mem.c nents -= rv; rv 439 drivers/infiniband/sw/siw/siw_mem.c got += rv; rv 446 drivers/infiniband/sw/siw/siw_mem.c if (rv > 0) rv 451 drivers/infiniband/sw/siw/siw_mem.c return ERR_PTR(rv); rv 264 drivers/infiniband/sw/siw/siw_qp.c int rv = 0; rv 302 drivers/infiniband/sw/siw/siw_qp.c rv = -EIO; rv 306 drivers/infiniband/sw/siw/siw_qp.c rv = -EINVAL; rv 308 drivers/infiniband/sw/siw/siw_qp.c if (rv) rv 313 drivers/infiniband/sw/siw/siw_qp.c if (!rv) rv 314 drivers/infiniband/sw/siw/siw_qp.c rv = siw_sq_start(qp); rv 316 drivers/infiniband/sw/siw/siw_qp.c return rv; rv 396 drivers/infiniband/sw/siw/siw_qp.c int num_frags, len_terminate, rv; rv 598 drivers/infiniband/sw/siw/siw_qp.c rv = kernel_sendmsg(s, &msg, iov, num_frags, len_terminate); rv 600 drivers/infiniband/sw/siw/siw_qp.c rv == len_terminate ? "success" : "failure", rv 602 drivers/infiniband/sw/siw/siw_qp.c __rdmap_term_ecode(term), rv); rv 637 drivers/infiniband/sw/siw/siw_qp.c int rv = 0; rv 642 drivers/infiniband/sw/siw/siw_qp.c rv = siw_qp_enable_crc(qp); rv 643 drivers/infiniband/sw/siw/siw_qp.c if (rv) rv 648 drivers/infiniband/sw/siw/siw_qp.c rv = -EINVAL; rv 653 drivers/infiniband/sw/siw/siw_qp.c rv = -EINVAL; rv 674 drivers/infiniband/sw/siw/siw_qp.c rv = siw_qp_readq_init(qp, attrs->irq_size, rv 676 drivers/infiniband/sw/siw/siw_qp.c if (rv) rv 699 drivers/infiniband/sw/siw/siw_qp.c return rv; rv 783 drivers/infiniband/sw/siw/siw_qp.c int rv = 0; rv 816 drivers/infiniband/sw/siw/siw_qp.c rv = -ECONNABORTED; rv 818 drivers/infiniband/sw/siw/siw_qp.c return rv; rv 827 drivers/infiniband/sw/siw/siw_qp.c int drop_conn = 0, rv = 0; rv 845 drivers/infiniband/sw/siw/siw_qp.c rv = siw_qp_nextstate_from_idle(qp, attrs, mask); rv 865 drivers/infiniband/sw/siw/siw_qp.c return rv; rv 890 drivers/infiniband/sw/siw/siw_qp.c int rv = 1; rv 946 drivers/infiniband/sw/siw/siw_qp.c rv = -EINVAL; rv 952 drivers/infiniband/sw/siw/siw_qp.c rv = -EINVAL; rv 956 drivers/infiniband/sw/siw/siw_qp.c rv = -EINVAL; rv 969 drivers/infiniband/sw/siw/siw_qp.c rv = -EINVAL; rv 976 drivers/infiniband/sw/siw/siw_qp.c rv = 0; rv 998 drivers/infiniband/sw/siw/siw_qp.c rv = 0; rv 1007 drivers/infiniband/sw/siw/siw_qp.c rv = 0; rv 1010 drivers/infiniband/sw/siw/siw_qp.c if (unlikely(rv < 0)) { rv 1011 drivers/infiniband/sw/siw/siw_qp.c siw_dbg_qp(qp, "error %d\n", rv); rv 1014 drivers/infiniband/sw/siw/siw_qp.c return rv; rv 1051 drivers/infiniband/sw/siw/siw_qp.c int rv = 0; rv 1095 drivers/infiniband/sw/siw/siw_qp.c rv = -ENOMEM; rv 1102 drivers/infiniband/sw/siw/siw_qp.c return rv; rv 1109 drivers/infiniband/sw/siw/siw_qp.c int rv = 0; rv 1157 drivers/infiniband/sw/siw/siw_qp.c rv = -ENOMEM; rv 1164 drivers/infiniband/sw/siw/siw_qp.c return rv; rv 1300 drivers/infiniband/sw/siw/siw_qp.c int rv = xa_alloc(&sdev->qp_xa, &qp->ib_qp->qp_num, qp, xa_limit_32b, rv 1303 drivers/infiniband/sw/siw/siw_qp.c if (!rv) { rv 1309 drivers/infiniband/sw/siw/siw_qp.c return rv; rv 36 drivers/infiniband/sw/siw/siw_qp_rx.c int pg_off, bytes, rv; rv 57 drivers/infiniband/sw/siw/siw_qp_rx.c rv = skb_copy_bits(srx->skb, srx->skb_offset, dest + pg_off, rv 60 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv)) { rv 66 drivers/infiniband/sw/siw/siw_qp_rx.c qp_id(rx_qp(srx)), __func__, len, p, rv); rv 106 drivers/infiniband/sw/siw/siw_qp_rx.c int rv; rv 110 drivers/infiniband/sw/siw/siw_qp_rx.c rv = skb_copy_bits(srx->skb, srx->skb_offset, kva, len); rv 111 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv)) { rv 113 drivers/infiniband/sw/siw/siw_qp_rx.c qp_id(rx_qp(srx)), __func__, len, kva, rv); rv 115 drivers/infiniband/sw/siw/siw_qp_rx.c return rv; rv 427 drivers/infiniband/sw/siw/siw_qp_rx.c int rv = 0; rv 441 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_send_check_ntoh(srx, frx); rv 442 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv)) { rv 444 drivers/infiniband/sw/siw/siw_qp_rx.c return rv; rv 476 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_check_sge(pd, sge, mem, IB_ACCESS_LOCAL_WRITE, rv 478 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv)) { rv 488 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_kva(srx, rv 492 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_umem(srx, mem_p->umem, rv 495 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_pbl(srx, &frx->pbl_idx, mem_p, rv 498 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv != sge_bytes)) { rv 506 drivers/infiniband/sw/siw/siw_qp_rx.c frx->sge_off += rv; rv 513 drivers/infiniband/sw/siw/siw_qp_rx.c data_bytes -= rv; rv 514 drivers/infiniband/sw/siw/siw_qp_rx.c rcvd_bytes += rv; rv 516 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rem -= rv; rv 517 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rcvd += rv; rv 524 drivers/infiniband/sw/siw/siw_qp_rx.c return (rv < 0) ? rv : -EAGAIN; rv 544 drivers/infiniband/sw/siw/siw_qp_rx.c int bytes, rv; rv 550 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_write_check_ntoh(srx, frx); rv 551 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv)) { rv 553 drivers/infiniband/sw/siw/siw_qp_rx.c return rv; rv 588 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_check_mem(qp->pd, mem, srx->ddp_to + srx->fpdu_part_rcvd, rv 590 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv)) { rv 592 drivers/infiniband/sw/siw/siw_qp_rx.c DDP_ETYPE_TAGGED_BUF, siw_tagged_error(-rv), rv 601 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_kva(srx, rv 605 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_umem(srx, mem->umem, rv 608 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_pbl(srx, &frx->pbl_idx, mem, rv 611 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv != bytes)) { rv 617 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rem -= rv; rv 618 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rcvd += rv; rv 671 drivers/infiniband/sw/siw/siw_qp_rx.c int run_sq = 1, rv = 0; rv 720 drivers/infiniband/sw/siw/siw_qp_rx.c rv = -EPROTO; rv 726 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_sq_start(qp); rv 728 drivers/infiniband/sw/siw/siw_qp_rx.c return rv; rv 784 drivers/infiniband/sw/siw/siw_qp_rx.c int bytes, rv; rv 790 drivers/infiniband/sw/siw/siw_qp_rx.c rv = -EPROTO; rv 796 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_orqe_start_rx(qp); rv 797 drivers/infiniband/sw/siw/siw_qp_rx.c if (rv) { rv 802 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rresp_check_ntoh(srx, frx); rv 803 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv)) { rv 805 drivers/infiniband/sw/siw/siw_qp_rx.c return rv; rv 811 drivers/infiniband/sw/siw/siw_qp_rx.c rv = -EPROTO; rv 825 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_check_sge(qp->pd, sge, mem, IB_ACCESS_LOCAL_WRITE, 0, rv 827 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv)) { rv 828 drivers/infiniband/sw/siw/siw_qp_rx.c siw_dbg_qp(qp, "target mem check: %d\n", rv); rv 833 drivers/infiniband/sw/siw/siw_qp_rx.c siw_tagged_error(-rv), 0); rv 845 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_kva(srx, rv 849 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_umem(srx, mem_p->umem, sge->laddr + wqe->processed, rv 852 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rx_pbl(srx, &frx->pbl_idx, mem_p, rv 854 drivers/infiniband/sw/siw/siw_qp_rx.c if (rv != bytes) { rv 856 drivers/infiniband/sw/siw/siw_qp_rx.c rv = -EINVAL; rv 859 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rem -= rv; rv 860 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rcvd += rv; rv 861 drivers/infiniband/sw/siw/siw_qp_rx.c wqe->processed += rv; rv 872 drivers/infiniband/sw/siw/siw_qp_rx.c return rv; rv 1142 drivers/infiniband/sw/siw/siw_qp_rx.c int resume_tx = 0, rv = 0; rv 1156 drivers/infiniband/sw/siw/siw_qp_rx.c rv = -EPROTO; rv 1165 drivers/infiniband/sw/siw/siw_qp_rx.c rv = -EPROTO; rv 1180 drivers/infiniband/sw/siw/siw_qp_rx.c rv = -EPROTO; rv 1188 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_sq_start(qp); rv 1190 drivers/infiniband/sw/siw/siw_qp_rx.c return rv; rv 1211 drivers/infiniband/sw/siw/siw_qp_rx.c int rv = 0; rv 1234 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_invalidate_stag(qp->pd, srx->inval_stag); rv 1235 drivers/infiniband/sw/siw/siw_qp_rx.c if (rv) { rv 1238 drivers/infiniband/sw/siw/siw_qp_rx.c rv == -EACCES ? rv 1245 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rqe_complete(qp, &wqe->rqe, wqe->processed, rv 1246 drivers/infiniband/sw/siw/siw_qp_rx.c rv ? 0 : srx->inval_stag, rv 1249 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rqe_complete(qp, &wqe->rqe, wqe->processed, rv 1272 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_invalidate_stag(qp->pd, wqe->sqe.sge[0].lkey); rv 1273 drivers/infiniband/sw/siw/siw_qp_rx.c if (rv) { rv 1280 drivers/infiniband/sw/siw/siw_qp_rx.c error = rv; rv 1288 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_sqe_complete(qp, &wqe->sqe, wqe->processed, rv 1293 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_check_tx_fence(qp); rv 1301 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_init_rresp(qp, srx); rv 1327 drivers/infiniband/sw/siw/siw_qp_rx.c return rv; rv 1345 drivers/infiniband/sw/siw/siw_qp_rx.c int rv; rv 1364 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_get_hdr(srx); rv 1365 drivers/infiniband/sw/siw/siw_qp_rx.c if (!rv) { rv 1395 drivers/infiniband/sw/siw/siw_qp_rx.c rv = iwarp_pktinfo[qp->rx_stream.rdmap_op].rx_data(qp); rv 1396 drivers/infiniband/sw/siw/siw_qp_rx.c if (!rv) { rv 1406 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv == -ECONNRESET)) rv 1417 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_get_trailer(qp, srx); rv 1418 drivers/infiniband/sw/siw/siw_qp_rx.c if (likely(!rv)) { rv 1431 drivers/infiniband/sw/siw/siw_qp_rx.c rv = siw_rdmap_complete(qp, 0); rv 1438 drivers/infiniband/sw/siw/siw_qp_rx.c rv = -EPROTO; rv 1441 drivers/infiniband/sw/siw/siw_qp_rx.c if (unlikely(rv != 0 && rv != -EAGAIN)) { rv 1444 drivers/infiniband/sw/siw/siw_qp_rx.c siw_rdmap_complete(qp, rv); rv 1446 drivers/infiniband/sw/siw/siw_qp_rx.c siw_dbg_qp(qp, "rx error %d, rx state %d\n", rv, rv 1453 drivers/infiniband/sw/siw/siw_qp_rx.c if (rv) { rv 301 drivers/infiniband/sw/siw/siw_qp_tx.c int rv = kernel_sendmsg(s, &msg, &iov, 1, rv 304 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv >= 0) { rv 305 drivers/infiniband/sw/siw/siw_qp_tx.c c_tx->ctrl_sent += rv; rv 308 drivers/infiniband/sw/siw/siw_qp_tx.c rv = 0; rv 310 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EAGAIN; rv 312 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 328 drivers/infiniband/sw/siw/siw_qp_tx.c int i = 0, rv = 0, sent = 0, rv 340 drivers/infiniband/sw/siw/siw_qp_tx.c rv = do_tcp_sendpages(sk, page[i], offset, bytes, flags); rv 343 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv > 0) { rv 344 drivers/infiniband/sw/siw/siw_qp_tx.c size -= rv; rv 345 drivers/infiniband/sw/siw/siw_qp_tx.c sent += rv; rv 346 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv != bytes) { rv 347 drivers/infiniband/sw/siw/siw_qp_tx.c offset += rv; rv 348 drivers/infiniband/sw/siw/siw_qp_tx.c bytes -= rv; rv 353 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv == -EAGAIN || rv == 0) rv 355 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 373 drivers/infiniband/sw/siw/siw_qp_tx.c int i = 0, sent = 0, rv; rv 379 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_tcp_sendpages(s, &page[i], offset, sge_bytes); rv 380 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv >= 0) { rv 381 drivers/infiniband/sw/siw/siw_qp_tx.c sent += rv; rv 382 drivers/infiniband/sw/siw/siw_qp_tx.c if (size == sent || sge_bytes > rv) rv 390 drivers/infiniband/sw/siw/siw_qp_tx.c sent = rv; rv 432 drivers/infiniband/sw/siw/siw_qp_tx.c int seg = 0, do_crc = c_tx->do_crc, is_kva = 0, rv; rv 440 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_tx_ctrl(c_tx, s, MSG_DONTWAIT | MSG_MORE); rv 441 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv) rv 502 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EFAULT; rv 545 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EMSGSIZE; rv 582 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_0copy_tx(s, page_array, &wqe->sqe.sge[c_tx->sge_idx], rv 584 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv == data_len) { rv 585 drivers/infiniband/sw/siw/siw_qp_tx.c rv = kernel_sendmsg(s, &msg, &iov[seg], 1, trl_len); rv 586 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv > 0) rv 587 drivers/infiniband/sw/siw/siw_qp_tx.c rv += data_len; rv 589 drivers/infiniband/sw/siw/siw_qp_tx.c rv = data_len; rv 592 drivers/infiniband/sw/siw/siw_qp_tx.c rv = kernel_sendmsg(s, &msg, iov, seg + 1, rv 596 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv < (int)hdr_len) { rv 599 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv >= 0) { rv 600 drivers/infiniband/sw/siw/siw_qp_tx.c c_tx->ctrl_sent += rv; rv 601 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EAGAIN; rv 605 drivers/infiniband/sw/siw/siw_qp_tx.c rv -= hdr_len; rv 607 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv >= (int)data_len) { rv 615 drivers/infiniband/sw/siw/siw_qp_tx.c rv -= data_len; rv 617 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv == trl_len) /* all pushed */ rv 618 drivers/infiniband/sw/siw/siw_qp_tx.c rv = 0; rv 622 drivers/infiniband/sw/siw/siw_qp_tx.c c_tx->ctrl_sent = rv + 4 - c_tx->pad; rv 624 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EAGAIN; rv 630 drivers/infiniband/sw/siw/siw_qp_tx.c wqe->processed -= data_len - rv; rv 632 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv) { rv 639 drivers/infiniband/sw/siw/siw_qp_tx.c c_tx->bytes_unsent -= rv; rv 643 drivers/infiniband/sw/siw/siw_qp_tx.c while (sge_unsent <= rv) { rv 644 drivers/infiniband/sw/siw/siw_qp_tx.c rv -= sge_unsent; rv 650 drivers/infiniband/sw/siw/siw_qp_tx.c c_tx->sge_off += rv; rv 652 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EAGAIN; rv 657 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 765 drivers/infiniband/sw/siw/siw_qp_tx.c int rv = siw_check_sge(pd, sge, &wqe->mem[i], perms, 0, rv 768 drivers/infiniband/sw/siw/siw_qp_tx.c if (unlikely(rv != E_ACCESS_OK)) rv 769 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 785 drivers/infiniband/sw/siw/siw_qp_tx.c int rv = 0, burst_len = qp->tx_ctx.burst; rv 806 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_check_sgl_tx(qp->pd, wqe, 0); rv 807 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv < 0) { rv 810 drivers/infiniband/sw/siw/siw_qp_tx.c ecode = siw_rdmap_error(-rv); rv 811 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EINVAL; rv 814 drivers/infiniband/sw/siw/siw_qp_tx.c wqe->bytes = rv; rv 822 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EINVAL; rv 834 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_qp_prepare_tx(c_tx); rv 835 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv == PKT_FRAGMENTED) { rv 838 drivers/infiniband/sw/siw/siw_qp_tx.c } else if (rv == PKT_COMPLETE) { rv 851 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EINPROGRESS; rv 868 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_tx_ctrl(c_tx, s, msg_flags); rv 870 drivers/infiniband/sw/siw/siw_qp_tx.c if (!rv && tx_type != SIW_OP_READ && rv 877 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_tx_hdt(c_tx, s); rv 879 drivers/infiniband/sw/siw/siw_qp_tx.c if (!rv) { rv 890 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -ECONNABORTED; rv 906 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 916 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 924 drivers/infiniband/sw/siw/siw_qp_tx.c int rv = 0; rv 946 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EINVAL; rv 951 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EINVAL; rv 963 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 968 drivers/infiniband/sw/siw/siw_qp_tx.c int rv; rv 972 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_fastreg_mr(qp->pd, &wqe->sqe); rv 976 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_invalidate_stag(qp->pd, wqe->sqe.rkey); rv 980 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EINVAL; rv 982 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 1017 drivers/infiniband/sw/siw/siw_qp_tx.c int rv = 0; rv 1032 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_qp_sq_proc_tx(qp, wqe); rv 1034 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_qp_sq_proc_local(qp, wqe); rv 1036 drivers/infiniband/sw/siw/siw_qp_tx.c if (!rv) { rv 1067 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EINVAL; rv 1073 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_activate_tx(qp); rv 1076 drivers/infiniband/sw/siw/siw_qp_tx.c if (rv <= 0) rv 1081 drivers/infiniband/sw/siw/siw_qp_tx.c } else if (rv == -EAGAIN) { rv 1085 drivers/infiniband/sw/siw/siw_qp_tx.c rv = 0; rv 1087 drivers/infiniband/sw/siw/siw_qp_tx.c } else if (rv == -EINPROGRESS) { rv 1088 drivers/infiniband/sw/siw/siw_qp_tx.c rv = siw_sq_start(qp); rv 1104 drivers/infiniband/sw/siw/siw_qp_tx.c tx_type(wqe), rv); rv 1143 drivers/infiniband/sw/siw/siw_qp_tx.c siw_dbg_qp(qp, "proc. read.response failed: %d\n", rv); rv 1153 drivers/infiniband/sw/siw/siw_qp_tx.c rv = -EINVAL; rv 1158 drivers/infiniband/sw/siw/siw_qp_tx.c return rv; rv 1166 drivers/infiniband/sw/siw/siw_qp_tx.c int rv = siw_qp_sq_process(qp); rv 1170 drivers/infiniband/sw/siw/siw_qp_tx.c if (unlikely(rv < 0)) { rv 1171 drivers/infiniband/sw/siw/siw_qp_tx.c siw_dbg_qp(qp, "SQ task failed: err %d\n", rv); rv 75 drivers/infiniband/sw/siw/siw_verbs.c int rv = -EINVAL; rv 90 drivers/infiniband/sw/siw/siw_verbs.c rv = remap_vmalloc_range(vma, uobj->addr, 0); rv 91 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 94 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 102 drivers/infiniband/sw/siw/siw_verbs.c int rv; rv 105 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 115 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 118 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); rv 119 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 129 drivers/infiniband/sw/siw/siw_verbs.c siw_dbg(base_ctx->device, "failure %d. now %d context(s)\n", rv, rv 132 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 234 drivers/infiniband/sw/siw/siw_verbs.c int rv = siw_query_port(base_dev, port, &attr); rv 236 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 237 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 319 drivers/infiniband/sw/siw/siw_verbs.c int num_sqe, num_rqe, rv = 0; rv 325 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 330 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 338 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 344 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 353 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 361 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 366 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 371 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 386 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_qp_add(sdev, qp); rv 387 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 405 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 412 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 438 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 472 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 479 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 482 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); rv 483 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 488 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 515 drivers/infiniband/sw/siw/siw_verbs.c return ERR_PTR(rv); rv 564 drivers/infiniband/sw/siw/siw_verbs.c int rv = 0; rv 597 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_qp_modify(qp, &new_attrs, siw_attr_mask); rv 601 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 693 drivers/infiniband/sw/siw/siw_verbs.c int rv = 0; rv 698 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_sqe_complete(qp, &sqe, 0, SIW_WC_WR_FLUSH_ERR); rv 699 drivers/infiniband/sw/siw/siw_verbs.c if (rv) { rv 706 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 714 drivers/infiniband/sw/siw/siw_verbs.c int rv = 0; rv 718 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_rqe_complete(qp, &rqe, 0, 0, SIW_WC_WR_FLUSH_ERR); rv 719 drivers/infiniband/sw/siw/siw_verbs.c if (rv) { rv 726 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 745 drivers/infiniband/sw/siw/siw_verbs.c int rv = 0; rv 768 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_sq_flush_wr(qp, wr, bad_wr); rv 773 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOTCONN; rv 775 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 786 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_sq_flush_wr(qp, wr, bad_wr); rv 791 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOTCONN; rv 794 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 804 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 809 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 832 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_copy_inline_sgl(wr, sqe); rv 833 drivers/infiniband/sw/siw/siw_verbs.c if (rv <= 0) { rv 834 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 858 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 881 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_copy_inline_sgl(wr, sqe); rv 882 drivers/infiniband/sw/siw/siw_verbs.c if (unlikely(rv < 0)) { rv 883 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 909 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 916 drivers/infiniband/sw/siw/siw_verbs.c if (unlikely(rv < 0)) rv 938 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_activate_tx(qp); rv 941 drivers/infiniband/sw/siw/siw_verbs.c if (rv <= 0) rv 945 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_sq_start(qp); rv 958 drivers/infiniband/sw/siw/siw_verbs.c if (rv >= 0) rv 963 drivers/infiniband/sw/siw/siw_verbs.c siw_dbg_qp(qp, "error %d\n", rv); rv 966 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 983 drivers/infiniband/sw/siw/siw_verbs.c int rv = 0; rv 1010 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_rq_flush_wr(qp, wr, bad_wr); rv 1015 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOTCONN; rv 1017 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 1028 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_rq_flush_wr(qp, wr, bad_wr); rv 1033 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOTCONN; rv 1036 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 1050 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1055 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1074 drivers/infiniband/sw/siw/siw_verbs.c if (rv < 0) { rv 1075 drivers/infiniband/sw/siw/siw_verbs.c siw_dbg_qp(qp, "error %d\n", rv); rv 1078 drivers/infiniband/sw/siw/siw_verbs.c return rv > 0 ? 0 : rv; rv 1116 drivers/infiniband/sw/siw/siw_verbs.c int rv, size = attr->cqe; rv 1120 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1125 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1142 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1163 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1171 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1174 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); rv 1175 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 1181 drivers/infiniband/sw/siw/siw_verbs.c siw_dbg(base_cq->device, "CQ creation failed: %d", rv); rv 1193 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 1304 drivers/infiniband/sw/siw/siw_verbs.c int rv; rv 1312 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1316 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1328 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1334 drivers/infiniband/sw/siw/siw_verbs.c rv = PTR_ERR(umem); rv 1335 drivers/infiniband/sw/siw/siw_verbs.c siw_dbg_pd(pd, "getting user memory failed: %d\n", rv); rv 1341 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1344 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_mr_add_mem(mr, pd, umem, start, len, rights); rv 1345 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 1353 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1356 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_from_udata(&ureq, udata, sizeof(ureq)); rv 1357 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 1366 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1369 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); rv 1370 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 1387 drivers/infiniband/sw/siw/siw_verbs.c return ERR_PTR(rv); rv 1396 drivers/infiniband/sw/siw/siw_verbs.c int rv; rv 1400 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1405 drivers/infiniband/sw/siw/siw_verbs.c rv = -EOPNOTSUPP; rv 1410 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1415 drivers/infiniband/sw/siw/siw_verbs.c rv = PTR_ERR(pbl); rv 1416 drivers/infiniband/sw/siw/siw_verbs.c siw_dbg_pd(pd, "pbl allocation failed: %d\n", rv); rv 1422 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1425 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); rv 1426 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 1445 drivers/infiniband/sw/siw/siw_verbs.c siw_dbg_pd(pd, "failed: %d\n", rv); rv 1447 drivers/infiniband/sw/siw/siw_verbs.c return ERR_PTR(rv); rv 1465 drivers/infiniband/sw/siw/siw_verbs.c int i, rv; rv 1507 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_sg_to_pages(base_mr, sl, num_sle, sg_off, siw_set_pbl_page); rv 1508 drivers/infiniband/sw/siw/siw_verbs.c if (rv > 0) { rv 1516 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 1528 drivers/infiniband/sw/siw/siw_verbs.c int rv; rv 1532 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1537 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1540 drivers/infiniband/sw/siw/siw_verbs.c rv = siw_mr_add_mem(mr, pd, NULL, 0, ULONG_MAX, rights); rv 1541 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 1551 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 1556 drivers/infiniband/sw/siw/siw_verbs.c return ERR_PTR(rv); rv 1578 drivers/infiniband/sw/siw/siw_verbs.c int rv; rv 1582 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1587 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1606 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1616 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1623 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1626 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); rv 1627 drivers/infiniband/sw/siw/siw_verbs.c if (rv) rv 1644 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 1661 drivers/infiniband/sw/siw/siw_verbs.c int rv = 0; rv 1667 drivers/infiniband/sw/siw/siw_verbs.c rv = -EOPNOTSUPP; rv 1673 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1685 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 1749 drivers/infiniband/sw/siw/siw_verbs.c int rv = 0; rv 1754 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1770 drivers/infiniband/sw/siw/siw_verbs.c rv = -ENOMEM; rv 1776 drivers/infiniband/sw/siw/siw_verbs.c rv = -EINVAL; rv 1793 drivers/infiniband/sw/siw/siw_verbs.c if (unlikely(rv < 0)) { rv 1794 drivers/infiniband/sw/siw/siw_verbs.c siw_dbg_pd(base_srq->pd, "[SRQ]: error %d\n", rv); rv 1797 drivers/infiniband/sw/siw/siw_verbs.c return rv; rv 80 drivers/input/touchscreen/lpc32xx_ts.c u32 tmp, rv[4], xs[4], ys[4]; rv 107 drivers/input/touchscreen/lpc32xx_ts.c rv[idx] = tmp; rv 112 drivers/input/touchscreen/lpc32xx_ts.c if (!(rv[3] & LPC32XX_TSC_FIFO_TS_P_LEVEL) && idx == 4) { rv 70 drivers/leds/leds-max77650.c int rv, num_leds; rv 89 drivers/leds/leds-max77650.c rv = fwnode_property_read_u32(child, "reg", ®); rv 90 drivers/leds/leds-max77650.c if (rv || reg >= MAX77650_LED_NUM_LEDS) { rv 91 drivers/leds/leds-max77650.c rv = -EINVAL; rv 102 drivers/leds/leds-max77650.c rv = fwnode_property_read_string(child, "label", &label); rv 103 drivers/leds/leds-max77650.c if (rv) { rv 109 drivers/leds/leds-max77650.c rv = -ENOMEM; rv 117 drivers/leds/leds-max77650.c rv = devm_led_classdev_register(dev, &led->cdev); rv 118 drivers/leds/leds-max77650.c if (rv) rv 121 drivers/leds/leds-max77650.c rv = regmap_write(map, led->regA, MAX77650_LED_A_DEFAULT); rv 122 drivers/leds/leds-max77650.c if (rv) rv 125 drivers/leds/leds-max77650.c rv = regmap_write(map, led->regB, MAX77650_LED_B_DEFAULT); rv 126 drivers/leds/leds-max77650.c if (rv) rv 135 drivers/leds/leds-max77650.c return rv; rv 83 drivers/md/dm-target.c int rv = 0; rv 87 drivers/md/dm-target.c rv = -EEXIST; rv 92 drivers/md/dm-target.c return rv; rv 1517 drivers/md/md-bitmap.c int rv; rv 1524 drivers/md/md-bitmap.c rv = 0; rv 1528 drivers/md/md-bitmap.c rv = 1; rv 1530 drivers/md/md-bitmap.c rv = 1; rv 1538 drivers/md/md-bitmap.c return rv; rv 1551 drivers/md/md-bitmap.c int rv = 0; rv 1556 drivers/md/md-bitmap.c rv |= __bitmap_start_sync(bitmap, offset, rv 1561 drivers/md/md-bitmap.c return rv; rv 1959 drivers/md/md-bitmap.c int rv = 0; rv 1964 drivers/md/md-bitmap.c rv = PTR_ERR(bitmap); rv 1965 drivers/md/md-bitmap.c return ERR_PTR(rv); rv 1968 drivers/md/md-bitmap.c rv = md_bitmap_init_from_disk(bitmap, 0); rv 1969 drivers/md/md-bitmap.c if (rv) { rv 1971 drivers/md/md-bitmap.c return ERR_PTR(rv); rv 1984 drivers/md/md-bitmap.c int rv = 0, i, j; rv 2021 drivers/md/md-bitmap.c return rv; rv 2274 drivers/md/md-bitmap.c int rv; rv 2276 drivers/md/md-bitmap.c rv = mddev_lock(mddev); rv 2277 drivers/md/md-bitmap.c if (rv) rv 2278 drivers/md/md-bitmap.c return rv; rv 2281 drivers/md/md-bitmap.c rv = -EBUSY; rv 2285 drivers/md/md-bitmap.c rv = -EBUSY; rv 2294 drivers/md/md-bitmap.c rv = -EBUSY; rv 2315 drivers/md/md-bitmap.c rv = -EINVAL; rv 2319 drivers/md/md-bitmap.c rv = kstrtoll(buf+1, 10, &offset); rv 2321 drivers/md/md-bitmap.c rv = kstrtoll(buf, 10, &offset); rv 2322 drivers/md/md-bitmap.c if (rv) rv 2325 drivers/md/md-bitmap.c rv = -EINVAL; rv 2331 drivers/md/md-bitmap.c rv = -EINVAL; rv 2340 drivers/md/md-bitmap.c rv = PTR_ERR(bitmap); rv 2343 drivers/md/md-bitmap.c rv = md_bitmap_load(mddev); rv 2344 drivers/md/md-bitmap.c if (rv) rv 2347 drivers/md/md-bitmap.c if (rv) { rv 2363 drivers/md/md-bitmap.c rv = 0; rv 2366 drivers/md/md-bitmap.c if (rv) rv 2367 drivers/md/md-bitmap.c return rv; rv 2388 drivers/md/md-bitmap.c int rv; rv 2390 drivers/md/md-bitmap.c rv = kstrtoul(buf, 10, §ors); rv 2391 drivers/md/md-bitmap.c if (rv) rv 2392 drivers/md/md-bitmap.c return rv; rv 2430 drivers/md/md-bitmap.c int rv = strict_strtoul_scaled(buf, &timeout, 4); rv 2431 drivers/md/md-bitmap.c if (rv) rv 2432 drivers/md/md-bitmap.c return rv; rv 2472 drivers/md/md-bitmap.c int rv = kstrtoul(buf, 10, &backlog); rv 2473 drivers/md/md-bitmap.c if (rv) rv 2474 drivers/md/md-bitmap.c return rv; rv 2507 drivers/md/md-bitmap.c int rv; rv 2511 drivers/md/md-bitmap.c rv = kstrtoul(buf, 10, &csize); rv 2512 drivers/md/md-bitmap.c if (rv) rv 2513 drivers/md/md-bitmap.c return rv; rv 1125 drivers/md/md-cluster.c int i, rv; rv 1131 drivers/md/md-cluster.c rv = update_bitmap_size(mddev, newsize); rv 1132 drivers/md/md-cluster.c if (rv) rv 1133 drivers/md/md-cluster.c return rv; rv 1157 drivers/md/md-cluster.c rv = dlm_lock_sync(bm_lockres, DLM_LOCK_PW); rv 1158 drivers/md/md-cluster.c if (!rv) rv 1182 drivers/md/md-cluster.c int i, rv; rv 1217 drivers/md/md-cluster.c rv = dlm_lock_sync(bm_lockres, DLM_LOCK_PW); rv 1218 drivers/md/md-cluster.c if (!rv) rv 3019 drivers/md/md.c int rv; rv 3021 drivers/md/md.c rv = kstrtouint(buf, 10, &n); rv 3022 drivers/md/md.c if (rv < 0) rv 3023 drivers/md/md.c return rv; rv 3376 drivers/md/md.c int rv = badblocks_store(&rdev->badblocks, page, len, 0); rv 3380 drivers/md/md.c return rv; rv 3501 drivers/md/md.c ssize_t rv; rv 3508 drivers/md/md.c rv = mddev ? mddev_lock(mddev) : -ENODEV; rv 3509 drivers/md/md.c if (!rv) { rv 3511 drivers/md/md.c rv = -ENODEV; rv 3513 drivers/md/md.c rv = entry->store(rdev, page, length); rv 3516 drivers/md/md.c return rv; rv 3791 drivers/md/md.c ssize_t rv; rv 3801 drivers/md/md.c rv = mddev_lock(mddev); rv 3802 drivers/md/md.c if (rv) rv 3803 drivers/md/md.c return rv; rv 3811 drivers/md/md.c rv = len; rv 3814 drivers/md/md.c rv = -EROFS; rv 3824 drivers/md/md.c rv = -EBUSY; rv 3831 drivers/md/md.c rv = -EINVAL; rv 3853 drivers/md/md.c rv = -EINVAL; rv 3861 drivers/md/md.c rv = len; rv 3868 drivers/md/md.c rv = -EINVAL; rv 3889 drivers/md/md.c rv = PTR_ERR(priv); rv 3983 drivers/md/md.c rv = len; rv 3986 drivers/md/md.c return rv; rv 4405 drivers/md/md.c int rv; rv 4407 drivers/md/md.c rv = kstrtouint(buf, 10, &n); rv 4408 drivers/md/md.c if (rv < 0) rv 4409 drivers/md/md.c return rv; rv 4775 drivers/md/md.c int rv; rv 4780 drivers/md/md.c rv = kstrtouint(buf, 10, &min); rv 4781 drivers/md/md.c if (rv < 0) rv 4782 drivers/md/md.c return rv; rv 4804 drivers/md/md.c int rv; rv 4809 drivers/md/md.c rv = kstrtouint(buf, 10, &max); rv 4810 drivers/md/md.c if (rv < 0) rv 4811 drivers/md/md.c return rv; rv 5327 drivers/md/md.c ssize_t rv; rv 5339 drivers/md/md.c rv = entry->show(mddev, page); rv 5341 drivers/md/md.c return rv; rv 5350 drivers/md/md.c ssize_t rv; rv 5363 drivers/md/md.c rv = entry->store(mddev, page, length); rv 5365 drivers/md/md.c return rv; rv 6999 drivers/md/md.c int rv; rv 7028 drivers/md/md.c rv = mddev->pers->resize(mddev, num_sectors); rv 7029 drivers/md/md.c if (!rv) { rv 7037 drivers/md/md.c return rv; rv 7042 drivers/md/md.c int rv; rv 7072 drivers/md/md.c rv = mddev->pers->check_reshape(mddev); rv 7073 drivers/md/md.c if (rv < 0) { rv 7077 drivers/md/md.c return rv; rv 7090 drivers/md/md.c int rv = 0; rv 7133 drivers/md/md.c rv = mddev->pers->check_reshape(mddev); rv 7134 drivers/md/md.c if (rv) rv 7136 drivers/md/md.c return rv; rv 7140 drivers/md/md.c rv = update_size(mddev, (sector_t)info->size * 2); rv 7143 drivers/md/md.c rv = update_raid_disks(mddev, info->raid_disks); rv 7147 drivers/md/md.c rv = -EINVAL; rv 7151 drivers/md/md.c rv = -EBUSY; rv 7158 drivers/md/md.c rv = -EEXIST; rv 7162 drivers/md/md.c rv = -EINVAL; rv 7173 drivers/md/md.c rv = md_bitmap_load(mddev); rv 7175 drivers/md/md.c rv = PTR_ERR(bitmap); rv 7176 drivers/md/md.c if (rv) rv 7182 drivers/md/md.c rv = -ENOENT; rv 7186 drivers/md/md.c rv = -EINVAL; rv 7193 drivers/md/md.c rv = -EPERM; rv 7208 drivers/md/md.c return rv; rv 7210 drivers/md/md.c return rv; rv 9238 drivers/md/md.c int rv; rv 9243 drivers/md/md.c rv = badblocks_set(&rdev->badblocks, s, sectors, 0); rv 9244 drivers/md/md.c if (rv == 0) { rv 9262 drivers/md/md.c int rv; rv 9267 drivers/md/md.c rv = badblocks_clear(&rdev->badblocks, s, sectors); rv 9268 drivers/md/md.c if ((rv == 0) && test_bit(ExternalBbl, &rdev->flags)) rv 9270 drivers/md/md.c return rv; rv 214 drivers/md/md.h int rv = badblocks_check(&rdev->badblocks, rdev->data_offset + s, rv 217 drivers/md/md.h if (rv) rv 219 drivers/md/md.h return rv; rv 2840 drivers/md/raid1.c sector_t rv; rv 2843 drivers/md/raid1.c rv = max_sector - sector_nr; rv 2846 drivers/md/raid1.c return rv; rv 3513 drivers/md/raid5.c int rv = 0; rv 3522 drivers/md/raid5.c rv = 1; rv 3524 drivers/md/raid5.c return rv; rv 6068 drivers/md/raid5.c sector_t rv = mddev->dev_sectors - sector_nr; rv 6070 drivers/md/raid5.c return rv; rv 374 drivers/media/dvb-frontends/cx24110.c int rv, bit; rv 385 drivers/media/dvb-frontends/cx24110.c rv = cx24110_readreg(state, 0x77); rv 386 drivers/media/dvb-frontends/cx24110.c if (!(rv & 0x04)) rv 387 drivers/media/dvb-frontends/cx24110.c cx24110_writereg(state, 0x77, rv | 0x04); rv 389 drivers/media/dvb-frontends/cx24110.c rv = cx24110_readreg(state, 0x76); rv 390 drivers/media/dvb-frontends/cx24110.c cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40 | bit)); rv 401 drivers/media/dvb-frontends/cx24110.c int i, rv; rv 411 drivers/media/dvb-frontends/cx24110.c rv = cx24110_readreg(state, 0x77); rv 412 drivers/media/dvb-frontends/cx24110.c if (rv & 0x04) { rv 413 drivers/media/dvb-frontends/cx24110.c cx24110_writereg(state, 0x77, rv & ~0x04); rv 417 drivers/media/dvb-frontends/cx24110.c rv = cx24110_readreg(state, 0x76); rv 419 drivers/media/dvb-frontends/cx24110.c cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40) | ((cmd->msg_len-3) & 3)); rv 112 drivers/media/dvb-frontends/tc90522.c struct reg_val rv; rv 117 drivers/media/dvb-frontends/tc90522.c rv.reg = 0x71; rv 118 drivers/media/dvb-frontends/tc90522.c rv.val = laysel; rv 119 drivers/media/dvb-frontends/tc90522.c return reg_write(fe->demodulator_priv, &rv, 1); rv 542 drivers/media/dvb-frontends/tc90522.c struct reg_val *rv; rv 551 drivers/media/dvb-frontends/tc90522.c rv = agc_sat; rv 556 drivers/media/dvb-frontends/tc90522.c rv = agc_ter; rv 559 drivers/media/dvb-frontends/tc90522.c return reg_write(state, rv, num); rv 476 drivers/media/i2c/rj54n1cb0c.c const struct rj54n1_reg_val *rv, const int n) rv 481 drivers/media/i2c/rj54n1cb0c.c ret = reg_write(client, rv->reg, rv->val); rv 484 drivers/media/i2c/rj54n1cb0c.c rv++; rv 366 drivers/media/i2c/saa7110.c int rv; rv 404 drivers/media/i2c/saa7110.c rv = saa7110_write_block(sd, initseq, sizeof(initseq)); rv 405 drivers/media/i2c/saa7110.c if (rv < 0) { rv 406 drivers/media/i2c/saa7110.c v4l2_dbg(1, debug, sd, "init status %d\n", rv); rv 139 drivers/media/pci/pt3/pt3.c struct reg_val rv = { 0x1e, 0x99 }; rv 142 drivers/media/pci/pt3/pt3.c rv.val |= 0x40; rv 144 drivers/media/pci/pt3/pt3.c rv.val |= 0x04; rv 145 drivers/media/pci/pt3/pt3.c return pt3_demod_write(pt3->adaps[PT3_NUM_FE - 1], &rv, 1); rv 83 drivers/media/usb/go7007/go7007-driver.c int fw_len, rv = 0; rv 112 drivers/media/usb/go7007/go7007-driver.c rv = -1; rv 114 drivers/media/usb/go7007/go7007-driver.c return rv; rv 324 drivers/media/usb/go7007/go7007-driver.c int fw_len, rv = 0, i, x, y; rv 358 drivers/media/usb/go7007/go7007-driver.c rv = -1; rv 367 drivers/media/usb/go7007/go7007-driver.c rv = -1; rv 373 drivers/media/usb/go7007/go7007-driver.c return rv; rv 1065 drivers/media/usb/go7007/go7007-v4l2.c int rv = hdl->error; rv 1068 drivers/media/usb/go7007/go7007-v4l2.c return rv; rv 1077 drivers/media/usb/go7007/go7007-v4l2.c int rv; rv 1091 drivers/media/usb/go7007/go7007-v4l2.c rv = vb2_queue_init(&go->vidq); rv 1092 drivers/media/usb/go7007/go7007-v4l2.c if (rv) rv 1093 drivers/media/usb/go7007/go7007-v4l2.c return rv; rv 1141 drivers/media/usb/go7007/go7007-v4l2.c rv = video_register_device(vdev, VFL_TYPE_GRABBER, -1); rv 1142 drivers/media/usb/go7007/go7007-v4l2.c if (rv < 0) rv 1143 drivers/media/usb/go7007/go7007-v4l2.c return rv; rv 272 drivers/media/usb/stkwebcam/stk-sensor.c struct regval *rv) rv 275 drivers/media/usb/stkwebcam/stk-sensor.c if (rv == NULL) rv 277 drivers/media/usb/stkwebcam/stk-sensor.c while (rv->reg != 0xff || rv->val != 0xff) { rv 278 drivers/media/usb/stkwebcam/stk-sensor.c ret = stk_sensor_outb(dev, rv->reg, rv->val); rv 281 drivers/media/usb/stkwebcam/stk-sensor.c rv++; rv 499 drivers/media/usb/stkwebcam/stk-sensor.c struct regval *rv; rv 524 drivers/media/usb/stkwebcam/stk-sensor.c rv = ov_fmt_uyvy; rv 528 drivers/media/usb/stkwebcam/stk-sensor.c rv = ov_fmt_yuyv; rv 532 drivers/media/usb/stkwebcam/stk-sensor.c rv = ov_fmt_rgbp; rv 536 drivers/media/usb/stkwebcam/stk-sensor.c rv = ov_fmt_rgbr; rv 540 drivers/media/usb/stkwebcam/stk-sensor.c rv = ov_fmt_bayer; rv 550 drivers/media/usb/stkwebcam/stk-sensor.c stk_sensor_write_regvals(dev, rv); rv 278 drivers/media/usb/stkwebcam/stk-webcam.c struct regval *rv; rv 284 drivers/media/usb/stkwebcam/stk-webcam.c rv = stk1125_initvals; rv 285 drivers/media/usb/stkwebcam/stk-webcam.c while (rv->reg != 0xffff) { rv 286 drivers/media/usb/stkwebcam/stk-webcam.c ret = stk_camera_write_reg(dev, rv->reg, rv->val); rv 289 drivers/media/usb/stkwebcam/stk-webcam.c rv++; rv 91 drivers/media/usb/usbtv/usbtv-audio.c int rv; rv 94 drivers/media/usb/usbtv/usbtv-audio.c rv = snd_pcm_lib_malloc_pages(substream, rv 97 drivers/media/usb/usbtv/usbtv-audio.c if (rv < 0) { rv 99 drivers/media/usb/usbtv/usbtv-audio.c rv); rv 100 drivers/media/usb/usbtv/usbtv-audio.c return rv; rv 349 drivers/media/usb/usbtv/usbtv-audio.c int rv; rv 356 drivers/media/usb/usbtv/usbtv-audio.c rv = snd_card_new(&usbtv->udev->dev, SNDRV_DEFAULT_IDX1, "usbtv", rv 358 drivers/media/usb/usbtv/usbtv-audio.c if (rv < 0) rv 359 drivers/media/usb/usbtv/usbtv-audio.c return rv; rv 371 drivers/media/usb/usbtv/usbtv-audio.c rv = snd_pcm_new(card, "USBTV Audio", 0, 0, 1, &pcm); rv 372 drivers/media/usb/usbtv/usbtv-audio.c if (rv < 0) rv 384 drivers/media/usb/usbtv/usbtv-audio.c rv = snd_card_register(card); rv 385 drivers/media/usb/usbtv/usbtv-audio.c if (rv) rv 394 drivers/media/usb/usbtv/usbtv-audio.c return rv; rv 478 drivers/media/usb/usbvision/usbvision-core.c unsigned char rv, gv, bv; /* RGB components */ rv 507 drivers/media/usb/usbvision/usbvision-core.c YUV_TO_RGB_BY_THE_BOOK(yuyv[0], yuyv[1], yuyv[3], rv, gv, bv); rv 510 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | rv 516 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; rv 521 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; rv 527 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | rv 541 drivers/media/usb/usbvision/usbvision-core.c YUV_TO_RGB_BY_THE_BOOK(yuyv[2], yuyv[1], yuyv[3], rv, gv, bv); rv 544 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | rv 550 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; rv 555 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; rv 561 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | rv 687 drivers/media/usb/usbvision/usbvision-core.c unsigned char rv, gv, bv; rv 796 drivers/media/usb/usbvision/usbvision-core.c YUV_TO_RGB_BY_THE_BOOK(Y[idx], U[idx / 2], V[idx / 2], rv, gv, bv); rv 802 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | rv 808 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | rv 814 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; rv 819 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; rv 159 drivers/mfd/max77650.c int rv, id; rv 167 drivers/mfd/max77650.c rv = regmap_read(map, MAX77650_REG_CID, &val); rv 168 drivers/mfd/max77650.c if (rv) { rv 170 drivers/mfd/max77650.c return rv; rv 191 drivers/mfd/max77650.c rv = regmap_update_bits(map, rv 195 drivers/mfd/max77650.c if (rv) { rv 197 drivers/mfd/max77650.c return rv; rv 200 drivers/mfd/max77650.c rv = devm_regmap_add_irq_chip(dev, map, i2c->irq, rv 203 drivers/mfd/max77650.c if (rv) { rv 205 drivers/mfd/max77650.c return rv; rv 514 drivers/misc/vmw_vmci/vmci_context.c int rv; rv 544 drivers/misc/vmw_vmci/vmci_context.c rv = VMCI_SUCCESS; rv 560 drivers/misc/vmw_vmci/vmci_context.c rv = (int)next_entry->dg_size; rv 569 drivers/misc/vmw_vmci/vmci_context.c return rv; rv 1448 drivers/misc/vmw_vmci/vmci_queue_pair.c int rv; rv 1472 drivers/misc/vmw_vmci/vmci_queue_pair.c rv = vmci_datagram_dispatch(VMCI_HYPERVISOR_CONTEXT_ID, rv 1474 drivers/misc/vmw_vmci/vmci_queue_pair.c if (rv < VMCI_SUCCESS) rv 1478 drivers/misc/vmw_vmci/vmci_queue_pair.c return rv; rv 216 drivers/mtd/nand/raw/mpc5121_nfc.c int rv; rv 220 drivers/mtd/nand/raw/mpc5121_nfc.c rv = wait_event_timeout(prv->irq_waitq, rv 223 drivers/mtd/nand/raw/mpc5121_nfc.c if (!rv) rv 657 drivers/net/bonding/bond_main.c int rv; rv 662 drivers/net/bonding/bond_main.c rv = bond_set_dev_addr(bond->dev, new_active->dev); rv 663 drivers/net/bonding/bond_main.c if (rv) rv 665 drivers/net/bonding/bond_main.c -rv); rv 692 drivers/net/bonding/bond_main.c rv = dev_set_mac_address(new_active->dev, rv 694 drivers/net/bonding/bond_main.c if (rv) { rv 696 drivers/net/bonding/bond_main.c -rv); rv 707 drivers/net/bonding/bond_main.c rv = dev_set_mac_address(old_active->dev, rv 709 drivers/net/bonding/bond_main.c if (rv) rv 711 drivers/net/bonding/bond_main.c -rv); rv 933 drivers/net/bonding/bond_main.c int rv; rv 940 drivers/net/bonding/bond_main.c rv = bond_set_carrier(bond); rv 941 drivers/net/bonding/bond_main.c if (!rv) rv 515 drivers/net/bonding/bond_options.c int i, rv; rv 540 drivers/net/bonding/bond_options.c rv = sscanf(val->string, "%32s", valstr); rv 542 drivers/net/bonding/bond_options.c rv = sscanf(val->string, "%llu", &val->value); rv 545 drivers/net/bonding/bond_options.c if (!rv) rv 86 drivers/net/bonding/bond_sysfs.c int rv, res = count; rv 96 drivers/net/bonding/bond_sysfs.c rv = bond_create(bn->net, ifname); rv 97 drivers/net/bonding/bond_sysfs.c if (rv) { rv 98 drivers/net/bonding/bond_sysfs.c if (rv == -EEXIST) rv 102 drivers/net/bonding/bond_sysfs.c res = rv; rv 1280 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c netdev_tx_t rv = NETDEV_TX_BUSY; rv 1325 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c rv = NETDEV_TX_OK; rv 1328 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c return rv; rv 1409 drivers/net/ethernet/cavium/thunder/thunder_bgx.c u32 lvl, void *context, void **rv) rv 84 drivers/net/ethernet/chelsio/cxgb3/ael1002.c static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) rv 88 drivers/net/ethernet/chelsio/cxgb3/ael1002.c for (err = 0; rv->mmd_addr && !err; rv++) { rv 89 drivers/net/ethernet/chelsio/cxgb3/ael1002.c if (rv->clear_bits == 0xffff) rv 90 drivers/net/ethernet/chelsio/cxgb3/ael1002.c err = t3_mdio_write(phy, rv->mmd_addr, rv->reg_addr, rv 91 drivers/net/ethernet/chelsio/cxgb3/ael1002.c rv->set_bits); rv 93 drivers/net/ethernet/chelsio/cxgb3/ael1002.c err = t3_mdio_change_bits(phy, rv->mmd_addr, rv 94 drivers/net/ethernet/chelsio/cxgb3/ael1002.c rv->reg_addr, rv->clear_bits, rv 95 drivers/net/ethernet/chelsio/cxgb3/ael1002.c rv->set_bits); rv 594 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c VPD_ENTRY(rv, 1); /* csum */ rv 714 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int rv; rv 724 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c rv = irq_set_affinity_hint(vec, *aff_mask); rv 725 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (rv) rv 728 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c vec, rv); rv 337 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c int rv; rv 339 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c rv = kref_put(&ppm->refcnt, ppm_destroy); rv 340 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c return rv; rv 819 drivers/net/ethernet/freescale/fec_mpc52xx.c int rv; rv 840 drivers/net/ethernet/freescale/fec_mpc52xx.c rv = of_address_to_resource(np, 0, &mem); rv 841 drivers/net/ethernet/freescale/fec_mpc52xx.c if (rv) { rv 849 drivers/net/ethernet/freescale/fec_mpc52xx.c rv = -EINVAL; rv 855 drivers/net/ethernet/freescale/fec_mpc52xx.c rv = -EBUSY; rv 872 drivers/net/ethernet/freescale/fec_mpc52xx.c rv = -ENOMEM; rv 885 drivers/net/ethernet/freescale/fec_mpc52xx.c rv = -ENOMEM; rv 958 drivers/net/ethernet/freescale/fec_mpc52xx.c rv = register_netdev(ndev); rv 959 drivers/net/ethernet/freescale/fec_mpc52xx.c if (rv < 0) rv 983 drivers/net/ethernet/freescale/fec_mpc52xx.c return rv; rv 745 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv, i; rv 759 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 760 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv != 0) { rv 765 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 772 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv = 0; rv 786 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 787 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv != 0) { rv 792 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 799 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv = 0; rv 802 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 814 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 815 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv != 0) { rv 822 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 832 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int i, rv; rv 866 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 867 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv != 0) { rv 872 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 879 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv; rv 890 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 891 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv != 0) { rv 896 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 903 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv; rv 912 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 913 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv != 0) { rv 918 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 925 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv; rv 939 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 940 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv != 0) { rv 944 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 1223 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv; rv 1226 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_nic_pci_get_crb_addr_2M(adapter, off, &addr); rv 1228 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv == 0) { rv 1233 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv > 0) { rv 1254 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv; rv 1258 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_nic_pci_get_crb_addr_2M(adapter, off, &addr); rv 1260 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv == 0) rv 1263 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv > 0) { rv 1936 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int loop_cnt, i, rv = 0, timeout_flag; rv 2055 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = 1; rv 2062 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return rv; rv 2333 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int rv = 0, sane_start = 0, sane_end = 0; rv 2372 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_cntrl(adapter, rv 2374 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv) rv 2381 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_entry_err_chk rv 2383 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv < 0) rv 2392 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_entry_err_chk rv 2394 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv < 0) rv 2403 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_entry_err_chk rv 2405 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv < 0) rv 2416 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_entry_err_chk rv 2418 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv < 0) rv 2427 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_entry_err_chk rv 2429 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv < 0) rv 2437 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_entry_err_chk rv 2439 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv < 0) rv 2447 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_entry_err_chk rv 2449 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv < 0) rv 2457 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_md_entry_err_chk rv 2459 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (rv < 0) rv 2148 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c int rv = 0; rv 2160 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c rv = 1; rv 2178 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c return rv; rv 708 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 718 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 719 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv != 0) rv 722 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 776 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 791 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 792 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv != 0) rv 796 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 804 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 810 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_82xx_set_rx_coalesce(adapter); rv 812 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv) rv 816 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 826 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 848 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 849 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv != 0) rv 853 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 860 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 875 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 876 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv != 0) rv 882 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 895 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int i, rv; rv 933 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 934 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv != 0) rv 937 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 946 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 958 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 959 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv != 0) rv 969 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 976 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 977 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv != 0) rv 981 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 988 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 1002 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 1003 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv != 0) rv 1007 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 1181 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 1184 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_pci_get_crb_addr_2M(adapter->ahw, off, &addr); rv 1186 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv == 0) { rv 1191 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv > 0) { rv 1195 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_pci_set_crbwindow_2M(adapter, off); rv 1196 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (!rv) rv 1200 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 1213 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 1217 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_pci_get_crb_addr_2M(adapter->ahw, off, &addr); rv 1219 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv == 0) rv 1222 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv > 0) { rv 1545 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int rv; rv 1557 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); rv 1558 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (rv) rv 1561 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c return rv; rv 2958 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c int rv = 0; rv 2974 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c rv = 1; rv 2991 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c return rv; rv 431 drivers/net/netconsole.c int rv = -EINVAL; rv 440 drivers/net/netconsole.c rv = kstrtou16(buf, 10, &nt->np.local_port); rv 441 drivers/net/netconsole.c if (rv < 0) rv 447 drivers/net/netconsole.c return rv; rv 454 drivers/net/netconsole.c int rv = -EINVAL; rv 463 drivers/net/netconsole.c rv = kstrtou16(buf, 10, &nt->np.remote_port); rv 464 drivers/net/netconsole.c if (rv < 0) rv 470 drivers/net/netconsole.c return rv; rv 328 drivers/net/usb/cdc_ether.c int rv; rv 330 drivers/net/usb/cdc_ether.c rv = usbnet_generic_cdc_bind(dev, intf); rv 331 drivers/net/usb/cdc_ether.c if (rv < 0) rv 342 drivers/net/usb/cdc_ether.c return rv; rv 46 drivers/net/usb/cdc_mbim.c int rv = 0; rv 52 drivers/net/usb/cdc_mbim.c rv = usb_autopm_get_interface(dev->intf); rv 54 drivers/net/usb/cdc_mbim.c if (!rv) rv 2431 drivers/net/usb/hso.c int rv; rv 2435 drivers/net/usb/hso.c rv = 0; rv 2437 drivers/net/usb/hso.c rv = usb_control_msg(hso_dev->usb, usb_rcvctrlpipe(hso_dev->usb, 0), rv 2441 drivers/net/usb/hso.c return rv; rv 40 drivers/net/usb/huawei_cdc_ncm.c int rv; rv 44 drivers/net/usb/huawei_cdc_ncm.c rv = usb_autopm_get_interface(usbnet_dev->intf); rv 46 drivers/net/usb/huawei_cdc_ncm.c if (!rv) rv 970 drivers/net/usb/kaweth.c int rv = -EIO; rv 1012 drivers/net/usb/kaweth.c rv = -ENOMEM; rv 1167 drivers/net/usb/kaweth.c return rv; rv 634 drivers/net/usb/qmi_wwan.c int rv; rv 644 drivers/net/usb/qmi_wwan.c rv = usb_autopm_get_interface(dev->intf); rv 646 drivers/net/usb/qmi_wwan.c if (!rv) rv 665 drivers/net/usb/qmi_wwan.c int rv; rv 670 drivers/net/usb/qmi_wwan.c rv = usbnet_get_endpoints(dev, info->data); rv 671 drivers/net/usb/qmi_wwan.c if (rv < 0) rv 680 drivers/net/usb/qmi_wwan.c rv = -EINVAL; rv 692 drivers/net/usb/qmi_wwan.c rv = PTR_ERR(subdriver); rv 703 drivers/net/usb/qmi_wwan.c return rv; rv 1176 drivers/net/wan/cosa.c int rv; rv 1178 drivers/net/wan/cosa.c rv = cosa_ioctl_common(chan->cosa, chan, cmd, rv 1180 drivers/net/wan/cosa.c if (rv != -ENOIOCTLCMD) rv 1181 drivers/net/wan/cosa.c return rv; rv 3687 drivers/net/wireless/ath/ath6kl/cfg80211.c int rv = 0; rv 3690 drivers/net/wireless/ath/ath6kl/cfg80211.c rv += ATH6KL_STATS_LEN; rv 3692 drivers/net/wireless/ath/ath6kl/cfg80211.c if (rv == 0) rv 3694 drivers/net/wireless/ath/ath6kl/cfg80211.c return rv; rv 575 drivers/net/wireless/ath/ath6kl/debug.c int rv; rv 585 drivers/net/wireless/ath/ath6kl/debug.c rv = ath6kl_read_tgt_stats(ar, vif); rv 586 drivers/net/wireless/ath/ath6kl/debug.c if (rv < 0) { rv 588 drivers/net/wireless/ath/ath6kl/debug.c return rv; rv 40 drivers/net/wireless/ath/ath9k/eeprom.c int16_t rv; rv 43 drivers/net/wireless/ath/ath9k/eeprom.c rv = targetLeft; rv 45 drivers/net/wireless/ath/ath9k/eeprom.c rv = (int16_t) (((target - srcLeft) * targetRight + rv 49 drivers/net/wireless/ath/ath9k/eeprom.c return rv; rv 993 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c int rv; rv 1008 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, shaddr, rv 1010 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 1020 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = -EINVAL; rv 1027 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, (u8 *)&sh_le, rv 1029 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 1053 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv, addr); rv 1055 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return rv; rv 2815 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c int rv; rv 2823 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, (u8 *)&c->log_le, rv 2825 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 2826 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return rv; rv 2849 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, c->buf, c->bufsize); rv 2850 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 2851 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return rv; rv 2940 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c int rv; rv 2944 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, rv 2946 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 2947 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return rv; rv 2951 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, rv 2953 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 2954 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return rv; rv 2958 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, rv 2960 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 2961 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return rv; rv 2973 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, console_ptr, (u8 *)conbuf, rv 2975 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 2978 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = seq_write(seq, conbuf + console_index, rv 2980 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (rv < 0) rv 2984 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = seq_write(seq, conbuf, console_index - 1); rv 2988 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return rv; rv 920 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .rv = 1, rv 974 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .rv = 1, rv 252 drivers/net/wireless/mediatek/mt76/mt7615/mcu.h u8 rv; rv 350 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c const u32 *rv = zd1211_al2230_table[channel-1]; rv 357 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c r = zd_rfwritev_locked(chip, rv, 3, RF_RV_BITS); rv 366 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c const u32 *rv = zd1211b_al2230_table[channel-1]; rv 374 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c r = zd_rfwritev_cr_locked(chip, rv, 3); rv 316 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c const u32 *rv = chan_rv[channel-1]; rv 349 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c r = zd_rfwritev_cr_locked(chip, rv, 2); rv 363 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c const u32 *rv = chan_rv[channel-1]; rv 392 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c r = zd_rfwritev_cr_locked(chip, rv, 2); rv 182 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c static const u32 rv[] = { rv 215 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c return zd_rfwritev_locked(chip, rv, ARRAY_SIZE(rv), RF_RV_BITS); rv 221 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c const u32 *rv = rf2959_table[channel-1]; rv 225 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c r = zd_rfwrite_locked(chip, rv[i], RF_RV_BITS); rv 272 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c static const u32 rv[] = { rv 279 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c return zd_rfwritev_locked(chip, rv, ARRAY_SIZE(rv), RF_RV_BITS); rv 344 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c static const u32 rv[] = { rv 369 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c r = zd_rfwritev_locked(chip, rv, ARRAY_SIZE(rv), RF_RV_BITS); rv 57 drivers/nfc/nfcmrvl/usb.c int rv; rv 60 drivers/nfc/nfcmrvl/usb.c rv = test_bit(NFCMRVL_USB_SUSPENDING, &drv_data->flags); rv 61 drivers/nfc/nfcmrvl/usb.c if (!rv) rv 65 drivers/nfc/nfcmrvl/usb.c return rv; rv 182 drivers/pci/hotplug/acpi_pcihp.c check_hotplug(acpi_handle handle, u32 lvl, void *context, void **rv) rv 219 drivers/pci/hotplug/acpiphp_glue.c void **rv) rv 90 drivers/pci/hotplug/acpiphp_ibm.c u32 lvl, void *context, void **rv); rv 385 drivers/pci/hotplug/acpiphp_ibm.c u32 lvl, void *context, void **rv) rv 185 drivers/pci/pcie/aer_inject.c int rv; rv 193 drivers/pci/pcie/aer_inject.c rv = ops->read(bus, devfn, where, size, val); rv 196 drivers/pci/pcie/aer_inject.c return rv; rv 203 drivers/pci/pcie/aer_inject.c int rv; rv 211 drivers/pci/pcie/aer_inject.c rv = ops->write(bus, devfn, where, size, val); rv 214 drivers/pci/pcie/aer_inject.c return rv; rv 224 drivers/pci/pcie/aer_inject.c int rv; rv 243 drivers/pci/pcie/aer_inject.c rv = aer_inj_read(bus, devfn, where, size, val); rv 245 drivers/pci/pcie/aer_inject.c return rv; rv 256 drivers/pci/pcie/aer_inject.c int rv; rv 278 drivers/pci/pcie/aer_inject.c rv = aer_inj_write(bus, devfn, where, size, val); rv 280 drivers/pci/pcie/aer_inject.c return rv; rv 15 drivers/pinctrl/aspeed/pinmux-aspeed.c const struct aspeed_sig_desc *desc, bool enable, u32 rv) rv 20 drivers/pinctrl/aspeed/pinmux-aspeed.c (rv & desc->mask) >> __ffs(desc->mask), rv); rv 163 drivers/platform/chrome/cros_ec_ishtp.c int rv; rv 177 drivers/platform/chrome/cros_ec_ishtp.c rv = ishtp_cl_send(cros_ish_cl, out_msg, out_size); rv 178 drivers/platform/chrome/cros_ec_ishtp.c if (rv) { rv 180 drivers/platform/chrome/cros_ec_ishtp.c "ishtp_cl_send error %d\n", rv); rv 181 drivers/platform/chrome/cros_ec_ishtp.c return rv; rv 342 drivers/platform/chrome/cros_ec_ishtp.c int rv; rv 347 drivers/platform/chrome/cros_ec_ishtp.c rv = ishtp_cl_link(cros_ish_cl); rv 348 drivers/platform/chrome/cros_ec_ishtp.c if (rv) { rv 351 drivers/platform/chrome/cros_ec_ishtp.c return rv; rv 364 drivers/platform/chrome/cros_ec_ishtp.c rv = -ENOENT; rv 372 drivers/platform/chrome/cros_ec_ishtp.c rv = ishtp_cl_connect(cros_ish_cl); rv 373 drivers/platform/chrome/cros_ec_ishtp.c if (rv) { rv 384 drivers/platform/chrome/cros_ec_ishtp.c return rv; rv 419 drivers/platform/chrome/cros_ec_ishtp.c int i, rv, offset; rv 423 drivers/platform/chrome/cros_ec_ishtp.c rv = cros_ec_check_result(ec_dev, msg); rv 424 drivers/platform/chrome/cros_ec_ishtp.c if (rv < 0) rv 425 drivers/platform/chrome/cros_ec_ishtp.c return rv; rv 452 drivers/platform/chrome/cros_ec_ishtp.c int rv; rv 501 drivers/platform/chrome/cros_ec_ishtp.c rv = ish_send(client_data, rv 504 drivers/platform/chrome/cros_ec_ishtp.c if (rv < 0) rv 507 drivers/platform/chrome/cros_ec_ishtp.c rv = prepare_cros_ec_rx(ec_dev, in_msg, msg); rv 508 drivers/platform/chrome/cros_ec_ishtp.c if (rv) rv 511 drivers/platform/chrome/cros_ec_ishtp.c rv = in_msg->ec_response.data_len; rv 526 drivers/platform/chrome/cros_ec_ishtp.c return rv; rv 555 drivers/platform/chrome/cros_ec_ishtp.c int rv; rv 583 drivers/platform/chrome/cros_ec_ishtp.c rv = cros_ish_init(cros_ish_cl); rv 584 drivers/platform/chrome/cros_ec_ishtp.c if (rv) { rv 609 drivers/platform/chrome/cros_ec_ishtp.c int rv; rv 622 drivers/platform/chrome/cros_ec_ishtp.c rv = -ENOMEM; rv 638 drivers/platform/chrome/cros_ec_ishtp.c rv = cros_ish_init(cros_ish_cl); rv 639 drivers/platform/chrome/cros_ec_ishtp.c if (rv) rv 647 drivers/platform/chrome/cros_ec_ishtp.c rv = cros_ec_dev_init(client_data); rv 648 drivers/platform/chrome/cros_ec_ishtp.c if (rv) rv 663 drivers/platform/chrome/cros_ec_ishtp.c return rv; rv 585 drivers/platform/x86/asus-laptop.c acpi_status rv; rv 592 drivers/platform/x86/asus-laptop.c rv = acpi_evaluate_integer(asus->handle, METHOD_KBD_LIGHT_GET, rv 594 drivers/platform/x86/asus-laptop.c if (ACPI_FAILURE(rv)) { rv 759 drivers/platform/x86/asus-laptop.c acpi_status rv; rv 761 drivers/platform/x86/asus-laptop.c rv = acpi_evaluate_integer(asus->handle, METHOD_BRIGHTNESS_GET, rv 763 drivers/platform/x86/asus-laptop.c if (ACPI_FAILURE(rv)) { rv 855 drivers/platform/x86/asus-laptop.c acpi_status rv; rv 870 drivers/platform/x86/asus-laptop.c rv = acpi_evaluate_integer(asus->handle, "SFUN", NULL, &temp); rv 871 drivers/platform/x86/asus-laptop.c if (!ACPI_FAILURE(rv)) rv 882 drivers/platform/x86/asus-laptop.c rv = acpi_evaluate_integer(asus->handle, "HWRS", NULL, &temp); rv 883 drivers/platform/x86/asus-laptop.c if (!ACPI_FAILURE(rv)) rv 893 drivers/platform/x86/asus-laptop.c rv = acpi_evaluate_integer(asus->handle, "ASYM", NULL, &temp); rv 894 drivers/platform/x86/asus-laptop.c if (!ACPI_FAILURE(rv)) rv 924 drivers/platform/x86/asus-laptop.c int rv, value; rv 926 drivers/platform/x86/asus-laptop.c rv = kstrtoint(buf, 0, &value); rv 927 drivers/platform/x86/asus-laptop.c if (rv < 0) rv 928 drivers/platform/x86/asus-laptop.c return rv; rv 950 drivers/platform/x86/asus-laptop.c int rv, value; rv 952 drivers/platform/x86/asus-laptop.c rv = kstrtoint(buf, 0, &value); rv 953 drivers/platform/x86/asus-laptop.c if (rv < 0) rv 954 drivers/platform/x86/asus-laptop.c return rv; rv 972 drivers/platform/x86/asus-laptop.c acpi_status rv = AE_OK; rv 977 drivers/platform/x86/asus-laptop.c rv = acpi_evaluate_integer(asus->handle, METHOD_WL_STATUS, rv 979 drivers/platform/x86/asus-laptop.c if (ACPI_FAILURE(rv)) { rv 1125 drivers/platform/x86/asus-laptop.c int rv, value; rv 1127 drivers/platform/x86/asus-laptop.c rv = kstrtoint(buf, 0, &value); rv 1128 drivers/platform/x86/asus-laptop.c if (rv < 0) rv 1129 drivers/platform/x86/asus-laptop.c return rv; rv 1169 drivers/platform/x86/asus-laptop.c int rv, value; rv 1171 drivers/platform/x86/asus-laptop.c rv = kstrtoint(buf, 0, &value); rv 1172 drivers/platform/x86/asus-laptop.c if (rv < 0) rv 1173 drivers/platform/x86/asus-laptop.c return rv; rv 1199 drivers/platform/x86/asus-laptop.c int rv, value; rv 1201 drivers/platform/x86/asus-laptop.c rv = kstrtoint(buf, 0, &value); rv 1202 drivers/platform/x86/asus-laptop.c if (rv < 0) rv 1203 drivers/platform/x86/asus-laptop.c return rv; rv 1249 drivers/platform/x86/asus-laptop.c acpi_status rv; rv 1251 drivers/platform/x86/asus-laptop.c rv = acpi_evaluate_integer(asus->handle, METHOD_GPS_STATUS, rv 1253 drivers/platform/x86/asus-laptop.c if (ACPI_FAILURE(rv)) { rv 1281 drivers/platform/x86/asus-laptop.c int rv, value; rv 1284 drivers/platform/x86/asus-laptop.c rv = kstrtoint(buf, 0, &value); rv 1285 drivers/platform/x86/asus-laptop.c if (rv < 0) rv 1286 drivers/platform/x86/asus-laptop.c return rv; rv 385 drivers/platform/x86/asus-wmi.c int value, ret, rv; rv 394 drivers/platform/x86/asus-wmi.c ret = asus_wmi_set_devstate(ASUS_WMI_DEVID_RSOC, value, &rv); rv 398 drivers/platform/x86/asus-wmi.c if (rv != 1) rv 684 drivers/platform/x86/asus-wmi.c int rv = 0, led_val; rv 698 drivers/platform/x86/asus-wmi.c rv = led_classdev_register(&asus->platform_device->dev, rv 700 drivers/platform/x86/asus-wmi.c if (rv) rv 712 drivers/platform/x86/asus-wmi.c rv = led_classdev_register(&asus->platform_device->dev, rv 714 drivers/platform/x86/asus-wmi.c if (rv) rv 730 drivers/platform/x86/asus-wmi.c rv = led_classdev_register(&asus->platform_device->dev, rv 732 drivers/platform/x86/asus-wmi.c if (rv) rv 744 drivers/platform/x86/asus-wmi.c rv = led_classdev_register(&asus->platform_device->dev, rv 749 drivers/platform/x86/asus-wmi.c if (rv) rv 752 drivers/platform/x86/asus-wmi.c return rv; rv 2129 drivers/platform/x86/asus-wmi.c int value, rv; rv 2131 drivers/platform/x86/asus-wmi.c rv = kstrtoint(buf, 0, &value); rv 2132 drivers/platform/x86/asus-wmi.c if (rv) rv 2133 drivers/platform/x86/asus-wmi.c return rv; rv 2138 drivers/platform/x86/asus-wmi.c rv = asus_wmi_evaluate_method(ASUS_WMI_METHODID_CFVS, value, 0, NULL); rv 2139 drivers/platform/x86/asus-wmi.c if (rv < 0) rv 2140 drivers/platform/x86/asus-wmi.c return rv; rv 2206 drivers/platform/x86/asus-wmi.c int rv; rv 2209 drivers/platform/x86/asus-wmi.c if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_INIT, 0, 0, &rv)) rv 2210 drivers/platform/x86/asus-wmi.c pr_info("Initialization: %#x\n", rv); rv 2213 drivers/platform/x86/asus-wmi.c if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_SPEC, 0, 0x9, &rv)) { rv 2214 drivers/platform/x86/asus-wmi.c pr_info("BIOS WMI version: %d.%d\n", rv >> 16, rv & 0xFF); rv 2215 drivers/platform/x86/asus-wmi.c asus->spec = rv; rv 2224 drivers/platform/x86/asus-wmi.c if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_SFUN, 0, 0, &rv)) { rv 2225 drivers/platform/x86/asus-wmi.c pr_info("SFUN value: %#x\n", rv); rv 2226 drivers/platform/x86/asus-wmi.c asus->sfun = rv; rv 271 drivers/platform/x86/eeepc-laptop.c int rv, value; rv 273 drivers/platform/x86/eeepc-laptop.c rv = parse_arg(buf, &value); rv 274 drivers/platform/x86/eeepc-laptop.c if (rv < 0) rv 275 drivers/platform/x86/eeepc-laptop.c return rv; rv 276 drivers/platform/x86/eeepc-laptop.c rv = set_acpi(eeepc, cm, value); rv 277 drivers/platform/x86/eeepc-laptop.c if (rv < 0) rv 374 drivers/platform/x86/eeepc-laptop.c int rv, value; rv 380 drivers/platform/x86/eeepc-laptop.c rv = parse_arg(buf, &value); rv 381 drivers/platform/x86/eeepc-laptop.c if (rv < 0) rv 382 drivers/platform/x86/eeepc-laptop.c return rv; rv 385 drivers/platform/x86/eeepc-laptop.c rv = set_acpi(eeepc, CM_ASL_CPUFV, value); rv 386 drivers/platform/x86/eeepc-laptop.c if (rv) rv 387 drivers/platform/x86/eeepc-laptop.c return rv; rv 405 drivers/platform/x86/eeepc-laptop.c int rv, value; rv 407 drivers/platform/x86/eeepc-laptop.c rv = parse_arg(buf, &value); rv 408 drivers/platform/x86/eeepc-laptop.c if (rv < 0) rv 409 drivers/platform/x86/eeepc-laptop.c return rv; rv 516 drivers/platform/x86/eeepc-laptop.c int rv; rv 532 drivers/platform/x86/eeepc-laptop.c rv = led_classdev_register(&eeepc->platform_device->dev, rv 534 drivers/platform/x86/eeepc-laptop.c if (rv) { rv 536 drivers/platform/x86/eeepc-laptop.c return rv; rv 1020 drivers/platform/x86/eeepc-laptop.c int rv, value; rv 1022 drivers/platform/x86/eeepc-laptop.c rv = parse_arg(buf, &value); rv 1023 drivers/platform/x86/eeepc-laptop.c if (rv < 0) rv 1024 drivers/platform/x86/eeepc-laptop.c return rv; rv 557 drivers/platform/x86/intel-hid.c check_acpi_dev(acpi_handle handle, u32 lvl, void *context, void **rv) rv 245 drivers/platform/x86/intel-vbtn.c check_acpi_dev(acpi_handle handle, u32 lvl, void *context, void **rv) rv 402 drivers/platform/x86/intel_menlow.c void *context, void **rv) rv 288 drivers/pnp/pnpacpi/core.c void **rv) rv 91 drivers/power/supply/max77650-charger.c int i, rv; rv 95 drivers/power/supply/max77650-charger.c rv = regmap_update_bits(chg->map, rv 99 drivers/power/supply/max77650-charger.c if (rv) rv 100 drivers/power/supply/max77650-charger.c return rv; rv 112 drivers/power/supply/max77650-charger.c int i, rv; rv 116 drivers/power/supply/max77650-charger.c rv = regmap_update_bits(chg->map, rv 120 drivers/power/supply/max77650-charger.c if (rv) rv 121 drivers/power/supply/max77650-charger.c return rv; rv 132 drivers/power/supply/max77650-charger.c int rv; rv 134 drivers/power/supply/max77650-charger.c rv = regmap_update_bits(chg->map, rv 138 drivers/power/supply/max77650-charger.c if (rv) rv 139 drivers/power/supply/max77650-charger.c dev_err(chg->dev, "unable to enable the charger: %d\n", rv); rv 141 drivers/power/supply/max77650-charger.c return rv; rv 146 drivers/power/supply/max77650-charger.c int rv; rv 148 drivers/power/supply/max77650-charger.c rv = regmap_update_bits(chg->map, rv 152 drivers/power/supply/max77650-charger.c if (rv) rv 153 drivers/power/supply/max77650-charger.c dev_err(chg->dev, "unable to disable the charger: %d\n", rv); rv 155 drivers/power/supply/max77650-charger.c return rv; rv 161 drivers/power/supply/max77650-charger.c int rv, reg; rv 163 drivers/power/supply/max77650-charger.c rv = regmap_read(chg->map, MAX77650_REG_STAT_CHG_B, ®); rv 164 drivers/power/supply/max77650-charger.c if (rv) { rv 166 drivers/power/supply/max77650-charger.c "unable to read the charger status: %d\n", rv); rv 195 drivers/power/supply/max77650-charger.c int rv, reg; rv 199 drivers/power/supply/max77650-charger.c rv = regmap_read(chg->map, MAX77650_REG_STAT_CHG_B, ®); rv 200 drivers/power/supply/max77650-charger.c if (rv) rv 201 drivers/power/supply/max77650-charger.c return rv; rv 232 drivers/power/supply/max77650-charger.c rv = regmap_read(chg->map, MAX77650_REG_STAT_CHG_B, ®); rv 233 drivers/power/supply/max77650-charger.c if (rv) rv 234 drivers/power/supply/max77650-charger.c return rv; rv 239 drivers/power/supply/max77650-charger.c rv = regmap_read(chg->map, MAX77650_REG_STAT_CHG_B, ®); rv 240 drivers/power/supply/max77650-charger.c if (rv) rv 241 drivers/power/supply/max77650-charger.c return rv; rv 285 drivers/power/supply/max77650-charger.c int rv, chg_irq, chgin_irq; rv 314 drivers/power/supply/max77650-charger.c rv = devm_request_any_context_irq(dev, chg_irq, rv 317 drivers/power/supply/max77650-charger.c if (rv < 0) rv 318 drivers/power/supply/max77650-charger.c return rv; rv 320 drivers/power/supply/max77650-charger.c rv = devm_request_any_context_irq(dev, chgin_irq, rv 323 drivers/power/supply/max77650-charger.c if (rv < 0) rv 324 drivers/power/supply/max77650-charger.c return rv; rv 331 drivers/power/supply/max77650-charger.c rv = of_property_read_u32(dev->of_node, rv 333 drivers/power/supply/max77650-charger.c if (rv == 0) { rv 334 drivers/power/supply/max77650-charger.c rv = max77650_charger_set_vchgin_min(chg, prop); rv 335 drivers/power/supply/max77650-charger.c if (rv) rv 336 drivers/power/supply/max77650-charger.c return rv; rv 339 drivers/power/supply/max77650-charger.c rv = of_property_read_u32(dev->of_node, rv 341 drivers/power/supply/max77650-charger.c if (rv == 0) { rv 342 drivers/power/supply/max77650-charger.c rv = max77650_charger_set_ichgin_lim(chg, prop); rv 343 drivers/power/supply/max77650-charger.c if (rv) rv 344 drivers/power/supply/max77650-charger.c return rv; rv 71 drivers/regulator/max77650-regulator.c int val, rv, en; rv 76 drivers/regulator/max77650-regulator.c rv = regmap_read(map, rdesc->regB, &val); rv 77 drivers/regulator/max77650-regulator.c if (rv) rv 78 drivers/regulator/max77650-regulator.c return rv; rv 336 drivers/regulator/max77650-regulator.c int i, rv; rv 353 drivers/regulator/max77650-regulator.c rv = regmap_read(map, MAX77650_REG_CID, &val); rv 354 drivers/regulator/max77650-regulator.c if (rv) rv 355 drivers/regulator/max77650-regulator.c return rv; rv 720 drivers/rtc/rtc-m41t80.c int new_margin, rv; rv 752 drivers/rtc/rtc-m41t80.c if (copy_from_user(&rv, (int __user *)arg, sizeof(int))) rv 755 drivers/rtc/rtc-m41t80.c if (rv & WDIOS_DISABLECARD) { rv 760 drivers/rtc/rtc-m41t80.c if (rv & WDIOS_ENABLECARD) { rv 147 drivers/scsi/aic7xxx/aiclib.h uint32_t rv; rv 149 drivers/scsi/aic7xxx/aiclib.h rv = (bytes[0] << 24) | rv 153 drivers/scsi/aic7xxx/aiclib.h return (rv); rv 676 drivers/scsi/atari_scsi.c int rv; rv 691 drivers/scsi/atari_scsi.c rv = NCR5380_host_reset(cmd); rv 701 drivers/scsi/atari_scsi.c return rv; rv 919 drivers/scsi/csiostor/csio_hw.c int rv = 0; rv 929 drivers/scsi/csiostor/csio_hw.c rv = -ENOMEM; rv 938 drivers/scsi/csiostor/csio_hw.c rv = csio_mb_issue(hw, mbp); rv 939 drivers/scsi/csiostor/csio_hw.c if (rv) { rv 940 drivers/scsi/csiostor/csio_hw.c csio_err(hw, "failed to issue HELLO cmd. ret:%d.\n", rv); rv 947 drivers/scsi/csiostor/csio_hw.c rv = -EINVAL; rv 997 drivers/scsi/csiostor/csio_hw.c rv = -ETIMEDOUT; rv 1010 drivers/scsi/csiostor/csio_hw.c rv = -ETIMEDOUT; rv 1054 drivers/scsi/csiostor/csio_hw.c return rv; rv 1447 drivers/scsi/csiostor/csio_hw.c int rv = -EINVAL; rv 1470 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_validate_caps(hw, mbp); rv 1471 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 1476 drivers/scsi/csiostor/csio_hw.c rv = 0; rv 1495 drivers/scsi/csiostor/csio_hw.c rv = 0; rv 1498 drivers/scsi/csiostor/csio_hw.c return rv; rv 2057 drivers/scsi/csiostor/csio_hw.c int rv = -EINVAL; rv 2066 drivers/scsi/csiostor/csio_hw.c rv = csio_do_reset(hw, true); rv 2067 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 2077 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_flash_config(hw, fw_cfg_param, path); rv 2079 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2117 drivers/scsi/csiostor/csio_hw.c rv = -EINVAL; rv 2121 drivers/scsi/csiostor/csio_hw.c rv = csio_mb_fw_retval(mbp); rv 2128 drivers/scsi/csiostor/csio_hw.c if (rv == ENOENT) { rv 2136 drivers/scsi/csiostor/csio_hw.c rv = -EINVAL; rv 2140 drivers/scsi/csiostor/csio_hw.c rv = csio_mb_fw_retval(mbp); rv 2143 drivers/scsi/csiostor/csio_hw.c if (rv != FW_SUCCESS) rv 2160 drivers/scsi/csiostor/csio_hw.c rv = -EINVAL; rv 2164 drivers/scsi/csiostor/csio_hw.c rv = csio_mb_fw_retval(mbp); rv 2165 drivers/scsi/csiostor/csio_hw.c if (rv != FW_SUCCESS) { rv 2166 drivers/scsi/csiostor/csio_hw.c csio_dbg(hw, "FW_CAPS_CONFIG_CMD returned %d!\n", rv); rv 2177 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_validate_caps(hw, mbp); rv 2178 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 2192 drivers/scsi/csiostor/csio_hw.c rv = csio_get_device_params(hw); rv 2193 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 2218 drivers/scsi/csiostor/csio_hw.c csio_warn(hw, "Configuration file error %d\n", rv); rv 2219 drivers/scsi/csiostor/csio_hw.c return rv; rv 2480 drivers/scsi/csiostor/csio_hw.c int rv; rv 2483 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_dev_ready(hw); rv 2484 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2494 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_get_flash_params(hw); rv 2495 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2496 drivers/scsi/csiostor/csio_hw.c csio_err(hw, "Failed to get serial flash params rv:%d\n", rv); rv 2508 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_get_fw_version(hw, &hw->fwrev); rv 2509 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 2514 drivers/scsi/csiostor/csio_hw.c rv = csio_do_hello(hw, &hw->fw_state); rv 2515 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2522 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_get_vpd_params(hw, &hw->vpd); rv 2523 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 2532 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_flash_fw(hw, &reset); rv 2535 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 2538 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_check_fwver(hw); rv 2539 drivers/scsi/csiostor/csio_hw.c if (rv < 0) rv 2545 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_check_fwconfig(hw, param); rv 2546 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2556 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_use_fwconfig(hw, reset, param); rv 2557 drivers/scsi/csiostor/csio_hw.c if (rv == -ENOENT) { rv 2559 drivers/scsi/csiostor/csio_hw.c "adapter, error%d\n", rv); rv 2562 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2564 drivers/scsi/csiostor/csio_hw.c "adapter, error%d\n", rv); rv 2569 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_check_fwver(hw); rv 2570 drivers/scsi/csiostor/csio_hw.c if (rv < 0) rv 2578 drivers/scsi/csiostor/csio_hw.c rv = csio_get_device_params(hw); rv 2579 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 2583 drivers/scsi/csiostor/csio_hw.c rv = csio_config_device_caps(hw); rv 2584 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 2610 drivers/scsi/csiostor/csio_hw.c int rv; rv 2635 drivers/scsi/csiostor/csio_hw.c rv = csio_get_fcoe_resinfo(hw); rv 2636 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2637 drivers/scsi/csiostor/csio_hw.c csio_err(hw, "Failed to read fcoe resource info: %d\n", rv); rv 2642 drivers/scsi/csiostor/csio_hw.c rv = csio_config_queues(hw); rv 2645 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2646 drivers/scsi/csiostor/csio_hw.c csio_err(hw, "Config of queues failed!: %d\n", rv); rv 2654 drivers/scsi/csiostor/csio_hw.c rv = csio_enable_ports(hw); rv 2655 drivers/scsi/csiostor/csio_hw.c if (rv != 0) { rv 2656 drivers/scsi/csiostor/csio_hw.c csio_err(hw, "Failed to enable ports: %d\n", rv); rv 3702 drivers/scsi/csiostor/csio_hw.c int rv; rv 3720 drivers/scsi/csiostor/csio_hw.c rv = csio_mb_issue(hw, mbp_next); rv 3721 drivers/scsi/csiostor/csio_hw.c if (rv != 0) rv 3983 drivers/scsi/csiostor/csio_hw.c int rv = 0; rv 4014 drivers/scsi/csiostor/csio_hw.c rv = csio_mb_fwevt_handler(hw, rv 4016 drivers/scsi/csiostor/csio_hw.c if (!rv) rv 4061 drivers/scsi/csiostor/csio_hw.c int rv; rv 4068 drivers/scsi/csiostor/csio_hw.c rv = csio_wr_process_iq_idx(hw, hw->fwevt_iq_idx, rv 4070 drivers/scsi/csiostor/csio_hw.c return rv; rv 4341 drivers/scsi/csiostor/csio_hw.c int rv = -EINVAL; rv 4376 drivers/scsi/csiostor/csio_hw.c rv = csio_wrm_init(csio_hw_to_wrm(hw), hw); rv 4377 drivers/scsi/csiostor/csio_hw.c if (rv) rv 4380 drivers/scsi/csiostor/csio_hw.c rv = csio_scsim_init(csio_hw_to_scsim(hw), hw); rv 4381 drivers/scsi/csiostor/csio_hw.c if (rv) rv 4384 drivers/scsi/csiostor/csio_hw.c rv = csio_mgmtm_init(csio_hw_to_mgmtm(hw), hw); rv 4385 drivers/scsi/csiostor/csio_hw.c if (rv) rv 4394 drivers/scsi/csiostor/csio_hw.c rv = -ENOMEM; rv 4418 drivers/scsi/csiostor/csio_hw.c return rv; rv 196 drivers/scsi/csiostor/csio_init.c int rv = -ENODEV; rv 209 drivers/scsi/csiostor/csio_init.c rv = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); rv 210 drivers/scsi/csiostor/csio_init.c if (rv) rv 211 drivers/scsi/csiostor/csio_init.c rv = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); rv 212 drivers/scsi/csiostor/csio_init.c if (rv) { rv 213 drivers/scsi/csiostor/csio_init.c rv = -ENODEV; rv 225 drivers/scsi/csiostor/csio_init.c return rv; rv 264 drivers/scsi/csiostor/csio_init.c int rv; rv 271 drivers/scsi/csiostor/csio_init.c rv = csio_wr_iq_create(hw, NULL, hw->intr_iq_idx, rv 273 drivers/scsi/csiostor/csio_init.c if (rv != 0) { rv 274 drivers/scsi/csiostor/csio_init.c csio_err(hw, " Forward Interrupt IQ failed!: %d\n", rv); rv 275 drivers/scsi/csiostor/csio_init.c return rv; rv 280 drivers/scsi/csiostor/csio_init.c rv = csio_wr_iq_create(hw, NULL, hw->fwevt_iq_idx, rv 283 drivers/scsi/csiostor/csio_init.c if (rv != 0) { rv 284 drivers/scsi/csiostor/csio_init.c csio_err(hw, "FW event IQ config failed!: %d\n", rv); rv 285 drivers/scsi/csiostor/csio_init.c return rv; rv 289 drivers/scsi/csiostor/csio_init.c rv = csio_wr_eq_create(hw, NULL, mgmtm->eq_idx, rv 292 drivers/scsi/csiostor/csio_init.c if (rv != 0) { rv 293 drivers/scsi/csiostor/csio_init.c csio_err(hw, "Mgmt EQ create failed!: %d\n", rv); rv 304 drivers/scsi/csiostor/csio_init.c rv = csio_wr_iq_create(hw, NULL, sqset->iq_idx, rv 306 drivers/scsi/csiostor/csio_init.c if (rv != 0) { rv 309 drivers/scsi/csiostor/csio_init.c i, j, rv); rv 312 drivers/scsi/csiostor/csio_init.c rv = csio_wr_eq_create(hw, NULL, sqset->eq_idx, rv 314 drivers/scsi/csiostor/csio_init.c if (rv != 0) { rv 317 drivers/scsi/csiostor/csio_init.c i, j, rv); rv 340 drivers/scsi/csiostor/csio_init.c int rv; rv 444 drivers/scsi/csiostor/csio_init.c rv = csio_create_queues(hw); rv 445 drivers/scsi/csiostor/csio_init.c if (rv != 0) rv 452 drivers/scsi/csiostor/csio_init.c rv = csio_request_irqs(hw); rv 453 drivers/scsi/csiostor/csio_init.c if (rv != 0) rv 468 drivers/scsi/csiostor/csio_init.c int rv = -ENOMEM; rv 498 drivers/scsi/csiostor/csio_init.c return rv; rv 945 drivers/scsi/csiostor/csio_init.c int rv; rv 956 drivers/scsi/csiostor/csio_init.c rv = csio_pci_init(pdev, &bars); rv 957 drivers/scsi/csiostor/csio_init.c if (rv) rv 962 drivers/scsi/csiostor/csio_init.c rv = -ENODEV; rv 971 drivers/scsi/csiostor/csio_init.c rv = csio_hw_start(hw); rv 972 drivers/scsi/csiostor/csio_init.c if (rv) { rv 973 drivers/scsi/csiostor/csio_init.c if (rv == -EINVAL) { rv 990 drivers/scsi/csiostor/csio_init.c rv = -ENODEV; rv 998 drivers/scsi/csiostor/csio_init.c rv = -ENODEV; rv 1001 drivers/scsi/csiostor/csio_init.c if (rv) rv 1007 drivers/scsi/csiostor/csio_init.c if (rv) rv 1023 drivers/scsi/csiostor/csio_init.c dev_err(&pdev->dev, "probe of device failed: %d\n", rv); rv 1024 drivers/scsi/csiostor/csio_init.c return rv; rv 1127 drivers/scsi/csiostor/csio_init.c int rv = 0; rv 1135 drivers/scsi/csiostor/csio_init.c rv = -ENODEV; rv 1143 drivers/scsi/csiostor/csio_init.c rv = -ENODEV; rv 1146 drivers/scsi/csiostor/csio_init.c if (rv) rv 1152 drivers/scsi/csiostor/csio_init.c if (rv) rv 1165 drivers/scsi/csiostor/csio_init.c dev_err(&pdev->dev, "resume of device failed: %d\n", rv); rv 1207 drivers/scsi/csiostor/csio_init.c int rv = -ENOMEM; rv 1222 drivers/scsi/csiostor/csio_init.c rv = pci_register_driver(&csio_pci_driver); rv 1223 drivers/scsi/csiostor/csio_init.c if (rv) rv 1234 drivers/scsi/csiostor/csio_init.c return rv; rv 48 drivers/scsi/csiostor/csio_isr.c int rv; rv 61 drivers/scsi/csiostor/csio_isr.c rv = csio_mb_isr_handler(hw); rv 63 drivers/scsi/csiostor/csio_isr.c if (rv == 0 && !(hw->flags & CSIO_HWF_FWEVT_PENDING)) { rv 83 drivers/scsi/csiostor/csio_isr.c int rv; rv 86 drivers/scsi/csiostor/csio_isr.c rv = csio_fwevtq_handler(hw); rv 89 drivers/scsi/csiostor/csio_isr.c if (rv == 0 && !(hw->flags & CSIO_HWF_FWEVT_PENDING)) { rv 306 drivers/scsi/csiostor/csio_isr.c int rv; rv 339 drivers/scsi/csiostor/csio_isr.c rv = csio_mb_isr_handler(hw); rv 340 drivers/scsi/csiostor/csio_isr.c if (rv == 0 && !(hw->flags & CSIO_HWF_FWEVT_PENDING)) { rv 383 drivers/scsi/csiostor/csio_isr.c int rv, i, j, k = 0; rv 389 drivers/scsi/csiostor/csio_isr.c rv = request_irq(pci_irq_vector(pdev, 0), csio_fcoe_isr, rv 392 drivers/scsi/csiostor/csio_isr.c if (rv) { rv 403 drivers/scsi/csiostor/csio_isr.c rv = request_irq(pci_irq_vector(pdev, k), csio_nondata_isr, 0, rv 405 drivers/scsi/csiostor/csio_isr.c if (rv) { rv 407 drivers/scsi/csiostor/csio_isr.c pci_irq_vector(pdev, k), rv); rv 413 drivers/scsi/csiostor/csio_isr.c rv = request_irq(pci_irq_vector(pdev, k), csio_fwevt_isr, 0, rv 415 drivers/scsi/csiostor/csio_isr.c if (rv) { rv 417 drivers/scsi/csiostor/csio_isr.c pci_irq_vector(pdev, k), rv); rv 430 drivers/scsi/csiostor/csio_isr.c rv = request_irq(pci_irq_vector(pdev, k), csio_scsi_isr, 0, rv 432 drivers/scsi/csiostor/csio_isr.c if (rv) { rv 435 drivers/scsi/csiostor/csio_isr.c pci_irq_vector(pdev, k), rv); rv 1118 drivers/scsi/csiostor/csio_lnode.c int rv; rv 1126 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_read_fcf_entry(ln, rv 1128 drivers/scsi/csiostor/csio_lnode.c if (rv != 0) { rv 1138 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_vnp_read(ln, csio_ln_vnp_read_cbfn); rv 1139 drivers/scsi/csiostor/csio_lnode.c if (rv != 0) { rv 1297 drivers/scsi/csiostor/csio_lnode.c int rv; rv 1305 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_read_fcf_entry(ln, rv 1307 drivers/scsi/csiostor/csio_lnode.c if (rv != 0) { rv 1317 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_vnp_read(ln, csio_ln_vnp_read_cbfn); rv 1318 drivers/scsi/csiostor/csio_lnode.c if (rv != 0) { rv 1623 drivers/scsi/csiostor/csio_lnode.c int rv = 0; rv 1625 drivers/scsi/csiostor/csio_lnode.c rv = csio_fcoe_enable_link(ln, 1); rv 1629 drivers/scsi/csiostor/csio_lnode.c return rv; rv 1813 drivers/scsi/csiostor/csio_lnode.c int rv; rv 1822 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_mgmt_submit_wr(mgmtm, io_req, req_type, pld, pld_len); rv 1823 drivers/scsi/csiostor/csio_lnode.c if (rv == 0) { rv 1827 drivers/scsi/csiostor/csio_lnode.c return rv; rv 1891 drivers/scsi/csiostor/csio_lnode.c int rv = 0; rv 1910 drivers/scsi/csiostor/csio_lnode.c return rv; rv 1994 drivers/scsi/csiostor/csio_lnode.c int rv = -EINVAL; rv 2052 drivers/scsi/csiostor/csio_lnode.c return rv; rv 2081 drivers/scsi/csiostor/csio_lnode.c int rv = -EINVAL; rv 2119 drivers/scsi/csiostor/csio_lnode.c return rv; rv 1199 drivers/scsi/csiostor/csio_mb.c int rv = -EINVAL; rv 1219 drivers/scsi/csiostor/csio_mb.c rv = -EBUSY; rv 1245 drivers/scsi/csiostor/csio_mb.c rv = owner ? -EBUSY : -ETIMEDOUT; rv 1344 drivers/scsi/csiostor/csio_mb.c return rv; rv 1358 drivers/scsi/csiostor/csio_mb.c enum fw_retval rv; rv 1364 drivers/scsi/csiostor/csio_mb.c rv = csio_mb_fw_retval(mbp); rv 1365 drivers/scsi/csiostor/csio_mb.c if ((rv != FW_SUCCESS) && (rv != FW_HOSTERROR)) rv 1367 drivers/scsi/csiostor/csio_mb.c else if (rv != FW_HOSTERROR) rv 1198 drivers/scsi/csiostor/csio_scsi.c int rv; rv 1207 drivers/scsi/csiostor/csio_scsi.c rv = csio_do_abrt_cls(hw, ioreq, (ready ? SCSI_ABORT : SCSI_CLOSE)); rv 1208 drivers/scsi/csiostor/csio_scsi.c if (rv != 0) { rv 1276 drivers/scsi/csiostor/csio_scsi.c int rv = 0; rv 1296 drivers/scsi/csiostor/csio_scsi.c rv = csio_scsi_abort_io_q(scm, &scm->active_q, 30000); rv 1297 drivers/scsi/csiostor/csio_scsi.c if (rv == 0) rv 1298 drivers/scsi/csiostor/csio_scsi.c return rv; rv 1306 drivers/scsi/csiostor/csio_scsi.c return rv; rv 1322 drivers/scsi/csiostor/csio_scsi.c int rv; rv 1350 drivers/scsi/csiostor/csio_scsi.c rv = csio_scsi_abort_io_q(scm, &ln->cmpl_q, 30000); rv 1351 drivers/scsi/csiostor/csio_scsi.c if (rv != 0) { rv 1358 drivers/scsi/csiostor/csio_scsi.c return rv; rv 1784 drivers/scsi/csiostor/csio_scsi.c int rv = SCSI_MLQUEUE_HOST_BUSY, nr; rv 1876 drivers/scsi/csiostor/csio_scsi.c return rv; rv 1886 drivers/scsi/csiostor/csio_scsi.c int rv; rv 1901 drivers/scsi/csiostor/csio_scsi.c rv = csio_scsi_abort(ioreq); rv 1903 drivers/scsi/csiostor/csio_scsi.c rv = csio_scsi_close(ioreq); rv 1905 drivers/scsi/csiostor/csio_scsi.c return rv; rv 1917 drivers/scsi/csiostor/csio_scsi.c int rv; rv 1947 drivers/scsi/csiostor/csio_scsi.c rv = csio_do_abrt_cls(hw, ioreq, (ready ? SCSI_ABORT : SCSI_CLOSE)); rv 1950 drivers/scsi/csiostor/csio_scsi.c if (rv != 0) { rv 1951 drivers/scsi/csiostor/csio_scsi.c if (rv == -EINVAL) { rv 2251 drivers/scsi/csiostor/csio_scsi.c int rv = 1; rv 2257 drivers/scsi/csiostor/csio_scsi.c rv = csio_scan_done(ln, jiffies, time, csio_max_scan_tmo * HZ, rv 2262 drivers/scsi/csiostor/csio_scsi.c return rv; rv 611 drivers/scsi/csiostor/csio_wr.c int rv = 0; rv 614 drivers/scsi/csiostor/csio_wr.c rv = -EINVAL; rv 618 drivers/scsi/csiostor/csio_wr.c return rv; rv 635 drivers/scsi/csiostor/csio_wr.c int rv = 0; rv 661 drivers/scsi/csiostor/csio_wr.c rv = csio_mb_issue(hw, mbp); rv 662 drivers/scsi/csiostor/csio_wr.c if (rv != 0) { rv 664 drivers/scsi/csiostor/csio_wr.c return rv; rv 685 drivers/scsi/csiostor/csio_wr.c int rv = 0; rv 688 drivers/scsi/csiostor/csio_wr.c rv = -EINVAL; rv 692 drivers/scsi/csiostor/csio_wr.c return rv; rv 709 drivers/scsi/csiostor/csio_wr.c int rv = 0; rv 725 drivers/scsi/csiostor/csio_wr.c rv = csio_mb_issue(hw, mbp); rv 726 drivers/scsi/csiostor/csio_wr.c if (rv != 0) { rv 728 drivers/scsi/csiostor/csio_wr.c return rv; rv 791 drivers/scsi/csiostor/csio_wr.c int rv; rv 805 drivers/scsi/csiostor/csio_wr.c rv = csio_wr_eq_destroy(hw, NULL, i, NULL); rv 806 drivers/scsi/csiostor/csio_wr.c if ((rv == -EBUSY) || (rv == -ETIMEDOUT)) rv 824 drivers/scsi/csiostor/csio_wr.c rv = csio_wr_iq_destroy(hw, NULL, i, NULL); rv 825 drivers/scsi/csiostor/csio_wr.c if ((rv == -EBUSY) || (rv == -ETIMEDOUT)) rv 1141 drivers/scsi/csiostor/csio_wr.c int rv = 0; rv 1231 drivers/scsi/csiostor/csio_wr.c rv = -EINVAL; rv 1258 drivers/scsi/csiostor/csio_wr.c return rv; rv 1656 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c int rv; rv 1663 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rv = (int)ndev->dcbnl_ops->getcap(ndev, DCB_CAP_ATTR_DCBX, &caps); rv 1664 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c if (rv) rv 1669 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rv = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app); rv 1670 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c if (!rv) { rv 1672 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rv = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app); rv 1676 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rv = dcb_getapp(ndev, &iscsi_dcb_app); rv 1680 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c "iSCSI priority is set to %u\n", select_priority(rv)); rv 1681 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c return select_priority(rv); rv 5819 drivers/scsi/hpsa.c int rv; rv 5821 drivers/scsi/hpsa.c rv = scsi_add_host(h->scsi_host, &h->pdev->dev); rv 5822 drivers/scsi/hpsa.c if (rv) { rv 5824 drivers/scsi/hpsa.c return rv; rv 2651 drivers/scsi/lpfc/lpfc_hw.h uint32_t rv:1; rv 2653 drivers/scsi/lpfc/lpfc_hw.h uint32_t rv:1; rv 10415 drivers/scsi/mpt3sas/mpt3sas_scsih.c int rv; rv 10617 drivers/scsi/mpt3sas/mpt3sas_scsih.c rv = -ENODEV; rv 10625 drivers/scsi/mpt3sas/mpt3sas_scsih.c rv = -ENODEV; rv 10643 drivers/scsi/mpt3sas/mpt3sas_scsih.c rv = scsi_add_host(shost, &pdev->dev); rv 10644 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (rv) { rv 10661 drivers/scsi/mpt3sas/mpt3sas_scsih.c return rv; rv 479 drivers/scsi/qla2xxx/qla_nx.c int rv; rv 481 drivers/scsi/qla2xxx/qla_nx.c rv = qla82xx_pci_get_crb_addr_2M(ha, off_in, &off); rv 483 drivers/scsi/qla2xxx/qla_nx.c BUG_ON(rv == -1); rv 485 drivers/scsi/qla2xxx/qla_nx.c if (rv == 1) { rv 495 drivers/scsi/qla2xxx/qla_nx.c if (rv == 1) { rv 509 drivers/scsi/qla2xxx/qla_nx.c int rv; rv 512 drivers/scsi/qla2xxx/qla_nx.c rv = qla82xx_pci_get_crb_addr_2M(ha, off_in, &off); rv 514 drivers/scsi/qla2xxx/qla_nx.c BUG_ON(rv == -1); rv 516 drivers/scsi/qla2xxx/qla_nx.c if (rv == 1) { rv 525 drivers/scsi/qla2xxx/qla_nx.c if (rv == 1) { rv 383 drivers/scsi/qla4xxx/ql4_nx.c int rv; rv 385 drivers/scsi/qla4xxx/ql4_nx.c rv = qla4_82xx_pci_get_crb_addr_2M(ha, &off); rv 387 drivers/scsi/qla4xxx/ql4_nx.c BUG_ON(rv == -1); rv 389 drivers/scsi/qla4xxx/ql4_nx.c if (rv == 1) { rv 397 drivers/scsi/qla4xxx/ql4_nx.c if (rv == 1) { rv 406 drivers/scsi/qla4xxx/ql4_nx.c int rv; rv 409 drivers/scsi/qla4xxx/ql4_nx.c rv = qla4_82xx_pci_get_crb_addr_2M(ha, &off); rv 411 drivers/scsi/qla4xxx/ql4_nx.c BUG_ON(rv == -1); rv 413 drivers/scsi/qla4xxx/ql4_nx.c if (rv == 1) { rv 420 drivers/scsi/qla4xxx/ql4_nx.c if (rv == 1) { rv 234 drivers/scsi/scsicam.c unsigned int rv = 0; rv 254 drivers/scsi/scsicam.c rv = (unsigned) -1; /* Give error if 0 cylinders */ rv 259 drivers/scsi/scsicam.c return (rv); rv 531 drivers/staging/android/vsoc.c int rv = 0; rv 552 drivers/staging/android/vsoc.c rv = do_create_fd_scoped_permission rv 556 drivers/staging/android/vsoc.c if (!rv) { rv 562 drivers/staging/android/vsoc.c return rv; rv 65 drivers/staging/comedi/drivers/ni_routes.c const u8 *rv = NULL; rv 72 drivers/staging/comedi/drivers/ni_routes.c rv = &ni_all_route_values[i]->register_values[0][0]; rv 86 drivers/staging/comedi/drivers/ni_routes.c tables->route_values = rv; rv 89 drivers/staging/comedi/drivers/ni_routes.c if (!rv || !dr) rv 126 drivers/staging/comedi/drivers/ni_routes.c const u8 *rv = tables->route_values; rv 128 drivers/staging/comedi/drivers/ni_routes.c if (RVi(rv, B(src), B(dest))) rv 132 drivers/staging/comedi/drivers/ni_routes.c (RVi(rv, B(src), B(NI_RGOUT0)) || rv 133 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(0))) || rv 134 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(1))) || rv 135 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(2))) || rv 136 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(3))))) { rv 181 drivers/staging/comedi/drivers/ni_routes.c const u8 *rv = tables->route_values; rv 183 drivers/staging/comedi/drivers/ni_routes.c if (RVi(rv, B(src), B(dest))) rv 187 drivers/staging/comedi/drivers/ni_routes.c (RVi(rv, B(src), B(NI_RGOUT0)) || rv 188 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(0))) || rv 189 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(1))) || rv 190 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(2))) || rv 191 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(3))))) { rv 434 drivers/staging/comedi/drivers/ni_routes.c const u8 *rv; rv 448 drivers/staging/comedi/drivers/ni_routes.c rv = tables->route_values; rv 449 drivers/staging/comedi/drivers/ni_routes.c regval = RVi(rv, B(src), B(dest)); rv 456 drivers/staging/comedi/drivers/ni_routes.c regval = RVi(rv, B(src), B(NI_RGOUT0)); rv 457 drivers/staging/comedi/drivers/ni_routes.c if (!regval && (RVi(rv, B(src), B(NI_RTSI_BRD(0))) || rv 458 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(1))) || rv 459 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(2))) || rv 460 drivers/staging/comedi/drivers/ni_routes.c RVi(rv, B(src), B(NI_RTSI_BRD(3))))) rv 24 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c #define RVij(rv, src, dest) ((rv)->register_values[(dest)][(src)]) rv 37 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c void family_write(const struct family_route_values *rv, FILE *fp) rv 42 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c , rv->family); rv 49 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c RVij(rv, B(src), B(dest)) == 0; ++src) rv 58 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c register_type r = RVij(rv, B(src), B(dest)); rv 72 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c rv->family, dest, src, r); rv 291 drivers/staging/kpc2000/kpc2000/cell_probe.c int rv; rv 330 drivers/staging/kpc2000/kpc2000/cell_probe.c rv = uio_register_device(kudev->dev, &kudev->uioinfo); rv 331 drivers/staging/kpc2000/kpc2000/cell_probe.c if (rv) { rv 333 drivers/staging/kpc2000/kpc2000/cell_probe.c __func__, rv); rv 336 drivers/staging/kpc2000/kpc2000/cell_probe.c return rv; rv 114 drivers/staging/kpc2000/kpc2000/core.c int rv; rv 116 drivers/staging/kpc2000/kpc2000/core.c rv = kstrtoul(buf, 0, &wr_val); rv 117 drivers/staging/kpc2000/kpc2000/core.c if (rv < 0) rv 118 drivers/staging/kpc2000/kpc2000/core.c return rv; rv 93 drivers/staging/kpc2000/kpc_dma/dma.c int rv; rv 145 drivers/staging/kpc2000/kpc_dma/dma.c rv = request_irq(eng->irq, ndd_irq_handler, IRQF_SHARED, KP_DRIVER_NAME_DMA_CONTROLLER, eng); rv 146 drivers/staging/kpc2000/kpc_dma/dma.c if (rv) { rv 147 drivers/staging/kpc2000/kpc_dma/dma.c dev_err(&eng->pldev->dev, "%s: failed to request_irq: %d\n", __func__, rv); rv 148 drivers/staging/kpc2000/kpc_dma/dma.c return rv; rv 38 drivers/staging/kpc2000/kpc_dma/fileops.c long rv = 0; rv 74 drivers/staging/kpc2000/kpc_dma/fileops.c rv = -ENOMEM; rv 80 drivers/staging/kpc2000/kpc_dma/fileops.c rv = get_user_pages(iov_base, acd->page_count, FOLL_TOUCH | FOLL_WRITE | FOLL_GET, acd->user_pages, NULL); rv 82 drivers/staging/kpc2000/kpc_dma/fileops.c if (rv != acd->page_count) { rv 83 drivers/staging/kpc2000/kpc_dma/fileops.c dev_err(&priv->ldev->pldev->dev, "Couldn't get_user_pages (%ld)\n", rv); rv 88 drivers/staging/kpc2000/kpc_dma/fileops.c rv = sg_alloc_table_from_pages(&acd->sgt, acd->user_pages, acd->page_count, iov_base & (PAGE_SIZE-1), iov_len, GFP_KERNEL); rv 89 drivers/staging/kpc2000/kpc_dma/fileops.c if (rv) { rv 90 drivers/staging/kpc2000/kpc_dma/fileops.c dev_err(&priv->ldev->pldev->dev, "Couldn't alloc sg_table (%ld)\n", rv); rv 113 drivers/staging/kpc2000/kpc_dma/fileops.c rv = -EAGAIN; rv 118 drivers/staging/kpc2000/kpc_dma/fileops.c rv = -EMSGSIZE; rv 174 drivers/staging/kpc2000/kpc_dma/fileops.c rv = wait_for_completion_interruptible(&done); rv 179 drivers/staging/kpc2000/kpc_dma/fileops.c if (rv == -ERESTARTSYS) rv 181 drivers/staging/kpc2000/kpc_dma/fileops.c if (rv == 0) { rv 182 drivers/staging/kpc2000/kpc_dma/fileops.c rv = acd->len; rv 185 drivers/staging/kpc2000/kpc_dma/fileops.c return rv; rv 200 drivers/staging/kpc2000/kpc_dma/fileops.c dev_dbg(&priv->ldev->pldev->dev, "%s returning with error %ld\n", __func__, rv); rv 201 drivers/staging/kpc2000/kpc_dma/fileops.c return rv; rv 98 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c int rv = 0; rv 105 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c rv = -ENOMEM; rv 122 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c rv = -ENXIO; rv 128 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c rv = -ENXIO; rv 135 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c rv = -ENXIO; rv 144 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: device_create failed: %d\n", __func__, rv); rv 149 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c rv = setup_dma_engine(ldev, 30); rv 150 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c if (rv) { rv 151 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: failed to setup_dma_engine: %d\n", __func__, rv); rv 156 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c rv = sysfs_create_files(&(ldev->pldev->dev.kobj), ndd_attr_list); rv 157 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c if (rv) { rv 158 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c dev_err(&ldev->pldev->dev, "%s: Failed to add sysfs files: %d\n", __func__, rv); rv 173 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c return rv; rv 464 drivers/staging/octeon/ethernet.c int rv; rv 466 drivers/staging/octeon/ethernet.c rv = cvm_oct_phy_setup_device(dev); rv 467 drivers/staging/octeon/ethernet.c if (rv) rv 468 drivers/staging/octeon/ethernet.c return rv; rv 374 drivers/staging/speakup/kobjects.c int rv; rv 377 drivers/staging/speakup/kobjects.c rv = sprintf(buf, "%s\n", "none"); rv 379 drivers/staging/speakup/kobjects.c rv = sprintf(buf, "%s\n", synth->name); rv 380 drivers/staging/speakup/kobjects.c return rv; rv 549 drivers/staging/speakup/kobjects.c int rv = 0; rv 567 drivers/staging/speakup/kobjects.c rv = sprintf(buf, "%i\n", var->u.n.value); rv 569 drivers/staging/speakup/kobjects.c rv = sprintf(buf, "0\n"); rv 584 drivers/staging/speakup/kobjects.c rv = cp1 - buf; rv 586 drivers/staging/speakup/kobjects.c rv = sprintf(buf, "\"\"\n"); rv 590 drivers/staging/speakup/kobjects.c rv = sprintf(buf, "Bad parameter %s, type %i\n", rv 595 drivers/staging/speakup/kobjects.c return rv; rv 1443 drivers/staging/speakup/main.c int indcount, sentcount, rv, sn; rv 1490 drivers/staging/speakup/main.c rv = get_sentence_buf(vc, 0); rv 1491 drivers/staging/speakup/main.c if (rv == -1) rv 1493 drivers/staging/speakup/main.c if (rv == 0) { rv 128 drivers/staging/speakup/serialio.c int rv; rv 133 drivers/staging/speakup/serialio.c rv = request_irq(irq, synth_readbuf_handler, IRQF_SHARED, rv 136 drivers/staging/speakup/serialio.c if (rv) rv 159 drivers/staging/speakup/speakup_dectlk.c u_char rv; rv 161 drivers/staging/speakup/speakup_dectlk.c rv = lastind; rv 163 drivers/staging/speakup/speakup_dectlk.c return rv; rv 348 drivers/staging/speakup/speakup_soft.c int rv; rv 350 drivers/staging/speakup/speakup_soft.c rv = last_index; rv 352 drivers/staging/speakup/speakup_soft.c return rv; rv 292 drivers/staging/speakup/spk_ttyio.c char rv; rv 302 drivers/staging/speakup/spk_ttyio.c rv = ldisc_data->buf; rv 311 drivers/staging/speakup/spk_ttyio.c return rv; rv 321 drivers/staging/speakup/spk_ttyio.c u8 rv = ttyio_in(0); rv 323 drivers/staging/speakup/spk_ttyio.c return (rv == 0xff) ? 0 : rv; rv 342 drivers/staging/speakup/spk_ttyio.c int rv = spk_ttyio_initialise_ldisc(synth); rv 344 drivers/staging/speakup/spk_ttyio.c if (rv) rv 345 drivers/staging/speakup/spk_ttyio.c return rv; rv 164 drivers/staging/speakup/varhandlers.c struct punc_var_t *rv = NULL; rv 168 drivers/staging/speakup/varhandlers.c while ((where->var_id != -1) && (!rv)) { rv 170 drivers/staging/speakup/varhandlers.c rv = where; rv 174 drivers/staging/speakup/varhandlers.c return rv; rv 982 drivers/thermal/tegra/soctherm.c int rv = -EINVAL; rv 987 drivers/thermal/tegra/soctherm.c rv = 0; rv 992 drivers/thermal/tegra/soctherm.c rv = 0; rv 997 drivers/thermal/tegra/soctherm.c rv = 0; rv 1002 drivers/thermal/tegra/soctherm.c rv = 0; rv 1009 drivers/thermal/tegra/soctherm.c if (rv) rv 1013 drivers/thermal/tegra/soctherm.c return rv; rv 319 drivers/tty/vcc.c int rv = 0; rv 323 drivers/tty/vcc.c rv = ldc_rx_reset(vio->lp); rv 324 drivers/tty/vcc.c vccdbg("VCC: reset rx q: rv=%d\n", rv); rv 337 drivers/tty/vcc.c rv = ldc_read(vio->lp, &pkt, sizeof(pkt)); rv 338 drivers/tty/vcc.c if (rv <= 0) rv 341 drivers/tty/vcc.c vccdbg("VCC: ldc_read()=%d\n", rv); rv 354 drivers/tty/vcc.c rv = -ECONNRESET; rv 358 drivers/tty/vcc.c WARN_ON(rv != LDC_PACKET_SIZE); rv 362 drivers/tty/vcc.c return rv; rv 370 drivers/tty/vcc.c int rv; rv 382 drivers/tty/vcc.c rv = vcc_ldc_read(port); rv 383 drivers/tty/vcc.c if (rv == -ECONNRESET) rv 397 drivers/tty/vcc.c int rv; rv 414 drivers/tty/vcc.c rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); rv 415 drivers/tty/vcc.c WARN_ON(!rv); rv 417 drivers/tty/vcc.c if (rv < 0) { rv 418 drivers/tty/vcc.c vccdbg("VCC: ldc_write()=%d\n", rv); rv 445 drivers/tty/vcc.c int rv; rv 459 drivers/tty/vcc.c rv = vcc_ldc_read(port); rv 460 drivers/tty/vcc.c if (rv == -ECONNRESET) rv 490 drivers/tty/vcc.c int rv; rv 496 drivers/tty/vcc.c rv = scnprintf(buf, PAGE_SIZE, "%s\n", port->domain); rv 498 drivers/tty/vcc.c return rv; rv 504 drivers/tty/vcc.c int rv; rv 510 drivers/tty/vcc.c rv = ldc_write(port->vio.lp, &pkt, sizeof(pkt.tag)); rv 511 drivers/tty/vcc.c WARN_ON(!rv); rv 512 drivers/tty/vcc.c vccdbg("VCC: ldc_write(%ld)=%d\n", sizeof(pkt.tag), rv); rv 514 drivers/tty/vcc.c return rv; rv 523 drivers/tty/vcc.c int rv = count; rv 533 drivers/tty/vcc.c rv = -EINVAL; rv 539 drivers/tty/vcc.c return rv; rv 576 drivers/tty/vcc.c int rv; rv 591 drivers/tty/vcc.c rv = vio_driver_init(&port->vio, vdev, VDEV_CONSOLE_CON, vcc_versions, rv 593 drivers/tty/vcc.c if (rv) rv 599 drivers/tty/vcc.c rv = vio_ldc_alloc(&port->vio, &vcc_ldc_cfg, port); rv 600 drivers/tty/vcc.c if (rv) rv 614 drivers/tty/vcc.c rv = PTR_ERR(dev); rv 622 drivers/tty/vcc.c rv = -ENXIO; rv 629 drivers/tty/vcc.c rv = -ENXIO; rv 637 drivers/tty/vcc.c rv = sysfs_create_group(&vdev->dev.kobj, &vcc_attribute_group); rv 638 drivers/tty/vcc.c if (rv) rv 667 drivers/tty/vcc.c return rv; rv 845 drivers/tty/vcc.c int rv = -EINVAL; rv 884 drivers/tty/vcc.c rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); rv 886 drivers/tty/vcc.c (VIO_TAG_SIZE + tosend), rv); rv 890 drivers/tty/vcc.c if (rv < 0) { rv 902 drivers/tty/vcc.c vccdbg("VCC: write: total=%d rv=%d", total_sent, rv); rv 904 drivers/tty/vcc.c return total_sent ? total_sent : rv; rv 1072 drivers/tty/vcc.c int rv; rv 1091 drivers/tty/vcc.c rv = tty_register_driver(vcc_tty_driver); rv 1092 drivers/tty/vcc.c if (rv) { rv 1096 drivers/tty/vcc.c return rv; rv 1115 drivers/tty/vcc.c int rv; rv 1117 drivers/tty/vcc.c rv = vcc_tty_init(); rv 1118 drivers/tty/vcc.c if (rv) { rv 1120 drivers/tty/vcc.c return rv; rv 1123 drivers/tty/vcc.c rv = vio_register_driver(&vcc_driver); rv 1124 drivers/tty/vcc.c if (rv) { rv 1131 drivers/tty/vcc.c return rv; rv 965 drivers/usb/class/cdc-acm.c int rv = 0; rv 994 drivers/usb/class/cdc-acm.c rv = -ENODEV; rv 997 drivers/usb/class/cdc-acm.c rv = -ERESTARTSYS; rv 999 drivers/usb/class/cdc-acm.c } while (!rv); rv 1003 drivers/usb/class/cdc-acm.c return rv; rv 1026 drivers/usb/class/cdc-acm.c int rv = -ENOIOCTLCMD; rv 1030 drivers/usb/class/cdc-acm.c rv = usb_autopm_get_interface(acm->control); rv 1031 drivers/usb/class/cdc-acm.c if (rv < 0) { rv 1032 drivers/usb/class/cdc-acm.c rv = -EIO; rv 1035 drivers/usb/class/cdc-acm.c rv = wait_serial_change(acm, arg); rv 1040 drivers/usb/class/cdc-acm.c return rv; rv 1172 drivers/usb/class/cdc-acm.c int rv = -ENOMEM; rv 1498 drivers/usb/class/cdc-acm.c rv = PTR_ERR(tty_dev); rv 1533 drivers/usb/class/cdc-acm.c return rv; rv 1621 drivers/usb/class/cdc-acm.c int rv = 0; rv 1629 drivers/usb/class/cdc-acm.c rv = usb_submit_urb(acm->ctrlurb, GFP_ATOMIC); rv 1643 drivers/usb/class/cdc-acm.c if (rv < 0) rv 1646 drivers/usb/class/cdc-acm.c rv = acm_submit_read_urbs(acm, GFP_ATOMIC); rv 1651 drivers/usb/class/cdc-acm.c return rv; rv 232 drivers/usb/class/cdc-wdm.c int rv = 0; rv 296 drivers/usb/class/cdc-wdm.c rv = usb_submit_urb(desc->response, GFP_ATOMIC); rv 297 drivers/usb/class/cdc-wdm.c dev_dbg(&desc->intf->dev, "submit response URB %d\n", rv); rv 300 drivers/usb/class/cdc-wdm.c if (rv < 0) { rv 302 drivers/usb/class/cdc-wdm.c if (rv == -EPERM) rv 304 drivers/usb/class/cdc-wdm.c if (rv == -ENOMEM) { rv 306 drivers/usb/class/cdc-wdm.c rv = schedule_work(&desc->rxwork); rv 307 drivers/usb/class/cdc-wdm.c if (rv) rv 313 drivers/usb/class/cdc-wdm.c rv = usb_submit_urb(urb, GFP_ATOMIC); rv 314 drivers/usb/class/cdc-wdm.c if (rv) rv 317 drivers/usb/class/cdc-wdm.c __func__, rv); rv 351 drivers/usb/class/cdc-wdm.c int rv = -EMSGSIZE, r, we; rv 371 drivers/usb/class/cdc-wdm.c rv = -ERESTARTSYS; rv 376 drivers/usb/class/cdc-wdm.c rv = -ENODEV; rv 382 drivers/usb/class/cdc-wdm.c rv = usb_translate_errors(r); rv 397 drivers/usb/class/cdc-wdm.c rv = r; rv 423 drivers/usb/class/cdc-wdm.c rv = usb_submit_urb(desc->command, GFP_KERNEL); rv 424 drivers/usb/class/cdc-wdm.c if (rv < 0) { rv 427 drivers/usb/class/cdc-wdm.c dev_err(&desc->intf->dev, "Tx URB error: %d\n", rv); rv 428 drivers/usb/class/cdc-wdm.c rv = usb_translate_errors(rv); rv 445 drivers/usb/class/cdc-wdm.c return rv; rv 455 drivers/usb/class/cdc-wdm.c int rv = 0; rv 463 drivers/usb/class/cdc-wdm.c rv = usb_submit_urb(desc->response, GFP_KERNEL); rv 465 drivers/usb/class/cdc-wdm.c if (rv) { rv 467 drivers/usb/class/cdc-wdm.c "usb_submit_urb failed with result %d\n", rv); rv 474 drivers/usb/class/cdc-wdm.c return rv; rv 480 drivers/usb/class/cdc-wdm.c int rv, cntr; rv 485 drivers/usb/class/cdc-wdm.c rv = mutex_lock_interruptible(&desc->rlock); /*concurrent reads */ rv 486 drivers/usb/class/cdc-wdm.c if (rv < 0) rv 494 drivers/usb/class/cdc-wdm.c rv = -ENODEV; rv 499 drivers/usb/class/cdc-wdm.c rv = -ENOBUFS; rv 505 drivers/usb/class/cdc-wdm.c rv = -EAGAIN; rv 508 drivers/usb/class/cdc-wdm.c rv = 0; rv 510 drivers/usb/class/cdc-wdm.c rv = wait_event_interruptible(desc->wait, rv 516 drivers/usb/class/cdc-wdm.c rv = -ENODEV; rv 520 drivers/usb/class/cdc-wdm.c rv = -EIO; rv 524 drivers/usb/class/cdc-wdm.c if (rv < 0) { rv 525 drivers/usb/class/cdc-wdm.c rv = -ERESTARTSYS; rv 532 drivers/usb/class/cdc-wdm.c rv = usb_translate_errors(desc->rerr); rv 549 drivers/usb/class/cdc-wdm.c rv = service_outstanding_interrupt(desc); rv 551 drivers/usb/class/cdc-wdm.c if (rv < 0) rv 561 drivers/usb/class/cdc-wdm.c rv = copy_to_user(buffer, desc->ubuf, cntr); rv 562 drivers/usb/class/cdc-wdm.c if (rv > 0) { rv 563 drivers/usb/class/cdc-wdm.c rv = -EFAULT; rv 579 drivers/usb/class/cdc-wdm.c rv = cntr; rv 583 drivers/usb/class/cdc-wdm.c return rv; rv 639 drivers/usb/class/cdc-wdm.c int rv = -ENODEV; rv 653 drivers/usb/class/cdc-wdm.c rv = usb_autopm_get_interface(desc->intf); rv 654 drivers/usb/class/cdc-wdm.c if (rv < 0) { rv 655 drivers/usb/class/cdc-wdm.c dev_err(&desc->intf->dev, "Error autopm - %d\n", rv); rv 664 drivers/usb/class/cdc-wdm.c rv = usb_submit_urb(desc->validity, GFP_KERNEL); rv 665 drivers/usb/class/cdc-wdm.c if (rv < 0) { rv 668 drivers/usb/class/cdc-wdm.c "Error submitting int urb - %d\n", rv); rv 669 drivers/usb/class/cdc-wdm.c rv = usb_translate_errors(rv); rv 672 drivers/usb/class/cdc-wdm.c rv = 0; rv 680 drivers/usb/class/cdc-wdm.c return rv; rv 715 drivers/usb/class/cdc-wdm.c int rv = 0; rv 720 drivers/usb/class/cdc-wdm.c rv = -EFAULT; rv 723 drivers/usb/class/cdc-wdm.c rv = -ENOTTY; rv 725 drivers/usb/class/cdc-wdm.c return rv; rv 752 drivers/usb/class/cdc-wdm.c int rv = 0; rv 762 drivers/usb/class/cdc-wdm.c rv = usb_submit_urb(desc->response, GFP_KERNEL); rv 763 drivers/usb/class/cdc-wdm.c if (rv < 0 && rv != -EPERM) { rv 793 drivers/usb/class/cdc-wdm.c int rv = -ENOMEM; rv 811 drivers/usb/class/cdc-wdm.c rv = -EINVAL; rv 883 drivers/usb/class/cdc-wdm.c rv = usb_register_dev(intf, &wdm_class); rv 884 drivers/usb/class/cdc-wdm.c if (rv < 0) rv 889 drivers/usb/class/cdc-wdm.c return rv; rv 895 drivers/usb/class/cdc-wdm.c return rv; rv 901 drivers/usb/class/cdc-wdm.c int rv = usb_autopm_get_interface(intf); rv 904 drivers/usb/class/cdc-wdm.c if (!rv) rv 911 drivers/usb/class/cdc-wdm.c int rv = -EINVAL; rv 932 drivers/usb/class/cdc-wdm.c rv = wdm_create(intf, ep, maxcom, &wdm_manage_power); rv 935 drivers/usb/class/cdc-wdm.c return rv; rv 962 drivers/usb/class/cdc-wdm.c int rv; rv 964 drivers/usb/class/cdc-wdm.c rv = wdm_create(intf, ep, bufsize, manage_power); rv 965 drivers/usb/class/cdc-wdm.c if (rv < 0) rv 970 drivers/usb/class/cdc-wdm.c return ERR_PTR(rv); rv 1013 drivers/usb/class/cdc-wdm.c int rv = 0; rv 1028 drivers/usb/class/cdc-wdm.c rv = -EBUSY; rv 1043 drivers/usb/class/cdc-wdm.c return rv; rv 1049 drivers/usb/class/cdc-wdm.c int rv = 0; rv 1052 drivers/usb/class/cdc-wdm.c rv = usb_submit_urb(desc->validity, GFP_NOIO); rv 1053 drivers/usb/class/cdc-wdm.c if (rv < 0) rv 1055 drivers/usb/class/cdc-wdm.c "Error resume submitting int urb - %d\n", rv); rv 1057 drivers/usb/class/cdc-wdm.c return rv; rv 1064 drivers/usb/class/cdc-wdm.c int rv; rv 1069 drivers/usb/class/cdc-wdm.c rv = recover_from_urb_loss(desc); rv 1071 drivers/usb/class/cdc-wdm.c return rv; rv 1103 drivers/usb/class/cdc-wdm.c int rv; rv 1107 drivers/usb/class/cdc-wdm.c rv = recover_from_urb_loss(desc); rv 1110 drivers/usb/class/cdc-wdm.c return rv; rv 720 drivers/usb/class/usblp.c int rv; rv 725 drivers/usb/class/usblp.c rv = -EINTR; rv 728 drivers/usb/class/usblp.c if ((rv = usblp_wwait(usblp, !!(file->f_flags & O_NONBLOCK))) < 0) rv 738 drivers/usb/class/usblp.c rv = -ENOMEM; rv 746 drivers/usb/class/usblp.c rv = -EFAULT; rv 753 drivers/usb/class/usblp.c if ((rv = usb_submit_urb(writeurb, GFP_KERNEL)) < 0) { rv 760 drivers/usb/class/usblp.c if (rv != -ENOMEM) rv 761 drivers/usb/class/usblp.c rv = -EIO; rv 768 drivers/usb/class/usblp.c rv = usblp_wwait(usblp, !!(file->f_flags&O_NONBLOCK)); rv 769 drivers/usb/class/usblp.c if (rv < 0) { rv 770 drivers/usb/class/usblp.c if (rv == -EAGAIN) { rv 774 drivers/usb/class/usblp.c if (rv == -ENOSPC) { rv 785 drivers/usb/class/usblp.c rv = -EIO; rv 807 drivers/usb/class/usblp.c return writecount ? writecount : rv; rv 820 drivers/usb/class/usblp.c int rv; rv 825 drivers/usb/class/usblp.c rv = usblp_rwait_and_lock(usblp, !!(file->f_flags & O_NONBLOCK)); rv 826 drivers/usb/class/usblp.c if (rv < 0) rv 827 drivers/usb/class/usblp.c return rv; rv 270 drivers/usb/class/usbtmc.c int rv; rv 279 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 286 drivers/usb/class/usbtmc.c if (rv < 0) { rv 287 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 296 drivers/usb/class/usbtmc.c rv = 0; rv 307 drivers/usb/class/usbtmc.c rv = -ENOMSG; rv 314 drivers/usb/class/usbtmc.c rv = -EPERM; rv 325 drivers/usb/class/usbtmc.c rv = usb_bulk_msg(data->usb_dev, rv 336 drivers/usb/class/usbtmc.c if (rv < 0) { rv 337 drivers/usb/class/usbtmc.c dev_err(dev, "usb_bulk_msg returned %d\n", rv); rv 338 drivers/usb/class/usbtmc.c if (rv != -ETIMEDOUT) rv 348 drivers/usb/class/usbtmc.c rv = -EPERM; rv 352 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 359 drivers/usb/class/usbtmc.c if (rv < 0) { rv 360 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 367 drivers/usb/class/usbtmc.c rv = 0; rv 373 drivers/usb/class/usbtmc.c rv = -EPERM; rv 383 drivers/usb/class/usbtmc.c rv = -EAGAIN; rv 386 drivers/usb/class/usbtmc.c return rv; rv 399 drivers/usb/class/usbtmc.c int rv; rv 408 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 415 drivers/usb/class/usbtmc.c if (rv < 0) { rv 416 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 425 drivers/usb/class/usbtmc.c rv = -EPERM; rv 434 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 441 drivers/usb/class/usbtmc.c if (rv < 0) { rv 442 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 455 drivers/usb/class/usbtmc.c rv = -EPERM; rv 459 drivers/usb/class/usbtmc.c rv = usb_clear_halt(data->usb_dev, rv 462 drivers/usb/class/usbtmc.c if (rv < 0) { rv 463 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 466 drivers/usb/class/usbtmc.c rv = 0; rv 470 drivers/usb/class/usbtmc.c return rv; rv 487 drivers/usb/class/usbtmc.c int rv; rv 498 drivers/usb/class/usbtmc.c rv = put_user(stb, (__u8 __user *)arg); rv 500 drivers/usb/class/usbtmc.c (unsigned int)stb, rv); rv 501 drivers/usb/class/usbtmc.c return rv; rv 511 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 518 drivers/usb/class/usbtmc.c if (rv < 0) { rv 519 drivers/usb/class/usbtmc.c dev_err(dev, "stb usb_control_msg returned %d\n", rv); rv 525 drivers/usb/class/usbtmc.c rv = -EIO; rv 530 drivers/usb/class/usbtmc.c rv = wait_event_interruptible_timeout( rv 534 drivers/usb/class/usbtmc.c if (rv < 0) { rv 535 drivers/usb/class/usbtmc.c dev_dbg(dev, "wait interrupted %d\n", rv); rv 539 drivers/usb/class/usbtmc.c if (rv == 0) { rv 541 drivers/usb/class/usbtmc.c rv = -ETIMEDOUT; rv 556 drivers/usb/class/usbtmc.c rv = put_user(stb, (__u8 __user *)arg); rv 557 drivers/usb/class/usbtmc.c dev_dbg(dev, "stb:0x%02x received %d\n", (unsigned int)stb, rv); rv 567 drivers/usb/class/usbtmc.c return rv; rv 575 drivers/usb/class/usbtmc.c int rv; rv 591 drivers/usb/class/usbtmc.c rv = wait_event_interruptible_timeout( rv 601 drivers/usb/class/usbtmc.c rv = -ENODEV; rv 603 drivers/usb/class/usbtmc.c if (rv < 0) { rv 605 drivers/usb/class/usbtmc.c pr_debug("%s - wait interrupted %d\n", __func__, rv); rv 606 drivers/usb/class/usbtmc.c return rv; rv 609 drivers/usb/class/usbtmc.c if (rv == 0) { rv 625 drivers/usb/class/usbtmc.c int rv; rv 635 drivers/usb/class/usbtmc.c rv = copy_from_user(&val, arg, sizeof(val)); rv 636 drivers/usb/class/usbtmc.c if (rv) { rv 637 drivers/usb/class/usbtmc.c rv = -EFAULT; rv 645 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 652 drivers/usb/class/usbtmc.c if (rv < 0) { rv 653 drivers/usb/class/usbtmc.c dev_err(dev, "simple usb_control_msg failed %d\n", rv); rv 655 drivers/usb/class/usbtmc.c } else if (rv != 1) { rv 656 drivers/usb/class/usbtmc.c dev_warn(dev, "simple usb_control_msg returned %d\n", rv); rv 657 drivers/usb/class/usbtmc.c rv = -EIO; rv 663 drivers/usb/class/usbtmc.c rv = -EIO; rv 666 drivers/usb/class/usbtmc.c rv = 0; rv 670 drivers/usb/class/usbtmc.c return rv; rv 1622 drivers/usb/class/usbtmc.c int rv; rv 1634 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 1639 drivers/usb/class/usbtmc.c if (rv < 0) { rv 1640 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 1648 drivers/usb/class/usbtmc.c rv = -EPERM; rv 1658 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 1663 drivers/usb/class/usbtmc.c if (rv < 0) { rv 1664 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 1675 drivers/usb/class/usbtmc.c rv = -EPERM; rv 1684 drivers/usb/class/usbtmc.c rv = usb_bulk_msg(data->usb_dev, rv 1695 drivers/usb/class/usbtmc.c if (rv < 0) { rv 1697 drivers/usb/class/usbtmc.c rv); rv 1711 drivers/usb/class/usbtmc.c rv = -EPERM; rv 1719 drivers/usb/class/usbtmc.c rv = usb_clear_halt(data->usb_dev, rv 1721 drivers/usb/class/usbtmc.c if (rv < 0) { rv 1722 drivers/usb/class/usbtmc.c dev_err(dev, "usb_clear_halt returned %d\n", rv); rv 1725 drivers/usb/class/usbtmc.c rv = 0; rv 1729 drivers/usb/class/usbtmc.c return rv; rv 1734 drivers/usb/class/usbtmc.c int rv; rv 1736 drivers/usb/class/usbtmc.c rv = usb_clear_halt(data->usb_dev, rv 1739 drivers/usb/class/usbtmc.c if (rv < 0) rv 1740 drivers/usb/class/usbtmc.c dev_err(&data->usb_dev->dev, "%s returned %d\n", __func__, rv); rv 1741 drivers/usb/class/usbtmc.c return rv; rv 1746 drivers/usb/class/usbtmc.c int rv; rv 1748 drivers/usb/class/usbtmc.c rv = usb_clear_halt(data->usb_dev, rv 1751 drivers/usb/class/usbtmc.c if (rv < 0) rv 1752 drivers/usb/class/usbtmc.c dev_err(&data->usb_dev->dev, "%s returned %d\n", __func__, rv); rv 1753 drivers/usb/class/usbtmc.c return rv; rv 1785 drivers/usb/class/usbtmc.c int rv = 0; rv 1791 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, usb_rcvctrlpipe(data->usb_dev, 0), rv 1795 drivers/usb/class/usbtmc.c if (rv < 0) { rv 1796 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 1803 drivers/usb/class/usbtmc.c rv = -EPERM; rv 1816 drivers/usb/class/usbtmc.c rv = 0; rv 1820 drivers/usb/class/usbtmc.c return rv; rv 1852 drivers/usb/class/usbtmc.c int rv; rv 1860 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 1866 drivers/usb/class/usbtmc.c if (rv < 0) { rv 1867 drivers/usb/class/usbtmc.c dev_err(dev, "usb_control_msg returned %d\n", rv); rv 1875 drivers/usb/class/usbtmc.c rv = -EPERM; rv 1878 drivers/usb/class/usbtmc.c rv = 0; rv 1882 drivers/usb/class/usbtmc.c return rv; rv 1891 drivers/usb/class/usbtmc.c int rv; rv 1911 drivers/usb/class/usbtmc.c rv = -EFAULT; rv 1917 drivers/usb/class/usbtmc.c rv = usb_control_msg(data->usb_dev, rv 1925 drivers/usb/class/usbtmc.c if (rv < 0) { rv 1926 drivers/usb/class/usbtmc.c dev_err(dev, "%s failed %d\n", __func__, rv); rv 1930 drivers/usb/class/usbtmc.c if (rv && (request.req.bRequestType & USB_DIR_IN)) { rv 1932 drivers/usb/class/usbtmc.c res = copy_to_user(request.data, buffer, rv); rv 1934 drivers/usb/class/usbtmc.c rv = -EFAULT; rv 1939 drivers/usb/class/usbtmc.c return rv; rv 2239 drivers/usb/class/usbtmc.c int rv; rv 2301 drivers/usb/class/usbtmc.c rv = usb_submit_urb(urb, GFP_ATOMIC); rv 2302 drivers/usb/class/usbtmc.c if (rv) rv 2303 drivers/usb/class/usbtmc.c dev_err(dev, "usb_submit_urb failed: %d\n", rv); rv 475 drivers/usb/core/sysfs.c int rv; rv 482 drivers/usb/core/sysfs.c rv = usb_lock_device_interruptible(udev); rv 483 drivers/usb/core/sysfs.c if (rv < 0) rv 80 drivers/usb/host/ehci-grlib.c int rv; rv 87 drivers/usb/host/ehci-grlib.c rv = of_address_to_resource(dn, 0, &res); rv 88 drivers/usb/host/ehci-grlib.c if (rv) rv 89 drivers/usb/host/ehci-grlib.c return rv; rv 105 drivers/usb/host/ehci-grlib.c rv = -EBUSY; rv 111 drivers/usb/host/ehci-grlib.c rv = PTR_ERR(hcd->regs); rv 127 drivers/usb/host/ehci-grlib.c rv = usb_add_hcd(hcd, irq, 0); rv 128 drivers/usb/host/ehci-grlib.c if (rv) rv 139 drivers/usb/host/ehci-grlib.c return rv; rv 101 drivers/usb/host/ehci-ppc-of.c int rv; rv 110 drivers/usb/host/ehci-ppc-of.c rv = of_address_to_resource(dn, 0, &res); rv 111 drivers/usb/host/ehci-ppc-of.c if (rv) rv 112 drivers/usb/host/ehci-ppc-of.c return rv; rv 125 drivers/usb/host/ehci-ppc-of.c rv = -EBUSY; rv 131 drivers/usb/host/ehci-ppc-of.c rv = PTR_ERR(hcd->regs); rv 165 drivers/usb/host/ehci-ppc-of.c rv = ppc44x_enable_bmt(dn); rv 167 drivers/usb/host/ehci-ppc-of.c rv ? "NOT ": ""); rv 170 drivers/usb/host/ehci-ppc-of.c rv = usb_add_hcd(hcd, irq, 0); rv 171 drivers/usb/host/ehci-ppc-of.c if (rv) rv 182 drivers/usb/host/ehci-ppc-of.c return rv; rv 123 drivers/usb/host/ehci-xilinx-of.c int rv; rv 131 drivers/usb/host/ehci-xilinx-of.c rv = of_address_to_resource(dn, 0, &res); rv 132 drivers/usb/host/ehci-xilinx-of.c if (rv) rv 133 drivers/usb/host/ehci-xilinx-of.c return rv; rv 147 drivers/usb/host/ehci-xilinx-of.c rv = -EBUSY; rv 153 drivers/usb/host/ehci-xilinx-of.c rv = PTR_ERR(hcd->regs); rv 181 drivers/usb/host/ehci-xilinx-of.c rv = usb_add_hcd(hcd, irq, 0); rv 182 drivers/usb/host/ehci-xilinx-of.c if (rv == 0) { rv 190 drivers/usb/host/ehci-xilinx-of.c return rv; rv 95 drivers/usb/host/ohci-ppc-of.c int rv; rv 108 drivers/usb/host/ohci-ppc-of.c rv = of_address_to_resource(dn, 0, &res); rv 109 drivers/usb/host/ohci-ppc-of.c if (rv) rv 110 drivers/usb/host/ohci-ppc-of.c return rv; rv 121 drivers/usb/host/ohci-ppc-of.c rv = PTR_ERR(hcd->regs); rv 129 drivers/usb/host/ohci-ppc-of.c rv = -EBUSY; rv 144 drivers/usb/host/ohci-ppc-of.c rv = usb_add_hcd(hcd, irq, 0); rv 145 drivers/usb/host/ohci-ppc-of.c if (rv == 0) { rv 178 drivers/usb/host/ohci-ppc-of.c return rv; rv 97 drivers/usb/host/uhci-grlib.c int rv; rv 104 drivers/usb/host/uhci-grlib.c rv = of_address_to_resource(dn, 0, &res); rv 105 drivers/usb/host/uhci-grlib.c if (rv) rv 106 drivers/usb/host/uhci-grlib.c return rv; rv 121 drivers/usb/host/uhci-grlib.c rv = -EBUSY; rv 127 drivers/usb/host/uhci-grlib.c rv = PTR_ERR(hcd->regs); rv 135 drivers/usb/host/uhci-grlib.c rv = usb_add_hcd(hcd, irq, 0); rv 136 drivers/usb/host/uhci-grlib.c if (rv) rv 147 drivers/usb/host/uhci-grlib.c return rv; rv 444 drivers/usb/misc/ldusb.c int rv; rv 506 drivers/usb/misc/ldusb.c rv = usb_submit_urb(dev->interrupt_in_urb, GFP_KERNEL); rv 507 drivers/usb/misc/ldusb.c if (rv < 0) rv 1225 drivers/usb/serial/ftdi_sio.c int rv; rv 1242 drivers/usb/serial/ftdi_sio.c rv = usb_control_msg(port->serial->dev, rv 1248 drivers/usb/serial/ftdi_sio.c if (rv < 0) { rv 1253 drivers/usb/serial/ftdi_sio.c rv = usb_translate_errors(rv); rv 1261 drivers/usb/serial/ftdi_sio.c return rv; rv 1378 drivers/usb/serial/ftdi_sio.c int rv; rv 1390 drivers/usb/serial/ftdi_sio.c rv = usb_control_msg(port->serial->dev, rv 1396 drivers/usb/serial/ftdi_sio.c return rv; rv 1403 drivers/usb/serial/ftdi_sio.c int rv; rv 1414 drivers/usb/serial/ftdi_sio.c rv = usb_control_msg(udev, rv 1420 drivers/usb/serial/ftdi_sio.c if (rv < 0) rv 1421 drivers/usb/serial/ftdi_sio.c dev_err(&port->dev, "Unable to write latency timer: %i\n", rv); rv 1422 drivers/usb/serial/ftdi_sio.c return rv; rv 1430 drivers/usb/serial/ftdi_sio.c int rv; rv 1436 drivers/usb/serial/ftdi_sio.c rv = usb_control_msg(udev, rv 1442 drivers/usb/serial/ftdi_sio.c if (rv < 1) { rv 1443 drivers/usb/serial/ftdi_sio.c if (rv >= 0) rv 1444 drivers/usb/serial/ftdi_sio.c rv = -EIO; rv 1446 drivers/usb/serial/ftdi_sio.c rv = buf[0]; rv 1451 drivers/usb/serial/ftdi_sio.c return rv; rv 1457 drivers/usb/serial/ftdi_sio.c int rv; rv 1462 drivers/usb/serial/ftdi_sio.c rv = _read_latency_timer(port); rv 1463 drivers/usb/serial/ftdi_sio.c if (rv < 0) { rv 1464 drivers/usb/serial/ftdi_sio.c dev_err(&port->dev, "Unable to read latency timer: %i\n", rv); rv 1465 drivers/usb/serial/ftdi_sio.c return rv; rv 1468 drivers/usb/serial/ftdi_sio.c priv->latency = rv; rv 1699 drivers/usb/serial/ftdi_sio.c int rv; rv 1705 drivers/usb/serial/ftdi_sio.c rv = write_latency_timer(port); rv 1706 drivers/usb/serial/ftdi_sio.c if (rv < 0) rv 1721 drivers/usb/serial/ftdi_sio.c int rv; rv 1728 drivers/usb/serial/ftdi_sio.c rv = usb_control_msg(udev, rv 1734 drivers/usb/serial/ftdi_sio.c if (rv < 0) { rv 1735 drivers/usb/serial/ftdi_sio.c dev_dbg(&port->dev, "Unable to write event character: %i\n", rv); rv 2011 drivers/usb/serial/ftdi_sio.c int rv; rv 2013 drivers/usb/serial/ftdi_sio.c rv = usb_control_msg(serial->dev, rv 2019 drivers/usb/serial/ftdi_sio.c if (rv < 2) { rv 2020 drivers/usb/serial/ftdi_sio.c if (rv >= 0) rv 2023 drivers/usb/serial/ftdi_sio.c return rv; rv 2026 drivers/usb/serial/ftdi_sio.c read += rv; rv 602 drivers/usb/serial/mos7840.c int i, rv = 0; rv 665 drivers/usb/serial/mos7840.c rv = mos7840_get_reg(mos7840_port, wval, wreg, &Data); rv 669 drivers/usb/serial/mos7840.c if (!(rv < 0)) rv 1150 drivers/usb/serial/usb-serial.c int rv; rv 1156 drivers/usb/serial/usb-serial.c rv = serial->type->resume(serial); rv 1158 drivers/usb/serial/usb-serial.c rv = usb_serial_generic_resume(serial); rv 1160 drivers/usb/serial/usb-serial.c return rv; rv 1167 drivers/usb/serial/usb-serial.c int rv; rv 1173 drivers/usb/serial/usb-serial.c rv = serial->type->reset_resume(serial); rv 1175 drivers/usb/serial/usb-serial.c rv = -EOPNOTSUPP; rv 1179 drivers/usb/serial/usb-serial.c return rv; rv 1248 drivers/usb/storage/uas.c int rv; rv 1254 drivers/usb/storage/uas.c rv = usb_register(&uas_driver); rv 1255 drivers/usb/storage/uas.c if (rv) { rv 189 drivers/usb/usb-skeleton.c int rv; rv 210 drivers/usb/usb-skeleton.c rv = usb_submit_urb(dev->bulk_in_urb, GFP_KERNEL); rv 211 drivers/usb/usb-skeleton.c if (rv < 0) { rv 214 drivers/usb/usb-skeleton.c __func__, rv); rv 215 drivers/usb/usb-skeleton.c rv = (rv == -ENOMEM) ? rv : -EIO; rv 221 drivers/usb/usb-skeleton.c return rv; rv 228 drivers/usb/usb-skeleton.c int rv; rv 237 drivers/usb/usb-skeleton.c rv = mutex_lock_interruptible(&dev->io_mutex); rv 238 drivers/usb/usb-skeleton.c if (rv < 0) rv 239 drivers/usb/usb-skeleton.c return rv; rv 242 drivers/usb/usb-skeleton.c rv = -ENODEV; rv 255 drivers/usb/usb-skeleton.c rv = -EAGAIN; rv 262 drivers/usb/usb-skeleton.c rv = wait_event_interruptible(dev->bulk_in_wait, (!dev->ongoing_read)); rv 263 drivers/usb/usb-skeleton.c if (rv < 0) rv 268 drivers/usb/usb-skeleton.c rv = dev->errors; rv 269 drivers/usb/usb-skeleton.c if (rv < 0) { rv 273 drivers/usb/usb-skeleton.c rv = (rv == -EPIPE) ? rv : -EIO; rv 293 drivers/usb/usb-skeleton.c rv = skel_do_read_io(dev, count); rv 294 drivers/usb/usb-skeleton.c if (rv < 0) rv 307 drivers/usb/usb-skeleton.c rv = -EFAULT; rv 309 drivers/usb/usb-skeleton.c rv = chunk; rv 321 drivers/usb/usb-skeleton.c rv = skel_do_read_io(dev, count); rv 322 drivers/usb/usb-skeleton.c if (rv < 0) rv 329 drivers/usb/usb-skeleton.c return rv; rv 48 drivers/usb/usbip/stub_dev.c int rv; rv 55 drivers/usb/usbip/stub_dev.c rv = sscanf(buf, "%d", &sockfd); rv 56 drivers/usb/usbip/stub_dev.c if (rv != 1) rv 97 drivers/usb/usbip/vudc_sysfs.c int rv; rv 104 drivers/usb/usbip/vudc_sysfs.c rv = kstrtoint(in, 0, &sockfd); rv 105 drivers/usb/usbip/vudc_sysfs.c if (rv != 0) rv 413 drivers/video/fbdev/arkfb.c int rv = svga_compute_pll((DAC_PAR(info)->mode == DAC_PSEUDO8_16) rv 417 drivers/video/fbdev/arkfb.c if (rv < 0) { rv 504 drivers/video/fbdev/arkfb.c int rv = dac_set_freq(par->dac, 0, 1000000000 / pixclock); rv 505 drivers/video/fbdev/arkfb.c if (rv < 0) { rv 567 drivers/video/fbdev/arkfb.c int rv, mem, step; rv 570 drivers/video/fbdev/arkfb.c rv = svga_match_format (arkfb_formats, var, NULL); rv 571 drivers/video/fbdev/arkfb.c if (rv < 0) rv 574 drivers/video/fbdev/arkfb.c return rv; rv 585 drivers/video/fbdev/arkfb.c step = arkfb_formats[rv].xresstep - 1; rv 598 drivers/video/fbdev/arkfb.c rv = svga_check_timings (&ark_timing_regs, var, info->node); rv 599 drivers/video/fbdev/arkfb.c if (rv < 0) rv 602 drivers/video/fbdev/arkfb.c return rv; rv 957 drivers/video/fbdev/controlfb.c struct control_regints *rv; rv 959 drivers/video/fbdev/controlfb.c rv = (struct control_regints *) par->regvals.regs; rv 1000 drivers/video/fbdev/controlfb.c var->left_margin = (rv->heblank - rv->hesync) << 1; rv 1001 drivers/video/fbdev/controlfb.c var->right_margin = (rv->hssync - rv->hsblank) << 1; rv 1002 drivers/video/fbdev/controlfb.c var->hsync_len = (rv->hperiod + 2 - rv->hssync + rv->hesync) << 1; rv 1004 drivers/video/fbdev/controlfb.c var->upper_margin = (rv->veblank - rv->vesync) >> 1; rv 1005 drivers/video/fbdev/controlfb.c var->lower_margin = (rv->vssync - rv->vsblank) >> 1; rv 1006 drivers/video/fbdev/controlfb.c var->vsync_len = (rv->vperiod - rv->vssync + rv->vesync) >> 1; rv 463 drivers/video/fbdev/s3fb.c int rv; rv 465 drivers/video/fbdev/s3fb.c rv = svga_compute_pll((par->chip == CHIP_365_TRIO3D) ? &s3_trio3d_pll : &s3_pll, rv 467 drivers/video/fbdev/s3fb.c if (rv < 0) { rv 549 drivers/video/fbdev/s3fb.c int rv, mem, step; rv 553 drivers/video/fbdev/s3fb.c rv = svga_match_format (s3fb_formats, var, NULL); rv 557 drivers/video/fbdev/s3fb.c if ((par->chip == CHIP_988_VIRGE_VX) ? (rv == 7) : (rv == 6)) rv 558 drivers/video/fbdev/s3fb.c rv = -EINVAL; rv 560 drivers/video/fbdev/s3fb.c if (rv < 0) { rv 562 drivers/video/fbdev/s3fb.c return rv; rv 573 drivers/video/fbdev/s3fb.c step = s3fb_formats[rv].xresstep - 1; rv 584 drivers/video/fbdev/s3fb.c rv = svga_check_timings (&s3_timing_regs, var, info->node); rv 585 drivers/video/fbdev/s3fb.c if (rv < 0) { rv 587 drivers/video/fbdev/s3fb.c return rv; rv 590 drivers/video/fbdev/s3fb.c rv = svga_compute_pll(&s3_pll, PICOS2KHZ(var->pixclock), &m, &n, &r, rv 592 drivers/video/fbdev/s3fb.c if (rv < 0) { rv 594 drivers/video/fbdev/s3fb.c return rv; rv 255 drivers/video/fbdev/vt8623fb.c int rv; rv 257 drivers/video/fbdev/vt8623fb.c rv = svga_compute_pll(&vt8623_pll, 1000000000 / pixclock, &m, &n, &r, info->node); rv 258 drivers/video/fbdev/vt8623fb.c if (rv < 0) { rv 322 drivers/video/fbdev/vt8623fb.c int rv, mem, step; rv 325 drivers/video/fbdev/vt8623fb.c rv = svga_match_format (vt8623fb_formats, var, NULL); rv 326 drivers/video/fbdev/vt8623fb.c if (rv < 0) rv 329 drivers/video/fbdev/vt8623fb.c return rv; rv 340 drivers/video/fbdev/vt8623fb.c step = vt8623fb_formats[rv].xresstep - 1; rv 360 drivers/video/fbdev/vt8623fb.c rv = svga_check_timings (&vt8623_timing_regs, var, info->node); rv 361 drivers/video/fbdev/vt8623fb.c if (rv < 0) rv 364 drivers/video/fbdev/vt8623fb.c return rv; rv 647 drivers/w1/slaves/w1_therm.c int rv; rv 675 drivers/w1/slaves/w1_therm.c rv = w1_read_block(sl->master, (u8 *)&rn, 8); rv 989 drivers/w1/w1.c int rv; rv 991 drivers/w1/w1.c rv = w1_read_block(dev, (u8 *)&rn, 8); rv 994 drivers/w1/w1.c if (rv == 8 && rn) rv 588 drivers/watchdog/pcwd.c int rv; rv 624 drivers/watchdog/pcwd.c if (get_user(rv, argp)) rv 627 drivers/watchdog/pcwd.c if (rv & WDIOS_DISABLECARD) { rv 632 drivers/watchdog/pcwd.c if (rv & WDIOS_ENABLECARD) { rv 637 drivers/watchdog/pcwd.c if (rv & WDIOS_TEMPPANIC) rv 221 drivers/xen/gntalloc.c struct gntalloc_gref *rv = NULL, *gref; rv 223 drivers/xen/gntalloc.c if (gref->file_index == index && !rv) rv 224 drivers/xen/gntalloc.c rv = gref; rv 225 drivers/xen/gntalloc.c if (rv) { rv 231 drivers/xen/gntalloc.c return rv; rv 511 drivers/xen/gntalloc.c int rv, i; rv 529 drivers/xen/gntalloc.c rv = -ENOENT; rv 548 drivers/xen/gntalloc.c rv = vm_insert_page(vma, vma->vm_start + i * PAGE_SIZE, rv 550 drivers/xen/gntalloc.c if (rv) rv 556 drivers/xen/gntalloc.c rv = 0; rv 560 drivers/xen/gntalloc.c return rv; rv 733 drivers/xen/gntdev.c int rv = -EINVAL; rv 750 drivers/xen/gntdev.c rv = 0; rv 755 drivers/xen/gntdev.c if (rv == 0 && copy_to_user(u, &op, sizeof(op)) != 0) rv 757 drivers/xen/gntdev.c return rv; rv 338 drivers/xen/xen-acpi-cpuhotplug.c u32 lvl, void *context, void **rv) rv 325 drivers/xen/xen-acpi-processor.c read_acpi_id(acpi_handle handle, u32 lvl, void *context, void **rv) rv 823 drivers/xen/xenbus/xenbus_client.c int rv; rv 855 drivers/xen/xenbus/xenbus_client.c rv = xenbus_unmap_ring(dev, node->handles, node->nr_handles, rv 857 drivers/xen/xenbus/xenbus_client.c if (!rv) { rv 865 drivers/xen/xenbus/xenbus_client.c return rv; rv 779 fs/autofs/root.c int rv; rv 781 fs/autofs/root.c rv = get_user(ntimeout, p); rv 782 fs/autofs/root.c if (rv) rv 785 fs/autofs/root.c rv = put_user(sbi->exp_timeout/HZ, p); rv 786 fs/autofs/root.c if (rv) rv 796 fs/autofs/root.c return rv; rv 804 fs/autofs/root.c int rv; rv 806 fs/autofs/root.c rv = get_user(ntimeout, p); rv 807 fs/autofs/root.c if (rv) rv 810 fs/autofs/root.c rv = put_user(sbi->exp_timeout/HZ, p); rv 811 fs/autofs/root.c if (rv) rv 821 fs/autofs/root.c return rv; rv 994 fs/cramfs/inode.c int rv; rv 996 fs/cramfs/inode.c rv = cramfs_uncompress_init(); rv 997 fs/cramfs/inode.c if (rv < 0) rv 998 fs/cramfs/inode.c return rv; rv 999 fs/cramfs/inode.c rv = register_filesystem(&cramfs_fs_type); rv 1000 fs/cramfs/inode.c if (rv < 0) rv 1002 fs/cramfs/inode.c return rv; rv 57 fs/dlm/ast.c int i, rv; rv 86 fs/dlm/ast.c rv = 0; rv 96 fs/dlm/ast.c rv = 0; rv 105 fs/dlm/ast.c rv = -1; rv 109 fs/dlm/ast.c return rv; rv 115 fs/dlm/ast.c int i, rv; rv 120 fs/dlm/ast.c rv = -ENOENT; rv 154 fs/dlm/ast.c rv = 0; rv 168 fs/dlm/ast.c rv = 0; rv 170 fs/dlm/ast.c return rv; rv 178 fs/dlm/ast.c int rv; rv 194 fs/dlm/ast.c rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, new_seq); rv 195 fs/dlm/ast.c if (rv < 0) rv 220 fs/dlm/ast.c int i, rv, resid; rv 233 fs/dlm/ast.c rv = dlm_rem_lkb_callback(ls, lkb, &callbacks[i], &resid); rv 234 fs/dlm/ast.c if (rv < 0) rv 594 fs/dlm/config.c int rv; rv 608 fs/dlm/config.c rv = dlm_lowcomms_addr(cm->nodeid, addr, len); rv 609 fs/dlm/config.c if (rv) { rv 611 fs/dlm/config.c return rv; rv 781 fs/dlm/config.c int rv, count; rv 789 fs/dlm/config.c rv = -EINVAL; rv 798 fs/dlm/config.c rv = -ENOMEM; rv 815 fs/dlm/config.c rv = 0; rv 819 fs/dlm/config.c return rv; rv 703 fs/dlm/debug_fs.c size_t len = DLM_DEBUG_BUF_LEN, pos = 0, ret, rv; rv 719 fs/dlm/debug_fs.c rv = simple_read_from_buffer(userbuf, count, ppos, debug_buf, pos); rv 721 fs/dlm/debug_fs.c return rv; rv 202 fs/dlm/dir.c int rv; rv 208 fs/dlm/dir.c rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, &r); rv 209 fs/dlm/dir.c if (rv) rv 210 fs/dlm/dir.c rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].toss, rv 214 fs/dlm/dir.c if (!rv) rv 288 fs/dlm/lock.c static void queue_cast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) rv 299 fs/dlm/lock.c if (rv == -DLM_ECANCEL && (lkb->lkb_flags & DLM_IFL_TIMEOUT_CANCEL)) { rv 301 fs/dlm/lock.c rv = -ETIMEDOUT; rv 304 fs/dlm/lock.c if (rv == -DLM_ECANCEL && (lkb->lkb_flags & DLM_IFL_DEADLOCK_CANCEL)) { rv 306 fs/dlm/lock.c rv = -EDEADLK; rv 309 fs/dlm/lock.c dlm_add_cb(lkb, DLM_CB_CAST, lkb->lkb_grmode, rv, lkb->lkb_sbflags); rv 1144 fs/dlm/lock.c int rv; rv 1145 fs/dlm/lock.c rv = kref_put(&r->res_ref, toss_rsb); rv 1146 fs/dlm/lock.c DLM_ASSERT(!rv, dlm_dump_rsb(r);); rv 1184 fs/dlm/lock.c int rv; rv 1202 fs/dlm/lock.c rv = idr_alloc(&ls->ls_lkbidr, lkb, 1, 0, GFP_NOWAIT); rv 1203 fs/dlm/lock.c if (rv >= 0) rv 1204 fs/dlm/lock.c lkb->lkb_id = rv; rv 1208 fs/dlm/lock.c if (rv < 0) { rv 1209 fs/dlm/lock.c log_error(ls, "create_lkb idr error %d", rv); rv 1211 fs/dlm/lock.c return rv; rv 1293 fs/dlm/lock.c int rv; rv 1294 fs/dlm/lock.c rv = kref_put(&lkb->lkb_ref, kill_lkb); rv 1295 fs/dlm/lock.c DLM_ASSERT(!rv, dlm_print_lkb(lkb);); rv 1656 fs/dlm/lock.c int i, len, rv; rv 1741 fs/dlm/lock.c rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); rv 1742 fs/dlm/lock.c if (rv) { rv 2082 fs/dlm/lock.c int rv = 0; rv 2091 fs/dlm/lock.c rv = 1; rv 2099 fs/dlm/lock.c rv = -1; rv 2104 fs/dlm/lock.c return rv; rv 2444 fs/dlm/lock.c int rv; rv 2451 fs/dlm/lock.c rv = _can_be_granted(r, lkb, now, recover); rv 2452 fs/dlm/lock.c if (rv) rv 2490 fs/dlm/lock.c rv = _can_be_granted(r, lkb, now, 0); rv 2491 fs/dlm/lock.c if (rv) rv 2497 fs/dlm/lock.c return rv; rv 2813 fs/dlm/lock.c int rv = -EINVAL; rv 2867 fs/dlm/lock.c rv = 0; rv 2869 fs/dlm/lock.c return rv; rv 2889 fs/dlm/lock.c int rv = -EINVAL; rv 2899 fs/dlm/lock.c rv = -EBUSY; rv 2920 fs/dlm/lock.c rv = 0; rv 2922 fs/dlm/lock.c if (rv) rv 2924 fs/dlm/lock.c rv, lkb->lkb_id, lkb->lkb_flags, args->flags, rv 2927 fs/dlm/lock.c return rv; rv 2940 fs/dlm/lock.c int rv = -EINVAL; rv 2954 fs/dlm/lock.c rv = -ENOENT; rv 2971 fs/dlm/lock.c rv = -EBUSY; rv 2989 fs/dlm/lock.c rv = -EBUSY; rv 2996 fs/dlm/lock.c rv = -EBUSY; rv 3004 fs/dlm/lock.c rv = -EBUSY; rv 3030 fs/dlm/lock.c rv = -EBUSY; rv 3038 fs/dlm/lock.c rv = -EBUSY; rv 3048 fs/dlm/lock.c rv = -EBUSY; rv 3057 fs/dlm/lock.c rv = 0; rv 3059 fs/dlm/lock.c if (rv) rv 3060 fs/dlm/lock.c log_debug(ls, "validate_unlock_args %d %x %x %x %x %d %s", rv, rv 3064 fs/dlm/lock.c return rv; rv 3798 fs/dlm/lock.c int mstype, int rv) rv 3812 fs/dlm/lock.c ms->m_result = rv; rv 3819 fs/dlm/lock.c static int send_request_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) rv 3821 fs/dlm/lock.c return send_common_reply(r, lkb, DLM_MSG_REQUEST_REPLY, rv); rv 3824 fs/dlm/lock.c static int send_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) rv 3826 fs/dlm/lock.c return send_common_reply(r, lkb, DLM_MSG_CONVERT_REPLY, rv); rv 3829 fs/dlm/lock.c static int send_unlock_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) rv 3831 fs/dlm/lock.c return send_common_reply(r, lkb, DLM_MSG_UNLOCK_REPLY, rv); rv 3834 fs/dlm/lock.c static int send_cancel_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) rv 3836 fs/dlm/lock.c return send_common_reply(r, lkb, DLM_MSG_CANCEL_REPLY, rv); rv 3840 fs/dlm/lock.c int ret_nodeid, int rv) rv 3852 fs/dlm/lock.c ms->m_result = rv; rv 4021 fs/dlm/lock.c int rv, dir_nodeid; rv 4034 fs/dlm/lock.c rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); rv 4035 fs/dlm/lock.c if (!rv) { rv 4041 fs/dlm/lock.c rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); rv 4042 fs/dlm/lock.c if (!rv) { rv 4056 fs/dlm/lock.c rv = _create_message(ls, sizeof(struct dlm_message) + len, rv 4058 fs/dlm/lock.c if (rv) rv 4391 fs/dlm/lock.c int rv, len, dir_nodeid, from_nodeid; rv 4427 fs/dlm/lock.c rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); rv 4428 fs/dlm/lock.c if (rv) { rv 4430 fs/dlm/lock.c rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); rv 4431 fs/dlm/lock.c if (rv) { rv 5904 fs/dlm/lock.c int rv = 0; rv 5926 fs/dlm/lock.c rv = -EAGAIN; rv 5931 fs/dlm/lock.c rv = -ENOENT; rv 5959 fs/dlm/lock.c return rv; rv 751 fs/dlm/lockspace.c int rv; rv 755 fs/dlm/lockspace.c rv = idr_for_each(&ls->ls_lkbidr, lkb_idr_is_any, ls); rv 757 fs/dlm/lockspace.c rv = idr_for_each(&ls->ls_lkbidr, lkb_idr_is_local, ls); rv 759 fs/dlm/lockspace.c rv = 0; rv 762 fs/dlm/lockspace.c return rv; rv 769 fs/dlm/lockspace.c int i, busy, rv; rv 776 fs/dlm/lockspace.c rv = -EBUSY; rv 780 fs/dlm/lockspace.c rv = 0; rv 783 fs/dlm/lockspace.c rv = --ls->ls_create_count; rv 785 fs/dlm/lockspace.c rv = -EINVAL; rv 789 fs/dlm/lockspace.c if (rv) { rv 790 fs/dlm/lockspace.c log_debug(ls, "release_lockspace no remove %d", rv); rv 791 fs/dlm/lockspace.c return rv; rv 347 fs/dlm/lowcomms.c int rv = -EEXIST; rv 358 fs/dlm/lowcomms.c rv = 0; rv 365 fs/dlm/lowcomms.c return rv; rv 512 fs/dlm/member.c static struct dlm_config_node *find_config_node(struct dlm_recover *rv, rv 517 fs/dlm/member.c for (i = 0; i < rv->nodes_count; i++) { rv 518 fs/dlm/member.c if (rv->nodes[i].nodeid == nodeid) rv 519 fs/dlm/member.c return &rv->nodes[i]; rv 524 fs/dlm/member.c int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv, int *neg_out) rv 541 fs/dlm/member.c node = find_config_node(rv, memb->nodeid); rv 561 fs/dlm/member.c for (i = 0; i < rv->nodes_count; i++) { rv 562 fs/dlm/member.c node = &rv->nodes[i]; rv 671 fs/dlm/member.c struct dlm_recover *rv, *rv_old; rv 675 fs/dlm/member.c rv = kzalloc(sizeof(*rv), GFP_NOFS); rv 676 fs/dlm/member.c if (!rv) rv 694 fs/dlm/member.c rv->nodes = nodes; rv 695 fs/dlm/member.c rv->nodes_count = count; rv 696 fs/dlm/member.c rv->seq = ++ls->ls_recover_seq; rv 698 fs/dlm/member.c ls->ls_recover_args = rv; rv 715 fs/dlm/member.c kfree(rv); rv 18 fs/dlm/member.h int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv,int *neg_out); rv 119 fs/dlm/netlink.c int rv; rv 124 fs/dlm/netlink.c rv = prepare_data(DLM_CMD_TIMEOUT, &send_skb, size); rv 125 fs/dlm/netlink.c if (rv < 0) rv 107 fs/dlm/plock.c int rv; rv 115 fs/dlm/plock.c rv = -ENOMEM; rv 145 fs/dlm/plock.c rv = wait_event_interruptible(recv_wq, (op->done != 0)); rv 146 fs/dlm/plock.c if (rv == -ERESTARTSYS) { rv 157 fs/dlm/plock.c rv = FILE_LOCK_DEFERRED; rv 169 fs/dlm/plock.c rv = op->info.rv; rv 171 fs/dlm/plock.c if (!rv) { rv 180 fs/dlm/plock.c return rv; rv 192 fs/dlm/plock.c int rv = 0; rv 208 fs/dlm/plock.c if (op->info.rv) { rv 209 fs/dlm/plock.c notify(fl, op->info.rv); rv 228 fs/dlm/plock.c rv = notify(fl, 0); rv 229 fs/dlm/plock.c if (rv) { rv 238 fs/dlm/plock.c return rv; rv 246 fs/dlm/plock.c int rv; rv 255 fs/dlm/plock.c rv = -ENOMEM; rv 262 fs/dlm/plock.c rv = locks_lock_file_wait(file, fl); rv 263 fs/dlm/plock.c if (rv == -ENOENT) { rv 264 fs/dlm/plock.c rv = 0; rv 267 fs/dlm/plock.c if (rv < 0) { rv 269 fs/dlm/plock.c rv, (unsigned long long)number); rv 286 fs/dlm/plock.c rv = 0; rv 301 fs/dlm/plock.c rv = op->info.rv; rv 303 fs/dlm/plock.c if (rv == -ENOENT) rv 304 fs/dlm/plock.c rv = 0; rv 311 fs/dlm/plock.c return rv; rv 320 fs/dlm/plock.c int rv; rv 328 fs/dlm/plock.c rv = -ENOMEM; rv 358 fs/dlm/plock.c rv = op->info.rv; rv 361 fs/dlm/plock.c if (rv == -ENOENT) rv 362 fs/dlm/plock.c rv = 0; rv 363 fs/dlm/plock.c else if (rv > 0) { rv 370 fs/dlm/plock.c rv = 0; rv 376 fs/dlm/plock.c return rv; rv 493 fs/dlm/plock.c int rv; rv 501 fs/dlm/plock.c rv = misc_register(&plock_dev_misc); rv 502 fs/dlm/plock.c if (rv) rv 503 fs/dlm/plock.c log_print("dlm_plock_init: misc_register failed %d", rv); rv 504 fs/dlm/plock.c return rv; rv 45 fs/dlm/recover.c int rv; rv 48 fs/dlm/recover.c rv = wait_event_timeout(ls->ls_wait_general, rv 51 fs/dlm/recover.c if (rv) rv 174 fs/dlm/recover.c int error, rv; rv 189 fs/dlm/recover.c rv = dlm_slots_assign(ls, &num_slots, &slots_size, &slots, &gen); rv 190 fs/dlm/recover.c if (!rv) { rv 310 fs/dlm/recover.c int rv; rv 315 fs/dlm/recover.c rv = -1; rv 318 fs/dlm/recover.c rv = idr_alloc(&ls->ls_recover_idr, r, 1, 0, GFP_NOWAIT); rv 319 fs/dlm/recover.c if (rv < 0) rv 322 fs/dlm/recover.c r->res_id = rv; rv 325 fs/dlm/recover.c rv = 0; rv 329 fs/dlm/recover.c return rv; rv 51 fs/dlm/recoverd.c static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv) rv 56 fs/dlm/recoverd.c log_rinfo(ls, "dlm_recover %llu", (unsigned long long)rv->seq); rv 75 fs/dlm/recoverd.c error = dlm_recover_members(ls, rv, &neg); rv 216 fs/dlm/recoverd.c error = enable_locking(ls, rv->seq); rv 237 fs/dlm/recoverd.c (unsigned long long)rv->seq, ls->ls_generation, rv 247 fs/dlm/recoverd.c (unsigned long long)rv->seq, error); rv 258 fs/dlm/recoverd.c struct dlm_recover *rv = NULL; rv 261 fs/dlm/recoverd.c rv = ls->ls_recover_args; rv 263 fs/dlm/recoverd.c if (rv && ls->ls_recover_seq == rv->seq) rv 267 fs/dlm/recoverd.c if (rv) { rv 268 fs/dlm/recoverd.c ls_recover(ls, rv); rv 269 fs/dlm/recoverd.c kfree(rv->nodes); rv 270 fs/dlm/recoverd.c kfree(rv); rv 181 fs/dlm/user.c int rv; rv 210 fs/dlm/user.c rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, seq); rv 211 fs/dlm/user.c if (rv < 0) { rv 783 fs/dlm/user.c int rv, resid, copy_lvb = 0; rv 787 fs/dlm/user.c rv = copy_version_to_user(buf, count); rv 788 fs/dlm/user.c return rv; rv 844 fs/dlm/user.c rv = dlm_rem_lkb_callback(lkb->lkb_resource->res_ls, lkb, &cb, &resid); rv 845 fs/dlm/user.c if (rv < 0) { rv 877 fs/dlm/user.c rv = copy_result_to_user(lkb->lkb_ua, rv 885 fs/dlm/user.c return rv; rv 328 fs/freevxfs/vxfs_super.c int rv; rv 339 fs/freevxfs/vxfs_super.c rv = register_filesystem(&vxfs_fs_type); rv 340 fs/freevxfs/vxfs_super.c if (rv < 0) rv 342 fs/freevxfs/vxfs_super.c return rv; rv 840 fs/fuse/inode.c int rv; rv 842 fs/fuse/inode.c rv = param_set_uint(val, kp); rv 843 fs/fuse/inode.c if (rv) rv 844 fs/fuse/inode.c return rv; rv 461 fs/gfs2/glock.c int rv; rv 518 fs/gfs2/glock.c rv = glops->go_xmote_bh(gl, gh); rv 520 fs/gfs2/glock.c if (rv) { rv 521 fs/gfs2/glock.c do_error(gl, rv); rv 525 fs/gfs2/glock.c rv = do_promote(gl); rv 526 fs/gfs2/glock.c if (rv == 2) rv 447 fs/gfs2/recovery.c int rv; rv 453 fs/gfs2/recovery.c rv = queue_work(gfs_recovery_wq, &jd->jd_work); rv 454 fs/gfs2/recovery.c BUG_ON(!rv); rv 1326 fs/gfs2/rgrp.c int rv; rv 1351 fs/gfs2/rgrp.c rv = sb_issue_discard(sb, rv 1354 fs/gfs2/rgrp.c if (rv) rv 1369 fs/gfs2/rgrp.c rv = sb_issue_discard(sb, start, nr_blks, GFP_NOFS, 0); rv 1370 fs/gfs2/rgrp.c if (rv) rv 1380 fs/gfs2/rgrp.c fs_warn(sdp, "error %d on discard request, turning discards off for this filesystem\n", rv); rv 234 fs/gfs2/sys.c int rv; rv 239 fs/gfs2/sys.c rv = sscanf(buf, "%u:%llu %15s", &gltype, &glnum, rv 241 fs/gfs2/sys.c if (rv != 3) rv 263 fs/gfs2/sys.c rv = gfs2_glock_get(sdp, glnum, glops, 0, &gl); rv 264 fs/gfs2/sys.c if (rv) rv 265 fs/gfs2/sys.c return rv; rv 390 fs/gfs2/sys.c int rv; rv 392 fs/gfs2/sys.c rv = sscanf(buf, "%u", &first); rv 393 fs/gfs2/sys.c if (rv != 1 || first > 1) rv 395 fs/gfs2/sys.c rv = wait_for_completion_killable(&sdp->sd_locking_init); rv 396 fs/gfs2/sys.c if (rv) rv 397 fs/gfs2/sys.c return rv; rv 399 fs/gfs2/sys.c rv = -EBUSY; rv 402 fs/gfs2/sys.c rv = -EINVAL; rv 408 fs/gfs2/sys.c rv = 0; rv 411 fs/gfs2/sys.c return rv ? rv : len; rv 423 fs/gfs2/sys.c int rv; rv 429 fs/gfs2/sys.c rv = -EBUSY; rv 439 fs/gfs2/sys.c rv = -ENOENT; rv 443 fs/gfs2/sys.c rv = gfs2_recover_journal(jd, false); rv 448 fs/gfs2/sys.c return rv; rv 454 fs/gfs2/sys.c int rv; rv 456 fs/gfs2/sys.c rv = sscanf(buf, "%u", &jid); rv 457 fs/gfs2/sys.c if (rv != 1) rv 461 fs/gfs2/sys.c rv = -ESHUTDOWN; rv 465 fs/gfs2/sys.c rv = gfs2_recover_set(sdp, jid); rv 467 fs/gfs2/sys.c return rv ? rv : len; rv 490 fs/gfs2/sys.c int rv; rv 492 fs/gfs2/sys.c rv = sscanf(buf, "%d", &jid); rv 493 fs/gfs2/sys.c if (rv != 1) rv 495 fs/gfs2/sys.c rv = wait_for_completion_killable(&sdp->sd_locking_init); rv 496 fs/gfs2/sys.c if (rv) rv 497 fs/gfs2/sys.c return rv; rv 499 fs/gfs2/sys.c rv = -EINVAL; rv 502 fs/gfs2/sys.c rv = -EBUSY; rv 505 fs/gfs2/sys.c rv = 0; rv 507 fs/gfs2/sys.c rv = jid = -EINVAL; rv 514 fs/gfs2/sys.c return rv ? rv : len; rv 143 fs/gfs2/util.c int rv; rv 144 fs/gfs2/util.c rv = gfs2_lm_withdraw(sdp, rv 147 fs/gfs2/util.c return rv; rv 160 fs/gfs2/util.c int rv; rv 161 fs/gfs2/util.c rv = gfs2_lm_withdraw(sdp, rv 168 fs/gfs2/util.c return rv; rv 182 fs/gfs2/util.c int rv; rv 186 fs/gfs2/util.c rv = gfs2_lm_withdraw(sdp, rv 192 fs/gfs2/util.c return rv; rv 244 fs/gfs2/util.c int rv; rv 245 fs/gfs2/util.c rv = gfs2_lm_withdraw(sdp, rv 249 fs/gfs2/util.c return rv; rv 52 fs/isofs/export.c struct dentry *rv = NULL; rv 58 fs/isofs/export.c rv = ERR_PTR(-EACCES); rv 68 fs/isofs/export.c rv = ERR_PTR(-EACCES); rv 80 fs/isofs/export.c rv = ERR_PTR(-EACCES); rv 95 fs/isofs/export.c rv = ERR_PTR(-EACCES); rv 102 fs/isofs/export.c rv = d_obtain_alias(isofs_iget(child_inode->i_sb, parent_block, rv 107 fs/isofs/export.c return rv; rv 1064 fs/isofs/inode.c int section, rv, error; rv 1068 fs/isofs/inode.c rv = 0; rv 1137 fs/isofs/inode.c rv++; rv 1142 fs/isofs/inode.c return rv != 0 ? rv : error; rv 75 fs/nfs/blocklayout/blocklayout.c struct parallel_io *rv; rv 77 fs/nfs/blocklayout/blocklayout.c rv = kmalloc(sizeof(*rv), GFP_NOFS); rv 78 fs/nfs/blocklayout/blocklayout.c if (rv) { rv 79 fs/nfs/blocklayout/blocklayout.c rv->data = data; rv 80 fs/nfs/blocklayout/blocklayout.c kref_init(&rv->refcnt); rv 82 fs/nfs/blocklayout/blocklayout.c return rv; rv 255 fs/nfs/callback_proc.c u32 rv = NFS4ERR_NOMATCHING_LAYOUT; rv 261 fs/nfs/callback_proc.c rv = NFS4ERR_DELAY; rv 275 fs/nfs/callback_proc.c rv = pnfs_check_callback_stateid(lo, &args->cbl_stateid); rv 276 fs/nfs/callback_proc.c if (rv != NFS_OK) rv 283 fs/nfs/callback_proc.c rv = NFS4ERR_DELAY; rv 294 fs/nfs/callback_proc.c rv = NFS4_OK; rv 298 fs/nfs/callback_proc.c rv = NFS4ERR_NOMATCHING_LAYOUT; rv 315 fs/nfs/callback_proc.c &args->cbl_stateid, -rv); rv 316 fs/nfs/callback_proc.c return rv; rv 611 fs/nfs/pnfs.c int rv = 0; rv 621 fs/nfs/pnfs.c rv = 1; rv 623 fs/nfs/pnfs.c return rv; rv 120 fs/nfs/pnfs_nfs.c int i, rv = 0, cnt; rv 127 fs/nfs/pnfs_nfs.c rv += cnt; rv 129 fs/nfs/pnfs_nfs.c return rv; rv 1093 fs/nfsd/export.c __be32 rv; rv 1098 fs/nfsd/export.c rv = fh_compose(fhp, exp, exp->ex_path.dentry, NULL); rv 1100 fs/nfsd/export.c return rv; rv 1246 fs/nfsd/export.c int rv; rv 1254 fs/nfsd/export.c rv = cache_register_net(nn->svc_export_cache, net); rv 1255 fs/nfsd/export.c if (rv) rv 1260 fs/nfsd/export.c rv = PTR_ERR(nn->svc_expkey_cache); rv 1263 fs/nfsd/export.c rv = cache_register_net(nn->svc_expkey_cache, net); rv 1264 fs/nfsd/export.c if (rv) rv 1274 fs/nfsd/export.c return rv; rv 852 fs/nfsd/nfs3xdr.c __be32 rv = nfserr_noent; rv 868 fs/nfsd/nfs3xdr.c return rv; rv 875 fs/nfsd/nfs3xdr.c rv = fh_compose(fhp, exp, dchild, &cd->fh); rv 878 fs/nfsd/nfs3xdr.c return rv; rv 452 fs/nfsd/nfs4idmap.c int rv; rv 458 fs/nfsd/nfs4idmap.c rv = cache_register_net(nn->idtoname_cache, net); rv 459 fs/nfsd/nfs4idmap.c if (rv) rv 463 fs/nfsd/nfs4idmap.c rv = PTR_ERR(nn->nametoid_cache); rv 466 fs/nfsd/nfs4idmap.c rv = cache_register_net(nn->nametoid_cache, net); rv 467 fs/nfsd/nfs4idmap.c if (rv) rv 477 fs/nfsd/nfs4idmap.c return rv; rv 102 fs/nfsd/nfsctl.c ssize_t rv; rv 111 fs/nfsd/nfsctl.c rv = write_op[ino](file, data, size); rv 112 fs/nfsd/nfsctl.c if (rv >= 0) { rv 113 fs/nfsd/nfsctl.c simple_transaction_set(file, rv); rv 114 fs/nfsd/nfsctl.c rv = size; rv 116 fs/nfsd/nfsctl.c return rv; rv 126 fs/nfsd/nfsctl.c ssize_t rv = nfsctl_transaction_write(file, buf, 0, pos); rv 127 fs/nfsd/nfsctl.c if (rv < 0) rv 128 fs/nfsd/nfsctl.c return rv; rv 436 fs/nfsd/nfsctl.c int rv; rv 441 fs/nfsd/nfsctl.c rv = get_int(&mesg, &newthreads); rv 442 fs/nfsd/nfsctl.c if (rv) rv 443 fs/nfsd/nfsctl.c return rv; rv 446 fs/nfsd/nfsctl.c rv = nfsd_svc(newthreads, net, file->f_cred); rv 447 fs/nfsd/nfsctl.c if (rv < 0) rv 448 fs/nfsd/nfsctl.c return rv; rv 450 fs/nfsd/nfsctl.c rv = nfsd_nrthreads(net); rv 452 fs/nfsd/nfsctl.c return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%d\n", rv); rv 484 fs/nfsd/nfsctl.c int rv; rv 504 fs/nfsd/nfsctl.c rv = -ENOMEM; rv 510 fs/nfsd/nfsctl.c rv = get_int(&mesg, &nthreads[i]); rv 511 fs/nfsd/nfsctl.c if (rv == -ENOENT) rv 513 fs/nfsd/nfsctl.c if (rv) rv 515 fs/nfsd/nfsctl.c rv = -EINVAL; rv 519 fs/nfsd/nfsctl.c rv = nfsd_set_nrthreads(i, nthreads, net); rv 520 fs/nfsd/nfsctl.c if (rv) rv 524 fs/nfsd/nfsctl.c rv = nfsd_get_nrthreads(npools, nthreads, net); rv 525 fs/nfsd/nfsctl.c if (rv) rv 536 fs/nfsd/nfsctl.c rv = mesg - buf; rv 540 fs/nfsd/nfsctl.c return rv; rv 698 fs/nfsd/nfsctl.c ssize_t rv; rv 701 fs/nfsd/nfsctl.c rv = __write_versions(file, buf, size); rv 703 fs/nfsd/nfsctl.c return rv; rv 859 fs/nfsd/nfsctl.c ssize_t rv; rv 862 fs/nfsd/nfsctl.c rv = __write_ports(file, buf, size, netns(file)); rv 864 fs/nfsd/nfsctl.c return rv; rv 898 fs/nfsd/nfsctl.c int rv = get_int(&mesg, &bsize); rv 899 fs/nfsd/nfsctl.c if (rv) rv 900 fs/nfsd/nfsctl.c return rv; rv 947 fs/nfsd/nfsctl.c int rv = get_uint(&mesg, &maxconn); rv 949 fs/nfsd/nfsctl.c if (rv) rv 950 fs/nfsd/nfsctl.c return rv; rv 962 fs/nfsd/nfsctl.c int rv, i; rv 967 fs/nfsd/nfsctl.c rv = get_int(&mesg, &i); rv 968 fs/nfsd/nfsctl.c if (rv) rv 969 fs/nfsd/nfsctl.c return rv; rv 993 fs/nfsd/nfsctl.c ssize_t rv; rv 996 fs/nfsd/nfsctl.c rv = __nfsd4_write_time(file, buf, size, time, nn); rv 998 fs/nfsd/nfsctl.c return rv; rv 1095 fs/nfsd/nfsctl.c ssize_t rv; rv 1099 fs/nfsd/nfsctl.c rv = __write_recoverydir(file, buf, size, nn); rv 1101 fs/nfsd/nfsctl.c return rv; rv 30 fs/nfsd/nfsfh.c int rv; rv 52 fs/nfsd/nfsfh.c rv = (tdentry == exp->ex_path.dentry); rv 54 fs/nfsd/nfsfh.c return rv; rv 276 fs/nfsd/nfssvc.c int rv = 0; rv 281 fs/nfsd/nfssvc.c rv = nn->nfsd_serv->sv_nrthreads; rv 283 fs/nfsd/nfssvc.c return rv; rv 2514 fs/ocfs2/super.c int rv = 0; rv 2525 fs/ocfs2/super.c rv = -EIO; rv 2527 fs/ocfs2/super.c rv = -EROFS; rv 2529 fs/ocfs2/super.c return rv; rv 2536 fs/ocfs2/super.c return rv; rv 1251 fs/proc/base.c int rv; rv 1265 fs/proc/base.c rv = kstrtou32_from_user(buf, count, 10, &loginuid); rv 1266 fs/proc/base.c if (rv < 0) rv 1267 fs/proc/base.c return rv; rv 1278 fs/proc/base.c rv = audit_set_loginuid(kloginuid); rv 1279 fs/proc/base.c if (rv < 0) rv 1280 fs/proc/base.c return rv; rv 1337 fs/proc/base.c int rv; rv 1346 fs/proc/base.c rv = kstrtoint(strstrip(buffer), 0, &make_it_fail); rv 1347 fs/proc/base.c if (rv < 0) rv 1348 fs/proc/base.c return rv; rv 2558 fs/proc/base.c int rv; rv 2587 fs/proc/base.c rv = PTR_ERR(page); rv 2592 fs/proc/base.c rv = mutex_lock_interruptible(¤t->signal->cred_guard_mutex); rv 2593 fs/proc/base.c if (rv < 0) rv 2596 fs/proc/base.c rv = security_setprocattr(PROC_I(inode)->op.lsm, rv 2603 fs/proc/base.c return rv; rv 300 fs/proc/fd.c int rv; rv 302 fs/proc/fd.c rv = generic_permission(inode, mask); rv 303 fs/proc/fd.c if (rv == 0) rv 304 fs/proc/fd.c return rv; rv 309 fs/proc/fd.c rv = 0; rv 312 fs/proc/fd.c return rv; rv 189 fs/proc/generic.c int rv; rv 192 fs/proc/generic.c rv = __xlate_proc_name(name, ret, residual); rv 194 fs/proc/generic.c return rv; rv 201 fs/proc/inode.c loff_t rv = -EINVAL; rv 208 fs/proc/inode.c rv = llseek(file, offset, whence); rv 211 fs/proc/inode.c return rv; rv 217 fs/proc/inode.c ssize_t rv = -EIO; rv 223 fs/proc/inode.c rv = read(file, buf, count, ppos); rv 226 fs/proc/inode.c return rv; rv 232 fs/proc/inode.c ssize_t rv = -EIO; rv 238 fs/proc/inode.c rv = write(file, buf, count, ppos); rv 241 fs/proc/inode.c return rv; rv 247 fs/proc/inode.c __poll_t rv = DEFAULT_POLLMASK; rv 253 fs/proc/inode.c rv = poll(file, pts); rv 256 fs/proc/inode.c return rv; rv 262 fs/proc/inode.c long rv = -ENOTTY; rv 268 fs/proc/inode.c rv = ioctl(file, cmd, arg); rv 271 fs/proc/inode.c return rv; rv 278 fs/proc/inode.c long rv = -ENOTTY; rv 284 fs/proc/inode.c rv = compat_ioctl(file, cmd, arg); rv 287 fs/proc/inode.c return rv; rv 294 fs/proc/inode.c int rv = -EIO; rv 300 fs/proc/inode.c rv = mmap(file, vma); rv 303 fs/proc/inode.c return rv; rv 312 fs/proc/inode.c unsigned long rv = -EIO; rv 324 fs/proc/inode.c rv = get_area(file, orig_addr, len, pgoff, flags); rv 326 fs/proc/inode.c rv = orig_addr; rv 329 fs/proc/inode.c return rv; rv 335 fs/proc/inode.c int rv = 0; rv 358 fs/proc/inode.c rv = -ENOMEM; rv 365 fs/proc/inode.c rv = open(inode, file); rv 368 fs/proc/inode.c if (rv == 0) { rv 382 fs/proc/inode.c return rv; rv 1144 fs/proc/task_mmu.c int rv; rv 1151 fs/proc/task_mmu.c rv = kstrtoint(strstrip(buffer), 10, &itype); rv 1152 fs/proc/task_mmu.c if (rv < 0) rv 1153 fs/proc/task_mmu.c return rv; rv 244 include/linux/sunrpc/cache.h int rv; rv 252 include/linux/sunrpc/cache.h rv = simple_strtol(buf, &ep, 0); rv 256 include/linux/sunrpc/cache.h *anint = rv; rv 296 include/linux/sunrpc/cache.h time_t rv; rv 299 include/linux/sunrpc/cache.h if (get_time(bpp, &rv)) rv 301 include/linux/sunrpc/cache.h if (rv < 0) rv 304 include/linux/sunrpc/cache.h return rv - boot.tv_sec; rv 37 include/uapi/linux/dlm_plock.h __s32 rv; rv 20 init/initramfs.c ssize_t rv = ksys_write(fd, p, count); rv 22 init/initramfs.c if (rv < 0) { rv 23 init/initramfs.c if (rv == -EINTR || rv == -EAGAIN) rv 25 init/initramfs.c return out ? out : rv; rv 26 init/initramfs.c } else if (rv == 0) rv 29 init/initramfs.c p += rv; rv 30 init/initramfs.c out += rv; rv 31 init/initramfs.c count -= rv; rv 149 kernel/irq/irq_sim.c int rv; rv 155 kernel/irq/irq_sim.c rv = irq_sim_init(sim, num_irqs); rv 156 kernel/irq/irq_sim.c if (rv < 0) { rv 158 kernel/irq/irq_sim.c return rv; rv 164 kernel/irq/irq_sim.c return rv; rv 1407 kernel/irq/irqdomain.c int rv = 0; rv 1458 kernel/irq/irqdomain.c rv = irq_domain_alloc_irqs_hierarchy(domain, virq, 1, arg); rv 1459 kernel/irq/irqdomain.c if (rv) { rv 1472 kernel/irq/irqdomain.c return rv; rv 2166 kernel/sysctl.c unsigned int rv; rv 2169 kernel/sysctl.c rv = _parse_integer(cp, base, &result); rv 2170 kernel/sysctl.c if ((rv & KSTRTOX_OVERFLOW) || (result != (unsigned long)result)) rv 2173 kernel/sysctl.c cp += rv; rv 51 lib/kstrtox.c unsigned int rv; rv 54 lib/kstrtox.c rv = 0; rv 75 lib/kstrtox.c rv |= KSTRTOX_OVERFLOW; rv 78 lib/kstrtox.c rv++; rv 82 lib/kstrtox.c return rv; rv 88 lib/kstrtox.c unsigned int rv; rv 91 lib/kstrtox.c rv = _parse_integer(s, base, &_res); rv 92 lib/kstrtox.c if (rv & KSTRTOX_OVERFLOW) rv 94 lib/kstrtox.c if (rv == 0) rv 96 lib/kstrtox.c s += rv; rv 148 lib/kstrtox.c int rv; rv 151 lib/kstrtox.c rv = _kstrtoull(s + 1, base, &tmp); rv 152 lib/kstrtox.c if (rv < 0) rv 153 lib/kstrtox.c return rv; rv 158 lib/kstrtox.c rv = kstrtoull(s, base, &tmp); rv 159 lib/kstrtox.c if (rv < 0) rv 160 lib/kstrtox.c return rv; rv 173 lib/kstrtox.c int rv; rv 175 lib/kstrtox.c rv = kstrtoull(s, base, &tmp); rv 176 lib/kstrtox.c if (rv < 0) rv 177 lib/kstrtox.c return rv; rv 189 lib/kstrtox.c int rv; rv 191 lib/kstrtox.c rv = kstrtoll(s, base, &tmp); rv 192 lib/kstrtox.c if (rv < 0) rv 193 lib/kstrtox.c return rv; rv 220 lib/kstrtox.c int rv; rv 222 lib/kstrtox.c rv = kstrtoull(s, base, &tmp); rv 223 lib/kstrtox.c if (rv < 0) rv 224 lib/kstrtox.c return rv; rv 251 lib/kstrtox.c int rv; rv 253 lib/kstrtox.c rv = kstrtoll(s, base, &tmp); rv 254 lib/kstrtox.c if (rv < 0) rv 255 lib/kstrtox.c return rv; rv 266 lib/kstrtox.c int rv; rv 268 lib/kstrtox.c rv = kstrtoull(s, base, &tmp); rv 269 lib/kstrtox.c if (rv < 0) rv 270 lib/kstrtox.c return rv; rv 281 lib/kstrtox.c int rv; rv 283 lib/kstrtox.c rv = kstrtoll(s, base, &tmp); rv 284 lib/kstrtox.c if (rv < 0) rv 285 lib/kstrtox.c return rv; rv 296 lib/kstrtox.c int rv; rv 298 lib/kstrtox.c rv = kstrtoull(s, base, &tmp); rv 299 lib/kstrtox.c if (rv < 0) rv 300 lib/kstrtox.c return rv; rv 311 lib/kstrtox.c int rv; rv 313 lib/kstrtox.c rv = kstrtoll(s, base, &tmp); rv 314 lib/kstrtox.c if (rv < 0) rv 315 lib/kstrtox.c return rv; rv 33 lib/test-kstrtox.c int rv; \ rv 36 lib/test-kstrtox.c rv = fn(t->str, t->base, &tmp); \ rv 37 lib/test-kstrtox.c if (rv >= 0) { \ rv 39 lib/test-kstrtox.c t->str, t->base, rv, tmp); \ rv 52 lib/test-kstrtox.c int rv; \ rv 54 lib/test-kstrtox.c rv = fn(t->str, t->base, &res); \ rv 55 lib/test-kstrtox.c if (rv != 0) { \ rv 57 lib/test-kstrtox.c t->str, t->base, t->expected_res, rv); \ rv 184 lib/test_vmalloc.c int rv = -1; rv 189 lib/test_vmalloc.c return rv; rv 213 lib/test_vmalloc.c rv = 0; rv 220 lib/test_vmalloc.c return rv; rv 227 lib/test_vmalloc.c int rv = -1; rv 235 lib/test_vmalloc.c return rv; rv 240 lib/test_vmalloc.c return rv; rv 262 lib/test_vmalloc.c rv = 0; rv 271 lib/test_vmalloc.c return rv; rv 296 lib/test_vmalloc.c int rv = 0; rv 320 lib/test_vmalloc.c rv = -1; rv 328 lib/test_vmalloc.c return rv; rv 64 lib/vsprintf.c unsigned int rv; rv 67 lib/vsprintf.c rv = _parse_integer(cp, base, &result); rv 69 lib/vsprintf.c cp += (rv & ~KSTRTOX_OVERFLOW); rv 454 net/core/net_namespace.c int rv; rv 465 net/core/net_namespace.c rv = -ENOMEM; rv 472 net/core/net_namespace.c rv = down_read_killable(&pernet_ops_rwsem); rv 473 net/core/net_namespace.c if (rv < 0) rv 476 net/core/net_namespace.c rv = setup_net(net, user_ns); rv 480 net/core/net_namespace.c if (rv < 0) { rv 487 net/core/net_namespace.c return ERR_PTR(rv); rv 3563 net/core/pktgen.c int rv = 0; rv 3575 net/core/pktgen.c rv = -EBUSY; rv 3585 net/core/pktgen.c return rv; rv 209 net/decnet/af_decnet.c int rv = -EUSERS; rv 218 net/decnet/af_decnet.c rv = -EADDRINUSE; rv 223 net/decnet/af_decnet.c rv = 0; rv 226 net/decnet/af_decnet.c return rv; rv 723 net/decnet/af_decnet.c int rv; rv 762 net/decnet/af_decnet.c rv = -EINVAL; rv 768 net/decnet/af_decnet.c rv = dn_hash_sock(sk); rv 769 net/decnet/af_decnet.c if (rv) rv 774 net/decnet/af_decnet.c return rv; rv 782 net/decnet/af_decnet.c int rv; rv 805 net/decnet/af_decnet.c rv = dn_dev_bind_default((__le16 *)scp->addr.sdn_add.a_addr); rv 806 net/decnet/af_decnet.c if (rv == 0) { rv 807 net/decnet/af_decnet.c rv = dn_hash_sock(sk); rv 808 net/decnet/af_decnet.c if (rv) rv 812 net/decnet/af_decnet.c return rv; rv 1678 net/decnet/af_decnet.c int rv = 0; rv 1687 net/decnet/af_decnet.c rv = -EADDRNOTAVAIL; rv 1692 net/decnet/af_decnet.c rv = 0; rv 1696 net/decnet/af_decnet.c rv = dn_check_state(sk, NULL, 0, &timeo, flags); rv 1697 net/decnet/af_decnet.c if (rv) rv 1701 net/decnet/af_decnet.c rv = -EOPNOTSUPP; rv 1735 net/decnet/af_decnet.c rv = sock_intr_errno(timeo); rv 1743 net/decnet/af_decnet.c rv = -EWOULDBLOCK; rv 1762 net/decnet/af_decnet.c rv = -EFAULT; rv 1799 net/decnet/af_decnet.c rv = copied; rv 1806 net/decnet/af_decnet.c if (rv == 0) rv 1807 net/decnet/af_decnet.c rv = (flags & MSG_PEEK) ? -sk->sk_err : sock_error(sk); rv 1809 net/decnet/af_decnet.c if ((rv >= 0) && msg->msg_name) { rv 1817 net/decnet/af_decnet.c return rv; rv 392 net/decnet/dn_dev.c int rv; rv 406 net/decnet/dn_dev.c rv = dn_dev_insert_ifa(dn_db, ifa); rv 407 net/decnet/dn_dev.c if (rv) rv 409 net/decnet/dn_dev.c return rv; rv 515 net/decnet/dn_dev.c int rv = -EBUSY; rv 523 net/decnet/dn_dev.c rv = 0; rv 529 net/decnet/dn_dev.c return rv; rv 794 net/decnet/dn_dev.c int rv = -ENODEV; rv 804 net/decnet/dn_dev.c rv = 0; rv 808 net/decnet/dn_dev.c return rv; rv 824 net/decnet/dn_dev.c int rv; rv 828 net/decnet/dn_dev.c rv = dn_dev_get_first(dev, addr); rv 830 net/decnet/dn_dev.c if (rv == 0 || dev == init_net.loopback_dev) rv 831 net/decnet/dn_dev.c return rv; rv 125 net/decnet/netfilter/dn_rtmsg.c int rv = 0; rv 137 net/decnet/netfilter/dn_rtmsg.c rv = nf_register_net_hook(&init_net, &dnrmg_ops); rv 138 net/decnet/netfilter/dn_rtmsg.c if (rv) { rv 142 net/decnet/netfilter/dn_rtmsg.c return rv; rv 1850 net/ipv4/igmp.c int rv = 0; rv 1883 net/ipv4/igmp.c rv = 1; rv 1888 net/ipv4/igmp.c return rv; rv 1927 net/ipv4/igmp.c int rv = ip_mc_del1_src(pmc, sfmode, &psfsrc[i]); rv 1929 net/ipv4/igmp.c changerec |= rv > 0; rv 1930 net/ipv4/igmp.c if (!err && rv < 0) rv 1931 net/ipv4/igmp.c err = rv; rv 2009 net/ipv4/igmp.c int new_in, rv; rv 2011 net/ipv4/igmp.c rv = 0; rv 2035 net/ipv4/igmp.c rv++; rv 2057 net/ipv4/igmp.c rv++; rv 2060 net/ipv4/igmp.c return rv; rv 2302 net/ipv4/igmp.c int i, j, rv; rv 2348 net/ipv4/igmp.c rv = !0; rv 2350 net/ipv4/igmp.c rv = memcmp(&psl->sl_addr[i], &mreqs->imr_sourceaddr, rv 2352 net/ipv4/igmp.c if (rv == 0) rv 2355 net/ipv4/igmp.c if (rv) /* source not found */ rv 2403 net/ipv4/igmp.c rv = 1; /* > 0 for insert logic below if sl_count is 0 */ rv 2405 net/ipv4/igmp.c rv = memcmp(&psl->sl_addr[i], &mreqs->imr_sourceaddr, rv 2407 net/ipv4/igmp.c if (rv == 0) rv 2410 net/ipv4/igmp.c if (rv == 0) /* address already there is an error */ rv 2703 net/ipv4/igmp.c int rv = 0; rv 2722 net/ipv4/igmp.c rv = 1; rv 2730 net/ipv4/igmp.c rv = psf->sf_count[MCAST_INCLUDE] || rv 2734 net/ipv4/igmp.c rv = im->sfcount[MCAST_EXCLUDE] != 0; rv 2736 net/ipv4/igmp.c rv = 1; /* unspecified source; tentatively allow */ rv 2738 net/ipv4/igmp.c return rv; rv 337 net/ipv6/mcast.c int i, j, rv; rv 387 net/ipv6/mcast.c rv = !0; rv 389 net/ipv6/mcast.c rv = !ipv6_addr_equal(&psl->sl_addr[i], source); rv 390 net/ipv6/mcast.c if (rv == 0) rv 393 net/ipv6/mcast.c if (rv) /* source not found */ rv 437 net/ipv6/mcast.c rv = 1; /* > 0 for insert logic below if sl_count is 0 */ rv 439 net/ipv6/mcast.c rv = !ipv6_addr_equal(&psl->sl_addr[i], source); rv 440 net/ipv6/mcast.c if (rv == 0) /* There is an error in the address. */ rv 626 net/ipv6/mcast.c bool rv = true; rv 640 net/ipv6/mcast.c rv = mc->sfmode == MCAST_EXCLUDE; rv 649 net/ipv6/mcast.c rv = false; rv 651 net/ipv6/mcast.c rv = false; rv 656 net/ipv6/mcast.c return rv; rv 998 net/ipv6/mcast.c bool rv = false; rv 1018 net/ipv6/mcast.c rv = psf->sf_count[MCAST_INCLUDE] || rv 1022 net/ipv6/mcast.c rv = mc->mca_sfcount[MCAST_EXCLUDE] != 0; rv 1025 net/ipv6/mcast.c rv = true; /* don't filter unspecified source */ rv 1030 net/ipv6/mcast.c return rv; rv 2132 net/ipv6/mcast.c int rv = 0; rv 2158 net/ipv6/mcast.c rv = 1; rv 2162 net/ipv6/mcast.c return rv; rv 2197 net/ipv6/mcast.c int rv = ip6_mc_del1_src(pmc, sfmode, &psfsrc[i]); rv 2199 net/ipv6/mcast.c changerec |= rv > 0; rv 2200 net/ipv6/mcast.c if (!err && rv < 0) rv 2201 net/ipv6/mcast.c err = rv; rv 2270 net/ipv6/mcast.c int new_in, rv; rv 2272 net/ipv6/mcast.c rv = 0; rv 2298 net/ipv6/mcast.c rv++; rv 2320 net/ipv6/mcast.c rv++; rv 2323 net/ipv6/mcast.c return rv; rv 353 net/ipv6/xfrm6_tunnel.c int rv; rv 361 net/ipv6/xfrm6_tunnel.c rv = register_pernet_subsys(&xfrm6_tunnel_net_ops); rv 362 net/ipv6/xfrm6_tunnel.c if (rv < 0) rv 364 net/ipv6/xfrm6_tunnel.c rv = xfrm_register_type(&xfrm6_tunnel_type, AF_INET6); rv 365 net/ipv6/xfrm6_tunnel.c if (rv < 0) rv 367 net/ipv6/xfrm6_tunnel.c rv = xfrm6_tunnel_register(&xfrm6_tunnel_handler, AF_INET6); rv 368 net/ipv6/xfrm6_tunnel.c if (rv < 0) rv 370 net/ipv6/xfrm6_tunnel.c rv = xfrm6_tunnel_register(&xfrm46_tunnel_handler, AF_INET); rv 371 net/ipv6/xfrm6_tunnel.c if (rv < 0) rv 383 net/ipv6/xfrm6_tunnel.c return rv; rv 3846 net/key/af_key.c int rv; rv 3851 net/key/af_key.c rv = pfkey_init_proc(net); rv 3853 net/key/af_key.c return rv; rv 285 net/mac80211/debugfs.c ssize_t rv; rv 302 net/mac80211/debugfs.c rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); rv 304 net/mac80211/debugfs.c return rv; rv 315 net/mac80211/debugfs.c ssize_t rv; rv 334 net/mac80211/debugfs.c rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); rv 336 net/mac80211/debugfs.c return rv; rv 145 net/mac80211/debugfs_sta.c ssize_t rv; rv 190 net/mac80211/debugfs_sta.c rv = simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); rv 192 net/mac80211/debugfs_sta.c return rv; rv 205 net/mac80211/debugfs_sta.c ssize_t rv; rv 230 net/mac80211/debugfs_sta.c rv = simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); rv 232 net/mac80211/debugfs_sta.c return rv; rv 76 net/mac80211/driver-ops.h int rv = 0; rv 79 net/mac80211/driver-ops.h rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, rv 81 net/mac80211/driver-ops.h trace_drv_return_int(local, rv); rv 83 net/mac80211/driver-ops.h return rv; rv 52 net/mac80211/ethtool.c int rv = 0; rv 55 net/mac80211/ethtool.c rv += STA_STATS_LEN; rv 57 net/mac80211/ethtool.c rv += drv_get_et_sset_count(sdata, sset); rv 59 net/mac80211/ethtool.c if (rv == 0) rv 61 net/mac80211/ethtool.c return rv; rv 1891 net/netfilter/x_tables.c int rv; rv 1910 net/netfilter/x_tables.c rv = register_pernet_subsys(&xt_net_ops); rv 1911 net/netfilter/x_tables.c if (rv < 0) rv 1913 net/netfilter/x_tables.c return rv; rv 434 net/sunrpc/auth_gss/svcauth_gss.c int len, rv; rv 460 net/sunrpc/auth_gss/svcauth_gss.c rv = get_int(&mesg, &id); rv 461 net/sunrpc/auth_gss/svcauth_gss.c if (rv == -EINVAL) rv 463 net/sunrpc/auth_gss/svcauth_gss.c if (rv == -ENOENT) rv 1916 net/sunrpc/auth_gss/svcauth_gss.c int rv; rv 1918 net/sunrpc/auth_gss/svcauth_gss.c rv = rsc_cache_create_net(net); rv 1919 net/sunrpc/auth_gss/svcauth_gss.c if (rv) rv 1920 net/sunrpc/auth_gss/svcauth_gss.c return rv; rv 1921 net/sunrpc/auth_gss/svcauth_gss.c rv = rsi_cache_create_net(net); rv 1922 net/sunrpc/auth_gss/svcauth_gss.c if (rv) rv 1924 net/sunrpc/auth_gss/svcauth_gss.c rv = create_use_gss_proxy_proc_entry(net); rv 1925 net/sunrpc/auth_gss/svcauth_gss.c if (rv) rv 1932 net/sunrpc/auth_gss/svcauth_gss.c return rv; rv 244 net/sunrpc/cache.c int rv; rv 247 net/sunrpc/cache.c rv = cache_is_valid(h); rv 248 net/sunrpc/cache.c if (rv == -EAGAIN) { rv 252 net/sunrpc/cache.c rv = -ENOENT; rv 256 net/sunrpc/cache.c return rv; rv 276 net/sunrpc/cache.c int rv; rv 280 net/sunrpc/cache.c rv = cache_is_valid(h); rv 287 net/sunrpc/cache.c if (rv == -EAGAIN) rv 288 net/sunrpc/cache.c rv = -ENOENT; rv 289 net/sunrpc/cache.c } else if (rv == -EAGAIN || rv 296 net/sunrpc/cache.c rv = try_to_negate_entry(detail, h); rv 303 net/sunrpc/cache.c rv = try_to_negate_entry(detail, h); rv 306 net/sunrpc/cache.c if (rv == -EAGAIN) { rv 312 net/sunrpc/cache.c rv = cache_is_valid(h); rv 313 net/sunrpc/cache.c if (rv == -EAGAIN) rv 314 net/sunrpc/cache.c rv = -ETIMEDOUT; rv 317 net/sunrpc/cache.c if (rv) rv 319 net/sunrpc/cache.c return rv; rv 406 net/sunrpc/cache.c int rv = 0; rv 459 net/sunrpc/cache.c rv = 1; rv 476 net/sunrpc/cache.c return rv; rv 97 net/sunrpc/svcauth.c int rv = 0; rv 102 net/sunrpc/svcauth.c rv = aops->release(rqstp); rv 105 net/sunrpc/svcauth.c return rv; rv 112 net/sunrpc/svcauth.c int rv = -EINVAL; rv 117 net/sunrpc/svcauth.c rv = 0; rv 119 net/sunrpc/svcauth.c return rv; rv 57 net/sunrpc/svcauth_unix.c struct auth_domain *rv; rv 60 net/sunrpc/svcauth_unix.c rv = auth_domain_find(name); rv 62 net/sunrpc/svcauth_unix.c if (rv) { rv 63 net/sunrpc/svcauth_unix.c if (new && rv != &new->h) rv 66 net/sunrpc/svcauth_unix.c if (rv->flavour != &svcauth_unix) { rv 67 net/sunrpc/svcauth_unix.c auth_domain_put(rv); rv 70 net/sunrpc/svcauth_unix.c return rv; rv 83 net/sunrpc/svcauth_unix.c rv = auth_domain_lookup(name, &new->h); rv 491 net/sunrpc/svcauth_unix.c int rv; rv 501 net/sunrpc/svcauth_unix.c rv = get_int(&mesg, &id); rv 502 net/sunrpc/svcauth_unix.c if (rv) rv 511 net/sunrpc/svcauth_unix.c rv = get_int(&mesg, &gids); rv 512 net/sunrpc/svcauth_unix.c if (rv || gids < 0 || gids > 8192) rv 522 net/sunrpc/svcauth_unix.c rv = get_int(&mesg, &gid); rv 524 net/sunrpc/svcauth_unix.c if (rv) rv 445 net/wireless/core.c int rv; rv 448 net/wireless/core.c rv = cfg80211_dev_check_name(rdev, requested_name); rv 450 net/wireless/core.c if (rv < 0) { rv 455 net/wireless/core.c rv = dev_set_name(&rdev->wiphy.dev, "%s", requested_name); rv 457 net/wireless/core.c if (rv) rv 460 net/wireless/core.c int rv; rv 469 net/wireless/core.c rv = dev_set_name(&rdev->wiphy.dev, PHY_NAME "%d", rdev->wiphy_idx); rv 470 net/wireless/core.c if (rv < 0) { rv 12148 net/wireless/nl80211.c int rv; rv 12161 net/wireless/nl80211.c rv = -EALREADY; rv 12175 net/wireless/nl80211.c return rv; rv 3977 net/xfrm/xfrm_policy.c int rv; rv 3981 net/xfrm/xfrm_policy.c rv = xfrm_proc_init(net); rv 3982 net/xfrm/xfrm_policy.c if (rv < 0) rv 3984 net/xfrm/xfrm_policy.c return rv; rv 4105 net/xfrm/xfrm_policy.c int rv; rv 4112 net/xfrm/xfrm_policy.c rv = xfrm_statistics_init(net); rv 4113 net/xfrm/xfrm_policy.c if (rv < 0) rv 4115 net/xfrm/xfrm_policy.c rv = xfrm_state_init(net); rv 4116 net/xfrm/xfrm_policy.c if (rv < 0) rv 4118 net/xfrm/xfrm_policy.c rv = xfrm_policy_init(net); rv 4119 net/xfrm/xfrm_policy.c if (rv < 0) rv 4121 net/xfrm/xfrm_policy.c rv = xfrm_sysctl_init(net); rv 4122 net/xfrm/xfrm_policy.c if (rv < 0) rv 4134 net/xfrm/xfrm_policy.c return rv; rv 3364 net/xfrm/xfrm_user.c int rv; rv 3368 net/xfrm/xfrm_user.c rv = register_pernet_subsys(&xfrm_user_net_ops); rv 3369 net/xfrm/xfrm_user.c if (rv < 0) rv 3370 net/xfrm/xfrm_user.c return rv; rv 3371 net/xfrm/xfrm_user.c rv = xfrm_register_km(&netlink_mgr); rv 3372 net/xfrm/xfrm_user.c if (rv < 0) rv 3374 net/xfrm/xfrm_user.c return rv; rv 69 samples/bpf/hbm_edt_kern.c int rv = ALLOW_PKT; rv 161 samples/bpf/hbm_edt_kern.c rv = DROP_PKT; rv 165 samples/bpf/hbm_edt_kern.c rv |= CWR; rv 166 samples/bpf/hbm_edt_kern.c return rv; rv 170 samples/bpf/hbm_kern.h int rv = ALLOW_PKT; rv 203 samples/bpf/hbm_kern.h rv = DROP_PKT; rv 205 samples/bpf/hbm_kern.h rv |= 2; rv 206 samples/bpf/hbm_kern.h if (rv == DROP_PKT) rv 209 samples/bpf/hbm_kern.h else if (rv == ALLOW_PKT) rv 212 samples/bpf/hbm_kern.h else if (rv == 2) rv 215 samples/bpf/hbm_kern.h else if (rv == 3) rv 73 samples/bpf/hbm_out_kern.c int rv = ALLOW_PKT; rv 172 samples/bpf/hbm_out_kern.c rv = DROP_PKT; rv 176 samples/bpf/hbm_out_kern.c rv |= 2; rv 177 samples/bpf/hbm_out_kern.c return rv; rv 29 samples/bpf/tcp_basertt_kern.c int rv = 0, n; rv 52 samples/bpf/tcp_basertt_kern.c rv = 80; rv 54 samples/bpf/tcp_basertt_kern.c rv = n; rv 56 samples/bpf/tcp_basertt_kern.c rv = -1; rv 60 samples/bpf/tcp_basertt_kern.c rv = -1; rv 63 samples/bpf/tcp_basertt_kern.c rv = -1; rv 66 samples/bpf/tcp_basertt_kern.c bpf_printk("Returning %d\n", rv); rv 68 samples/bpf/tcp_basertt_kern.c skops->reply = rv; rv 30 samples/bpf/tcp_bufs_kern.c int rv = 0; rv 45 samples/bpf/tcp_bufs_kern.c bpf_printk("Returning %d\n", rv); rv 53 samples/bpf/tcp_bufs_kern.c rv = rwnd_init; rv 57 samples/bpf/tcp_bufs_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, rv 59 samples/bpf/tcp_bufs_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, rv 67 samples/bpf/tcp_bufs_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, rv 69 samples/bpf/tcp_bufs_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, rv 73 samples/bpf/tcp_bufs_kern.c rv = -1; rv 76 samples/bpf/tcp_bufs_kern.c bpf_printk("Returning %d\n", rv); rv 78 samples/bpf/tcp_bufs_kern.c skops->reply = rv; rv 31 samples/bpf/tcp_clamp_kern.c int rv = 0; rv 58 samples/bpf/tcp_clamp_kern.c rv = to_init; rv 62 samples/bpf/tcp_clamp_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, rv 64 samples/bpf/tcp_clamp_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, rv 69 samples/bpf/tcp_clamp_kern.c rv = bpf_setsockopt(skops, SOL_TCP, rv 75 samples/bpf/tcp_clamp_kern.c rv = bpf_setsockopt(skops, SOL_TCP, rv 78 samples/bpf/tcp_clamp_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, rv 81 samples/bpf/tcp_clamp_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, rv 86 samples/bpf/tcp_clamp_kern.c rv = -1; rv 89 samples/bpf/tcp_clamp_kern.c rv = -1; rv 92 samples/bpf/tcp_clamp_kern.c bpf_printk("Returning %d\n", rv); rv 94 samples/bpf/tcp_clamp_kern.c skops->reply = rv; rv 28 samples/bpf/tcp_cong_kern.c int rv = 0; rv 56 samples/bpf/tcp_cong_kern.c rv = 1; rv 59 samples/bpf/tcp_cong_kern.c rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, rv 63 samples/bpf/tcp_cong_kern.c rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, rv 67 samples/bpf/tcp_cong_kern.c rv = -1; rv 70 samples/bpf/tcp_cong_kern.c rv = -1; rv 73 samples/bpf/tcp_cong_kern.c bpf_printk("Returning %d\n", rv); rv 75 samples/bpf/tcp_cong_kern.c skops->reply = rv; rv 31 samples/bpf/tcp_iw_kern.c int rv = 0; rv 54 samples/bpf/tcp_iw_kern.c rv = rwnd_init; rv 58 samples/bpf/tcp_iw_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, rv 60 samples/bpf/tcp_iw_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, rv 64 samples/bpf/tcp_iw_kern.c rv = bpf_setsockopt(skops, SOL_TCP, TCP_BPF_IW, &iw, rv 69 samples/bpf/tcp_iw_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, rv 71 samples/bpf/tcp_iw_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, rv 75 samples/bpf/tcp_iw_kern.c rv = -1; rv 78 samples/bpf/tcp_iw_kern.c bpf_printk("Returning %d\n", rv); rv 80 samples/bpf/tcp_iw_kern.c skops->reply = rv; rv 27 samples/bpf/tcp_rwnd_kern.c int rv = -1; rv 56 samples/bpf/tcp_rwnd_kern.c rv = 40; rv 59 samples/bpf/tcp_rwnd_kern.c bpf_printk("Returning %d\n", rv); rv 61 samples/bpf/tcp_rwnd_kern.c skops->reply = rv; rv 27 samples/bpf/tcp_synrto_kern.c int rv = -1; rv 56 samples/bpf/tcp_synrto_kern.c rv = 10; rv 59 samples/bpf/tcp_synrto_kern.c bpf_printk("Returning %d\n", rv); rv 61 samples/bpf/tcp_synrto_kern.c skops->reply = rv; rv 32 samples/bpf/tcp_tos_reflect_kern.c int rv = 0; rv 42 samples/bpf/tcp_tos_reflect_kern.c rv = bpf_setsockopt(skops, SOL_TCP, TCP_SAVE_SYN, rv 50 samples/bpf/tcp_tos_reflect_kern.c rv = bpf_getsockopt(skops, SOL_TCP, TCP_SAVED_SYN, rv 52 samples/bpf/tcp_tos_reflect_kern.c if (!rv) { rv 68 samples/bpf/tcp_tos_reflect_kern.c rv = 0; rv 72 samples/bpf/tcp_tos_reflect_kern.c rv = -1; rv 75 samples/bpf/tcp_tos_reflect_kern.c bpf_printk("Returning %d\n", rv); rv 77 samples/bpf/tcp_tos_reflect_kern.c skops->reply = rv; rv 782 security/selinux/selinuxfs.c ssize_t rv; rv 791 security/selinux/selinuxfs.c rv = write_op[ino](file, data, size); rv 792 security/selinux/selinuxfs.c if (rv > 0) { rv 793 security/selinux/selinuxfs.c simple_transaction_set(file, rv); rv 794 security/selinux/selinuxfs.c rv = size; rv 796 security/selinux/selinuxfs.c return rv; rv 459 sound/isa/msnd/msnd_pinnacle.c int rv; rv 467 sound/isa/msnd/msnd_pinnacle.c rv = snd_msnd_initialize(card); rv 468 sound/isa/msnd/msnd_pinnacle.c if (rv) rv 472 sound/isa/msnd/msnd_pinnacle.c return rv; rv 1327 sound/pci/maestro3.c } rv[] = { rv 1375 sound/pci/maestro3.c for (i = 0; i < ARRAY_SIZE(rv); i++) rv 1377 sound/pci/maestro3.c s->inst.data + rv[i].addr, rv[i].val); rv 428 sound/soc/qcom/lpass-platform.c int rv; rv 431 sound/soc/qcom/lpass-platform.c rv = regmap_write(drvdata->lpaif_map, rv 434 sound/soc/qcom/lpass-platform.c if (rv) { rv 436 sound/soc/qcom/lpass-platform.c "error writing to irqclear reg: %d\n", rv); rv 444 sound/soc/qcom/lpass-platform.c rv = regmap_write(drvdata->lpaif_map, rv 447 sound/soc/qcom/lpass-platform.c if (rv) { rv 449 sound/soc/qcom/lpass-platform.c "error writing to irqclear reg: %d\n", rv); rv 458 sound/soc/qcom/lpass-platform.c rv = regmap_write(drvdata->lpaif_map, rv 461 sound/soc/qcom/lpass-platform.c if (rv) { rv 463 sound/soc/qcom/lpass-platform.c "error writing to irqclear reg: %d\n", rv); rv 479 sound/soc/qcom/lpass-platform.c int rv, chan; rv 481 sound/soc/qcom/lpass-platform.c rv = regmap_read(drvdata->lpaif_map, rv 483 sound/soc/qcom/lpass-platform.c if (rv) { rv 484 sound/soc/qcom/lpass-platform.c pr_err("error reading from irqstat reg: %d\n", rv); rv 491 sound/soc/qcom/lpass-platform.c rv = lpass_dma_interrupt_handler( rv 494 sound/soc/qcom/lpass-platform.c if (rv != IRQ_HANDLED) rv 495 sound/soc/qcom/lpass-platform.c return rv; rv 573 sound/usb/line6/driver.c long rv = 0; rv 582 sound/usb/line6/driver.c rv = wait_event_interruptible( rv 585 sound/usb/line6/driver.c if (rv < 0) rv 586 sound/usb/line6/driver.c return rv; rv 594 sound/usb/line6/driver.c rv = -EINVAL; rv 596 sound/usb/line6/driver.c rv = kfifo_to_user(&line6->messages.fifo, buf, count, &out_count); rv 597 sound/usb/line6/driver.c if (rv == 0) rv 598 sound/usb/line6/driver.c rv = out_count; rv 602 sound/usb/line6/driver.c return rv; rv 611 sound/usb/line6/driver.c int rv; rv 623 sound/usb/line6/driver.c rv = line6_send_raw_message(line6, data_copy, count); rv 626 sound/usb/line6/driver.c return rv; rv 73 tools/perf/util/namespaces.c int rv = -1; rv 76 tools/perf/util/namespaces.c return rv; rv 79 tools/perf/util/namespaces.c return rv; rv 120 tools/perf/util/namespaces.c rv = 0; rv 127 tools/perf/util/namespaces.c return rv; rv 919 tools/perf/util/probe-event.c int rv = __show_one_line(fp, l, skip, show_num); rv 920 tools/perf/util/probe-event.c if (rv == 0) { rv 922 tools/perf/util/probe-event.c rv = -1; rv 924 tools/perf/util/probe-event.c return rv; rv 61 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c int rv = -1; rv 94 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c rv = bpf_setsockopt(skops, SOL_IPV6, IPV6_TCLASS, &v, rv 148 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c rv = -1; rv 150 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c skops->reply = rv; rv 36 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c int rv = -1; rv 52 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c rv = 1; rv 61 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c rv = 1; rv 73 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c rv = 1; rv 90 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c rv = -1; rv 92 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c skops->reply = rv; rv 61 tools/testing/selftests/bpf/test_tcpbpf_user.c int rv; rv 64 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_map_lookup_elem(sock_map_fd, &key, &res); rv 65 tools/testing/selftests/bpf/test_tcpbpf_user.c EXPECT_EQ(0, rv, "d"); rv 69 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_map_lookup_elem(sock_map_fd, &key, &res); rv 70 tools/testing/selftests/bpf/test_tcpbpf_user.c EXPECT_EQ(0, rv, "d"); rv 100 tools/testing/selftests/bpf/test_tcpbpf_user.c int rv; rv 117 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); rv 118 tools/testing/selftests/bpf/test_tcpbpf_user.c if (rv) { rv 137 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_map_lookup_elem(map_fd, &key, &g); rv 138 tools/testing/selftests/bpf/test_tcpbpf_user.c if (rv != 0) { rv 139 tools/testing/selftests/bpf/test_tcpbpf_user.c printf("FAILED: bpf_map_lookup_elem returns %d\n", rv); rv 78 tools/testing/selftests/bpf/test_tcpnotify_user.c int prog_fd, rv, cg_fd = -1; rv 104 tools/testing/selftests/bpf/test_tcpnotify_user.c rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); rv 105 tools/testing/selftests/bpf/test_tcpnotify_user.c if (rv) { rv 145 tools/testing/selftests/bpf/test_tcpnotify_user.c rv = bpf_map_lookup_elem(bpf_map__fd(global_map), &key, &g); rv 146 tools/testing/selftests/bpf/test_tcpnotify_user.c if (rv != 0) { rv 147 tools/testing/selftests/bpf/test_tcpnotify_user.c printf("FAILED: bpf_map_lookup_elem returns %d\n", rv); rv 61 tools/testing/selftests/exec/recursion-depth.c int rv = execve(FILENAME, NULL, NULL); rv 62 tools/testing/selftests/exec/recursion-depth.c if (rv == -1 && errno == ELOOP) { rv 65 tools/testing/selftests/exec/recursion-depth.c fprintf(stderr, "error: execve, rv %d, errno %d\n", rv, errno); rv 37 tools/testing/selftests/kvm/s390x/memop.c int rv, i, maxsize; rv 93 tools/testing/selftests/kvm/s390x/memop.c rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); rv 94 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == E2BIG, "ioctl allows insane sizes"); rv 103 tools/testing/selftests/kvm/s390x/memop.c rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); rv 104 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && (errno == EINVAL || errno == ENOMEM), rv 114 tools/testing/selftests/kvm/s390x/memop.c rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); rv 115 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows all flags"); rv 124 tools/testing/selftests/kvm/s390x/memop.c rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); rv 125 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows bad operations"); rv 134 tools/testing/selftests/kvm/s390x/memop.c rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); rv 135 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv > 0, "ioctl does not report bad guest memory access"); rv 144 tools/testing/selftests/kvm/s390x/memop.c rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); rv 145 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == EFAULT, rv 158 tools/testing/selftests/kvm/s390x/memop.c rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); rv 159 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows ARs > 15"); rv 72 tools/testing/selftests/kvm/s390x/sync_regs_test.c int rv, cap; rv 90 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 91 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, rv 93 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv); rv 97 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 98 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, rv 100 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv); rv 105 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 106 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, rv 108 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv); rv 112 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 113 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, rv 115 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv); rv 120 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 121 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); rv 145 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 146 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); rv 170 tools/testing/selftests/kvm/s390x/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 171 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); rv 136 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c int rv; rv 142 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c rv = kvm_check_cap(KVM_CAP_HYPERV_CPUID); rv 143 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c if (!rv) { rv 84 tools/testing/selftests/kvm/x86_64/platform_info_test.c int rv; rv 90 tools/testing/selftests/kvm/x86_64/platform_info_test.c rv = kvm_check_cap(KVM_CAP_MSR_PLATFORM_INFO); rv 91 tools/testing/selftests/kvm/x86_64/platform_info_test.c if (!rv) { rv 87 tools/testing/selftests/kvm/x86_64/sync_regs_test.c int rv, cap; rv 109 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 110 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, rv 112 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv); rv 116 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 117 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, rv 119 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv); rv 124 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 125 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, rv 127 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv); rv 131 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 132 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, rv 134 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv); rv 140 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 162 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 189 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 207 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 227 tools/testing/selftests/kvm/x86_64/sync_regs_test.c rv = _vcpu_run(vm, VCPU_ID); rv 39 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c int rv; rv 41 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c rv = vcpu_nested_state_set(vm, VCPU_ID, state, true); rv 42 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c TEST_ASSERT(rv == -1 && errno == expected_errno, rv 44 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c strerror(expected_errno), expected_errno, rv, strerror(errno), rv 40 tools/testing/selftests/powerpc/tm/tm-resched-dscr.c uint64_t rv, dscr1 = 1, dscr2, texasr; rv 73 tools/testing/selftests/powerpc/tm/tm-resched-dscr.c : [rv]"=r"(rv), [dscr2]"=m"(dscr2), [texasr]"=m"(texasr) rv 78 tools/testing/selftests/powerpc/tm/tm-resched-dscr.c assert(rv); /* make sure the transaction aborted */ rv 36 tools/testing/selftests/proc/fd-001-lookup.c ssize_t rv; rv 39 tools/testing/selftests/proc/fd-001-lookup.c rv = lstat(pathname, &st); rv 40 tools/testing/selftests/proc/fd-001-lookup.c assert(rv == 0); rv 47 tools/testing/selftests/proc/fd-001-lookup.c ssize_t rv; rv 49 tools/testing/selftests/proc/fd-001-lookup.c rv = lstat(pathname, &st); rv 50 tools/testing/selftests/proc/fd-001-lookup.c assert(rv == -1 && errno == ENOENT); rv 30 tools/testing/selftests/proc/fd-002-posix-eq.c int rv; rv 43 tools/testing/selftests/proc/fd-002-posix-eq.c rv = fstat(fd0, &st0); rv 44 tools/testing/selftests/proc/fd-002-posix-eq.c assert(rv == 0); rv 45 tools/testing/selftests/proc/fd-002-posix-eq.c rv = fstat(fd1, &st1); rv 46 tools/testing/selftests/proc/fd-002-posix-eq.c assert(rv == 0); rv 47 tools/testing/selftests/proc/fd-002-posix-eq.c rv = fstat(fd2, &st2); rv 48 tools/testing/selftests/proc/fd-002-posix-eq.c assert(rv == 0); rv 45 tools/testing/selftests/proc/fd-003-kthread.c ssize_t rv; rv 61 tools/testing/selftests/proc/fd-003-kthread.c rv = read(fd, buf, sizeof(buf)); rv 63 tools/testing/selftests/proc/fd-003-kthread.c if (0 < rv && rv <= sizeof(buf)) { rv 68 tools/testing/selftests/proc/fd-003-kthread.c assert(buf[rv - 1] == '\n'); rv 69 tools/testing/selftests/proc/fd-003-kthread.c buf[rv - 1] = '\0'; rv 125 tools/testing/selftests/proc/fd-003-kthread.c int rv; rv 127 tools/testing/selftests/proc/fd-003-kthread.c rv = sys_statx(fd, pathname, AT_SYMLINK_NOFOLLOW, 0, (void *)stx); rv 128 tools/testing/selftests/proc/fd-003-kthread.c assert(rv == -1 && errno == ENOENT); rv 43 tools/testing/selftests/proc/proc-loadavg-001.c ssize_t rv; rv 48 tools/testing/selftests/proc/proc-loadavg-001.c rv = read(fd, buf, sizeof(buf)); rv 49 tools/testing/selftests/proc/proc-loadavg-001.c if (rv < 3) rv 51 tools/testing/selftests/proc/proc-loadavg-001.c p = buf + rv; rv 66 tools/testing/selftests/proc/proc-loadavg-001.c rv = read(fd, buf, sizeof(buf)); rv 67 tools/testing/selftests/proc/proc-loadavg-001.c if (rv < 3) rv 69 tools/testing/selftests/proc/proc-loadavg-001.c p = buf + rv; rv 317 tools/testing/selftests/proc/proc-pid-vm.c ssize_t rv; rv 325 tools/testing/selftests/proc/proc-pid-vm.c rv = read(fd, buf, sizeof(buf)); rv 326 tools/testing/selftests/proc/proc-pid-vm.c assert(rv == len); rv 336 tools/testing/selftests/proc/proc-pid-vm.c ssize_t rv; rv 344 tools/testing/selftests/proc/proc-pid-vm.c rv = read(fd, buf, sizeof(buf)); rv 345 tools/testing/selftests/proc/proc-pid-vm.c assert(0 <= rv && rv <= sizeof(buf)); rv 347 tools/testing/selftests/proc/proc-pid-vm.c assert(rv >= strlen(buf0)); rv 354 tools/testing/selftests/proc/proc-pid-vm.c assert(memmem(buf, rv, RSS1, strlen(RSS1)) || rv 355 tools/testing/selftests/proc/proc-pid-vm.c memmem(buf, rv, RSS2, strlen(RSS2))); rv 356 tools/testing/selftests/proc/proc-pid-vm.c assert(memmem(buf, rv, PSS1, strlen(PSS1)) || rv 357 tools/testing/selftests/proc/proc-pid-vm.c memmem(buf, rv, PSS2, strlen(PSS2))); rv 372 tools/testing/selftests/proc/proc-pid-vm.c assert(memmem(buf, rv, S[i], strlen(S[i]))); rv 376 tools/testing/selftests/proc/proc-pid-vm.c assert(memmem(buf, rv, str_vsyscall, strlen(str_vsyscall))); rv 392 tools/testing/selftests/proc/proc-pid-vm.c ssize_t rv; rv 400 tools/testing/selftests/proc/proc-pid-vm.c rv = read(fd, buf, sizeof(buf)); rv 401 tools/testing/selftests/proc/proc-pid-vm.c assert(0 <= rv && rv <= sizeof(buf)); rv 403 tools/testing/selftests/proc/proc-pid-vm.c assert(rv >= strlen(bufr)); rv 406 tools/testing/selftests/proc/proc-pid-vm.c assert(memmem(buf, rv, RSS1, strlen(RSS1)) || rv 407 tools/testing/selftests/proc/proc-pid-vm.c memmem(buf, rv, RSS2, strlen(RSS2))); rv 408 tools/testing/selftests/proc/proc-pid-vm.c assert(memmem(buf, rv, PSS1, strlen(PSS1)) || rv 409 tools/testing/selftests/proc/proc-pid-vm.c memmem(buf, rv, PSS2, strlen(PSS2))); rv 421 tools/testing/selftests/proc/proc-pid-vm.c assert(memmem(buf, rv, S[i], strlen(S[i]))); rv 428 tools/testing/selftests/proc/proc-pid-vm.c ssize_t rv; rv 436 tools/testing/selftests/proc/proc-pid-vm.c rv = read(fd, buf, sizeof(buf)); rv 437 tools/testing/selftests/proc/proc-pid-vm.c assert(rv == 7 * 2); rv 36 tools/testing/selftests/proc/proc-self-syscall.c ssize_t rv; rv 50 tools/testing/selftests/proc/proc-self-syscall.c rv = sys_read(fd, buf2, sizeof(buf2)); rv 51 tools/testing/selftests/proc/proc-self-syscall.c if (rv < 0) rv 53 tools/testing/selftests/proc/proc-self-syscall.c if (rv < strlen(buf1)) rv 29 tools/testing/selftests/proc/proc-uptime.h ssize_t rv; rv 33 tools/testing/selftests/proc/proc-uptime.h rv = pread(fd, buf, sizeof(buf), 0); rv 34 tools/testing/selftests/proc/proc-uptime.h assert(0 <= rv && rv <= sizeof(buf)); rv 59 tools/testing/selftests/proc/proc-uptime.h assert(p + 4 == buf + rv); rv 42 tools/testing/selftests/proc/read.c ssize_t rv; rv 48 tools/testing/selftests/proc/read.c rv = read(fd, buf, sizeof(buf)); rv 49 tools/testing/selftests/proc/read.c assert((0 <= rv && rv <= sizeof(buf)) || rv == -1); rv 56 tools/testing/selftests/proc/read.c ssize_t rv; rv 61 tools/testing/selftests/proc/read.c rv = write(fd, buf, len); rv 62 tools/testing/selftests/proc/read.c assert((0 <= rv && rv <= len) || rv == -1); rv 69 tools/testing/selftests/proc/read.c ssize_t rv; rv 71 tools/testing/selftests/proc/read.c rv = readlinkat(dirfd(d), filename, buf, sizeof(buf)); rv 72 tools/testing/selftests/proc/read.c assert((0 <= rv && rv <= sizeof(buf)) || rv == -1); rv 28 tools/testing/selftests/proc/self.c ssize_t rv; rv 33 tools/testing/selftests/proc/self.c rv = readlink("/proc/self", buf2, sizeof(buf2)); rv 34 tools/testing/selftests/proc/self.c assert(rv == strlen(buf1)); rv 35 tools/testing/selftests/proc/self.c buf2[rv] = '\0'; rv 113 tools/testing/selftests/proc/setns-dcache.c ssize_t rv; rv 122 tools/testing/selftests/proc/setns-dcache.c rv = read(fd, buf, sizeof(buf)); rv 124 tools/testing/selftests/proc/setns-dcache.c assert(rv == strlen(S)); rv 112 tools/testing/selftests/proc/setns-sysvipc.c ssize_t rv; rv 122 tools/testing/selftests/proc/setns-sysvipc.c rv = read(fd, buf, sizeof(buf)); rv 123 tools/testing/selftests/proc/setns-sysvipc.c if (rv == strlen(S32)) { rv 125 tools/testing/selftests/proc/setns-sysvipc.c } else if (rv == strlen(S64)) { rv 31 tools/testing/selftests/proc/thread-self.c ssize_t rv; rv 37 tools/testing/selftests/proc/thread-self.c rv = readlink("/proc/thread-self", buf2, sizeof(buf2)); rv 38 tools/testing/selftests/proc/thread-self.c assert(rv == strlen(buf1)); rv 39 tools/testing/selftests/proc/thread-self.c buf2[rv] = '\0';