Home
last modified time | relevance | path

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

123456789

/freebsd/sys/dev/iscsi/
H A Discsi_proto.h34 #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 Dsysctl.h336 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 Dif_hnreg.h106 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 Daltq_cbq.h58 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 Dgpt.h51 #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 Dmbr.h78 #ifdef CTASSERT
79 CTASSERT(sizeof (struct dos_partition) == DOSPARTSIZE);
/freebsd/sys/compat/ia32/
H A Dia32_sysvec.c76 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 Ddpaa2_swp.h254 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 Dqat_hw15var.h64 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 Dvmbus_reg.h55 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 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.h47 CTASSERT((type) == PIDTYPE_PID); \
54 CTASSERT((type) == PIDTYPE_PID); \
60 CTASSERT((type) == PIDTYPE_PID); \
H A Daverage.h57 CTASSERT((sizeof(unsigned long) <= 4) ? (_p < 30) : (_p < 60)); \
58 CTASSERT(_d > 0 && powerof2(_d)); \
/freebsd/sys/opencrypto/
H A Dxform_poly1305.c11 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 Dpe.c50 #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 Dbcd.c21 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 Damdvi_priv.h109 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 Dvmcb.h245 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 Dif_vtnetvar.h240 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 Dacl_init.c44 #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 Dpci_host_generic_den0115.c110 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 Dhwpmc_logging.c188 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 Dfs.h450 #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 Dexec_machdep.c192 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 Dhyperv.h70 #ifdef CTASSERT
71 CTASSERT(sizeof(struct hyperv_reftsc) == PAGE_SIZE);

123456789