/linux-4.1.27/drivers/md/bcache/ |
D | sysfs.h | 71 #define var_printf(_var, fmt) sysfs_printf(_var, fmt, var(_var)) argument 72 #define var_print(_var) sysfs_print(_var, var(_var)) argument 73 #define var_hprint(_var) sysfs_hprint(_var, var(_var)) argument
|
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-common.h | 988 #define GET_BITS(_var, _index, _width) \ argument 989 (((_var) >> (_index)) & ((0x1 << (_width)) - 1)) 991 #define SET_BITS(_var, _index, _width, _val) \ argument 993 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \ 994 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \ 997 #define GET_BITS_LE(_var, _index, _width) \ argument 998 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1)) 1000 #define SET_BITS_LE(_var, _index, _width, _val) \ argument 1002 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \ 1003 (_var) |= cpu_to_le32((((_val) & \ [all …]
|
D | xgbe-ethtool.c | 130 #define XGMAC_MMC_STAT(_string, _var) \ argument 132 FIELD_SIZEOF(struct xgbe_mmc_stats, _var), \ 133 offsetof(struct xgbe_prv_data, mmc_stats._var), \
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
D | perf_event_intel_uncore.h | 129 #define DEFINE_UNCORE_FORMAT_ATTR(_var, _name, _format) \ argument 130 static ssize_t __uncore_##_var##_show(struct kobject *kobj, \ 137 static struct kobj_attribute format_attr_##_var = \ 138 __ATTR(_name, 0444, __uncore_##_var##_show, NULL)
|
D | perf_event_intel_rapl.c | 95 #define DEFINE_RAPL_FORMAT_ATTR(_var, _name, _format) \ argument 96 static ssize_t __rapl_##_var##_show(struct kobject *kobj, \ 103 static struct kobj_attribute format_attr_##_var = \ 104 __ATTR(_name, 0444, __rapl_##_var##_show, NULL)
|
/linux-4.1.27/drivers/net/phy/ |
D | amd-xgbe-phy.c | 237 #define GET_BITS(_var, _index, _width) \ argument 238 (((_var) >> (_index)) & ((0x1 << (_width)) - 1)) 240 #define SET_BITS(_var, _index, _width, _val) \ argument 242 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \ 243 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \ 246 #define XSIR_GET_BITS(_var, _prefix, _field) \ argument 247 GET_BITS((_var), \ 251 #define XSIR_SET_BITS(_var, _prefix, _field, _val) \ argument 252 SET_BITS((_var), \
|
/linux-4.1.27/include/linux/ |
D | perf_event.h | 1025 #define PMU_EVENT_ATTR(_name, _var, _id, _show) \ argument 1026 static struct perf_pmu_events_attr _var = { \ 1031 #define PMU_EVENT_ATTR_STRING(_name, _var, _str) \ argument 1032 static struct perf_pmu_events_attr _var = { \
|
D | device.h | 548 #define DEVICE_ULONG_ATTR(_name, _mode, _var) \ argument 550 { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) } 551 #define DEVICE_INT_ATTR(_name, _mode, _var) \ argument 553 { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) } 554 #define DEVICE_BOOL_ATTR(_name, _mode, _var) \ argument 556 { __ATTR(_name, _mode, device_show_bool, device_store_bool), &(_var) }
|
/linux-4.1.27/drivers/target/ |
D | target_core_configfs.c | 2087 #define SE_DEV_ALUA_SUPPORT_STATE_SHOW(_name, _var, _bit) \ argument 2091 return sprintf(p, "%d\n", !!(t->_var & _bit)); \ 2094 #define SE_DEV_ALUA_SUPPORT_STATE_STORE(_name, _var, _bit) \ argument 2118 t->_var |= _bit; \ 2120 t->_var &= ~_bit; \
|
/linux-4.1.27/drivers/edac/ |
D | edac_mc_sysfs.c | 159 #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \ argument 161 { __ATTR(_name, _mode, _show, _store), (_var) }
|