Home
last modified time | relevance | path

Searched refs:_mask (Results 1 – 25 of 106) sorted by relevance

12345

/linux-6.6.21/include/linux/
Dbitfield.h63 #define __BF_FIELD_CHECK(_mask, _reg, _val, _pfx) \ argument
65 BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \
67 BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
69 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
71 BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \
74 __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
75 (1ULL << __bf_shf(_mask))); \
85 #define FIELD_MAX(_mask) \ argument
87 __BF_FIELD_CHECK(_mask, 0ULL, 0ULL, "FIELD_MAX: "); \
88 (typeof(_mask))((_mask) >> __bf_shf(_mask)); \
[all …]
Dnospec.h59 unsigned long _mask = array_index_mask_nospec(_i, _s); \
64 (typeof(_i)) (_i & _mask); \
/linux-6.6.21/tools/include/linux/
Dbitfield.h60 #define __BF_FIELD_CHECK(_mask, _reg, _val, _pfx) \ argument
62 BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \
64 BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
66 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
68 BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \
71 __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
72 (1ULL << __bf_shf(_mask))); \
82 #define FIELD_MAX(_mask) \ argument
84 __BF_FIELD_CHECK(_mask, 0ULL, 0ULL, "FIELD_MAX: "); \
85 (typeof(_mask))((_mask) >> __bf_shf(_mask)); \
[all …]
/linux-6.6.21/arch/arm/probes/
Ddecode.h304 #define DECODE_HEADER(_type, _mask, _value, _regs) \ argument
306 {.bits = (_mask)}, \
315 #define DECODE_TABLE(_mask, _value, _table) \ argument
316 DECODE_HEADER(DECODE_TYPE_TABLE, _mask, _value, 0), \
325 #define DECODE_CUSTOM(_mask, _value, _decoder) \ argument
326 DECODE_HEADER(DECODE_TYPE_CUSTOM, _mask, _value, 0), \
335 #define DECODE_SIMULATEX(_mask, _value, _handler, _regs) \ argument
336 DECODE_HEADER(DECODE_TYPE_SIMULATE, _mask, _value, _regs), \
339 #define DECODE_SIMULATE(_mask, _value, _handler) \ argument
340 DECODE_SIMULATEX(_mask, _value, _handler, 0)
[all …]
/linux-6.6.21/drivers/pmdomain/mediatek/
Dmtk-pm-domains.h45 #define _BUS_PROT(_mask, _set, _clr, _sta, _update, _ignore) { \ argument
46 .bus_prot_mask = (_mask), \
54 #define BUS_PROT_WR(_mask, _set, _clr, _sta) \ argument
55 _BUS_PROT(_mask, _set, _clr, _sta, false, false)
57 #define BUS_PROT_WR_IGN(_mask, _set, _clr, _sta) \ argument
58 _BUS_PROT(_mask, _set, _clr, _sta, false, true)
60 #define BUS_PROT_UPDATE(_mask, _set, _clr, _sta) \ argument
61 _BUS_PROT(_mask, _set, _clr, _sta, true, false)
63 #define BUS_PROT_UPDATE_TOPAXI(_mask) \ argument
64 BUS_PROT_UPDATE(_mask, \
/linux-6.6.21/drivers/pinctrl/mediatek/
Dpinctrl-mtmips.h12 #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, \
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Denum.h117 #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)))
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Denum.h117 #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)))
/linux-6.6.21/drivers/net/ethernet/sfc/
Denum.h117 #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)))
/linux-6.6.21/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.h157 #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)
/linux-6.6.21/include/linux/soc/mediatek/
Dmtk_wed.h222 #define mtk_wed_device_start(_dev, _mask) (_dev)->ops->start(_dev, _mask) argument
231 #define mtk_wed_device_irq_get(_dev, _mask) \ argument
232 (_dev)->ops->irq_get(_dev, _mask)
233 #define mtk_wed_device_irq_set_mask(_dev, _mask) \ argument
234 (_dev)->ops->irq_set_mask(_dev, _mask)
251 #define mtk_wed_device_start(_dev, _mask) do {} while (0) argument
256 #define mtk_wed_device_irq_get(_dev, _mask) 0 argument
257 #define mtk_wed_device_irq_set_mask(_dev, _mask) do {} while (0) argument
/linux-6.6.21/drivers/bcma/
Dsprom.c185 #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 …]
/linux-6.6.21/drivers/clk/at91/
Dpmc.h117 #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) argument
118 #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask)) argument
/linux-6.6.21/drivers/mfd/
Dwcd934x.c19 #define WCD934X_REGMAP_IRQ_REG(_irq, _off, _mask) \ argument
22 .mask = (_mask), \
26 .type_reg_mask = (_mask), \
27 .type_level_low_val = (_mask), \
28 .type_level_high_val = (_mask), \
/linux-6.6.21/include/xen/interface/io/
Dring.h357 static inline RING_IDX name##_mask(RING_IDX idx, RING_IDX ring_size) \
366 return buf + name##_mask(idx, ring_size); \
384 *masked_cons = name##_mask(*masked_cons + size, ring_size); \
402 *masked_prod = name##_mask(*masked_prod + size, ring_size); \
414 prod = name##_mask(prod, ring_size); \
415 cons = name##_mask(cons, ring_size); \
/linux-6.6.21/drivers/ufs/host/
Dufs-renesas.c45 #define PARAM_SAVE(_reg, _mask, _index) \ argument
46 { .mode = MODE_SAVE, .reg = _reg, .mask = (u32)(_mask), \
48 #define PARAM_POLL(_reg, _expected, _mask) \ argument
50 .mask = (u32)(_mask) }
126 #define PARAM_INDIRECT_POLL(_gpio, _addr, _expected, _mask) \ argument
130 PARAM_POLL(0xd4, _expected, _mask), \
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.h53 struct mlx5dr_match_misc2 *_mask = mask; \
55 DR_STE_SET_TAG(lookup_type, _tag, mpls0_label, _mask, \
57 DR_STE_SET_TAG(lookup_type, _tag, mpls0_s_bos, _mask, \
59 DR_STE_SET_TAG(lookup_type, _tag, mpls0_exp, _mask, \
61 DR_STE_SET_TAG(lookup_type, _tag, mpls0_ttl, _mask, \
/linux-6.6.21/tools/testing/selftests/powerpc/nx-gzip/include/
Dnxu.h429 & 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))))
/linux-6.6.21/drivers/usb/typec/tipd/
Dtps6598x.h15 #define TPS_FIELD_GET(_mask, _reg) ((typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask))) argument
/linux-6.6.21/drivers/clk/st/
Dclkgen.h38 #define CLKGEN_FIELD(_offset, _mask, _shift) { \ argument
40 .mask = _mask, \
/linux-6.6.21/drivers/ssb/
Dpci.c171 #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 …]
/linux-6.6.21/drivers/platform/x86/intel/speed_select_if/
Disst_tpmi_core.c628 u64 val, _mask;\
632 _mask = GENMASK_ULL((start + width - 1), start);\
633 val &= _mask;\
640 u64 val, _mask;\
644 _mask = GENMASK((start + width - 1), start);\
645 val &= ~_mask;\
653 u64 val, _mask;\
658 _mask = GENMASK_ULL((start + width - 1), start);\
659 val &= _mask; \
666 u64 val, _mask;\
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dphy.h553 #define RTW89_DECL_RFK_WRF(_path, _addr, _mask, _data) \ argument
557 .mask = _mask, \
560 #define RTW89_DECL_RFK_WM(_addr, _mask, _data) \ argument
563 .mask = _mask, \
566 #define RTW89_DECL_RFK_WS(_addr, _mask) \ argument
569 .mask = _mask,}
571 #define RTW89_DECL_RFK_WC(_addr, _mask) \ argument
574 .mask = _mask,}
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/
Dddc_regs.h36 ….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,\
/linux-6.6.21/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-comp.h52 #define MM_REG_POLL_MASK(cmd, id, base, ofst, val, _mask, ...) \ argument
54 typeof(_mask) (_m) = (_mask); \

12345