Home
last modified time | relevance | path

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

/linux-6.15/drivers/platform/x86/dell/
H A Ddell-pc.c160 static int thermal_get_acc_mode(int *acc_mode) in thermal_get_acc_mode() argument
169 *acc_mode = FIELD_GET(DELL_ACC_GET_FIELD, buffer.output[3]); in thermal_get_acc_mode()
177 int acc_mode; in thermal_set_mode() local
179 ret = thermal_get_acc_mode(&acc_mode); in thermal_set_mode()
183 dell_fill_request(&buffer, 0x1, FIELD_PREP(DELL_ACC_SET_FIELD, acc_mode) | state, 0, 0); in thermal_set_mode()
/linux-6.15/drivers/gpu/drm/amd/display/dc/bios/
H 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-6.15/fs/
H A Dopen.c1235 int acc_mode = ACC_MODE(flags); in build_open_flags() local
1287 if (!(acc_mode & MAY_WRITE)) in build_open_flags()
1294 acc_mode = 0; in build_open_flags()
1310 acc_mode |= MAY_WRITE; in build_open_flags()
1315 acc_mode |= MAY_APPEND; in build_open_flags()
1317 op->acc_mode = acc_mode; in build_open_flags()
H A Dnamei.c3433 int acc_mode, int flag) in may_open() argument
3446 if (acc_mode & MAY_WRITE) in may_open()
3448 if (acc_mode & MAY_EXEC) in may_open()
3458 if (acc_mode & MAY_EXEC) in may_open()
3463 if ((acc_mode & MAY_EXEC) && path_noexec(path)) in may_open()
3470 error = inode_permission(idmap, inode, MAY_OPEN | acc_mode); in may_open()
3842 int acc_mode; in do_open() local
3867 acc_mode = op->acc_mode; in do_open()
3871 acc_mode = 0; in do_open()
3878 error = may_open(idmap, &nd->path, acc_mode, open_flag); in do_open()
[all …]
H A Dinternal.h181 int acc_mode; member
H A Dexec.c133 .acc_mode = MAY_READ | MAY_EXEC, in SYSCALL_DEFINE1()
880 .acc_mode = MAY_EXEC, in do_open_execat()
/linux-6.15/security/tomoyo/
H 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-6.15/fs/overlayfs/
H A Dfile.c36 int acc_mode = ACC_MODE(flags); in ovl_open_realfile() local
40 acc_mode |= MAY_APPEND; in ovl_open_realfile()
44 err = inode_permission(real_idmap, realinode, MAY_OPEN | acc_mode); in ovl_open_realfile()
H A Dutil.c653 int err, acc_mode; in ovl_path_open() local
660 acc_mode = MAY_READ; in ovl_path_open()
663 acc_mode = MAY_WRITE; in ovl_path_open()
669 err = inode_permission(real_idmap, inode, acc_mode | MAY_OPEN); in ovl_path_open()
/linux-6.15/ipc/
H A Dshm.c1524 int acc_mode; in do_shmat() local
1559 acc_mode = S_IRUGO; in do_shmat()
1563 acc_mode = S_IRUGO | S_IWUGO; in do_shmat()
1568 acc_mode |= S_IXUGO; in do_shmat()
1584 if (ipcperms(ns, &shp->shm_perm, acc_mode)) in do_shmat()
/linux-6.15/arch/s390/kvm/
H A Dkvm-s390.c2905 enum gacc_mode acc_mode; in kvm_s390_vm_mem_op_abs() local
2927 acc_mode = mop->op == KVM_S390_MEMOP_ABSOLUTE_READ ? GACC_FETCH : GACC_STORE; in kvm_s390_vm_mem_op_abs()
2929 r = check_gpa_range(kvm, mop->gaddr, mop->size, acc_mode, mop->key); in kvm_s390_vm_mem_op_abs()
2932 if (acc_mode == GACC_FETCH) { in kvm_s390_vm_mem_op_abs()
5626 enum gacc_mode acc_mode; in kvm_s390_vcpu_mem_op() local
5645 acc_mode = mop->op == KVM_S390_MEMOP_LOGICAL_READ ? GACC_FETCH : GACC_STORE; in kvm_s390_vcpu_mem_op()
5648 acc_mode, mop->key); in kvm_s390_vcpu_mem_op()
5651 if (acc_mode == GACC_FETCH) { in kvm_s390_vcpu_mem_op()
/linux-6.15/fs/nfs/
H A Dnfs4proc.c3147 fmode_t acc_mode = _nfs4_ctx_to_accessmode(ctx); in _nfs4_open_and_get_state() local
3198 ret = nfs4_opendata_access(sp->so_cred, opendata, state, acc_mode); in _nfs4_open_and_get_state()