/freebsd/lib/libkvm/ |
H A D | kvm_arm.h | 86 _Static_assert(PAGE_SHIFT == ARM_PAGE_SHIFT, "PAGE_SHIFT mismatch"); 87 _Static_assert(PAGE_SIZE == ARM_PAGE_SIZE, "PAGE_SIZE mismatch"); 88 _Static_assert(PAGE_MASK == ARM_PAGE_MASK, "PAGE_MASK mismatch"); 89 _Static_assert(L1_TABLE_SIZE == ARM_L1_TABLE_SIZE, "L1_TABLE_SIZE mismatch"); 90 _Static_assert(L1_S_SIZE == ARM_L1_S_SIZE, "L1_S_SIZE mismatch"); 91 _Static_assert(L1_S_OFFSET == ARM_L1_S_OFFSET, "L1_S_OFFSET mismatch"); 92 _Static_assert(L1_S_FRAME == ARM_L1_S_FRAME, "L1_S_FRAME mismatch"); 93 _Static_assert(L1_S_SHIFT == ARM_L1_S_SHIFT, "L1_S_SHIFT mismatch"); 94 _Static_assert(L2_L_SIZE == ARM_L2_L_SIZE, "L2_L_SIZE mismatch"); 95 _Static_assert(L2_L_OFFSET == ARM_L2_L_OFFSET, "L2_L_OFFSET mismatch"); [all …]
|
H A D | kvm_riscv.h | 61 _Static_assert(sizeof(pt_entry_t) == sizeof(riscv_pt_entry_t), 64 _Static_assert(PAGE_SHIFT == RISCV_PAGE_SHIFT, "PAGE_SHIFT mismatch"); 65 _Static_assert(PAGE_SIZE == RISCV_PAGE_SIZE, "PAGE_SIZE mismatch"); 66 _Static_assert(PAGE_MASK == RISCV_PAGE_MASK, "PAGE_MASK mismatch"); 68 _Static_assert(L3_SHIFT == RISCV_L3_SHIFT, "L3_SHIFT mismatch"); 69 _Static_assert(L3_SIZE == RISCV_L3_SIZE, "L3_SIZE mismatch"); 70 _Static_assert(L3_OFFSET == RISCV_L3_OFFSET, "L3_OFFSET mismatch"); 71 _Static_assert(PTE_PPN0_S == RISCV_PTE_PPN0_S, "PTE_PPN0_S mismatch"); 73 _Static_assert(PTE_SW_MANAGED == RISCV_PTE_SW_MANAGED, 75 _Static_assert(PTE_SW_WIRED == RISCV_PTE_SW_WIRED, "PTE_SW_WIRED mismatch"); [all …]
|
H A D | kvm_amd64.h | 64 _Static_assert(NPTEPG == AMD64_NPTEPG, "NPTEPG mismatch"); 65 _Static_assert(PAGE_SHIFT == AMD64_PAGE_SHIFT, "PAGE_SHIFT mismatch"); 66 _Static_assert(PAGE_SIZE == AMD64_PAGE_SIZE, "PAGE_SIZE mismatch"); 67 _Static_assert(PAGE_MASK == AMD64_PAGE_MASK, "PAGE_MASK mismatch"); 68 _Static_assert(NPDEPG == AMD64_NPDEPG, "NPDEPG mismatch"); 69 _Static_assert(PDRSHIFT == AMD64_PDRSHIFT, "PDRSHIFT mismatch"); 70 _Static_assert(NBPDR == AMD64_NBPDR, "NBPDR mismatch"); 71 _Static_assert(PDRMASK == AMD64_PDRMASK, "PDRMASK mismatch"); 72 _Static_assert(NPDPEPG == AMD64_NPDPEPG, "NPDPEPG mismatch"); 73 _Static_assert(PDPSHIFT == AMD64_PDPSHIFT, "PDPSHIFT mismatch"); [all …]
|
H A D | kvm_i386.h | 64 _Static_assert(PAGE_SHIFT == I386_PAGE_SHIFT, "PAGE_SHIFT mismatch"); 65 _Static_assert(PAGE_SIZE == I386_PAGE_SIZE, "PAGE_SIZE mismatch"); 66 _Static_assert(PAGE_MASK == I386_PAGE_MASK, "PAGE_MASK mismatch"); 68 _Static_assert(NPTEPG == I386_NPTEPG, "NPTEPG mismatch"); 69 _Static_assert(NBPDR == I386_NBPDR, "NBPDR mismatch"); 71 _Static_assert(PDRSHIFT_NOPAE == I386_PDRSHIFT, "PDRSHIFT mismatch"); 73 _Static_assert(PG_V == I386_PG_V, "PG_V mismatch"); 74 _Static_assert(PG_PS == I386_PG_PS, "PG_PS mismatch"); 75 _Static_assert((u_int)PG_FRAME_NOPAE == I386_PG_FRAME, "PG_FRAME mismatch"); 76 _Static_assert(PG_PS_FRAME_NOPAE == I386_PG_PS_FRAME, "PG_PS_FRAME mismatch");
|
H A D | kvm_aarch64.h | 57 _Static_assert(ATTR_MASK == AARCH64_ATTR_MASK, "ATTR_MASK mismatch"); 58 _Static_assert(ATTR_DESCR_MASK == AARCH64_ATTR_DESCR_MASK, 60 _Static_assert(L3_PAGE == AARCH64_L3_PAGE, "L3_PAGE mismatch");
|
/freebsd/sys/dev/gve/ |
H A D | gve_adminq.h | 93 _Static_assert(sizeof(struct gve_adminq_describe_device) == 16, 112 _Static_assert(sizeof(struct gve_device_descriptor) == 40, 121 _Static_assert(sizeof(struct gve_device_option) == 8, 128 _Static_assert(sizeof(struct gve_device_option_gqi_rda) == 4, 135 _Static_assert(sizeof(struct gve_device_option_gqi_qpl) == 4, 144 _Static_assert(sizeof(struct gve_device_option_dqo_rda) == 8, 153 _Static_assert(sizeof(struct gve_device_option_dqo_qpl) == 8, 161 _Static_assert(sizeof(struct gve_ring_size_bound) == 4, 170 _Static_assert(sizeof(struct gve_device_option_modify_ring) == 12, 179 _Static_assert(sizeof(struct gve_device_option_jumbo_frames) == 8, [all …]
|
H A D | gve_dqo.h | 96 _Static_assert(sizeof(struct gve_tx_pkt_desc_dqo) == 16, 108 _Static_assert(GVE_TX_MAX_BUF_SIZE_DQO * GVE_TX_MAX_DATA_DESCS_DQO >= 126 _Static_assert(sizeof(struct gve_tx_context_cmd_dtype) == 2, 153 _Static_assert(sizeof(struct gve_tx_tso_context_desc_dqo) == 16, 175 _Static_assert(sizeof(struct gve_tx_general_context_desc_dqo) == 16, 204 _Static_assert(sizeof(struct gve_tx_metadata_dqo) == 12, 242 _Static_assert(sizeof(struct gve_tx_compl_desc_dqo) == 8, 263 _Static_assert(sizeof(struct gve_rx_desc_dqo) == 32, 329 _Static_assert(sizeof(struct gve_rx_compl_desc_dqo) == 32,
|
/freebsd/sys/dev/ufshci/ |
H A D | ufshci.h | 215 _Static_assert(sizeof(struct ufshci_utp_xfer_req_desc) == 32, 256 _Static_assert(sizeof(struct ufshci_prdt_entry) == 16, 267 _Static_assert(sizeof(struct ufshci_utp_cmd_desc) == 312 _Static_assert(sizeof(struct ufshci_utp_task_mgmt_req_desc) == 80, 354 _Static_assert(sizeof(struct ufshci_upiu_header) == 12, 368 _Static_assert(sizeof(struct ufshci_upiu) == 512, 383 _Static_assert(sizeof(struct ufshci_cmd_command_upiu) == 32, 385 _Static_assert(sizeof(struct ufshci_cmd_command_upiu) <= 388 _Static_assert(sizeof(struct ufshci_cmd_command_upiu) % UFSHCI_UPIU_ALIGNMENT == 410 _Static_assert(sizeof(struct ufshci_cmd_response_upiu) == 56, [all …]
|
/freebsd/sys/x86/iommu/ |
H A D | amd_reg.h | 331 _Static_assert(sizeof(struct amdiommu_dte) == 8 * sizeof(uint32_t), "DTE"); 414 _Static_assert(sizeof(struct amdiommu_irte_basic_novapic) == 432 _Static_assert(sizeof(struct amdiommu_irte_basic_vapic) == 452 _Static_assert(sizeof(struct amdiommu_irte_guest_vapic) == 470 _Static_assert(sizeof(struct amdiommu_irte_basic_vapic_x2) == 490 _Static_assert(sizeof(struct amdiommu_irte_guest_vapic_x2) == 515 _Static_assert(sizeof(struct amdiommu_cmd_generic) == 522 _Static_assert((1 << AMDIOMMU_CMD_SZ_SHIFT) == AMDIOMMU_CMD_SZ, 536 _Static_assert(sizeof(struct amdiommu_cmd_completion_wait) == 547 _Static_assert(sizeof(struct amdiommu_cmd_invalidate_devtab_entry) == [all …]
|
/freebsd/lib/libc/locale/ |
H A D | xlocale_private.h | 60 _Static_assert(XLC_LAST - XLC_COLLATE == 6, "XLC values should be contiguous"); 61 _Static_assert(XLC_COLLATE == LC_COLLATE - 1, 63 _Static_assert(XLC_CTYPE == LC_CTYPE - 1, 65 _Static_assert(XLC_MONETARY == LC_MONETARY - 1, 67 _Static_assert(XLC_NUMERIC == LC_NUMERIC - 1, 69 _Static_assert(XLC_TIME == LC_TIME - 1, 71 _Static_assert(XLC_MESSAGES == LC_MESSAGES - 1,
|
/freebsd/sys/x86/xen/ |
H A D | xen_arch_intr.c | 150 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_enable_source() 164 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_disable_source() 180 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_enable_intr() 189 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_disable_intr() 206 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_vector() 270 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_assign_cpu() 373 _Static_assert(sizeof(struct xenisrc) >= sizeof(struct avail_list), in xen_arch_intr_release() 375 _Static_assert(offsetof(struct xenisrc, xi_arch) == in xen_arch_intr_release()
|
/freebsd/include/ |
H A D | stdckdint.h | 19 _Static_assert(0, "checked addition not supported") 27 _Static_assert(0, "checked subtraction not supported") 35 _Static_assert(0, "checked multiplication not supported")
|
/freebsd/sys/sys/ |
H A D | efiio.h | 42 _Static_assert(sizeof(struct uuid) == sizeof(efi_guid_t), 101 _Static_assert(sizeof(struct efi_get_table_ioc) == sizeof(struct efi_get_table_ioctl), 103 _Static_assert(sizeof(struct efi_var_ioc) == sizeof(struct efi_var_ioctl),
|
/freebsd/sys/dev/nvme/ |
H A D | nvme.h | 783 _Static_assert(sizeof(struct nvme_registers) == 0x1008, "bad size for nvme_registers"); 815 _Static_assert(sizeof(struct nvme_sgl_descriptor) == 16, "bad size for nvme_sgl_descriptor"); 851 _Static_assert(sizeof(struct nvme_command) == 16 * 4, "bad size for nvme_command"); 869 _Static_assert(sizeof(struct nvme_completion) == 4 * 4, "bad size for nvme_completion"); 880 _Static_assert(sizeof(struct nvme_dsm_range) == 16, "bad size for nvme_dsm_ranage"); 1149 _Static_assert(sizeof(struct nvme_power_state) == 32, "bad size for nvme_power_state"); 1404 _Static_assert(sizeof(struct nvme_controller_data) == 4096, "bad size for nvme_controller_data"); 1517 _Static_assert(sizeof(struct nvme_namespace_data) == 4096, "bad size for nvme_namepsace_data"); 1576 _Static_assert(sizeof(struct nvme_error_information_entry) == 64, "bad size for nvme_error_informat… 1620 _Static_assert(sizeof(struct nvme_health_information_page) == 512, "bad size for nvme_health_inform… [all …]
|
/freebsd/sys/kern/ |
H A D | kern_thread.c | 89 _Static_assert(offsetof(struct thread, td_flags) == 0x108, 91 _Static_assert(offsetof(struct thread, td_pflags) == 0x114, 93 _Static_assert(offsetof(struct thread, td_frame) == 0x4e8, 95 _Static_assert(offsetof(struct thread, td_emuldata) == 0x6f0, 97 _Static_assert(offsetof(struct proc, p_flag) == 0xb8, 99 _Static_assert(offsetof(struct proc, p_pid) == 0xc4, 101 _Static_assert(offsetof(struct proc, p_filemon) == 0x3c8, 103 _Static_assert(offsetof(struct proc, p_comm) == 0x3e0, 105 _Static_assert(offsetof(struct proc, p_emuldata) == 0x4d0, 109 _Static_assert(offsetof(struct thread, td_flags) == 0x9c, [all …]
|
/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
H A D | mod_compat.h | 121 _Static_assert( \ 152 _Static_assert( \ 165 _Static_assert( \
|
/freebsd/sys/net/ |
H A D | pfkeyv2.h | 234 _Static_assert(sizeof(struct sadb_x_policy) == 16, "struct size mismatch"); 270 _Static_assert(sizeof(struct sadb_x_nat_t_type) == 8, "struct size mismatch"); 279 _Static_assert(sizeof(struct sadb_x_nat_t_port) == 8, "struct size mismatch"); 288 _Static_assert(sizeof(struct sadb_x_nat_t_frag) == 8, "struct size mismatch"); 297 _Static_assert(sizeof(struct sadb_x_sa_replay) == 8, "struct size mismatch");
|
/freebsd/sys/riscv/include/ |
H A D | pcpu_aux.h | 46 _Static_assert(PAGE_SIZE % sizeof(struct pcpu) == 0, "fix pcpu size"); 47 _Static_assert(offsetof(struct pcpu, __pad) +
|
/freebsd/sys/compat/linux/ |
H A D | linux_file.c | 1929 _Static_assert(LINUX_IN_ACCESS == IN_ACCESS, 1931 _Static_assert(LINUX_IN_MODIFY == IN_MODIFY, 1933 _Static_assert(LINUX_IN_ATTRIB == IN_ATTRIB, 1935 _Static_assert(LINUX_IN_CLOSE_WRITE == IN_CLOSE_WRITE, 1937 _Static_assert(LINUX_IN_CLOSE_NOWRITE == IN_CLOSE_NOWRITE, 1939 _Static_assert(LINUX_IN_OPEN == IN_OPEN, 1941 _Static_assert(LINUX_IN_MOVED_FROM == IN_MOVED_FROM, 1943 _Static_assert(LINUX_IN_MOVED_TO == IN_MOVED_TO, 1945 _Static_assert(LINUX_IN_CREATE == IN_CREATE, 1947 _Static_assert(LINUX_IN_DELETE == IN_DELETE, [all …]
|
/freebsd/stand/i386/loader/ |
H A D | main.c | 53 _Static_assert(sizeof(struct bootargs) == BOOTARGS_SIZE, "Bootarg size bad"); 54 _Static_assert(offsetof(struct bootargs, bootinfo) == BA_BOOTINFO, "BA_BOOTINFO"); 55 _Static_assert(offsetof(struct bootargs, bootflags) == BA_BOOTFLAGS, "BA_BOOTFLAGS"); 56 _Static_assert(offsetof(struct bootinfo, bi_size) == BI_SIZE, "BI_SIZE");
|
/freebsd/contrib/llvm-project/clang/lib/Headers/ |
H A D | __clang_cuda_intrinsics.h | 45 _Static_assert(sizeof(__val) == sizeof(__Bits)); \ 46 _Static_assert(sizeof(__Bits) == 2 * sizeof(int)); \ 57 _Static_assert(sizeof(long) == sizeof(long long) || \ 80 _Static_assert(sizeof(__tmp) == sizeof(__val)); \ 129 _Static_assert(sizeof(__val) == sizeof(__Bits)); \ 130 _Static_assert(sizeof(__Bits) == 2 * sizeof(int)); \ 147 _Static_assert(sizeof(long) == sizeof(long long) || \ 166 _Static_assert(sizeof(__tmp) == sizeof(__val)); \
|
/freebsd/sys/amd64/include/ |
H A D | vmm.h | 541 _Static_assert(sizeof(struct vie_op) == 4, "ABI"); 542 _Static_assert(_Alignof(struct vie_op) == 2, "ABI"); 599 _Static_assert(sizeof(struct vie) == 64, "ABI"); 600 _Static_assert(__offsetof(struct vie, disp_bytes) == 22, "ABI"); 601 _Static_assert(__offsetof(struct vie, scale) == 24, "ABI"); 602 _Static_assert(__offsetof(struct vie, base_register) == 28, "ABI");
|
/freebsd/contrib/sqlite3/autosetup/ |
H A D | cc-lib.tcl | 146 _Static_assert(1, "static assertions are available"); 149 define-feature _Static_assert
|
/freebsd/contrib/bc/src/ |
H A D | data.c | 223 _Static_assert(sizeof(bc_fuzzer_args_C) / sizeof(char*) == bc_fuzzer_args_len, 226 _Static_assert(sizeof(dc_fuzzer_args_c) / sizeof(char*) == bc_fuzzer_args_len, 229 _Static_assert(sizeof(dc_fuzzer_args_C) / sizeof(char*) == bc_fuzzer_args_len, 909 _Static_assert(sizeof(bc_lex_kws) / sizeof(BcLexKeyword) == BC_LEX_NKWS,
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwm_sf.c | 228 _Static_assert(sizeof(sf_full_timeout) == sizeof(uint32_t) * in iwm_fill_sf_command() 235 _Static_assert(sizeof(sf_full_timeout_def) == sizeof(uint32_t) * in iwm_fill_sf_command()
|