Searched refs:static_assert (Results 76 - 100 of 221) sorted by relevance
123456789
/linux-master/include/linux/pds/ |
H A D | pds_adminq.h | 1249 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/drivers/gpu/drm/imagination/ |
H A D | pvr_hwrt.c | 17 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/mm/ |
H A D | slab.h | 96 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/drivers/acpi/ |
H A D | platform_profile.c | 23 static_assert(ARRAY_SIZE(profile_names) == PLATFORM_PROFILE_LAST);
|
/linux-master/kernel/locking/ |
H A D | lockdep_internals.h | 27 static_assert(LOCK_TRACE_STATES == LOCK_USAGE_STATES);
|
/linux-master/drivers/net/wireless/realtek/rtw88/ |
H A D | sar.c | 65 static_assert(ARRAY_SIZE(rtw_common_sar_freq_ranges) == RTW_SAR_BAND_NR);
|
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | svm_nested_soft_inject_test.c | 22 static_assert(ATOMIC_INT_LOCK_FREE == 2, "atomic int is not lockless");
|
/linux-master/fs/btrfs/ |
H A D | locking.h | 79 * 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 D | compression.h | 36 static_assert((BTRFS_MAX_COMPRESSED % PAGE_SIZE) == 0);
|
H A D | volumes.h | 39 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 D | accessors.h | 77 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/arch/arm64/kernel/ |
H A D | efi.c | 198 static_assert(THREAD_SIZE >= SZ_8K);
|
/linux-master/scripts/genksyms/ |
H A D | parse.y | 135 | static_assert 500 static_assert: label
|
/linux-master/sound/soc/codecs/ |
H A D | audio-iio-aux.c | 127 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 D | hid-nvidia-shield.c | 104 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 D | hid-playstation.c | 199 static_assert(sizeof(struct dualsense_touch_point) == 4); 224 static_assert(sizeof(struct dualsense_input_report) == DS_INPUT_REPORT_USB_SIZE - 1); 252 static_assert(sizeof(struct dualsense_output_report_common) == 47); 262 static_assert(sizeof(struct dualsense_output_report_bt) == DS_OUTPUT_REPORT_BT_SIZE); 269 static_assert(sizeof(struct dualsense_output_report_usb) == DS_OUTPUT_REPORT_USB_SIZE); 409 static_assert(sizeof(struct dualshock4_touch_point) == 4); 415 static_assert(sizeof(struct dualshock4_touch_report) == 9); 434 static_assert(sizeof(struct dualshock4_input_report_common) == 32); 443 static_assert(sizeof(struct dualshock4_input_report_usb) == DS4_INPUT_REPORT_USB_SIZE); 454 static_assert(sizeo [all...] |
/linux-master/drivers/platform/x86/ |
H A D | wmi.c | 54 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/fs/ntfs3/ |
H A D | namei.c | 271 static_assert(SIZEOF_ATTRIBUTE_FILENAME_MAX + SIZEOF_RESIDENT < 1024); 272 static_assert(SIZEOF_ATTRIBUTE_FILENAME_MAX + sizeof(struct NTFS_DE) < 274 static_assert(PATH_MAX >= 4 * 1024);
|
/linux-master/drivers/gpu/drm/vkms/ |
H A D | vkms_composer.c | 133 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 D | ufshci.h | 540 static_assert(sizeof(struct request_desc_header) == 16); 588 static_assert(sizeof(struct cq_entry) == 32);
|
/linux-master/kernel/kcsan/ |
H A D | debugfs.c | 37 static_assert(ARRAY_SIZE(counter_names) == KCSAN_COUNTER_COUNT);
|
/linux-master/include/linux/ |
H A D | bitops.h | 72 static_assert(__same_type(arch_##name, generic_##name) && \
|
/linux-master/drivers/hid/surface-hid/ |
H A D | surface_hid.c | 33 static_assert(sizeof(struct surface_hid_buffer_slice) == 10);
|
/linux-master/arch/x86/kvm/ |
H A D | kvm_cache_regs.h | 16 static_assert(!(KVM_POSSIBLE_CR0_GUEST_BITS & X86_CR0_PDPTR_BITS));
|
/linux-master/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd.h | 383 static_assert(MCP251XFD_TIMESTAMP_WORK_DELAY_SEC < 419 static_assert(MCP251XFD_FIFO_TEF_NUM == 1U); 420 static_assert(MCP251XFD_FIFO_TEF_NUM == MCP251XFD_FIFO_TX_NUM); 421 static_assert(MCP251XFD_FIFO_RX_NUM <= 4U);
|
Completed in 371 milliseconds
123456789