/freebsd/sys/sys/ |
H A D | sysctl.h | 332 #define SYSCTL_ROOT_NODE(nbr, name, access, handler, descr) \ argument 334 nbr, #name, CTLTYPE_NODE|(access), NULL, 0, \ 336 CTASSERT(((access) & CTLTYPE) == 0 || \ 337 ((access) & SYSCTL_CT_ASSERT_MASK) == CTLTYPE_NODE) 340 #define SYSCTL_NODE(parent, nbr, name, access, handler, descr) \ argument 341 SYSCTL_NODE_WITH_LABEL(parent, nbr, name, access, handler, descr, NULL) 343 #define SYSCTL_NODE_WITH_LABEL(parent, nbr, name, access, handler, descr, label) \ argument 344 SYSCTL_OID_GLOBAL(parent, nbr, name, CTLTYPE_NODE|(access), \ 346 SYSCTL_ENFORCE_FLAGS(access); \ 347 CTASSERT(((access) & CTLTYPE) == 0 || \ [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/ |
H A D | zfs_acl_chmod_rwx_004_pos.ksh | 61 typeset access=$4 64 if [[ $rflag == "allow" && $access == execute ]]; then 65 rwx_node $user $node $access 72 log_note "SUCCESS: rwx_node $user $node $access" 74 log_fail "FAIL: rwx_node $user $node $access" 77 $log rwx_node $user $node $access 85 typeset access=$2 100 log_must usr_exec $CHMOD A+everyone@:$access:$flag $node 101 log_must usr_exec $CHMOD A+user:$ZFS_ACL_OTHER1:$access:$rflag $node 102 check_access $log $ZFS_ACL_OTHER1 $node $access $rflag [all …]
|
/freebsd/contrib/kyua/utils/fs/ |
H A D | auto_cleaners_test.cpp | 54 ATF_REQUIRE(::access("root", X_OK) == 0); in ATF_TEST_CASE_BODY() 60 ATF_REQUIRE(::access("root", X_OK) == 0); in ATF_TEST_CASE_BODY() 62 ATF_REQUIRE(::access("root", X_OK) == -1); in ATF_TEST_CASE_BODY() 75 ATF_REQUIRE(::access("root", X_OK) == 0); in ATF_TEST_CASE_BODY() 78 ATF_REQUIRE(::access("root", X_OK) == -1); in ATF_TEST_CASE_BODY() 92 ATF_REQUIRE(::access((fs::path("tmp") / path_template).c_str(), in ATF_TEST_CASE_BODY() 96 ATF_REQUIRE(::access(auto_directory.directory().c_str(), X_OK) == 0); in ATF_TEST_CASE_BODY() 111 ATF_REQUIRE(::access(file.c_str(), R_OK) == 0); in ATF_TEST_CASE_BODY() 117 ATF_REQUIRE(::access(file.c_str(), R_OK) == 0); in ATF_TEST_CASE_BODY() 119 ATF_REQUIRE(::access(file.c_str(), R_OK) == -1); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/sys/x86/x86/ |
H A D | dbreg.c | 55 int access, struct dbreg *d) in dbreg_set_watchreg() argument 62 if (access == DBREG_DR7_EXEC) in dbreg_set_watchreg() 94 d->dr[7] |= DBREG_DR7_SET(watchnum, len, access, in dbreg_set_watchreg() 133 dbreg_set_watchpoint(vm_offset_t addr, vm_size_t size, int access) in dbreg_set_watchpoint() argument 147 if (access != DBREG_DR7_EXEC && access != DBREG_DR7_WRONLY && in dbreg_set_watchpoint() 148 access != DBREG_DR7_RDWR) in dbreg_set_watchpoint() 175 dbreg_set_watchreg(i, addr, wsize, access, d); in dbreg_set_watchpoint() 278 kdb_cpu_set_watchpoint(vm_offset_t addr, vm_size_t size, int access) in kdb_cpu_set_watchpoint() argument 282 switch (access) { in kdb_cpu_set_watchpoint() 284 access = DBREG_DR7_WRONLY; in kdb_cpu_set_watchpoint() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | UdtRecordCompleter.h | 88 lldb::AccessType access; member 97 access(lldb::eAccessPublic), bitfield_width(0), base_offset(0) {} in Member() 99 clang::QualType qt, lldb::AccessType access, uint32_t bitfield_width) in Member() 101 qt(qt), access(access), bitfield_width(bitfield_width), in Member() 107 access, bitfield_width)); in ConvertToStruct() 110 access = lldb::eAccessPublic; in ConvertToStruct() 122 lldb::AccessType access, uint64_t bitfield_width); 130 llvm::codeview::TypeIndex ti, llvm::codeview::MemberAccess access, 133 llvm::codeview::MemberAccess access,
|
/freebsd/lib/libsys/x86/ |
H A D | pkru.c | 47 x86_pkru_get_perm_unsup(u_int keyidx, int *access, int *modify) in x86_pkru_get_perm_unsup() argument 55 x86_pkru_get_perm_hw(u_int keyidx, int *access, int *modify) in x86_pkru_get_perm_hw() argument 65 *access = (pkru & (1 << keyidx)) == 0; in x86_pkru_get_perm_hw() 78 x86_pkru_set_perm_unsup(u_int keyidx, int access, int modify) in x86_pkru_set_perm_unsup() argument 86 x86_pkru_set_perm_hw(u_int keyidx, int access, int modify) in x86_pkru_set_perm_hw() argument 97 if (!access) in x86_pkru_set_perm_hw()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_access.c | 78 ATF_REQUIRE(access(path, mode[i]) != 0); in ATF_TC_BODY() 104 ATF_REQUIRE(access(NULL, mode[i]) != 0); in ATF_TC_BODY() 109 ATF_REQUIRE(access((char *)-1, mode[i]) != 0); in ATF_TC_BODY() 129 ATF_REQUIRE(access("/usr", -1) != 0); in ATF_TC_BODY() 157 ATF_REQUIRE(access("/etc/passwd//", mode[i]) != 0); in ATF_TC_BODY() 176 ATF_REQUIRE(access("", mode[i]) != 0); in ATF_TC_BODY() 204 ATF_REQUIRE(access(path, W_OK) != 0); in ATF_TC_BODY() 236 ATF_REQUIRE(access(buf, mode[i]) != 0); in ATF_TC_BODY()
|
/freebsd/sys/contrib/openzfs/lib/libzfs_core/ |
H A D | libzfs_core.abi | 228 <data-member access='public' layout-offset-in-bits='0'> 231 <data-member access='public' layout-offset-in-bits='32'> 234 <data-member access='public' layout-offset-in-bits='64'> 237 <data-member access='public' layout-offset-in-bits='128'> 636 <data-member access='public' layout-offset-in-bits='0'> 643 <data-member access='public' layout-offset-in-bits='0'> 646 <data-member access='public' layout-offset-in-bits='64'> 649 <data-member access='public' layout-offset-in-bits='128'> 655 <data-member access='public' layout-offset-in-bits='0'> 666 <data-member access='public' layout-offset-in-bits='0'> [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl_access.cpp | 206 if (LIKELY(!(cur.access() & old.access()))) in CheckRaces() 210 LIKELY(cur.access() == old.access() && old.IsRWWeakerOrEqual(typ))) { in CheckRaces() 234 # define LOAD_CURRENT_SHADOW(cur, shadow_mem) UNUSED int access = 0, shadow = 0 240 m128 access, AccessType typ) { in ContainsSameAccess() argument 248 const m128 same = _mm_cmpeq_epi32(shadow, access); in ContainsSameAccess() 263 m128 same = _mm_cmpeq_epi32(masked_shadow, access); in ContainsSameAccess() 306 m128 shadow, m128 access, AccessType typ) { in CheckRaces() argument 312 const m128 access_and = _mm_and_si128(access, shadow); in CheckRaces() 313 const m128 access_xor = _mm_xor_si128(access, shadow); in CheckRaces() 385 const m128 access = _mm_set1_epi32(static_cast<u32>((cur).raw())); \ [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | lookup.cc | 148 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F() 174 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F() 195 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F() 296 EXPECT_NE(0, access(FULLPATH, F_OK)); in TEST_F() 308 EXPECT_NE(0, access(FULLPATH, F_OK)); in TEST_F() 325 ASSERT_EQ(-1, access(FULLPATH, F_OK)); in TEST_F() 345 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F() 347 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F() 362 EXPECT_NE(0, access("mountpoint/does_not_exist", F_OK)); in TEST_F() 364 EXPECT_NE(0, access("mountpoint/does_not_exist", F_OK)); in TEST_F() [all …]
|
H A D | forget.cc | 86 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F() 87 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F() 139 ASSERT_EQ(0, access(FULLFPATH, F_OK)) << strerror(errno); in TEST_F() 145 ASSERT_EQ(0, access(FULLFPATH, F_OK)) << strerror(errno); in TEST_F() 171 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F() 177 ASSERT_EQ(0, access(FULLPATH, F_OK)) << strerror(errno); in TEST_F()
|
/freebsd/usr.sbin/bhyve/amd64/ |
H A D | task_switch.c | 129 seg_desc.access = usd->sd_type | usd->sd_dpl << 5 | usd->sd_p << 7; in usd_to_seg_desc() 130 seg_desc.access |= usd->sd_xx << 12; in usd_to_seg_desc() 131 seg_desc.access |= usd->sd_def32 << 14; in usd_to_seg_desc() 132 seg_desc.access |= usd->sd_gran << 15; in usd_to_seg_desc() 176 uint32_t limit, access; in desc_table_limit_check() local 180 error = vm_get_desc(vcpu, reg, &base, &limit, &access); in desc_table_limit_check() 184 if (SEG_DESC_UNUSABLE(access) || !SEG_DESC_PRESENT(access)) in desc_table_limit_check() 209 uint32_t limit, access; in desc_table_rw() local 213 error = vm_get_desc(vcpu, reg, &base, &limit, &access); in desc_table_rw() 363 seg_desc->access = 0x10000; /* unusable */ in validate_seg_desc() [all …]
|
/freebsd/sys/amd64/vmm/intel/ |
H A D | vmcs.c | 256 uint32_t base, limit, access; in vmcs_setdesc() local 258 error = vmcs_seg_desc_encoding(seg, &base, &limit, &access); in vmcs_setdesc() 270 if (access != VMCS_INVALID_ENCODING) { in vmcs_setdesc() 271 if ((error = vmwrite(access, desc->access)) != 0) in vmcs_setdesc() 284 uint32_t base, limit, access; in vmcs_getdesc() local 287 error = vmcs_seg_desc_encoding(seg, &base, &limit, &access); in vmcs_getdesc() 301 if (access != VMCS_INVALID_ENCODING) { in vmcs_getdesc() 302 if ((error = vmread(access, &u64)) != 0) in vmcs_getdesc() 304 desc->access = u64; in vmcs_getdesc() 508 SNAPSHOT_VAR_OR_LEAVE(desc.access, meta, ret, done); in vmcs_snapshot_desc() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs.abi | 698 <data-member access='public' layout-offset-in-bits='0'> 701 <data-member access='public' layout-offset-in-bits='64'> 704 <data-member access='public' layout-offset-in-bits='128'> 710 <data-member access='public' layout-offset-in-bits='0'> 713 <data-member access='public' layout-offset-in-bits='64'> 716 <data-member access='public' layout-offset-in-bits='128'> 719 <data-member access='public' layout-offset-in-bits='192'> 722 <data-member access='public' layout-offset-in-bits='256'> 725 <data-member access='public' layout-offset-in-bits='320'> 1162 <data-member access='public' layout-offset-in-bits='0'> [all …]
|
/freebsd/sys/dev/cxgbe/firmware/ |
H A D | t4fw_cfg_uwire.txt | 68 # Virtual Machines to directly access T4 functionality via SR-IOV 177 # NVI_NIC = 4 # NIC access to NPORTS 184 # NVI_OFLD = 0 # Offload uses NIC function to access ports 191 # NVI_RDMA = 0 # RDMA uses NIC function to access ports 202 # NVI_ISCSI = 4 # ISCSI access to NPORTS 209 # NVI_FCOE = 4 # FCOE access to NPORTS 316 cmask = all # access to all channels 317 pmask = 0x1 # access to only one port 328 cmask = all # access to all channels 329 pmask = 0x2 # access to only one port [all …]
|
H A D | t5fw_cfg_uwire.txt | 53 # Machines to directly access T6 functionality via SR-IOV Virtual Functions 212 # NVI_NIC = 4 # NIC access to NPORTS 219 # NVI_OFLD = 0 # Offload uses NIC function to access ports 226 # NVI_RDMA = 0 # RDMA uses NIC function to access ports 237 # NVI_ISCSI = 4 # ISCSI access to NPORTS 244 # NVI_FCOE = 4 # FCOE access to NPORTS 352 cmask = all # access to all channels 353 pmask = 0x1 # access to only one port 365 cmask = all # access to all channels 366 pmask = 0x2 # access to only one port [all …]
|
H A D | t6fw_cfg_uwire.txt | 53 # Machines to directly access T6 functionality via SR-IOV Virtual Functions 229 # NVI_NIC = 4 # NIC access to NPORTS 236 # NVI_OFLD = 0 # Offload uses NIC function to access ports 243 # NVI_RDMA = 0 # RDMA uses NIC function to access ports 254 # NVI_ISCSI = 4 # ISCSI access to NPORTS 261 # NVI_FCOE = 4 # FCOE access to NPORTS 367 cmask = all # access to all channels 368 pmask = 0x1 # access to only one port 380 cmask = all # access to all channels 381 pmask = 0x2 # access to only one port [all …]
|
/freebsd/tools/regression/security/access/ |
H A D | testaccess.c | 217 error = access("test1", R_OK); in main() 246 error = access("test2", R_OK); in main() 262 error = access("test3", R_OK); in main() 300 error = access("test4", R_OK); in main() 314 error = access("test5", R_OK); in main() 330 error = access("test6", R_OK); in main()
|
/freebsd/sys/amd64/vmm/amd/ |
H A D | vmcb.c | 402 attrib = ((desc->access & 0xF000) >> 4) | (desc->access & 0xFF); in vmcb_setdesc() 403 if (SEG_DESC_UNUSABLE(desc->access)) { in vmcb_setdesc() 443 desc->access = 0; in vmcb_getdesc() 447 desc->access = ((seg->attrib & 0xF00) << 4) | in vmcb_getdesc() 461 if ((desc->access & 0x80) == 0) in vmcb_getdesc() 462 desc->access |= 0x10000; /* Unusable segment */ in vmcb_getdesc() 516 SNAPSHOT_VAR_OR_LEAVE(desc.access, meta, ret, done); in vmcb_snapshot_desc() 520 SNAPSHOT_VAR_OR_LEAVE(desc.access, meta, ret, done); in vmcb_snapshot_desc()
|
/freebsd/tools/test/stress2/misc/ |
H A D | pkru.sh | 53 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); 54 int x86_pkru_set_perm(unsigned int keyidx, int access, int modify); 112 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); 113 int x86_pkru_set_perm(unsigned int keyidx, int access, int modify); 176 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); 177 int x86_pkru_set_perm(unsigned int keyidx, int access, int modify); 265 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); 266 int x86_pkru_set_perm(unsigned int keyidx, int access, int modify); 404 int access, error, modify, orig_access, orig_modify; 409 access = check_access ? 0 : 1; [all …]
|
/freebsd/sys/contrib/openzfs/lib/libuutil/ |
H A D | libuutil.abi | 637 <data-member access='public' layout-offset-in-bits='0'> 644 <data-member access='public' layout-offset-in-bits='0'> 647 <data-member access='public' layout-offset-in-bits='64'> 650 <data-member access='public' layout-offset-in-bits='128'> 656 <data-member access='public' layout-offset-in-bits='0'> 667 <data-member access='public' layout-offset-in-bits='0'> 670 <data-member access='public' layout-offset-in-bits='64'> 673 <data-member access='public' layout-offset-in-bits='80'> 678 <data-member access='public' layout-offset-in-bits='0'> 683 <data-member access='public' layout-offset-in-bits='0'> [all …]
|
/freebsd/lib/libsys/i386/ |
H A D | i386_set_watch.c | 36 int access, struct dbreg * d) in i386_set_watch() argument 51 switch (access) { in i386_set_watch() 71 mask |= access; in i386_set_watch()
|
/freebsd/sys/amd64/include/ |
H A D | vmm.h | 523 uint32_t access; member 525 #define SEG_DESC_TYPE(access) ((access) & 0x001f) argument 526 #define SEG_DESC_DPL(access) (((access) >> 5) & 0x3) argument 527 #define SEG_DESC_PRESENT(access) (((access) & 0x0080) ? 1 : 0) argument 528 #define SEG_DESC_DEF32(access) (((access) & 0x4000) ? 1 : 0) argument 529 #define SEG_DESC_GRANULARITY(access) (((access) & 0x8000) ? 1 : 0) argument 530 #define SEG_DESC_UNUSABLE(access) (((access) & 0x10000) ? 1 : 0) argument
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_mgmt.h | 96 extern void ocs_mgmt_emit_property_name(ocs_textbuf_t *textbuf, int access, const char *name); 97 extern void ocs_mgmt_emit_string(ocs_textbuf_t *textbuf, int access, const char *name, const char *… 99 extern void ocs_mgmt_emit_int(ocs_textbuf_t *textbuf, int access, const char *name, const char *fmt… 100 extern void ocs_mgmt_emit_boolean(ocs_textbuf_t *textbuf, int access, const char *name, const int v…
|
/freebsd/sys/contrib/device-tree/Bindings/spi/ |
H A D | spi-sprd-adi.txt | 3 ADI is the abbreviation of Anolog-Digital interface, which is used to access 9 48 hardware channels to access analog chip. For 2 software read/write channels, 10 users should set ADI registers to access analog chip. For hardware channels, 13 then users can access the mapped analog chip address by this hardware channel 19 the analog chip address where user want to access by hardware components. 21 Since we have multi-subsystems will use unique ADI to access analog chip, when 48 value specifies the analog chip address where user want to access
|