Home
last modified time | relevance | path

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

123456789

/freebsd-12.1/sys/sys/
H A Dsysctl.h305 CTASSERT(((access) & CTLTYPE) == 0 || \
315 CTASSERT(((access) & CTLTYPE) == 0 || \
324 CTASSERT(((access) & CTLTYPE) == 0 || \
332 CTASSERT(((access) & CTLTYPE) == 0 || \
343 CTASSERT(((access) & CTLTYPE) == 0 || \
349 CTASSERT(((access) & CTLTYPE) == 0 || \
360 CTASSERT(!(access & CTLFLAG_WR)); \
367 CTASSERT(!(access & CTLFLAG_WR)); \
381 CTASSERT(((access) & CTLTYPE) == 0 && \
387 CTASSERT(((access) & CTLTYPE) == 0); \
[all …]
H A Dassym.h49 #define OFFSET_CTASSERT CTASSERT
58 CTASSERT(__builtin_types_compatible_p(__typeof(((struct parenttype *)(0x0))-> name), datatype)); \
H A Dpcpu.h224 #ifdef CTASSERT
227 CTASSERT(sizeof(struct pcpu) == UMA_PCPU_ALLOC_SIZE);
233 CTASSERT((PAGE_SIZE / sizeof(struct pcpu)) * sizeof(struct pcpu) == PAGE_SIZE);
/freebsd-12.1/sys/dev/iscsi/
H A Discsi_proto.h37 #ifndef CTASSERT
38 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro
80 CTASSERT(sizeof(struct iscsi_bhs) == ISCSI_BHS_SIZE);
106 CTASSERT(sizeof(struct iscsi_bhs_scsi_command) == ISCSI_BHS_SIZE);
132 CTASSERT(sizeof(struct iscsi_bhs_scsi_response) == ISCSI_BHS_SIZE);
290 CTASSERT(sizeof(struct iscsi_bhs_data_out) == ISCSI_BHS_SIZE);
315 CTASSERT(sizeof(struct iscsi_bhs_data_in) == ISCSI_BHS_SIZE);
333 CTASSERT(sizeof(struct iscsi_bhs_r2t) == ISCSI_BHS_SIZE);
348 CTASSERT(sizeof(struct iscsi_bhs_nop_out) == ISCSI_BHS_SIZE);
364 CTASSERT(sizeof(struct iscsi_bhs_nop_in) == ISCSI_BHS_SIZE);
[all …]
/freebsd-12.1/sys/dev/hyperv/netvsc/
H A Dif_hnreg.h105 CTASSERT(sizeof(struct hn_nvs_init) >= HN_NVS_REQSIZE_MIN);
122 CTASSERT(sizeof(struct hn_nvs_ndis_conf) >= HN_NVS_REQSIZE_MIN);
134 CTASSERT(sizeof(struct hn_nvs_ndis_init) >= HN_NVS_REQSIZE_MIN);
145 CTASSERT(sizeof(struct hn_nvs_datapath) >= HN_NVS_REQSIZE_MIN);
153 CTASSERT(sizeof(struct hn_nvs_rxbuf_conn) >= HN_NVS_REQSIZE_MIN);
175 CTASSERT(sizeof(struct hn_nvs_rxbuf_disconn) >= HN_NVS_REQSIZE_MIN);
183 CTASSERT(sizeof(struct hn_nvs_chim_conn) >= HN_NVS_REQSIZE_MIN);
197 CTASSERT(sizeof(struct hn_nvs_chim_disconn) >= HN_NVS_REQSIZE_MIN);
207 CTASSERT(sizeof(struct hn_nvs_subch_req) >= HN_NVS_REQSIZE_MIN);
230 CTASSERT(sizeof(struct hn_nvs_rndis) >= HN_NVS_REQSIZE_MIN);
[all …]
/freebsd-12.1/sys/sys/disk/
H A Dgpt.h51 #ifdef CTASSERT
52 CTASSERT(sizeof(gpt_uuid_t) == 16);
81 #ifdef CTASSERT
82 CTASSERT(offsetof(struct gpt_hdr, padding) == 92);
97 #ifdef CTASSERT
98 CTASSERT(sizeof(struct gpt_ent) == 128);
H A Dmbr.h78 #ifdef CTASSERT
79 CTASSERT(sizeof (struct dos_partition) == DOSPARTSIZE);
H A Dvtoc.h104 #ifdef CTASSERT
105 CTASSERT(sizeof(struct vtoc8) == 512);
/freebsd-12.1/sys/net/altq/
H A Daltq_cbq.h59 CTASSERT(CBQCLF_RED == RMCF_RED);
60 CTASSERT(CBQCLF_ECN == RMCF_ECN);
61 CTASSERT(CBQCLF_RIO == RMCF_RIO);
62 CTASSERT(CBQCLF_FLOWVALVE == RMCF_FLOWVALVE);
63 CTASSERT(CBQCLF_CLEARDSCP == RMCF_CLEARDSCP);
64 CTASSERT(CBQCLF_CODEL == RMCF_CODEL);
/freebsd-12.1/sys/compat/ia32/
H A Dia32_sysvec.c77 CTASSERT(sizeof(struct ia32_mcontext) == 640);
78 CTASSERT(sizeof(struct ia32_ucontext) == 704);
79 CTASSERT(sizeof(struct ia32_sigframe) == 800);
80 CTASSERT(sizeof(struct siginfo32) == 64);
82 CTASSERT(sizeof(struct ia32_mcontext4) == 260);
83 CTASSERT(sizeof(struct ia32_ucontext4) == 324);
84 CTASSERT(sizeof(struct ia32_sigframe4) == 408);
/freebsd-12.1/sys/dev/hyperv/vmbus/
H A Dvmbus_reg.h52 CTASSERT(sizeof(struct vmbus_message) == VMBUS_MSG_SIZE);
74 CTASSERT(sizeof(struct vmbus_evtflags) == VMBUS_EVTFLAGS_SIZE);
102 CTASSERT(sizeof(struct vmbus_mnf) == PAGE_SIZE);
133 CTASSERT(sizeof(struct vmbus_bufring) == PAGE_SIZE);
263 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_conn,
276 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_subconn,
332 CTASSERT(sizeof(struct vmbus_chanmsg_choffer) <= VMBUS_MSG_DSIZE_MAX);
/freebsd-12.1/usr.sbin/uefisign/
H A Dpe.c53 #ifndef CTASSERT
54 #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 …]
/freebsd-12.1/sys/compat/linuxkpi/common/include/linux/
H A Dhrtimer.h59 CTASSERT((clock) == CLOCK_MONOTONIC); \
60 CTASSERT((mode) == HRTIMER_MODE_REL); \
68 CTASSERT((mode) == HRTIMER_MODE_REL); \
73 CTASSERT((mode) == HRTIMER_MODE_REL); \
H A Dpid.h49 CTASSERT((type) == PIDTYPE_PID); \
56 CTASSERT((type) == PIDTYPE_PID); \
62 CTASSERT((type) == PIDTYPE_PID); \
/freebsd-12.1/sys/amd64/vmm/intel/
H A Dvmx.h101 CTASSERT(sizeof(struct apic_page) == PAGE_SIZE);
109 CTASSERT(sizeof(struct pir_desc) == 64);
136 CTASSERT((offsetof(struct vmx, vmcs) & PAGE_MASK) == 0);
137 CTASSERT((offsetof(struct vmx, msr_bitmap) & PAGE_MASK) == 0);
138 CTASSERT((offsetof(struct vmx, pir_desc[0]) & 63) == 0);
/freebsd-12.1/sys/amd64/vmm/amd/
H A Damdvi_priv.h108 CTASSERT(sizeof(struct amdvi_dte) == 32);
160 CTASSERT(sizeof(struct amdvi_event) == 16);
250 CTASSERT(offsetof(struct amdvi_ctrl, pad1)== 0x58);
251 CTASSERT(offsetof(struct amdvi_ctrl, pad2)== 0x2028);
252 CTASSERT(offsetof(struct amdvi_ctrl, pad3)== 0x2040);
260 CTASSERT(sizeof(struct amdvi_ctrl) == 0x4000);
261 CTASSERT(sizeof(struct amdvi_ctrl) == AMDVI_MMIO_V1_SIZE);
377 CTASSERT(sizeof(ACPI_IVRS_HARDWARE_EFRSUP) == 40);
H A Dvmcb.h228 CTASSERT(sizeof(struct vmcb_segment) == 16);
282 CTASSERT(sizeof(struct vmcb_ctrl) == 1024);
329 CTASSERT(sizeof(struct vmcb_state) == 0xC00);
335 CTASSERT(sizeof(struct vmcb) == PAGE_SIZE);
336 CTASSERT(offsetof(struct vmcb, state) == 0x400);
/freebsd-12.1/sys/libkern/
H A Dbcd.c24 CTASSERT(nitems(bcd2bin_data) == LIBKERN_LEN_BCD2BIN);
38 CTASSERT(nitems(bin2bcd_data) == LIBKERN_LEN_BIN2BCD);
42 CTASSERT(nitems(hex2ascii_data) == LIBKERN_LEN_HEX2ASCII + 1);
/freebsd-12.1/lib/libc/posix1e/
H A Dacl_init.c47 #ifndef CTASSERT
48 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro
53 CTASSERT(1 << _ACL_T_ALIGNMENT_BITS > sizeof(struct acl_t_struct));
/freebsd-12.1/sys/ufs/ffs/
H A Dfs.h386 #ifdef CTASSERT
387 CTASSERT(sizeof(struct fs) == 1376);
822 #ifdef CTASSERT
823 CTASSERT(sizeof(struct jsegrec) == JREC_SIZE);
824 CTASSERT(sizeof(struct jrefrec) == JREC_SIZE);
825 CTASSERT(sizeof(struct jmvrec) == JREC_SIZE);
826 CTASSERT(sizeof(struct jblkrec) == JREC_SIZE);
827 CTASSERT(sizeof(struct jtrncrec) == JREC_SIZE);
828 CTASSERT(sizeof(union jrec) == JREC_SIZE);
/freebsd-12.1/sys/dev/hwpmc/
H A Dhwpmc_logging.c194 CTASSERT(sizeof(struct pmclog_callchain) == 7*4 + TSDELTA +
196 CTASSERT(sizeof(struct pmclog_closelog) == 3*4 + TSDELTA);
197 CTASSERT(sizeof(struct pmclog_dropnotify) == 3*4 + TSDELTA);
198 CTASSERT(sizeof(struct pmclog_map_in) == PATH_MAX + TSDELTA +
200 CTASSERT(offsetof(struct pmclog_map_in,pl_pathname) ==
203 CTASSERT(sizeof(struct pmclog_pmcallocate) == 9*4 + TSDELTA);
206 CTASSERT(sizeof(struct pmclog_pmcdetach) == 5*4 + TSDELTA);
208 CTASSERT(sizeof(struct pmclog_procexec) == 5*4 + PATH_MAX +
213 CTASSERT(sizeof(struct pmclog_procfork) == 5*4 + TSDELTA);
214 CTASSERT(sizeof(struct pmclog_sysexit) == 6*4);
[all …]
/freebsd-12.1/sys/opencrypto/
H A Dxform_poly1305.c14 CTASSERT(sizeof(union authctx) >= sizeof(struct poly1305_xform_ctx));
16 CTASSERT(POLY1305_KEY_LEN == crypto_onetimeauth_poly1305_KEYBYTES);
17 CTASSERT(POLY1305_HASH_LEN == crypto_onetimeauth_poly1305_BYTES);
/freebsd-12.1/sys/dev/hyperv/include/
H A Dhyperv.h72 #ifdef CTASSERT
73 CTASSERT(sizeof(struct hyperv_reftsc) == PAGE_SIZE);
/freebsd-12.1/sys/sparc64/sparc64/
H A Dmachdep.c157 CTASSERT((1 << INT_SHIFT) == sizeof(int));
158 CTASSERT((1 << PTR_SHIFT) == sizeof(char *));
160 CTASSERT(sizeof(struct reg) == 256);
161 CTASSERT(sizeof(struct fpreg) == 272);
162 CTASSERT(sizeof(struct __mcontext) == 512);
164 CTASSERT((sizeof(struct pcb) & (64 - 1)) == 0);
165 CTASSERT((offsetof(struct pcb, pcb_kfp) & (64 - 1)) == 0);
166 CTASSERT((offsetof(struct pcb, pcb_ufp) & (64 - 1)) == 0);
167 CTASSERT(sizeof(struct pcb) <= ((KSTACK_PAGES * PAGE_SIZE) / 8));
169 CTASSERT(sizeof(struct pcpu) <= ((PCPU_PAGES * PAGE_SIZE) / 2));
/freebsd-12.1/sys/dev/random/
H A Dfortuna.c93 CTASSERT(RANDOM_FORTUNA_MINPOOLSIZE <= RANDOM_FORTUNA_DEFPOOLSIZE);
94 CTASSERT(RANDOM_FORTUNA_DEFPOOLSIZE <= RANDOM_FORTUNA_MAXPOOLSIZE);
97 CTASSERT(RANDOM_BLOCKSIZE == sizeof(uint128_t));
98 CTASSERT(RANDOM_KEYSIZE == 2*RANDOM_BLOCKSIZE);

123456789