/freebsd/sys/dev/iscsi/ |
H A D | iscsi_proto.h | 34 #ifndef CTASSERT 35 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro 77 CTASSERT(sizeof(struct iscsi_bhs) == ISCSI_BHS_SIZE); 107 CTASSERT(sizeof(struct iscsi_bhs_scsi_command) == ISCSI_BHS_SIZE); 133 CTASSERT(sizeof(struct iscsi_bhs_scsi_response) == ISCSI_BHS_SIZE); 163 CTASSERT(sizeof(struct iscsi_bhs_task_management_request) == ISCSI_BHS_SIZE); 191 CTASSERT(sizeof(struct iscsi_bhs_task_management_response) == ISCSI_BHS_SIZE); 216 CTASSERT(sizeof(struct iscsi_bhs_login_request) == ISCSI_BHS_SIZE); 237 CTASSERT(sizeof(struct iscsi_bhs_login_response) == ISCSI_BHS_SIZE); 255 CTASSERT(sizeof(struct iscsi_bhs_text_request) == ISCSI_BHS_SIZE); [all …]
|
/freebsd/sys/sys/ |
H A D | sysctl.h | 336 CTASSERT(((access) & CTLTYPE) == 0 || \ 347 CTASSERT(((access) & CTLTYPE) == 0 || \ 356 CTASSERT(((access) & CTLTYPE) == 0 || \ 365 CTASSERT(((access) & CTLTYPE) == 0 || \ 378 CTASSERT(((access) & CTLTYPE) == 0 || \ 384 CTASSERT(((access) & CTLTYPE) == 0 || \ 396 CTASSERT(!((access) & CTLFLAG_WR)); \ 397 CTASSERT(((access) & CTLTYPE) == 0 || \ 403 CTASSERT(!((access) & CTLFLAG_WR)); \ 404 CTASSERT(((access) & CTLTYPE) == 0 || \ [all …]
|
/freebsd/sys/dev/hyperv/netvsc/ |
H A D | if_hnreg.h | 106 CTASSERT(sizeof(struct hn_nvs_init) >= HN_NVS_REQSIZE_MIN); 124 CTASSERT(sizeof(struct hn_nvs_ndis_conf) >= HN_NVS_REQSIZE_MIN); 138 CTASSERT(sizeof(struct hn_nvs_ndis_init) >= HN_NVS_REQSIZE_MIN); 150 CTASSERT(sizeof(struct hn_nvs_datapath) >= HN_NVS_REQSIZE_MIN); 159 CTASSERT(sizeof(struct hn_nvs_rxbuf_conn) >= HN_NVS_REQSIZE_MIN); 182 CTASSERT(sizeof(struct hn_nvs_rxbuf_disconn) >= HN_NVS_REQSIZE_MIN); 191 CTASSERT(sizeof(struct hn_nvs_chim_conn) >= HN_NVS_REQSIZE_MIN); 206 CTASSERT(sizeof(struct hn_nvs_chim_disconn) >= HN_NVS_REQSIZE_MIN); 217 CTASSERT(sizeof(struct hn_nvs_subch_req) >= HN_NVS_REQSIZE_MIN); 241 CTASSERT(sizeof(struct hn_nvs_rndis) >= HN_NVS_REQSIZE_MIN); [all …]
|
/freebsd/sys/net/altq/ |
H A D | altq_cbq.h | 58 CTASSERT(CBQCLF_RED == RMCF_RED); 59 CTASSERT(CBQCLF_ECN == RMCF_ECN); 60 CTASSERT(CBQCLF_RIO == RMCF_RIO); 61 CTASSERT(CBQCLF_FLOWVALVE == RMCF_FLOWVALVE); 62 CTASSERT(CBQCLF_CLEARDSCP == RMCF_CLEARDSCP); 63 CTASSERT(CBQCLF_CODEL == RMCF_CODEL);
|
/freebsd/sys/sys/disk/ |
H A D | gpt.h | 51 #ifdef CTASSERT 52 CTASSERT(sizeof(gpt_uuid_t) == 16); 81 #ifdef CTASSERT 82 CTASSERT(offsetof(struct gpt_hdr, padding) == 92); 104 #ifdef CTASSERT 105 CTASSERT(sizeof(struct gpt_ent) == 128);
|
H A D | mbr.h | 78 #ifdef CTASSERT 79 CTASSERT(sizeof (struct dos_partition) == DOSPARTSIZE);
|
/freebsd/sys/compat/ia32/ |
H A D | ia32_sysvec.c | 76 CTASSERT(sizeof(struct ia32_mcontext) == 640); 77 CTASSERT(sizeof(struct ia32_ucontext) == 704); 78 CTASSERT(sizeof(struct ia32_sigframe) == 800); 79 CTASSERT(sizeof(struct __siginfo32) == 64); 81 CTASSERT(sizeof(struct ia32_freebsd4_mcontext) == 260); 82 CTASSERT(sizeof(struct ia32_freebsd4_ucontext) == 324); 83 CTASSERT(sizeof(struct ia32_freebsd4_sigframe) == 408);
|
/freebsd/sys/dev/dpaa2/ |
H A D | dpaa2_swp.h | 254 CTASSERT(sizeof(struct dpaa2_eq_desc) == DPAA2_EQ_DESC_SIZE); 272 CTASSERT(sizeof(struct dpaa2_fdr_desc) == DPAA2_FDR_DESC_SIZE); 285 CTASSERT(sizeof(struct dpaa2_scn) == DPAA2_SCN_SIZE); 314 CTASSERT(sizeof(struct dpaa2_fd) == DPAA2_FD_SIZE); 333 CTASSERT(sizeof(struct dpaa2_fa) <= DPAA2_FA_SIZE); 344 CTASSERT(sizeof(struct dpaa2_sg_entry) == DPAA2_SGE_SIZE); 353 CTASSERT(sizeof(struct dpaa2_fdr) == DPAA2_FDR_SIZE); 368 CTASSERT(sizeof(struct dpaa2_dq) == DPAA2_DQ_SIZE); 411 CTASSERT(sizeof(struct dpaa2_swp_cmd) == DPAA2_SWP_CMD_SIZE); 419 CTASSERT(sizeof(struct dpaa2_swp_rsp) == DPAA2_SWP_RSP_SIZE);
|
/freebsd/sys/dev/qat_c2xxx/ |
H A D | qat_hw15var.h | 64 CTASSERT(HASH_CONTENT_DESC_SIZE >= 66 CTASSERT(CIPHER_CONTENT_DESC_SIZE >= 68 CTASSERT(CONTENT_DESC_MAX_SIZE >= 71 CTASSERT(QAT_SYM_REQ_PARAMS_SIZE_PADDED >=
|
/freebsd/sys/dev/hyperv/vmbus/ |
H A D | vmbus_reg.h | 55 CTASSERT(sizeof(struct vmbus_message) == VMBUS_MSG_SIZE); 77 CTASSERT(sizeof(struct vmbus_evtflags) == VMBUS_EVTFLAGS_SIZE); 105 CTASSERT(sizeof(struct vmbus_mnf) == PAGE_SIZE); 183 CTASSERT(sizeof(struct vmbus_bufring) == PAGE_SIZE); 329 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_conn, 342 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_subconn, 423 CTASSERT(sizeof(struct vmbus_chanmsg_choffer) <= VMBUS_MSG_DSIZE_MAX);
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | hrtimer.h | 59 CTASSERT((clock) == CLOCK_MONOTONIC); \ 60 CTASSERT((mode) == HRTIMER_MODE_REL); \ 68 CTASSERT((mode) == HRTIMER_MODE_REL); \ 73 CTASSERT((mode) == HRTIMER_MODE_REL); \
|
H A D | pid.h | 47 CTASSERT((type) == PIDTYPE_PID); \ 54 CTASSERT((type) == PIDTYPE_PID); \ 60 CTASSERT((type) == PIDTYPE_PID); \
|
H A D | average.h | 57 CTASSERT((sizeof(unsigned long) <= 4) ? (_p < 30) : (_p < 60)); \ 58 CTASSERT(_d > 0 && powerof2(_d)); \
|
/freebsd/sys/opencrypto/ |
H A D | xform_poly1305.c | 11 CTASSERT(sizeof(union authctx) >= sizeof(struct poly1305_xform_ctx)); 13 CTASSERT(POLY1305_KEY_LEN == crypto_onetimeauth_poly1305_KEYBYTES); 14 CTASSERT(POLY1305_HASH_LEN == crypto_onetimeauth_poly1305_BYTES); 15 CTASSERT(POLY1305_BLOCK_LEN == crypto_onetimeauth_poly1305_BYTES);
|
/freebsd/usr.sbin/uefisign/ |
H A D | pe.c | 50 #ifndef CTASSERT 51 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro 94 CTASSERT(offsetof(struct pe_optional_header_32, po_size_of_headers) == 60); 95 CTASSERT(offsetof(struct pe_optional_header_32, po_checksum) == 64); 96 CTASSERT(offsetof(struct pe_optional_header_32, po_subsystem) == 68); 97 CTASSERT(offsetof(struct pe_optional_header_32, po_number_of_rva_and_sizes) == 92); 109 CTASSERT(offsetof(struct pe_optional_header_32_plus, po_size_of_headers) == 60); 110 CTASSERT(offsetof(struct pe_optional_header_32_plus, po_checksum) == 64); 111 CTASSERT(offsetof(struct pe_optional_header_32_plus, po_subsystem) == 68); 112 CTASSERT(offsetof(struct pe_optional_header_32_plus, po_number_of_rva_and_sizes) == 108); [all …]
|
/freebsd/sys/libkern/ |
H A D | bcd.c | 21 CTASSERT(nitems(bcd2bin_data) == LIBKERN_LEN_BCD2BIN); 35 CTASSERT(nitems(bin2bcd_data) == LIBKERN_LEN_BIN2BCD); 39 CTASSERT(nitems(hex2ascii_data) == LIBKERN_LEN_HEX2ASCII + 1);
|
/freebsd/sys/amd64/vmm/amd/ |
H A D | amdvi_priv.h | 109 CTASSERT(sizeof(struct amdvi_dte) == 32); 161 CTASSERT(sizeof(struct amdvi_event) == 16); 251 CTASSERT(offsetof(struct amdvi_ctrl, pad1)== 0x58); 252 CTASSERT(offsetof(struct amdvi_ctrl, pad2)== 0x2028); 253 CTASSERT(offsetof(struct amdvi_ctrl, pad3)== 0x2040); 261 CTASSERT(sizeof(struct amdvi_ctrl) == 0x4000); 262 CTASSERT(sizeof(struct amdvi_ctrl) == AMDVI_MMIO_V1_SIZE);
|
H A D | vmcb.h | 245 CTASSERT(sizeof(struct vmcb_segment) == 16); 299 CTASSERT(sizeof(struct vmcb_ctrl) == 1024); 346 CTASSERT(sizeof(struct vmcb_state) == 0xC00); 352 CTASSERT(sizeof(struct vmcb) == PAGE_SIZE); 353 CTASSERT(offsetof(struct vmcb, state) == 0x400);
|
/freebsd/sys/dev/virtio/network/ |
H A D | if_vtnetvar.h | 240 CTASSERT(sizeof(struct virtio_net_hdr_v1) == 12); 241 CTASSERT(sizeof(struct virtio_net_hdr) == 10); 242 CTASSERT(sizeof(struct virtio_net_hdr_mrg_rxbuf) == 304 CTASSERT(sizeof(struct vtnet_mac_filter) <= PAGE_SIZE); 368 CTASSERT(((VTNET_RX_SEGS_LRO_NOMRG - 1) * MCLBYTES) >= VTNET_MAX_RX_SIZE); 369 CTASSERT(((VTNET_TX_SEGS_MAX - 1) * MCLBYTES) >= VTNET_MAX_MTU);
|
/freebsd/lib/libc/posix1e/ |
H A D | acl_init.c | 44 #ifndef CTASSERT 45 #define CTASSERT(x) _CTASSERT(x, __LINE__) macro 50 CTASSERT(1 << _ACL_T_ALIGNMENT_BITS > sizeof(struct acl_t_struct));
|
/freebsd/sys/dev/pci/ |
H A D | pci_host_generic_den0115.c | 110 CTASSERT(SMCCC_PCI_VERSION == 0x84000130); 111 CTASSERT(SMCCC_PCI_FEATURES == 0x84000131); 112 CTASSERT(SMCCC_PCI_READ == 0x84000132); 113 CTASSERT(SMCCC_PCI_WRITE == 0x84000133); 114 CTASSERT(SMCCC_PCI_GET_SEG_INFO == 0x84000134);
|
/freebsd/sys/dev/hwpmc/ |
H A D | hwpmc_logging.c | 188 CTASSERT(sizeof(struct pmclog_callchain) == 7*4 + TSDELTA + 190 CTASSERT(sizeof(struct pmclog_closelog) == 3*4 + TSDELTA); 191 CTASSERT(sizeof(struct pmclog_dropnotify) == 3*4 + TSDELTA); 192 CTASSERT(sizeof(struct pmclog_map_in) == PATH_MAX + TSDELTA + 194 CTASSERT(offsetof(struct pmclog_map_in,pl_pathname) == 196 CTASSERT(sizeof(struct pmclog_map_out) == 5*4 + 2*sizeof(uintfptr_t) + TSDELTA); 197 CTASSERT(sizeof(struct pmclog_pmcallocate) == 9*4 + TSDELTA); 198 CTASSERT(sizeof(struct pmclog_pmcattach) == 5*4 + PATH_MAX + TSDELTA); 199 CTASSERT(offsetof(struct pmclog_pmcattach,pl_pathname) == 5*4 + TSDELTA); 200 CTASSERT(sizeof(struct pmclog_pmcdetach) == 5*4 + TSDELTA); [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | fs.h | 450 #ifdef CTASSERT 451 CTASSERT(sizeof(struct fs) == 1376); 897 #ifdef CTASSERT 898 CTASSERT(sizeof(struct jsegrec) == JREC_SIZE); 899 CTASSERT(sizeof(struct jrefrec) == JREC_SIZE); 900 CTASSERT(sizeof(struct jmvrec) == JREC_SIZE); 901 CTASSERT(sizeof(struct jblkrec) == JREC_SIZE); 902 CTASSERT(sizeof(struct jtrncrec) == JREC_SIZE); 903 CTASSERT(sizeof(union jrec) == JREC_SIZE);
|
/freebsd/sys/riscv/riscv/ |
H A D | exec_machdep.c | 192 CTASSERT(sizeof(((struct trapframe *)0)->tf_a) == 194 CTASSERT(sizeof(((struct trapframe *)0)->tf_s) == 196 CTASSERT(sizeof(((struct trapframe *)0)->tf_t) == 198 CTASSERT(sizeof(((struct trapframe *)0)->tf_a) == 200 CTASSERT(sizeof(((struct trapframe *)0)->tf_s) == 202 CTASSERT(sizeof(((struct trapframe *)0)->tf_t) ==
|
/freebsd/sys/dev/hyperv/include/ |
H A D | hyperv.h | 70 #ifdef CTASSERT 71 CTASSERT(sizeof(struct hyperv_reftsc) == PAGE_SIZE);
|