/linux-6.12.1/drivers/platform/x86/dell/ |
D | dell-pc.c | 158 static int thermal_get_acc_mode(int *acc_mode) in thermal_get_acc_mode() argument 167 *acc_mode = FIELD_GET(DELL_ACC_GET_FIELD, buffer.output[3]); in thermal_get_acc_mode() 175 int acc_mode; in thermal_set_mode() local 177 ret = thermal_get_acc_mode(&acc_mode); in thermal_set_mode() 181 dell_fill_request(&buffer, 0x1, FIELD_PREP(DELL_ACC_SET_FIELD, acc_mode) | state, 0, 0); in thermal_set_mode()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/bios/ |
D | bios_parser_helper.c | 60 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.12.1/fs/ |
D | open.c | 1220 int acc_mode = ACC_MODE(flags); in build_open_flags() local 1274 if (!(acc_mode & MAY_WRITE)) in build_open_flags() 1281 acc_mode = 0; in build_open_flags() 1297 acc_mode |= MAY_WRITE; in build_open_flags() 1302 acc_mode |= MAY_APPEND; in build_open_flags() 1304 op->acc_mode = acc_mode; in build_open_flags()
|
D | namei.c | 3329 int acc_mode, int flag) in may_open() argument 3342 if (acc_mode & MAY_WRITE) in may_open() 3344 if (acc_mode & MAY_EXEC) in may_open() 3354 if (acc_mode & MAY_EXEC) in may_open() 3359 if ((acc_mode & MAY_EXEC) && path_noexec(path)) in may_open() 3364 error = inode_permission(idmap, inode, MAY_OPEN | acc_mode); in may_open() 3736 int acc_mode; in do_open() local 3761 acc_mode = op->acc_mode; in do_open() 3765 acc_mode = 0; in do_open() 3772 error = may_open(idmap, &nd->path, acc_mode, open_flag); in do_open() [all …]
|
D | internal.h | 178 int acc_mode; member
|
D | exec.c | 133 .acc_mode = MAY_READ | MAY_EXEC, in SYSCALL_DEFINE1() 889 .acc_mode = MAY_EXEC, in do_open_execat()
|
/linux-6.12.1/fs/overlayfs/ |
D | file.c | 36 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()
|
D | util.c | 645 int err, acc_mode; in ovl_path_open() local 652 acc_mode = MAY_READ; in ovl_path_open() 655 acc_mode = MAY_WRITE; in ovl_path_open() 661 err = inode_permission(real_idmap, inode, acc_mode | MAY_OPEN); in ovl_path_open()
|
/linux-6.12.1/security/tomoyo/ |
D | file.c | 756 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.12.1/ipc/ |
D | shm.c | 1524 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.12.1/arch/s390/kvm/ |
D | kvm-s390.c | 2872 enum gacc_mode acc_mode; in kvm_s390_vm_mem_op_abs() local 2894 acc_mode = mop->op == KVM_S390_MEMOP_ABSOLUTE_READ ? GACC_FETCH : GACC_STORE; in kvm_s390_vm_mem_op_abs() 2896 r = check_gpa_range(kvm, mop->gaddr, mop->size, acc_mode, mop->key); in kvm_s390_vm_mem_op_abs() 2899 if (acc_mode == GACC_FETCH) { in kvm_s390_vm_mem_op_abs() 5368 enum gacc_mode acc_mode; in kvm_s390_vcpu_mem_op() local 5387 acc_mode = mop->op == KVM_S390_MEMOP_LOGICAL_READ ? GACC_FETCH : GACC_STORE; in kvm_s390_vcpu_mem_op() 5390 acc_mode, mop->key); in kvm_s390_vcpu_mem_op() 5393 if (acc_mode == GACC_FETCH) { in kvm_s390_vcpu_mem_op()
|
/linux-6.12.1/fs/nfs/ |
D | nfs4proc.c | 3119 fmode_t acc_mode = _nfs4_ctx_to_accessmode(ctx); in _nfs4_open_and_get_state() local 3172 ret = nfs4_opendata_access(sp->so_cred, opendata, state, acc_mode); in _nfs4_open_and_get_state()
|