Searched refs:static_assert (Results 76 - 100 of 240) sorted by relevance

12345678910

/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_mmu.c218 static_assert(PAGE_SIZE >= PVR_MMU_BACKING_PAGE_SIZE);
422 static_assert(sizeof(struct pvr_page_table_l2_entry_raw) * 8 ==
545 static_assert(sizeof(struct pvr_page_table_l1_entry_raw) * 8 ==
687 static_assert(sizeof(struct pvr_page_table_l0_entry_raw) * 8 ==
705 static_assert(sizeof(struct pvr_page_flags_raw) ==
788 static_assert(sizeof(struct pvr_page_table_l2_raw) == PVR_MMU_BACKING_PAGE_SIZE);
801 static_assert(sizeof(struct pvr_page_table_l1_raw) == PVR_MMU_BACKING_PAGE_SIZE);
823 static_assert(sizeof(struct pvr_page_table_l0_raw) <= PVR_MMU_BACKING_PAGE_SIZE);
H A Dpvr_rogue_fwif_client_check.h10 static_assert(offsetof(type, member) == (offset), \
14 static_assert(sizeof(type) == (size), #type " is incorrect size")
H A Dpvr_hwrt.c17 static_assert(ROGUE_FWIF_NUM_RTDATAS == 2);
18 static_assert(ROGUE_FWIF_NUM_GEOMDATAS == 1);
19 static_assert(ROGUE_FWIF_NUM_RTDATA_FREELISTS == 2);
/linux-master/net/tls/
H A Dtls_main.c62 static_assert(cipher ## _IV_SIZE <= TLS_MAX_IV_SIZE); \
63 static_assert(cipher ## _SALT_SIZE <= TLS_MAX_SALT_SIZE); \
64 static_assert(cipher ## _REC_SEQ_SIZE <= TLS_MAX_REC_SEQ_SIZE); \
65 static_assert(cipher ## _TAG_SIZE == TLS_TAG_SIZE); \
66 static_assert(sizeof_field(struct ci, iv) == cipher ## _IV_SIZE); \
67 static_assert(sizeof_field(struct ci, key) == cipher ## _KEY_SIZE); \
68 static_assert(sizeof_field(struct ci, salt) == cipher ## _SALT_SIZE); \
69 static_assert(sizeof_field(struct ci, rec_seq) == cipher ## _REC_SEQ_SIZE);
/linux-master/include/linux/
H A Dmm_types.h387 static_assert(offsetof(struct page, pg) == offsetof(struct folio, fl))
407 static_assert(offsetof(struct folio, fl) == \
413 static_assert(offsetof(struct folio, fl) == \
476 static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt))
489 static_assert(sizeof(struct ptdesc) <= sizeof(struct page));
/linux-master/sound/pci/emu10k1/
H A Demumixer.c169 static_assert(ARRAY_SIZE(emu1010_src_regs) == ARRAY_SIZE(emu1010_src_texts));
201 static_assert(ARRAY_SIZE(emu1010b_src_regs) == ARRAY_SIZE(emu1010b_src_texts));
227 static_assert(ARRAY_SIZE(emu1616_src_regs) == ARRAY_SIZE(emu1616_src_texts));
247 static_assert(ARRAY_SIZE(emu0404_src_regs) == ARRAY_SIZE(emu0404_src_texts));
270 static_assert(ARRAY_SIZE(emu1010_output_texts) <= NUM_OUTPUT_DESTS);
283 static_assert(ARRAY_SIZE(emu1010_output_dst) == ARRAY_SIZE(emu1010_output_texts));
297 static_assert(ARRAY_SIZE(emu1010_output_dflt) == ARRAY_SIZE(emu1010_output_dst));
311 static_assert(ARRAY_SIZE(snd_emu1010b_output_texts) <= NUM_OUTPUT_DESTS);
323 static_assert(ARRAY_SIZE(emu1010b_output_dst) == ARRAY_SIZE(snd_emu1010b_output_texts));
348 static_assert(ARRAY_SIZ
[all...]
/linux-master/include/linux/pds/
H A Dpds_adminq.h1249 static_assert(sizeof(union pds_core_adminq_cmd) == 64);
1250 static_assert(sizeof(union pds_core_adminq_comp) == 16);
1251 static_assert(sizeof(union pds_core_notifyq_comp) == 64);
/linux-master/mm/
H A Dslab.h96 static_assert(offsetof(struct page, pg) == offsetof(struct slab, sl))
104 static_assert(sizeof(struct slab) <= sizeof(struct page));
106 static_assert(IS_ALIGNED(offsetof(struct slab, freelist), sizeof(freelist_aba_t)));
/linux-master/fs/ntfs3/
H A Dnamei.c256 static_assert(SIZEOF_ATTRIBUTE_FILENAME_MAX + SIZEOF_RESIDENT < 1024);
257 static_assert(SIZEOF_ATTRIBUTE_FILENAME_MAX + sizeof(struct NTFS_DE) <
259 static_assert(PATH_MAX >= 4 * 1024);
/linux-master/kernel/locking/
H A Dlockdep_internals.h27 static_assert(LOCK_TRACE_STATES == LOCK_USAGE_STATES);
/linux-master/drivers/net/wireless/realtek/rtw88/
H A Dsar.c65 static_assert(ARRAY_SIZE(rtw_common_sar_freq_ranges) == RTW_SAR_BAND_NR);
/linux-master/fs/btrfs/
H A Dcompression.h36 static_assert((BTRFS_MAX_COMPRESSED % PAGE_SIZE) == 0);
H A Dlocking.h79 * add this in here and add a static_assert to keep us from going over
163 static_assert(BTRFS_NESTING_MAX <= MAX_LOCKDEP_SUBCLASSES,
H A Dvolumes.h39 static_assert(const_ilog2(BTRFS_STRIPE_LEN) == BTRFS_STRIPE_LEN_SHIFT);
50 static_assert(const_ffs(BTRFS_BLOCK_GROUP_RAID0) <
52 static_assert(const_ilog2(BTRFS_BLOCK_GROUP_RAID0) >
H A Daccessors.h77 static_assert(sizeof(u##bits) == sizeof_field(type, member)); \
83 static_assert(sizeof(u##bits) == sizeof_field(type, member)); \
89 static_assert(sizeof(u##bits) == sizeof_field(type, member)); \
95 static_assert(sizeof(u##bits) == sizeof_field(type, member)); \
126 static_assert(sizeof(u64) == sizeof_field(struct btrfs_dev_item, total_bytes));
133 static_assert(sizeof(u64) == sizeof_field(struct btrfs_dev_item, total_bytes));
/linux-master/drivers/acpi/
H A Dplatform_profile.c23 static_assert(ARRAY_SIZE(profile_names) == PLATFORM_PROFILE_LAST);
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dsvm_nested_soft_inject_test.c22 static_assert(ATOMIC_INT_LOCK_FREE == 2, "atomic int is not lockless");
/linux-master/arch/arm64/kernel/
H A Defi.c199 static_assert(THREAD_SIZE >= SZ_8K);
/linux-master/scripts/genksyms/
H A Dparse.y135 | static_assert
500 static_assert: label
/linux-master/sound/soc/codecs/
H A Daudio-iio-aux.c127 static_assert(ARRAY_SIZE(widgets) >= 3, "3 widgets are needed");
128 static_assert(ARRAY_SIZE(routes) >= 2, "2 routes are needed");
/linux-master/drivers/hid/
H A Dhid-nvidia-shield.c104 static_assert(sizeof(enum thunderstrike_led_state) == 1);
121 static_assert(sizeof(enum thunderstrike_charger_type) == 1);
130 static_assert(sizeof(enum thunderstrike_charger_state) == 1);
163 static_assert(sizeof(struct thunderstrike_hostcmd_resp_report) ==
183 static_assert(sizeof(struct thunderstrike_hostcmd_req_report) ==
H A Dhid-playstation.c204 static_assert(sizeof(struct dualsense_touch_point) == 4);
229 static_assert(sizeof(struct dualsense_input_report) == DS_INPUT_REPORT_USB_SIZE - 1);
257 static_assert(sizeof(struct dualsense_output_report_common) == 47);
267 static_assert(sizeof(struct dualsense_output_report_bt) == DS_OUTPUT_REPORT_BT_SIZE);
274 static_assert(sizeof(struct dualsense_output_report_usb) == DS_OUTPUT_REPORT_USB_SIZE);
416 static_assert(sizeof(struct dualshock4_touch_point) == 4);
422 static_assert(sizeof(struct dualshock4_touch_report) == 9);
441 static_assert(sizeof(struct dualshock4_input_report_common) == 32);
450 static_assert(sizeof(struct dualshock4_input_report_usb) == DS4_INPUT_REPORT_USB_SIZE);
461 static_assert(sizeo
[all...]
/linux-master/drivers/platform/x86/
H A Dwmi.c54 static_assert(sizeof(typeof_member(struct guid_block, guid)) == 16);
55 static_assert(sizeof(struct guid_block) == 20);
56 static_assert(__alignof__(struct guid_block) == 1);
151 static_assert(ARRAY_SIZE(wblock->gblock.object_id) == 2);
152 static_assert(WMI_ACPI_METHOD_NAME_SIZE >= 5);
/linux-master/drivers/gpu/drm/vkms/
H A Dvkms_composer.c133 static_assert(sizeof(struct drm_color_lut) == sizeof(__u16) * 4);
258 static_assert(sizeof(struct pixel_argb_u16) == 8);
/linux-master/include/ufs/
H A Dufshci.h529 static_assert(sizeof(struct request_desc_header) == 16);
577 static_assert(sizeof(struct cq_entry) == 32);

Completed in 515 milliseconds

12345678910