/kernel/linux/linux-5.10/include/linux/ |
D | bitfield.h | 44 #define __BF_FIELD_CHECK(_mask, _reg, _val, _pfx) \ argument 46 BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \ 48 BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ 50 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ 52 BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ 54 __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ 55 (1ULL << __bf_shf(_mask))); \ 65 #define FIELD_MAX(_mask) \ argument 67 __BF_FIELD_CHECK(_mask, 0ULL, 0ULL, "FIELD_MAX: "); \ 68 (typeof(_mask))((_mask) >> __bf_shf(_mask)); \ [all …]
|
D | nospec.h | 59 unsigned long _mask = array_index_mask_nospec(_i, _s); \ 64 (typeof(_i)) (_i & _mask); \
|
/kernel/linux/linux-5.10/arch/arm/probes/ |
D | decode.h | 328 #define DECODE_HEADER(_type, _mask, _value, _regs) \ argument 330 {.bits = (_mask)}, \ 339 #define DECODE_TABLE(_mask, _value, _table) \ argument 340 DECODE_HEADER(DECODE_TYPE_TABLE, _mask, _value, 0), \ 349 #define DECODE_CUSTOM(_mask, _value, _decoder) \ argument 350 DECODE_HEADER(DECODE_TYPE_CUSTOM, _mask, _value, 0), \ 359 #define DECODE_SIMULATEX(_mask, _value, _handler, _regs) \ argument 360 DECODE_HEADER(DECODE_TYPE_SIMULATE, _mask, _value, _regs), \ 363 #define DECODE_SIMULATE(_mask, _value, _handler) \ argument 364 DECODE_SIMULATEX(_mask, _value, _handler, 0) [all …]
|
/kernel/linux/linux-5.10/arch/mips/include/asm/mach-ralink/ |
D | pinmux.h | 12 #define GRP(_name, _func, _mask, _shift) \ argument 13 { .name = _name, .mask = _mask, .shift = _shift, \ 14 .func = _func, .gpio = _mask, \ 17 #define GRP_G(_name, _func, _mask, _gpio, _shift) \ argument 18 { .name = _name, .mask = _mask, .shift = _shift, \
|
/kernel/linux/linux-5.10/drivers/staging/iio/meter/ |
D | meter.h | 352 #define IIO_EVENT_ATTR_AENERGY_HALF_FULL(_evlist, _show, _store, _mask) \ argument 353 IIO_EVENT_ATTR_SH(aenergy_half_full, _evlist, _show, _store, _mask) 356 #define IIO_EVENT_ATTR_LINE_VOLT_SAG(_evlist, _show, _store, _mask) \ argument 357 IIO_EVENT_ATTR_SH(line_volt_sag, _evlist, _show, _store, _mask) 363 #define IIO_EVENT_ATTR_CYCEND(_evlist, _show, _store, _mask) \ argument 364 IIO_EVENT_ATTR_SH(cycend, _evlist, _show, _store, _mask) 367 #define IIO_EVENT_ATTR_ZERO_CROSS(_evlist, _show, _store, _mask) \ argument 368 IIO_EVENT_ATTR_SH(zero_cross, _evlist, _show, _store, _mask) 371 #define IIO_EVENT_ATTR_AENERGY_OVERFLOW(_evlist, _show, _store, _mask) \ argument 372 IIO_EVENT_ATTR_SH(aenergy_overflow, _evlist, _show, _store, _mask) [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
D | enum.h | 117 #define LOOPBACK_CHANGED(_from, _to, _mask) \ argument 118 (!!((LOOPBACK_MASK(_from) ^ LOOPBACK_MASK(_to)) & (_mask))) 120 #define LOOPBACK_OUT_OF(_from, _to, _mask) \ argument 121 ((LOOPBACK_MASK(_from) & (_mask)) && !(LOOPBACK_MASK(_to) & (_mask)))
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | enum.h | 118 #define LOOPBACK_CHANGED(_from, _to, _mask) \ argument 119 (!!((LOOPBACK_MASK(_from) ^ LOOPBACK_MASK(_to)) & (_mask))) 121 #define LOOPBACK_OUT_OF(_from, _to, _mask) \ argument 122 ((LOOPBACK_MASK(_from) & (_mask)) && !(LOOPBACK_MASK(_to) & (_mask)))
|
/kernel/linux/linux-5.10/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.h | 157 #define _MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ argument 162 .variant = _mask, \ 167 #define MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ argument 168 _MPP_VAR_FUNCTION(_val, _name, _subname, _mask) 170 #define MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ argument 171 _MPP_VAR_FUNCTION(_val, _name, NULL, _mask)
|
D | pinctrl-armada-37xx.c | 113 #define PIN_GRP(_name, _start, _nr, _mask, _func1, _func2) \ argument 118 .reg_mask = _mask, \ 119 .val = {0, _mask}, \ 123 #define PIN_GRP_GPIO(_name, _start, _nr, _mask, _func1) \ argument 128 .reg_mask = _mask, \ 129 .val = {0, _mask}, \ 133 #define PIN_GRP_GPIO_2(_name, _start, _nr, _mask, _val1, _val2, _func1) \ argument 138 .reg_mask = _mask, \ 143 #define PIN_GRP_GPIO_3(_name, _start, _nr, _mask, _v1, _v2, _v3, _f1, _f2) \ argument 148 .reg_mask = _mask, \ [all …]
|
/kernel/linux/linux-5.10/drivers/bcma/ |
D | sprom.c | 185 #define SPEX(_field, _offset, _mask, _shift) \ argument 186 bus->sprom._field = ((sprom[SPOFF(_offset)] & (_mask)) >> (_shift)) 188 #define SPEX32(_field, _offset, _mask, _shift) \ argument 190 sprom[SPOFF(_offset)]) & (_mask)) >> (_shift)) 192 #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ argument 194 SPEX(_field[0], _offset + 0, _mask, _shift); \ 195 SPEX(_field[1], _offset + 2, _mask, _shift); \ 196 SPEX(_field[2], _offset + 4, _mask, _shift); \ 197 SPEX(_field[3], _offset + 6, _mask, _shift); \ 198 SPEX(_field[4], _offset + 8, _mask, _shift); \ [all …]
|
/kernel/linux/linux-5.10/drivers/clk/at91/ |
D | pmc.h | 101 #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) argument 102 #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask)) argument
|
/kernel/linux/linux-5.10/include/xen/interface/io/ |
D | ring.h | 365 static inline RING_IDX name##_mask(RING_IDX idx, RING_IDX ring_size) \ 374 return buf + name##_mask(idx, ring_size); \ 392 *masked_cons = name##_mask(*masked_cons + size, ring_size); \ 410 *masked_prod = name##_mask(*masked_prod + size, ring_size); \ 422 prod = name##_mask(prod, ring_size); \ 423 cons = name##_mask(cons, ring_size); \
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/nx-gzip/include/ |
D | nxu.h | 429 & REG##_mask) 431 & REG##_mask) 437 #define unget32(ST, REG) (get32(ST, REG) & ~((REG##_mask) \ 441 #define ungetp32(ST, REG) (getp32(ST, REG) & ~((REG##_mask) \ 453 & REG##_mask) << (31-REG##_offset)))) 455 | (((X) & REG##_mask) << (31-REG##_offset))))
|
/kernel/linux/linux-5.10/drivers/clk/st/ |
D | clkgen.h | 38 #define CLKGEN_FIELD(_offset, _mask, _shift) { \ argument 40 .mask = _mask, \
|
/kernel/linux/linux-5.10/drivers/ssb/ |
D | pci.c | 171 #define SPEX16(_outvar, _offset, _mask, _shift) \ argument 172 out->_outvar = ((in[SPOFF(_offset)] & (_mask)) >> (_shift)) 173 #define SPEX32(_outvar, _offset, _mask, _shift) \ argument 175 in[SPOFF(_offset)]) & (_mask)) >> (_shift)) 176 #define SPEX(_outvar, _offset, _mask, _shift) \ argument 177 SPEX16(_outvar, _offset, _mask, _shift) 179 #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ argument 181 SPEX(_field[0], _offset + 0, _mask, _shift); \ 182 SPEX(_field[1], _offset + 2, _mask, _shift); \ 183 SPEX(_field[2], _offset + 4, _mask, _shift); \ [all …]
|
/kernel/linux/linux-5.10/net/6lowpan/ |
D | nhc.h | 28 static u8 __nhc##_mask[_idlen]; \ 34 .idmask = __nhc##_mask, \
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/gpio/ |
D | ddc_regs.h | 36 ….type ## _mask = DC_GPIO_DDC ## id ## _ ## type ## __DC_GPIO_DDC ## id ## cd ## _ ## type ## _MAS… 59 .type ## _mask = DC_GPIO_DDCVGA_ ## type ## __DC_GPIO_DDCVGA ## cd ## _ ## type ## _MASK,\ 76 .type ## _mask = DC_GPIO_I2CPAD_ ## type ## __DC_GPIO_ ## cd ## _ ## type ## _MASK,\
|
/kernel/linux/linux-5.10/include/linux/regulator/ |
D | ab8500.h | 55 #define INIT_REGULATOR_REGISTER(_id, _mask, _value) \ argument 58 .mask = _mask, \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl.c | 527 #define MLXSW_SP_ACL_MANGLE_ACTION(_htype, _offset, _mask, _shift, _field) \ argument 531 .mask = _mask, \ 536 #define MLXSW_SP_ACL_MANGLE_ACTION_IP4(_offset, _mask, _shift, _field) \ argument 538 _offset, _mask, _shift, _field) 540 #define MLXSW_SP_ACL_MANGLE_ACTION_IP6(_offset, _mask, _shift, _field) \ argument 542 _offset, _mask, _shift, _field) 544 #define MLXSW_SP_ACL_MANGLE_ACTION_TCP(_offset, _mask, _shift, _field) \ argument 545 MLXSW_SP_ACL_MANGLE_ACTION(FLOW_ACT_MANGLE_HDR_TYPE_TCP, _offset, _mask, _shift, _field) 547 #define MLXSW_SP_ACL_MANGLE_ACTION_UDP(_offset, _mask, _shift, _field) \ argument 548 MLXSW_SP_ACL_MANGLE_ACTION(FLOW_ACT_MANGLE_HDR_TYPE_UDP, _offset, _mask, _shift, _field)
|
/kernel/linux/linux-5.10/drivers/iio/health/ |
D | afe440x.h | 83 #define AFE440X_INTENSITY_CHAN(_index, _mask) \ argument 96 _mask, \
|
/kernel/linux/linux-5.10/include/linux/perf/ |
D | arm_pmu.h | 141 #define PMU_PROBE(_cpuid, _mask, _fn) \ argument 144 .mask = (_mask), \
|
/kernel/linux/linux-5.10/drivers/clk/uniphier/ |
D | clk-uniphier.h | 69 #define UNIPHIER_CLK_CPUGEAR(_name, _idx, _regbase, _mask, \ argument 79 .mask = (_mask) \
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4a/ |
D | clock-shx3.c | 61 #define DIV4(_bit, _mask, _flags) \ argument 62 SH_CLK_DIV4(&pll_clk, FRQMR1, _bit, _mask, _flags)
|
D | clock-sh7757.c | 62 #define DIV4(_bit, _mask, _flags) \ argument 63 SH_CLK_DIV4(&pll_clk, FRQCR, _bit, _mask, _flags)
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2a/ |
D | clock-sh7264.c | 77 #define DIV4(_reg, _bit, _mask, _flags) \ argument 78 SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags)
|