Home
last modified time | relevance | path

Searched refs:_var (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/md/bcache/
Dsysfs.h86 #define var_printf(_var, fmt) sysfs_printf(_var, fmt, var(_var)) argument
87 #define var_print(_var) sysfs_print(_var, var(_var)) argument
88 #define var_hprint(_var) sysfs_hprint(_var, var(_var)) argument
/linux-6.6.21/arch/x86/include/asm/
Dpercpu.h101 #define percpu_to_op(size, qual, op, _var, _val) \ argument
105 typeof(_var) pto_tmp__; \
110 : [var] "+m" (_var) \
114 #define percpu_unary_op(size, qual, op, _var) \ argument
117 : [var] "+m" (_var)); \
142 #define percpu_from_op(size, qual, op, _var) \ argument
147 : [var] "m" (_var)); \
148 (typeof(_var))(unsigned long) pfo_val__; \
151 #define percpu_stable_op(size, op, _var) \ argument
156 : [var] "p" (&(_var))); \
[all …]
Drmwcc.h13 #define __GEN_RMWcc(fullop, _var, cc, clobbers, ...) \ argument
17 : : [var] "m" (_var), ## __VA_ARGS__ \
29 #define __GEN_RMWcc(fullop, _var, cc, clobbers, ...) \ argument
33 : [var] "+m" (_var), CC_OUT(cc) (c) \
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h1448 #define GET_BITS(_var, _index, _width) \ argument
1449 (((_var) >> (_index)) & ((0x1 << (_width)) - 1))
1451 #define SET_BITS(_var, _index, _width, _val) \ argument
1453 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \
1454 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \
1457 #define GET_BITS_LE(_var, _index, _width) \ argument
1458 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1))
1460 #define SET_BITS_LE(_var, _index, _width, _val) \ argument
1462 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \
1463 (_var) |= cpu_to_le32((((_val) & \
[all …]
Dxgbe-ethtool.c130 #define XGMAC_MMC_STAT(_string, _var) \ argument
132 sizeof_field(struct xgbe_mmc_stats, _var), \
133 offsetof(struct xgbe_prv_data, mmc_stats._var), \
136 #define XGMAC_EXT_STAT(_string, _var) \ argument
138 sizeof_field(struct xgbe_ext_stats, _var), \
139 offsetof(struct xgbe_prv_data, ext_stats._var), \
/linux-6.6.21/drivers/net/ethernet/synopsys/
Ddwc-xlgmac.h110 typeof(var) _var = le32_to_cpu((var)); \
111 ((_var) & GENMASK(_pos + _len - 1, _pos)) >> (_pos); \
115 typeof(var) _var = (var); \
120 _var = (_var & ~GENMASK(_pos + _len - 1, _pos)) | _val; \
124 typeof(var) _var = (var); \
129 _var = (_var & ~GENMASK(_pos + _len - 1, _pos)) | _val; \
130 cpu_to_le32(_var); \
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dutil.h27 #define MT76_INCR(_var, _size) \ argument
28 (_var = (((_var) + 1) % (_size)))
/linux-6.6.21/include/linux/
Ddynamic_debug.h102 #define DECLARE_DYNDBG_CLASSMAP(_var, _maptype, _base, ...) \ argument
103 static const char *_var##_classnames[] = { __VA_ARGS__ }; \
105 __section("__dyndbg_classes") _var = { \
111 .class_names = _var##_classnames, \
Ddevice.h227 #define DEVICE_ULONG_ATTR(_name, _mode, _var) \ argument
229 { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
239 #define DEVICE_INT_ATTR(_name, _mode, _var) \ argument
241 { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) }
251 #define DEVICE_BOOL_ATTR(_name, _mode, _var) \ argument
253 { __ATTR(_name, _mode, device_show_bool, device_store_bool), &(_var) }
Dperf_event.h1838 #define PMU_EVENT_ATTR(_name, _var, _id, _show) \ argument
1839 static struct perf_pmu_events_attr _var = { \
1844 #define PMU_EVENT_ATTR_STRING(_name, _var, _str) \ argument
1845 static struct perf_pmu_events_attr _var = { \
/linux-6.6.21/arch/x86/events/intel/
Duncore.h236 #define DEFINE_UNCORE_FORMAT_ATTR(_var, _name, _format) \ argument
237 static ssize_t __uncore_##_var##_show(struct device *dev, \
244 static struct device_attribute format_attr_##_var = \
245 __ATTR(_name, 0444, __uncore_##_var##_show, NULL)
Dcstate.c114 #define DEFINE_CSTATE_FORMAT_ATTR(_var, _name, _format) \ argument
115 static ssize_t __cstate_##_var##_show(struct device *dev, \
122 static struct device_attribute format_attr_##_var = \
123 __ATTR(_name, 0444, __cstate_##_var##_show, NULL)
/linux-6.6.21/arch/x86/events/amd/
Duncore.c304 #define DEFINE_UNCORE_FORMAT_ATTR(_var, _name, _format) \ argument
305 static ssize_t __uncore_##_var##_show(struct device *dev, \
312 static struct device_attribute format_attr_##_var = \
313 __ATTR(_name, 0444, __uncore_##_var##_show, NULL)
/linux-6.6.21/drivers/platform/chrome/
Dchromeos_acpi.c21 #define DEV_ATTR(_var, _name) \ argument
22 static struct device_attribute dev_attr_##_var = \
/linux-6.6.21/drivers/perf/
Dfsl_imx8_ddr_perf.c179 #define PERF_EXT_ATTR_ENTRY(_name, _func, _var) \ argument
181 __ATTR(_name, 0444, _func, NULL), (void *)_var \
184 #define PERF_FILTER_EXT_ATTR_ENTRY(_name, _var) \ argument
185 PERF_EXT_ATTR_ENTRY(_name, ddr_perf_filter_cap_show, _var)
Dthunderx2_pmu.c124 #define TX2_PMU_FORMAT_ATTR(_var, _name, _format) \ argument
126 __tx2_pmu_##_var##_show(struct device *dev, \
134 static struct device_attribute format_attr_##_var = \
135 __ATTR(_name, 0444, __tx2_pmu_##_var##_show, NULL)
Darm_spe_pmu.c153 #define SPE_EXT_ATTR_ENTRY(_name, _func, _var) \ argument
155 { __ATTR(_name, S_IRUGO, _func, NULL), (void *)_var } \
158 #define SPE_CAP_EXT_ATTR_ENTRY(_name, _var) \ argument
159 SPE_EXT_ATTR_ENTRY(_name, arm_spe_pmu_cap_show, _var)
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_blit.c93 #define SPILL(_var, _type) ((unsigned long) _var & (sizeof(_type) - 1)) argument
/linux-6.6.21/arch/x86/events/
Dperf_event.h704 #define hybrid_var(_pmu, _var) \ argument
706 typeof(&_var) __Fp = &_var; \
709 __Fp = &hybrid_pmu(_pmu)->_var; \
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c339 #define TEST_BTF_DUMP_VAR(_b, _d, _prefix, _str, _var, _type, _flags, \ argument
345 (void) btf_dump_data(_b, _d, _var, _prefix, _flags, \
/linux-6.6.21/drivers/edac/
Dedac_mc_sysfs.c137 #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \ argument
139 { __ATTR(_name, _mode, _show, _store), (_var) }