Home
last modified time | relevance | path

Searched refs:BUILD_BUG_ON_ZERO (Results 1 – 25 of 54) sorted by relevance

123

/linux-6.12.1/drivers/gpu/drm/i915/
Di915_reg_defs.h22 BUILD_BUG_ON_ZERO(__is_constexpr(__n) && \
35 BUILD_BUG_ON_ZERO(__is_constexpr(__n) && \
49 BUILD_BUG_ON_ZERO(__is_constexpr(__high) && \
64 BUILD_BUG_ON_ZERO(__is_constexpr(__high) && \
79 BUILD_BUG_ON_ZERO(__is_constexpr(__high) && \
100 BUILD_BUG_ON_ZERO(!__is_constexpr(__mask)) + \
101 BUILD_BUG_ON_ZERO((__mask) == 0 || (__mask) > U32_MAX) + \
102 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
103BUILD_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & …
117 BUILD_BUG_ON_ZERO(!__is_constexpr(__mask)) + \
[all …]
/linux-6.12.1/tools/include/asm-generic/bitops/
Dconst_hweight.h34 #define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
35 #define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
36 #define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
37 #define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))
/linux-6.12.1/include/asm-generic/bitops/
Dconst_hweight.h34 #define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
35 #define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
36 #define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
37 #define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))
/linux-6.12.1/include/linux/
Dkernel.h395 (BUILD_BUG_ON_ZERO((perms) < 0) + \
396 BUILD_BUG_ON_ZERO((perms) > 0777) + \
398 BUILD_BUG_ON_ZERO((((perms) >> 6) & 4) < (((perms) >> 3) & 4)) + \
399 BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) + \
401 BUILD_BUG_ON_ZERO((((perms) >> 6) & 2) < (((perms) >> 3) & 2)) + \
403 BUILD_BUG_ON_ZERO((perms) & 2) + \
Dbuild_bug.h8 #define BUILD_BUG_ON_ZERO(e) (0) macro
16 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) macro
Dbitfield.h119 #define __BF_CHECK_POW2(n) BUILD_BUG_ON_ZERO(((n) & ((n) - 1)) != 0)
136 BUILD_BUG_ON_ZERO((_mask) == 0) + \
138 BUILD_BUG_ON_ZERO(~((_mask) >> __bf_shf(_mask)) & (_val)) + \
Dcompiler.h243 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
246 #define __must_be_cstr(p) BUILD_BUG_ON_ZERO(__annotated(p, nonstring))
Dbits.h24 (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
/linux-6.12.1/drivers/gpu/drm/i915/gt/
Dintel_gt.h21 BUILD_BUG_ON_ZERO((from) < IP_VER(2, 0)) + \
22 BUILD_BUG_ON_ZERO((until) < (from)) + \
35 BUILD_BUG_ON_ZERO((from) < IP_VER(13, 0)) + \
36 BUILD_BUG_ON_ZERO((until) < (from)) + \
57 BUILD_BUG_ON_ZERO((until) <= (from)) + \
75 BUILD_BUG_ON_ZERO((until) <= (from)) + \
/linux-6.12.1/tools/include/linux/
Dbuild_bug.h8 #define BUILD_BUG_ON_ZERO(e) (0) macro
16 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) macro
Dbug.h9 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) macro
Dbits.h24 (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
Dcompiler-gcc.h26 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
/linux-6.12.1/drivers/net/ethernet/sfc/
Dmcdi.h211 ((_ofst) + BUILD_BUG_ON_ZERO((_ofst) & (_align - 1)))
228 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
231 ((void)BUILD_BUG_ON_ZERO(_field ## _LEN != 1), \
244 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
247 ((void)BUILD_BUG_ON_ZERO(_field ## _LEN != 2), \
357 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
361 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 4) + \
369 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 8) + \
Dio.h195 BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
210 BUILD_BUG_ON_ZERO((reg) != 0x180 && \
241 reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
Dtc_counters.c401 ((void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_HEADER_##field##_LBN & 7), \
404 ((void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_HEADER_##field##_WIDTH != 8),\
407 ((void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_HEADER_##field##_WIDTH != 16),\
408 (void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_HEADER_##field##_LBN & 15), \
411 ((void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_PAYLOAD_##field##_LBN & 7), \
/linux-6.12.1/drivers/cdx/controller/
Dmcdi.h213 ((void)BUILD_BUG_ON_ZERO((_ofst) & ((_align) - 1)), \
219 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
222 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2), \
/linux-6.12.1/drivers/net/ethernet/sfc/siena/
Dmcdi.h207 ((_ofst) + BUILD_BUG_ON_ZERO((_ofst) & (_align - 1)))
212 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
215 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
304 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
308 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 4) + \
316 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 8) + \
Dio.h261 BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
276 BUILD_BUG_ON_ZERO((reg) != 0x180 && \
307 reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
/linux-6.12.1/drivers/net/ethernet/sfc/falcon/
Dio.h238 BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
253 BUILD_BUG_ON_ZERO((reg) != 0x400 && \
282 reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
/linux-6.12.1/include/rdma/
Duverbs_ioctl.h397 BUILD_BUG_ON_ZERO(sizeof_field(struct ib_device_ops, \
412 BUILD_BUG_ON_ZERO(sizeof_field(struct ib_device_ops, \
490 BUILD_BUG_ON_ZERO((_min_len) == 0 || \
520 BUILD_BUG_ON_ZERO((_access) != UVERBS_ACCESS_NEW && \
561 sizeof(u64) + BUILD_BUG_ON_ZERO(!sizeof(_enum_type)), \
573 UVERBS_ATTR_SIZE(sizeof(u32) + BUILD_BUG_ON_ZERO( \
/linux-6.12.1/arch/x86/include/asm/
Dcpufeature.h98 BUILD_BUG_ON_ZERO(NCAPINTS != 22))
124 BUILD_BUG_ON_ZERO(NCAPINTS != 22))
Drequired-features.h103 #define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 22)
/linux-6.12.1/lib/
Derrname.c16 #define E(err) [err + BUILD_BUG_ON_ZERO(err <= 0 || err > 300)] = "-" #err
177 #define E(err) [err - 512 + BUILD_BUG_ON_ZERO(err < 512 || err > 550)] = "-" #err
/linux-6.12.1/drivers/pinctrl/renesas/
Dsh_pfc.h54 BUILD_BUG_ON_ZERO(sizeof(_name##_pins) != sizeof(_name##_mux)), \
66 BUILD_BUG_ON_ZERO(first + n > ARRAY_SIZE(data##_pins)) + \
67 BUILD_BUG_ON_ZERO(first + n > ARRAY_SIZE(data##_mux)), \
130 .field_width = f_width + BUILD_BUG_ON_ZERO(r_width % f_width) + \
131 BUILD_BUG_ON_ZERO(sizeof((const u16 []) { ids }) / sizeof(u16) != \
200 BUILD_BUG_ON_ZERO(sizeof((const u16 []) { ids }) / sizeof(u16) != \

123