Home
last modified time | relevance | path

Searched refs:IS_ERR_VALUE (Results 1 – 25 of 91) sorted by relevance

1234

/Linux-v6.1/scripts/coccinelle/api/
Dpm_runtime.cocci2 /// Make sure pm_runtime_* calls does not use unnecessary IS_ERR_VALUE
44 IS_ERR_VALUE(ret)
60 * IS_ERR_VALUE(ret)
76 - IS_ERR_VALUE(ret)
94 IS_ERR_VALUE@p2(ret)
105 cocci.print_secs("IS_ERR_VALUE",p2)
113 msg = "%s returns < 0 as error. Unecessary IS_ERR_VALUE at line %s" % (pm_runtime_api, p2[0].line)
/Linux-v6.1/tools/virtio/linux/
Derr.h6 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) macro
20 return IS_ERR_VALUE((unsigned long)ptr); in IS_ERR()
25 return !ptr || IS_ERR_VALUE((unsigned long)ptr); in IS_ERR_OR_NULL()
/Linux-v6.1/tools/include/linux/
Derr.h33 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) macro
47 return IS_ERR_VALUE((unsigned long)ptr); in IS_ERR()
52 return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr); in IS_ERR_OR_NULL()
/Linux-v6.1/include/linux/
Derr.h22 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) macro
36 return IS_ERR_VALUE((unsigned long)ptr); in IS_ERR()
41 return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr); in IS_ERR_OR_NULL()
/Linux-v6.1/include/trace/events/
Dmmap.h39 IS_ERR_VALUE(__entry->addr) ? 0 : __entry->addr,
40 IS_ERR_VALUE(__entry->addr) ? __entry->addr : 0,
/Linux-v6.1/fs/
Dbinfmt_flat.c535 if (!textpos || IS_ERR_VALUE(textpos)) { in load_flat_file()
549 if (realdatastart == 0 || IS_ERR_VALUE(realdatastart)) { in load_flat_file()
576 if (IS_ERR_VALUE(result)) { in load_flat_file()
596 if (!textpos || IS_ERR_VALUE(textpos)) { in load_flat_file()
651 if (!IS_ERR_VALUE(result)) { in load_flat_file()
674 if (!IS_ERR_VALUE(result)) in load_flat_file()
679 if (IS_ERR_VALUE(result)) { in load_flat_file()
/Linux-v6.1/tools/testing/scatterlist/linux/
Dmm.h134 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) macro
148 return IS_ERR_VALUE((unsigned long)ptr); in IS_ERR()
/Linux-v6.1/arch/mips/kernel/
Dvdso.c106 if (IS_ERR_VALUE(base)) { in arch_setup_additional_pages()
132 if (IS_ERR_VALUE(base)) { in arch_setup_additional_pages()
/Linux-v6.1/arch/hexagon/include/asm/
Dsyscall.h39 return IS_ERR_VALUE(regs->r00) ? regs->r00 : 0; in syscall_get_error()
/Linux-v6.1/arch/openrisc/include/asm/
Dsyscall.h37 return IS_ERR_VALUE(regs->gpr[11]) ? regs->gpr[11] : 0; in syscall_get_error()
/Linux-v6.1/arch/um/include/asm/
Dsyscall-generic.h35 return IS_ERR_VALUE(error) ? error : 0; in syscall_get_error()
/Linux-v6.1/arch/loongarch/include/asm/
Dsyscall.h40 return IS_ERR_VALUE(error) ? error : 0; in syscall_get_error()
/Linux-v6.1/arch/riscv/include/asm/
Dsyscall.h43 return IS_ERR_VALUE(error) ? error : 0; in syscall_get_error()
/Linux-v6.1/arch/xtensa/include/asm/
Dsyscall.h41 return IS_ERR_VALUE(regs->areg[2]) ? regs->areg[2] : 0; in syscall_get_error()
/Linux-v6.1/arch/sh/include/asm/
Dsyscall_32.h30 return IS_ERR_VALUE(regs->regs[0]) ? regs->regs[0] : 0; in syscall_get_error()
/Linux-v6.1/arch/csky/include/asm/
Dsyscall.h37 return IS_ERR_VALUE(error) ? error : 0; in syscall_get_error()
/Linux-v6.1/arch/parisc/include/asm/
Dsyscall.h36 return IS_ERR_VALUE(error) ? error : 0; in syscall_get_error()
/Linux-v6.1/arch/arc/include/asm/
Dsyscall.h36 return IS_ERR_VALUE(regs->r0) ? regs->r0 : 0; in syscall_get_error()
/Linux-v6.1/arch/sh/kernel/vsyscall/
Dvsyscall.c68 if (IS_ERR_VALUE(addr)) { in arch_setup_additional_pages()
/Linux-v6.1/arch/hexagon/kernel/
Dvdso.c62 if (IS_ERR_VALUE(vdso_base)) { in arch_setup_additional_pages()
/Linux-v6.1/arch/arm/include/asm/
Dsyscall.h52 return IS_ERR_VALUE(error) ? error : 0; in syscall_get_error()
/Linux-v6.1/arch/microblaze/include/asm/
Dsyscall.h26 return IS_ERR_VALUE(regs->r3) ? regs->r3 : 0; in syscall_get_error()
/Linux-v6.1/arch/arm64/include/asm/
Dsyscall.h48 return IS_ERR_VALUE(error) ? error : 0; in syscall_get_error()
/Linux-v6.1/arch/powerpc/include/asm/
Dsyscall.h54 return IS_ERR_VALUE(error) ? error : 0; in syscall_get_error()
/Linux-v6.1/arch/sh/cchips/hd6446x/
Dhd64461.c91 if (IS_ERR_VALUE(irq_base)) { in setup_hd64461()

1234