| /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 | 219 _Static_assert(sizeof(struct ufshci_utp_xfer_req_desc) == 32, 260 _Static_assert(sizeof(struct ufshci_prdt_entry) == 16, 271 _Static_assert(sizeof(struct ufshci_utp_cmd_desc) == 316 _Static_assert(sizeof(struct ufshci_utp_task_mgmt_req_desc) == 80, 360 _Static_assert(sizeof(struct ufshci_upiu_header) == 12, 374 _Static_assert(sizeof(struct ufshci_upiu) == 512, 389 _Static_assert(sizeof(struct ufshci_cmd_command_upiu) == 32, 391 _Static_assert(sizeof(struct ufshci_cmd_command_upiu) <= 394 _Static_assert(sizeof(struct ufshci_cmd_command_upiu) % UFSHCI_UPIU_ALIGNMENT == 416 _Static_assert(sizeof(struct ufshci_cmd_response_upiu) == 56, [all …]
|
| H A D | ufshci_reg.h | 77 _Static_assert(__offsetof(struct ufshci_registers, is) == 0x20, 79 _Static_assert(__offsetof(struct ufshci_registers, utrlba) == 0x50, 81 _Static_assert(__offsetof(struct ufshci_registers, utmrlba) == 0x70, 83 _Static_assert(__offsetof(struct ufshci_registers, uiccmd) == 0x90, 85 _Static_assert(__offsetof(struct ufshci_registers, vendor) == 0xC0, 87 _Static_assert(__offsetof(struct ufshci_registers, ccap) == 0x100, 89 _Static_assert(__offsetof(struct ufshci_registers, config) == 0x300, 91 _Static_assert(__offsetof(struct ufshci_registers, mcqconfig) == 0x380,
|
| /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/sys/ |
| H A D | videoio.h | 689 _Static_assert(sizeof(struct v4l2_pix_format) == 48, "v4l2_pix_format layout"); 690 _Static_assert(sizeof(struct v4l2_capability) == 104, "v4l2_capability layout"); 691 _Static_assert(sizeof(struct v4l2_requestbuffers) == 20, 693 _Static_assert(sizeof(struct v4l2_querymenu) == 44, "v4l2_querymenu layout"); 694 _Static_assert(sizeof(struct v4l2_cropcap) == 44, "v4l2_cropcap layout"); 695 _Static_assert(sizeof(struct v4l2_crop) == 20, "v4l2_crop layout"); 697 _Static_assert(__offsetof(struct v4l2_format, fmt) == 8, "v4l2_format layout"); 698 _Static_assert(sizeof(struct v4l2_format) == 208, "v4l2_format layout"); 699 _Static_assert(sizeof(struct v4l2_buffer) == 88, "v4l2_buffer layout"); 702 _Static_assert(__offsetof(struct v4l2_format, fmt) == 4, "v4l2_format layout"); [all …]
|
| H A D | ckdint.h | 28 _Static_assert(0, "checked addition not supported") 36 _Static_assert(0, "checked subtraction not supported") 44 _Static_assert(0, "checked multiplication not supported")
|
| 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/x86/xen/ |
| H A D | xen_arch_intr.c | 149 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_enable_source() 163 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_disable_source() 179 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_enable_intr() 188 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_disable_intr() 205 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_vector() 269 _Static_assert(offsetof(struct xenisrc, xi_arch.intsrc) == 0, in xen_intr_pic_assign_cpu() 372 _Static_assert(sizeof(struct xenisrc) >= sizeof(struct avail_list), in xen_arch_intr_release() 374 _Static_assert(offsetof(struct xenisrc, xi_arch) == in xen_arch_intr_release()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/builtins/aarch64/ |
| H A D | sme-abi-assert.c | 9 _Static_assert(FEAT_SVE == 30, "sme-abi.S assumes FEAT_SVE = 30"); 10 _Static_assert(FEAT_SME == 42, "sme-abi.S assumes FEAT_SME = 42"); 11 _Static_assert(FEAT_SME2 == 57, "sme-abi.S assumes FEAT_SME2 = 57");
|
| /freebsd/contrib/llvm-project/clang/lib/Headers/llvm_libc_wrappers/ |
| H A D | stdlib.h | 33 _Static_assert(__builtin_offsetof(div_t, quot) == 0, "ABI mismatch!"); 34 _Static_assert(__builtin_offsetof(ldiv_t, quot) == 0, "ABI mismatch!"); 35 _Static_assert(__builtin_offsetof(lldiv_t, quot) == 0, "ABI mismatch!");
|
| /freebsd/sys/dev/nvme/ |
| H A D | nvme.h | 782 _Static_assert(sizeof(struct nvme_registers) == 0x1008, "bad size for nvme_registers"); 814 _Static_assert(sizeof(struct nvme_sgl_descriptor) == 16, "bad size for nvme_sgl_descriptor"); 850 _Static_assert(sizeof(struct nvme_command) == 16 * 4, "bad size for nvme_command"); 868 _Static_assert(sizeof(struct nvme_completion) == 4 * 4, "bad size for nvme_completion"); 879 _Static_assert(sizeof(struct nvme_dsm_range) == 16, "bad size for nvme_dsm_ranage"); 1148 _Static_assert(sizeof(struct nvme_power_state) == 32, "bad size for nvme_power_state"); 1403 _Static_assert(sizeof(struct nvme_controller_data) == 4096, "bad size for nvme_controller_data"); 1514 _Static_assert(sizeof(struct nvme_namespace_data) == 4096, "bad size for nvme_namepsace_data"); 1572 _Static_assert(sizeof(struct nvme_error_information_entry) == 64, "bad size for nvme_error_informat… 1616 _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) == 0x700, 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) == 0x3e4, 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 | 111 _Static_assert( \ 142 _Static_assert( \ 155 _Static_assert( \
|
| /freebsd/sys/arm64/include/ |
| H A D | _armreg.h | 64 _Static_assert(insn##_op0 == 1, "Invalid SYS instruction"); \ 69 _Static_assert(insn##_op0 == 1, "Invalid SYS instruction"); \ 77 _Static_assert(insn##_op0 == 1, "Invalid SYS instruction"); \
|
| /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 | 1990 _Static_assert(LINUX_IN_ACCESS == IN_ACCESS, 1992 _Static_assert(LINUX_IN_MODIFY == IN_MODIFY, 1994 _Static_assert(LINUX_IN_ATTRIB == IN_ATTRIB, 1996 _Static_assert(LINUX_IN_CLOSE_WRITE == IN_CLOSE_WRITE, 1998 _Static_assert(LINUX_IN_CLOSE_NOWRITE == IN_CLOSE_NOWRITE, 2000 _Static_assert(LINUX_IN_OPEN == IN_OPEN, 2002 _Static_assert(LINUX_IN_MOVED_FROM == IN_MOVED_FROM, 2004 _Static_assert(LINUX_IN_MOVED_TO == IN_MOVED_TO, 2006 _Static_assert(LINUX_IN_CREATE == IN_CREATE, 2008 _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");
|