Home
last modified time | relevance | path

Searched refs:acc_mode (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/bios/
A Dbios_parser_helper.c60 uint32_t acc_mode; in bios_is_accelerated_mode() local
61 REG_GET(BIOS_SCRATCH_6, S6_ACC_MODE, &acc_mode); in bios_is_accelerated_mode()
62 return (acc_mode == 1); in bios_is_accelerated_mode()
/linux/fs/
A Dopen.c1025 int acc_mode = ACC_MODE(flags); in build_open_flags() local
1071 if (!(acc_mode & MAY_WRITE)) in build_open_flags()
1078 acc_mode = 0; in build_open_flags()
1094 acc_mode |= MAY_WRITE; in build_open_flags()
1099 acc_mode |= MAY_APPEND; in build_open_flags()
1101 op->acc_mode = acc_mode; in build_open_flags()
A Dinternal.h118 int acc_mode; member
A Dnamei.c3016 int acc_mode, int flag) in may_open() argument
3029 if (acc_mode & MAY_WRITE) in may_open()
3031 if (acc_mode & MAY_EXEC) in may_open()
3041 if (acc_mode & MAY_EXEC) in may_open()
3046 if ((acc_mode & MAY_EXEC) && path_noexec(path)) in may_open()
3051 error = inode_permission(mnt_userns, inode, MAY_OPEN | acc_mode); in may_open()
3388 int acc_mode; in do_open() local
3413 acc_mode = op->acc_mode; in do_open()
3417 acc_mode = 0; in do_open()
3424 error = may_open(mnt_userns, &nd->path, acc_mode, open_flag); in do_open()
[all …]
A Dexec.c130 .acc_mode = MAY_READ | MAY_EXEC, in SYSCALL_DEFINE1()
900 .acc_mode = MAY_EXEC, in do_open_execat()
/linux/fs/overlayfs/
A Dutil.c469 int err, acc_mode; in ovl_path_open() local
476 acc_mode = MAY_READ; in ovl_path_open()
479 acc_mode = MAY_WRITE; in ovl_path_open()
485 err = inode_permission(&init_user_ns, inode, acc_mode | MAY_OPEN); in ovl_path_open()
A Dfile.c47 int acc_mode = ACC_MODE(flags); in ovl_open_realfile() local
51 acc_mode |= MAY_APPEND; in ovl_open_realfile()
54 err = inode_permission(&init_user_ns, realinode, MAY_OPEN | acc_mode); in ovl_open_realfile()
/linux/security/tomoyo/
A Dfile.c756 const u8 acc_mode = ACC_MODE(flag); in tomoyo_check_open_permission() local
768 if (acc_mode && in tomoyo_check_open_permission()
776 if (acc_mode & MAY_READ) in tomoyo_check_open_permission()
779 if (!error && (acc_mode & MAY_WRITE)) in tomoyo_check_open_permission()
/linux/ipc/
A Dshm.c1516 int acc_mode; in do_shmat() local
1551 acc_mode = S_IRUGO; in do_shmat()
1555 acc_mode = S_IRUGO | S_IWUGO; in do_shmat()
1560 acc_mode |= S_IXUGO; in do_shmat()
1576 if (ipcperms(ns, &shp->shm_perm, acc_mode)) in do_shmat()
/linux/fs/nfs/
A Dnfs4proc.c3037 fmode_t acc_mode = _nfs4_ctx_to_accessmode(ctx); in _nfs4_open_and_get_state() local
3091 acc_mode, flags); in _nfs4_open_and_get_state()

Completed in 56 milliseconds