Home
last modified time | relevance | path

Searched refs:CTASSERT (Results 1 – 25 of 54) sorted by relevance

123

/dragonfly/usr.sbin/uefisign/
H A Dpe.c51 #ifndef CTASSERT
52 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro
95 CTASSERT(offsetof(struct pe_optional_header_32, po_size_of_headers) == 60);
96 CTASSERT(offsetof(struct pe_optional_header_32, po_checksum) == 64);
97 CTASSERT(offsetof(struct pe_optional_header_32, po_subsystem) == 68);
98 CTASSERT(offsetof(struct pe_optional_header_32, po_number_of_rva_and_sizes) == 92);
110 CTASSERT(offsetof(struct pe_optional_header_32_plus, po_size_of_headers) == 60);
111 CTASSERT(offsetof(struct pe_optional_header_32_plus, po_checksum) == 64);
112 CTASSERT(offsetof(struct pe_optional_header_32_plus, po_subsystem) == 68);
129 CTASSERT(offsetof(struct pe_section_header, psh_size_of_raw_data) == 16);
[all …]
/dragonfly/crypto/libressl/crypto/bn/
H A Dbn_isqrt.c26 #define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \ macro
168 CTASSERT(sizeof(is_square_mod_11) == 11);
176 CTASSERT(sizeof(is_square_mod_63) == 63);
184 CTASSERT(sizeof(is_square_mod_64) == 64);
193 CTASSERT(sizeof(is_square_mod_65) == 65);
H A Dbn_nist.c65 #define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \ macro
508 CTASSERT(sizeof(bbuf) == sizeof(bnbuf)); in BN_nist_mod_192()
509 CTASSERT(sizeof(rbuf) == sizeof(bnbuf)); in BN_nist_mod_192()
669 CTASSERT(sizeof(bbuf) == sizeof(bnbuf)); in BN_nist_mod_224()
670 CTASSERT(sizeof(rbuf) == sizeof(bnbuf)); in BN_nist_mod_224()
841 CTASSERT(sizeof(bbuf) == sizeof(bnbuf)); in BN_nist_mod_256()
842 CTASSERT(sizeof(rbuf) == sizeof(bnbuf)); in BN_nist_mod_256()
1073 CTASSERT(sizeof(bbuf) == sizeof(bnbuf)); in BN_nist_mod_384()
1074 CTASSERT(sizeof(rbuf) == sizeof(bnbuf)); in BN_nist_mod_384()
/dragonfly/sys/sys/
H A Dgpt.h62 #ifdef CTASSERT
63 CTASSERT(GPT_MIN_HDR_SIZE == 92);
79 #ifdef CTASSERT
80 CTASSERT(sizeof(struct gpt_ent) == 128);
H A Ddiskmbr.h173 #ifndef CTASSERT
174 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro
179 CTASSERT(sizeof (struct dos_partition) == DOSPARTSIZE);
H A Dcdefs.h582 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro
603 #if defined(_KERNEL) && !defined(CTASSERT)
604 #define CTASSERT(x) _Static_assert(x, \ macro
H A Dcsprng.h21 CTASSERT(SHA256_DIGEST_LENGTH == 32);
/dragonfly/sys/dev/virtual/nvmm/
H A Dnvmm.h45 #undef CTASSERT
46 #define CTASSERT(x) NVMM_CTASSERT(x, __LINE__) macro
/dragonfly/sys/dev/virtual/hyperv/vmbus/
H A Dvmbus_reg.h49 CTASSERT(sizeof(struct vmbus_message) == VMBUS_MSG_SIZE);
71 CTASSERT(sizeof(struct vmbus_evtflags) == VMBUS_EVTFLAGS_SIZE);
/dragonfly/crypto/libressl/crypto/
H A Dcrypto_lock.c66 #define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \ macro
69 CTASSERT((sizeof(locks) / sizeof(*locks)) == CRYPTO_NUM_LOCKS);
/dragonfly/sys/dev/acpica/
H A Dacpi_pci.c62 CTASSERT(ACPI_STATE_D0 == PCI_POWERSTATE_D0);
63 CTASSERT(ACPI_STATE_D1 == PCI_POWERSTATE_D1);
64 CTASSERT(ACPI_STATE_D2 == PCI_POWERSTATE_D2);
65 CTASSERT(ACPI_STATE_D3 == PCI_POWERSTATE_D3);
/dragonfly/sys/dev/virtual/hyperv/
H A Dhyperv_reg.h150 CTASSERT(sizeof(struct hyperv_reftsc) == PAGE_SIZE);
187 CTASSERT(sizeof(struct hypercall_postmsg_in) == HYPERCALL_POSTMSGIN_SIZE);
/dragonfly/sys/netinet/
H A Dip_carp.h84 #ifdef CTASSERT
85 CTASSERT(sizeof(struct carp_header) == 36);
H A Dudp_var.h119 CTASSERT((sizeof(struct udpstat) & __VM_CACHELINE_MASK) == 0);
H A Dip_var.h151 CTASSERT((sizeof(struct ip_stats) & __VM_CACHELINE_MASK) == 0);
/dragonfly/sys/dev/virtual/virtio/net/
H A Dif_vtnetvar.h242 CTASSERT(((VTNET_MAX_RX_SEGS - 1) * MCLBYTES) >= VTNET_MAX_RX_SIZE);
243 CTASSERT(((VTNET_MAX_TX_SEGS - 1) * MCLBYTES) >= VTNET_MAX_MTU);
/dragonfly/sys/dev/virtual/nvmm/x86/
H A Dnvmm_x86.h271 CTASSERT(sizeof(union nvmm_x64_state_fpu_addr) == 8);
277 CTASSERT(sizeof(struct nvmm_x64_state_fpu_mmreg) == 16);
281 CTASSERT(sizeof(struct nvmm_x64_state_fpu_xmmreg) == 16);
298 CTASSERT(sizeof(struct nvmm_x64_state_fpu) == 512);
711 CTASSERT(sizeof(struct nvmm_x86_xsave) == 512 + 64);
H A Dnvmm_x86_svm.c407 CTASSERT(sizeof(struct vmcb_ctrl) == 1024);
416 CTASSERT(sizeof(struct vmcb_segment) == 16);
466 CTASSERT(sizeof(struct vmcb_state) == 0xC00);
473 CTASSERT(sizeof(struct vmcb) == PAGE_SIZE);
474 CTASSERT(offsetof(struct vmcb, state) == 0x400);
1871 CTASSERT(sizeof(cpudata->gprs) == sizeof(state->gprs)); in svm_vcpu_setstate()
1899 CTASSERT(sizeof(cpudata->drs) == sizeof(state->drs)); in svm_vcpu_setstate()
1963 CTASSERT(sizeof(cpudata->gxsave.fpu) == sizeof(state->fpu)); in svm_vcpu_setstate()
2019 CTASSERT(sizeof(cpudata->gprs) == sizeof(state->gprs)); in svm_vcpu_getstate()
2039 CTASSERT(sizeof(cpudata->drs) == sizeof(state->drs)); in svm_vcpu_getstate()
[all …]
/dragonfly/sys/dev/drm/include/linux/
H A Dbug.h40 CTASSERT(((n) != 0) && (powerof2((n))))
/dragonfly/stand/boot/common/
H A Dfs.h350 #ifndef CTASSERT
351 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro
357 CTASSERT(sizeof(struct fs) == 1376);
/dragonfly/sys/kern/
H A Dsubr_sbuf.c126 #ifdef CTASSERT
127 CTASSERT(powerof2(SBUF_MAXEXTENDSIZE));
128 CTASSERT(powerof2(SBUF_MAXEXTENDINCR));
/dragonfly/lib/libc/gen/
H A Dvis.c153 #ifndef CTASSERT
154 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro
159 CTASSERT(MB_LEN_MAX <= sizeof(uint64_t));
/dragonfly/sys/platform/pc64/x86_64/
H A Dminidump_machdep.c49 CTASSERT(sizeof(struct kerneldumpheader) == 512);
71 CTASSERT(sizeof(*vm_page_dump) == 8);
/dragonfly/sys/dev/drm/
H A Dlinux_list_sort.c73 CTASSERT((CHAR_BIT * sizeof(struct list_head *)) <= 64); in list_sort()
/dragonfly/crypto/libressl/ssl/
H A Dtls12_lib.c106 CTASSERT(sizeof(s->session->master_key) == SSL_MAX_MASTER_KEY_LENGTH); in tls12_derive_master_secret()

123