/third_party/ffmpeg/libavutil/ |
H A D | file_open.c | 161 int access; in avpriv_fopen_utf8() local 165 case 'r': access = O_RDONLY; break; in avpriv_fopen_utf8() 166 case 'w': access = O_CREAT|O_WRONLY|O_TRUNC; break; in avpriv_fopen_utf8() 167 case 'a': access = O_CREAT|O_WRONLY|O_APPEND; break; in avpriv_fopen_utf8() 174 access &= ~(O_RDONLY | O_WRONLY); in avpriv_fopen_utf8() 175 access |= O_RDWR; in avpriv_fopen_utf8() 178 access |= O_BINARY; in avpriv_fopen_utf8() 186 fd = avpriv_open(path, access, 0666); in avpriv_fopen_utf8()
|
/third_party/alsa-utils/axfer/ |
H A D | mapper-single.c | 76 if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED || in single_pre_process() 77 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED) in single_pre_process() 79 else if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED || in single_pre_process() 80 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED) in single_pre_process() 85 if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED || in single_pre_process() 86 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED) in single_pre_process() 88 else if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED || in single_pre_process() 89 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED) in single_pre_process()
|
H A D | mapper.c | 72 snd_pcm_access_t access, in mapper_context_pre_process() 81 assert(access >= SND_PCM_ACCESS_MMAP_INTERLEAVED); in mapper_context_pre_process() 82 assert(access <= SND_PCM_ACCESS_RW_NONINTERLEAVED); in mapper_context_pre_process() 93 mapper->access = access; in mapper_context_pre_process() 107 fprintf(stderr, " access: %s\n", in mapper_context_pre_process() 108 snd_pcm_access_name(mapper->access)); in mapper_context_pre_process() 71 mapper_context_pre_process(struct mapper_context *mapper, snd_pcm_access_t access, unsigned int bytes_per_sample, unsigned int samples_per_frame, unsigned int frames_per_buffer, struct container_context *cntrs) mapper_context_pre_process() argument
|
/third_party/node/deps/v8/src/base/platform/ |
H A D | platform-macos.cc | 20 vm_prot_t GetVMProtFromMemoryPermission(OS::MemoryPermission access) { in GetVMProtFromMemoryPermission() argument 21 switch (access) { in GetVMProtFromMemoryPermission() 70 void* OS::AllocateShared(void* hint, size_t size, MemoryPermission access, in AllocateShared() argument 75 vm_prot_t prot = GetVMProtFromMemoryPermission(access); in AllocateShared() 92 MemoryPermission access) { in RemapPages() 98 vm_prot_t cur_protection = GetVMProtFromMemoryPermission(access); in RemapPages() 118 OS::MemoryPermission access, in AllocateShared() 123 vm_prot_t prot = GetVMProtFromMemoryPermission(access); in AllocateShared() 91 RemapPages(const void* address, size_t size, void* new_address, MemoryPermission access) RemapPages() argument 117 AllocateShared(void* address, size_t size, OS::MemoryPermission access, PlatformSharedMemoryHandle handle, uint64_t offset) AllocateShared() argument
|
H A D | platform-posix.cc | 128 int GetProtectionFromMemoryPermission(OS::MemoryPermission access) { in GetProtectionFromMemoryPermission() argument 129 switch (access) { in GetProtectionFromMemoryPermission() 147 int GetFlagsForMemoryPermission(OS::MemoryPermission access, in GetFlagsForMemoryPermission() argument 151 if (access == OS::MemoryPermission::kNoAccess) { in GetFlagsForMemoryPermission() 164 if (access == OS::MemoryPermission::kNoAccessWillJitLater) { in GetFlagsForMemoryPermission() 171 void* Allocate(void* hint, size_t size, OS::MemoryPermission access, in Allocate() argument 173 int prot = GetProtectionFromMemoryPermission(access); in Allocate() 174 int flags = GetFlagsForMemoryPermission(access, page_type); in Allocate() 400 MemoryPermission access) { in Allocate() 408 void* result = base::Allocate(hint, request_size, access, PageTyp in Allocate() 399 Allocate(void* hint, size_t size, size_t alignment, MemoryPermission access) Allocate() argument 434 AllocateShared(size_t size, MemoryPermission access) AllocateShared() argument 449 AllocateShared(void* hint, size_t size, MemoryPermission access, PlatformSharedMemoryHandle handle, uint64_t offset) AllocateShared() argument 474 SetPermissions(void* address, size_t size, MemoryPermission access) SetPermissions() argument 937 Allocate(void* address, size_t size, OS::MemoryPermission access) Allocate() argument 957 AllocateShared(void* address, size_t size, OS::MemoryPermission access, PlatformSharedMemoryHandle handle, uint64_t offset) AllocateShared() argument 975 SetPermissions(void* address, size_t size, OS::MemoryPermission access) SetPermissions() argument [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/ |
H A D | posix_fs_access_test.c | 35 * @tc.name access 46 ret = access(tmpFileName, F_OK); 50 ret = access(tmpFileName, R_OK); 53 ret = access(tmpFileName, W_OK); 56 ret = access(tmpFileName, X_OK); 72 * @tc.name access 79 int32_t ret = access(tmpFileName, F_OK);
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_mnt_container_001.cpp | 42 ret = access(ACCESS_FILE_NAME, F_OK); in ChildFunc() 52 ret = access(ACCESS_FILE_NAME, F_OK); in ChildFunc() 73 ret = access(ACCESS_FILE_NAME, F_OK); in ItMntContainer001() 89 ret = access(ACCESS_FILE_NAME, F_OK); in ItMntContainer001() 95 ret = access(ACCESS_FILE_NAME, F_OK); in ItMntContainer001()
|
H A D | It_mnt_container_006.cpp | 41 ret = access(ACCESS_FILE_NAME, F_OK); in ChildFunc() 51 ret = access(ACCESS_FILE_NAME, F_OK); in ChildFunc() 61 ret = access(ACCESS_FILE_NAME, F_OK); in ChildFunc() 86 ret = access(ACCESS_FILE_NAME, F_OK); in ItMntContainer006() 101 ret = access(ACCESS_FILE_NAME, F_OK); in ItMntContainer006()
|
H A D | It_mnt_container_005.cpp | 39 ret = access(ACCESS_FILE_NAME, F_OK); in MntContainerUnshare() 45 ret = access(ACCESS_FILE_NAME, F_OK); in MntContainerUnshare() 51 ret = access(ACCESS_FILE_NAME, F_OK); in MntContainerUnshare() 57 ret = access(ACCESS_FILE_NAME, F_OK); in MntContainerUnshare()
|
/third_party/mesa3d/src/mesa/main/ |
H A D | shaderimage.c | 524 GLenum access, GLenum format, bool check_level_layer) in validate_bind_image_texture() 548 if (access != GL_READ_ONLY && in validate_bind_image_texture() 549 access != GL_WRITE_ONLY && in validate_bind_image_texture() 550 access != GL_READ_WRITE) { in validate_bind_image_texture() 551 _mesa_error(ctx, GL_INVALID_VALUE, "glBindImageTexture(access)"); in validate_bind_image_texture() 565 GLint level, GLboolean layered, GLint layer, GLenum access, in set_image_binding() 569 u->Access = access; in set_image_binding() 588 GLenum access, GLenum format) in bind_image_texture() 597 set_image_binding(u, texObj, level, layered, layer, access, format); in bind_image_texture() 602 GLboolean layered, GLint layer, GLenum access, in _mesa_BindImageTexture_no_error() 522 validate_bind_image_texture(struct gl_context *ctx, GLuint unit, GLuint texture, GLint level, GLint layer, GLenum access, GLenum format, bool check_level_layer) validate_bind_image_texture() argument 564 set_image_binding(struct gl_image_unit *u, struct gl_texture_object *texObj, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format) set_image_binding() argument 586 bind_image_texture(struct gl_context *ctx, struct gl_texture_object *texObj, GLuint unit, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format) bind_image_texture() argument 601 _mesa_BindImageTexture_no_error(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format) _mesa_BindImageTexture_no_error() argument 616 _mesa_BindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format) _mesa_BindImageTexture() argument 661 _mesa_BindImageTextureEXT(GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format) _mesa_BindImageTextureEXT() argument [all...] |
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuTexLookupVerifier.hpp | 122 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const LookupPrecision& prec, const float coordX, const int coordY, const Vec4& result); 123 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const float coordX, const int coordY, const IVec4& result); 124 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const float coordX, const int coordY, const UVec4& result); 126 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const LookupPrecision& prec, const Vec2& coord, const int coordZ, const Vec4& result); 127 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec2& coord, const int coordZ, const IVec4& result); 128 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec2& coord, const int coordZ, const UVec4& result); 130 bool isLevel3DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const LookupPrecision& prec, const Vec3& coord, const Vec4& result); 131 bool isLevel3DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec3& coord, const IVec4& result); 132 bool isLevel3DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec3& coord, const UVec4& result);
|
/third_party/python/Lib/test/ |
H A D | test_mmap.py | 139 # Test for "access" keyword parameter 144 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) 215 # Opening mmap with access=ACCESS_WRITE 217 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_WRITE) 229 # Opening mmap with access=ACCESS_COPY 231 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_COPY) 244 # Ensuring invalid access parameter raises exception 246 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, access=4) 249 # Try incompatible flags, prot and access parameters. 253 prot=mmap.PROT_READ, access [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
H A D | sja1105_dynamic_config.c | 59 * To access the COMMAND portion of the buffer, the function 65 * - .access: A bitmap of: 225 * In case of a write access with the MGMTROUTE flag set, in sja1105pqrs_l2_lookup_cmd_packing() 279 * cleared, the flag be set if the most recent access operated on an entry 283 * The trouble with this flag is that it's part of the *command* to access the 660 .access = OP_WRITE, 668 .access = (OP_READ | OP_WRITE | OP_DEL), 676 .access = (OP_READ | OP_WRITE), 684 .access = (OP_WRITE | OP_DEL), 693 .access [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | dev_cgroup.c | 17 short access = ctx->access_type >> 16; in bpf_prog1() local 32 if (access & BPF_DEVCG_ACC_READ) in bpf_prog1() 35 if (access & BPF_DEVCG_ACC_WRITE) in bpf_prog1() 38 if (access & BPF_DEVCG_ACC_MKNOD) in bpf_prog1() 44 /* Allow access to /dev/zero and /dev/random. in bpf_prog1()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | dev_cgroup.c | 17 short access = ctx->access_type >> 16; in bpf_prog1() local 32 if (access & BPF_DEVCG_ACC_READ) in bpf_prog1() 35 if (access & BPF_DEVCG_ACC_WRITE) in bpf_prog1() 38 if (access & BPF_DEVCG_ACC_MKNOD) in bpf_prog1() 44 /* Allow access to /dev/zero and /dev/random. in bpf_prog1()
|
/third_party/ltp/testcases/kernel/fs/fs-bench/ |
H A D | Makefile | 33 random-access-del-create: boxmuler.o random-access-del-create.o 35 MAKE_TARGETS := create-files random-access\ 36 random-access-del-create
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | link.c | 32 EXPECT_EQ("link_0100", access("/etc/a_link.txt", F_OK), 0); in link_0100() 43 if (access("/etc/a_link.txt", F_OK) != 0) { in link_0200() 63 if (access("/etc/a.txt", F_OK) == 0) { in link_0300() 67 if (access("/etc/a_link.txt", F_OK) == 0) { in link_0300()
|
/third_party/gn/src/base/win/ |
H A D | registry.h | 31 RegKey(HKEY rootkey, const char16_t* subkey, REGSAM access); 34 LONG Create(HKEY rootkey, const char16_t* subkey, REGSAM access); 39 REGSAM access); 42 LONG CreateKey(const char16_t* name, REGSAM access); 45 LONG Open(HKEY rootkey, const char16_t* subkey, REGSAM access); 48 LONG OpenKey(const char16_t* relative_key_name, REGSAM access); 60 // occurs while attempting to access it. 137 REGSAM access); 149 // Constructs a Registry Value Iterator with default WOW64 access. 152 // Constructs a Registry Key Iterator with specific WOW64 access, on [all...] |
/third_party/ltp/testcases/kernel/containers/mqns/ |
H A D | mqns_03.c | 63 if (access(MQUEUE1, F_OK)) in check_mqueue() 78 if (access(MQUEUE1, F_OK)) in check_mqueue() 83 if (access(MQUEUE2, F_OK)) in check_mqueue() 129 if (!access(MQUEUE1, F_OK)) in cleanup() 132 if (!access(MQUEUE2, F_OK)) in cleanup()
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
H A D | arch_timer.h | 105 void arch_timer_reg_write_cp15(int access, enum arch_timer_reg reg, u32 val) in arch_timer_reg_write_cp15() argument 107 if (access == ARCH_TIMER_PHYS_ACCESS) { in arch_timer_reg_write_cp15() 116 } else if (access == ARCH_TIMER_VIRT_ACCESS) { in arch_timer_reg_write_cp15() 131 u32 arch_timer_reg_read_cp15(int access, enum arch_timer_reg reg) in arch_timer_reg_read_cp15() argument 133 if (access == ARCH_TIMER_PHYS_ACCESS) { in arch_timer_reg_read_cp15() 140 } else if (access == ARCH_TIMER_VIRT_ACCESS) { in arch_timer_reg_read_cp15()
|
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | arch_timer.h | 100 void arch_timer_reg_write_cp15(int access, enum arch_timer_reg reg, u64 val) in arch_timer_reg_write_cp15() argument 102 if (access == ARCH_TIMER_PHYS_ACCESS) { in arch_timer_reg_write_cp15() 114 } else if (access == ARCH_TIMER_VIRT_ACCESS) { in arch_timer_reg_write_cp15() 132 u64 arch_timer_reg_read_cp15(int access, enum arch_timer_reg reg) in arch_timer_reg_read_cp15() argument 134 if (access == ARCH_TIMER_PHYS_ACCESS) { in arch_timer_reg_read_cp15() 141 } else if (access == ARCH_TIMER_VIRT_ACCESS) { in arch_timer_reg_read_cp15()
|
/third_party/node/deps/v8/src/compiler/ |
H A D | allocation-builder.h | 33 void Store(const FieldAccess& access, Node* value) { in Store() argument 34 effect_ = graph()->NewNode(simplified()->StoreField(access), allocation_, in Store() 39 void Store(ElementAccess const& access, Node* index, Node* value) { in Store() argument 40 effect_ = graph()->NewNode(simplified()->StoreElement(access), allocation_, in Store() 63 void Store(const FieldAccess& access, const ObjectRef& value) { in Store() argument 64 Store(access, jsgraph()->Constant(value)); in Store()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_genx_macros.h | 56 !iris_domain_is_read_only(addr.access), addr.access); in __gen_combine_address() 147 .access = IRIS_DOMAIN_OTHER_READ }; in ro_bo() 151 rw_bo(struct iris_bo *bo, uint64_t offset, enum iris_domain access) in rw_bo() argument 154 .access = access }; in rw_bo()
|
/kernel/linux/linux-6.6/arch/x86/kvm/mmu/ |
H A D | paging_tmpl.h | 19 * The MMU needs to be able to access/walk 32-bit and 64-bit guest page tables, 109 static inline void FNAME(protect_clean_gpte)(struct kvm_mmu *mmu, unsigned *access, in protect_clean_gpte() argument 121 /* Allow write access to dirty gptes */ in protect_clean_gpte() 124 *access &= mask; in protect_clean_gpte() 181 unsigned access; in gpte_access() local 183 access = ((gpte & VMX_EPT_WRITABLE_MASK) ? ACC_WRITE_MASK : 0) | in gpte_access() 189 access = gpte & (PT_WRITABLE_MASK | PT_USER_MASK | PT_PRESENT_MASK); in gpte_access() 191 access ^= (gpte >> PT64_NX_SHIFT); in gpte_access() 194 return access; in gpte_access() 304 gpa_t addr, u64 access) in walk_addr_generic() 302 walk_addr_generic(struct guest_walker *walker, struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, gpa_t addr, u64 access) walk_addr_generic() argument 525 walk_addr(struct guest_walker *walker, struct kvm_vcpu *vcpu, gpa_t addr, u64 access) walk_addr() argument 632 unsigned int direct_access, access; fetch() local 868 gva_to_gpa(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, gpa_t addr, u64 access, struct x86_exception *exception) gva_to_gpa() argument [all...] |
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_ipc_003.cpp | 52 int fd = access(configFileMqCount.c_str(), F_OK | W_OK | R_OK); in ItProcessPlimitsIpc003() 55 fd = access(configFileShmSize.c_str(), F_OK | W_OK | R_OK); in ItProcessPlimitsIpc003() 58 fd = access(configFileStat.c_str(), F_OK | R_OK); in ItProcessPlimitsIpc003() 61 fd = access(configFileStat.c_str(), W_OK | X_OK); in ItProcessPlimitsIpc003()
|