Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/lib/
Derrseq.c36 #define ERRSEQ_SHIFT ilog2(MAX_ERRNO + 1)
63 BUILD_BUG_ON_NOT_POWER_OF_2(MAX_ERRNO + 1); in errseq_set()
73 if (WARN(unlikely(err == 0 || (unsigned int)-err > MAX_ERRNO), in errseq_set()
81 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set()
150 return -(cur & MAX_ERRNO); in errseq_check()
202 err = -(new & MAX_ERRNO); in errseq_check_and_advance()
Dnotifier-error-inject.c8 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); in debugfs_errno_set()
/kernel/linux/linux-5.10/tools/virtio/linux/
Derr.h4 #define MAX_ERRNO 4095 macro
6 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
/kernel/linux/linux-5.10/tools/include/linux/
Derr.h31 #define MAX_ERRNO 4095 macro
33 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
/kernel/linux/linux-5.10/include/linux/
Derr.h18 #define MAX_ERRNO 4095 macro
22 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
Ddma-fence.h546 WARN_ON(error >= 0 || error < -MAX_ERRNO); in dma_fence_set_error()
Dxarray.h202 entry >= xa_mk_internal(-MAX_ERRNO)); in xa_is_err()
/kernel/linux/linux-5.10/tools/testing/scatterlist/linux/
Dmm.h132 #define MAX_ERRNO 4095 macro
134 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
/kernel/linux/linux-5.10/kernel/
Dfail_function.c44 if (retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval()
48 if (retv != 0 && retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval()
Dseccomp.c949 if (data > MAX_ERRNO) in __seccomp_filter()
950 data = MAX_ERRNO; in __seccomp_filter()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsyscall_64.c169 if (unlikely(r3 >= (unsigned long)-MAX_ERRNO) && !scv) { in syscall_exit_prepare()
Dentry_32.S416 li r8,-MAX_ERRNO
/kernel/linux/linux-5.10/Documentation/powerpc/
Dsyscall64-abi.rst39 -4095..-1 (i.e., it is >= -MAX_ERRNO (-4095) as an unsigned comparison),
/kernel/linux/linux-5.10/arch/mips/kernel/
Dmodule.c335 if (sym->st_value >= -MAX_ERRNO) { in __apply_relocate()
/kernel/linux/linux-5.10/Documentation/fault-injection/
Dfault-injection.rst167 - ERRNO: retval must be -1 to -MAX_ERRNO (-4096).
168 - ERR_NULL: retval must be 0 or -1 to -MAX_ERRNO (-4096).
/kernel/linux/linux-5.10/drivers/bcma/
Dscan.c270 #define IS_ERR_VALUE_U32(x) ((x) >= (u32)-MAX_ERRNO)
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dprofiler.inc.h19 #define MAX_ERRNO 4095 macro
37 #define IS_ERR_VALUE(x) (unsigned long)(void*)(x) >= (unsigned long)-MAX_ERRNO
/kernel/linux/linux-5.10/Documentation/core-api/
Derrseq.rst14 designated to hold an error code (between 1 and MAX_ERRNO). The upper bits
/kernel/linux/linux-5.10/drivers/char/
Dmem.c824 if ((unsigned long long)offset >= -MAX_ERRNO) { in memory_lseek()
/kernel/linux/linux-5.10/security/keys/
Dkeyctl.c1342 error >= MAX_ERRNO || in keyctl_reject_key()
/kernel/linux/linux-5.10/tools/include/nolibc/
Dnolibc.h112 #define MAX_ERRNO 4095 macro
/kernel/linux/linux-5.10/net/9p/
Dclient.c96 if ((err > 0) || (err < -MAX_ERRNO)) { in safe_errno()
/kernel/linux/linux-5.10/fs/ext4/
Dext4.h2407 #define ERR_BAD_DX_DIR (-(MAX_ERRNO - 1))
/kernel/linux/linux-5.10/fs/proc/
Dbase.c922 if ((unsigned long long)offset >= -MAX_ERRNO) in mem_lseek()
/kernel/linux/linux-5.10/kernel/bpf/
Dverifier.c5308 ret_reg->smin_value = -MAX_ERRNO; in do_refine_retval_range()
5309 ret_reg->s32_min_value = -MAX_ERRNO; in do_refine_retval_range()