| /xnu-11215/iokit/DriverKit/ |
| H A D | bounded_array.h | 52 template <typename T, size_t N, typename TrappingPolicy> 56 T data_[N]; 64 return iterator(data_, data_, data_ + N); in begin() 69 return const_iterator(data_, data_, data_ + N); in begin() 74 return iterator(data_ + N, data_, data_ + N); in end() 79 return const_iterator(data_ + N, data_, data_ + N); in end() 84 return N; in size() 89 return N; in length()
|
| H A D | bounded_array_ref.h | 124 template <size_t N> 125 …constexpr bounded_array_ref(bounded_array<T, N, TrappingPolicy>& data) : data_(data.data()), size_… in bounded_array_ref() 136 template <size_t N> 137 constexpr bounded_array_ref(T (&array)[N]) : data_(array), size_(static_cast<uint32_t>(N)) in bounded_array_ref() 139 if (__improbable(N > UINT32_MAX)) { in bounded_array_ref()
|
| H A D | OSBoundedArray.h | 43 template <typename T, size_t N> 44 using OSBoundedArray = libkern::bounded_array<T, N, os_detail::panic_trapping_policy>;
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | bounded_array.h | 52 template <typename T, size_t N, typename TrappingPolicy> 56 T data_[N]; 64 return iterator(data_, data_, data_ + N); in begin() 69 return const_iterator(data_, data_, data_ + N); in begin() 74 return iterator(data_ + N, data_, data_ + N); in end() 79 return const_iterator(data_ + N, data_, data_ + N); in end() 84 return N; in size() 89 return N; in length()
|
| H A D | bounded_array_ref.h | 124 template <size_t N> 125 …constexpr bounded_array_ref(bounded_array<T, N, TrappingPolicy>& data) : data_(data.data()), size_… in bounded_array_ref() 136 template <size_t N> 137 constexpr bounded_array_ref(T (&array)[N]) : data_(array), size_(static_cast<uint32_t>(N)) in bounded_array_ref() 139 if (__improbable(N > UINT32_MAX)) { in bounded_array_ref()
|
| H A D | OSBoundedArray.h | 43 template <typename T, size_t N> 44 using OSBoundedArray = libkern::bounded_array<T, N, os_detail::panic_trapping_policy>;
|
| /xnu-11215/EXTERNAL_HEADERS/ |
| H A D | ptrcheck.h | 70 #define __counted_by(N) __attribute__((__counted_by__(N))) argument 74 #define __counted_by_or_null(N) __attribute__((__counted_by_or_null__(N))) argument 78 #define __sized_by(N) __attribute__((__sized_by__(N))) argument 82 #define __sized_by_or_null(N) __attribute__((__sized_by_or_null__(N))) argument 276 #define __counted_by(N) argument 277 #define __counted_by_or_null(N) argument 278 #define __sized_by(N) argument 279 #define __sized_by_or_null(N) argument
|
| /xnu-11215/libkern/ |
| H A D | mkext.c | 95 int lchild[N + 1], rchild[N + 257], parent[N + 1]; 98 u_int8_t text_buf[N + F - 1]; 112 u_int8_t text_buf[N + F - 1]; in decompress_lzss() 122 for (i = 0; i < N - F; i++) { in decompress_lzss() 125 r = N - F; in decompress_lzss() 147 r &= (N - 1); in decompress_lzss() 168 r &= (N - 1); in decompress_lzss() 194 for (i = 0; i < N - F; i++) { in init_state() 197 for (i = N + 1; i <= N + 256; i++) { in init_state() 200 for (i = 0; i < N; i++) { in init_state() [all …]
|
| /xnu-11215/osfmk/corecrypto/ |
| H A D | ccmode_internal.h | 501 #define _CCMODE_CCM_NONCE(N) ((struct _ccmode_ccm_nonce *)(N)) argument 502 #define CCMODE_CCM_KEY_MAC(N) (_CCMODE_CCM_NONCE(N)->MAC) argument 503 #define CCMODE_CCM_KEY_A_I(N) (_CCMODE_CCM_NONCE(N)->A_i) argument 504 #define CCMODE_CCM_KEY_B_I(N) (_CCMODE_CCM_NONCE(N)->B_i) argument 505 #define CCMODE_CCM_KEY_PAD_LEN(N) (_CCMODE_CCM_NONCE(N)->buflen) argument 506 #define CCMODE_CCM_KEY_PAD(N) (_CCMODE_CCM_NONCE(N)->buf) argument 507 #define CCMODE_CCM_KEY_MAC_LEN(N) (_CCMODE_CCM_NONCE(N)->mac_size) argument 508 #define CCMODE_CCM_KEY_NONCE_LEN(N) (_CCMODE_CCM_NONCE(N)->nonce_size) argument 509 #define CCMODE_CCM_KEY_AUTH_LEN(N) (_CCMODE_CCM_NONCE(N)->b_i_len) argument
|
| /xnu-11215/bsd/sys/ |
| H A D | constrained_ctypes.h | 551 #define __CCT_COUNT_ARGS1(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, N, ...) N argument 554 #define __CCT_DISPATCH1(base, N, ...) __CONCAT(base, N)(__VA_ARGS__) argument
|
| /xnu-11215/tests/bounded_array_src/ |
| H A D | test_policy.h | 18 template <typename T, size_t N> 19 using test_bounded_array = libkern::bounded_array<T, N, test_policy>;
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_kqueue.c | 392 int N; in skt_kqueue_lowat_basic_rx() local 394 N = 3; in skt_kqueue_lowat_basic_rx() 396 N = 1; in skt_kqueue_lowat_basic_rx() 398 for (i = 0; i < N; i++) { in skt_kqueue_lowat_basic_rx() 505 int N; in skt_kqueue_lowat_basic_tx() local 507 N = 4; in skt_kqueue_lowat_basic_tx() 509 N = 2; in skt_kqueue_lowat_basic_tx() 511 for (i = 0; i < N; i++) { in skt_kqueue_lowat_basic_tx() 525 for (i = 0; i < N; i++) { in skt_kqueue_lowat_basic_tx()
|
| /xnu-11215/EXTERNAL_HEADERS/CoreTrust/ |
| H A D | CTConfig.h | 27 #define __counted_by(N) argument 28 #define __sized_by(N) argument
|
| /xnu-11215/tests/bounded_array_ref_src/ |
| H A D | test_policy.h | 44 template <typename T, size_t N> 45 using test_bounded_array = libkern::bounded_array<T, N, test_policy>;
|
| /xnu-11215/osfmk/i386/ |
| H A D | tsc.c | 182 uint64_t N = (uint64_t) tsc_leafp->numerator; in tsc_init() local 205 assert(N != 0); in tsc_init() 207 tscFreq = refFreq * N / M; in tsc_init() 213 N, M); in tsc_init()
|
| /xnu-11215/EXTERNAL_HEADERS/image4/shim/ |
| H A D | base.h | 338 #define OS_COUNTED_BY(N) __counted_by(N) argument 339 #define OS_SIZED_BY(N) __sized_by(N) argument
|
| /xnu-11215/doc/lifecycle/ |
| H A D | startup.md | 20 for (subsystem 0 -> N) { 21 for (rank 0 -> N) { 122 N/A. 134 N/A. 174 N/A. 301 N/A.
|
| /xnu-11215/bsd/i386/ |
| H A D | param.h | 170 #define DELAY(n) { int N = (n); while (--N > 0); }
|
| /xnu-11215/bsd/arm/ |
| H A D | param.h | 146 #define DELAY(n) { int N = (n); while (--N > 0); }
|
| /xnu-11215/libkern/os/ |
| H A D | base.h | 380 #define OS_COUNTED_BY(N) __counted_by(N) argument 381 #define OS_SIZED_BY(N) __sized_by(N) argument
|
| /xnu-11215/EXTERNAL_HEADERS/corecrypto/ |
| H A D | cc_config.h | 637 #define CC_NONNULL(N) __attribute__((__nonnull__ N)) argument 652 #define CC_NONNULL(N) __attribute__((nonnull N)) argument 666 #define CC_NONNULL(N) argument
|
| /xnu-11215/doc/building/ |
| H A D | xnu_version.md | 31 In particular, the string is formatted as: `J[.N[.R[S[L]]]]`, where: 34 * `N` represents the kernel minor version number (integer)
|
| /xnu-11215/bsd/net/ |
| H A D | strict_type_cnv_private.h | 496 #define __STC_COUNT_ARGS1(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, N, ...) N argument 499 #define __STC_DISPATCH1(base, N, ...) __CONCAT(base, N)(__VA_ARGS__) argument
|
| /xnu-11215/libkern/c++/ |
| H A D | OSUnserialize.cpp | 431 # define YYSTACK_BYTES(N) \ argument 432 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ 721 # define YYLLOC_DEFAULT(Current, Rhs, N) \ argument 723 if (YYID (N)) \ 727 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ 728 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ 1276 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) argument
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_kern.c | 4539 const int N = 10; in kmem_realloc_basic_test() local 4558 kmem_test_assert_map(map, N, 1); in kmem_realloc_basic_test() 4559 for (int pg = 0; pg < N - GL; pg++) { in kmem_realloc_basic_test() 4562 for (int pg = N - GL; pg < N; pg++) { in kmem_realloc_basic_test() 4570 newaddr = kmem_realloc_guard(map, addr, ptoa(N), ptoa(N + 3), in kmem_realloc_basic_test() 4577 kmem_test_assert_map(map, N + 3, 1); in kmem_realloc_basic_test() 4599 for (int pg = N - GL; pg < N + 3 - GL; pg++) { in kmem_realloc_basic_test() 4602 for (int pg = N + 3 - GL; pg < N + 3; pg++) { in kmem_realloc_basic_test() 4611 newaddr = kmem_realloc_guard(map, addr, ptoa(N + 3), ptoa(N - 2), in kmem_realloc_basic_test() 4615 kmem_test_assert_map(map, N - 2, 1); in kmem_realloc_basic_test() [all …]
|