/include/linux/ |
D | cleanup.h | 37 #define DEFINE_FREE(_name, _type, _free) \ argument 38 static inline void __free_##_name(void *p) { _type _T = *(_type *)p; _free; } 40 #define __free(_name) __cleanup(__free_##_name) argument 71 #define DEFINE_CLASS(_name, _type, _exit, _init, _init_args...) \ argument 72 typedef _type class_##_name##_t; \ 73 static inline void class_##_name##_destructor(_type *p) \ 75 static inline _type class_##_name##_constructor(_init_args) \ 78 #define EXTEND_CLASS(_name, ext, _init, _init_args...) \ argument 79 typedef class_##_name##_t class_##_name##ext##_t; \ 80 static inline void class_##_name##ext##_destructor(class_##_name##_t *p)\ [all …]
|
D | hwmon-sysfs.h | 20 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument 21 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 24 #define SENSOR_ATTR_RO(_name, _func, _index) \ argument 25 SENSOR_ATTR(_name, 0444, _func##_show, NULL, _index) 27 #define SENSOR_ATTR_RW(_name, _func, _index) \ argument 28 SENSOR_ATTR(_name, 0644, _func##_show, _func##_store, _index) 30 #define SENSOR_ATTR_WO(_name, _func, _index) \ argument 31 SENSOR_ATTR(_name, 0200, NULL, _func##_store, _index) 33 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument 34 struct sensor_device_attribute sensor_dev_attr_##_name \ [all …]
|
D | sysfs.h | 101 #define __ATTR(_name, _mode, _show, _store) { \ argument 102 .attr = {.name = __stringify(_name), \ 108 #define __ATTR_PREALLOC(_name, _mode, _show, _store) { \ argument 109 .attr = {.name = __stringify(_name), \ 115 #define __ATTR_RO(_name) { \ argument 116 .attr = { .name = __stringify(_name), .mode = 0444 }, \ 117 .show = _name##_show, \ 120 #define __ATTR_RO_MODE(_name, _mode) { \ argument 121 .attr = { .name = __stringify(_name), \ 123 .show = _name##_show, \ [all …]
|
D | configfs.h | 123 #define CONFIGFS_ATTR(_pfx, _name) \ argument 124 static struct configfs_attribute _pfx##attr_##_name = { \ 125 .ca_name = __stringify(_name), \ 128 .show = _pfx##_name##_show, \ 129 .store = _pfx##_name##_store, \ 132 #define CONFIGFS_ATTR_RO(_pfx, _name) \ argument 133 static struct configfs_attribute _pfx##attr_##_name = { \ 134 .ca_name = __stringify(_name), \ 137 .show = _pfx##_name##_show, \ 140 #define CONFIGFS_ATTR_WO(_pfx, _name) \ argument [all …]
|
D | counter.h | 415 #define COUNTER_COMP_DEVICE_U8(_name, _read, _write) \ argument 418 .name = (_name), \ 422 #define COUNTER_COMP_COUNT_U8(_name, _read, _write) \ argument 425 .name = (_name), \ 429 #define COUNTER_COMP_SIGNAL_U8(_name, _read, _write) \ argument 432 .name = (_name), \ 437 #define COUNTER_COMP_DEVICE_U64(_name, _read, _write) \ argument 440 .name = (_name), \ 444 #define COUNTER_COMP_COUNT_U64(_name, _read, _write) \ argument 447 .name = (_name), \ [all …]
|
D | klist.h | 25 #define KLIST_INIT(_name, _get, _put) \ argument 26 { .k_lock = __SPIN_LOCK_UNLOCKED(_name.k_lock), \ 27 .k_list = LIST_HEAD_INIT(_name.k_list), \ 31 #define DEFINE_KLIST(_name, _get, _put) \ argument 32 struct klist _name = KLIST_INIT(_name, _get, _put)
|
D | async.h | 26 #define ASYNC_DOMAIN(_name) \ argument 27 struct async_domain _name = { .pending = LIST_HEAD_INIT(_name.pending), \ 34 #define ASYNC_DOMAIN_EXCLUSIVE(_name) \ argument 35 struct async_domain _name = { .pending = LIST_HEAD_INIT(_name.pending), \
|
D | tracepoint.h | 301 #define DEFINE_TRACE_FN(_name, _reg, _unreg, proto, args) \ argument 302 static const char __tpstrtab_##_name[] \ 303 __section("__tracepoints_strings") = #_name; \ 304 extern struct static_call_key STATIC_CALL_KEY(tp_func_##_name); \ 305 int __traceiter_##_name(void *__data, proto); \ 306 void __probestub_##_name(void *__data, proto); \ 307 struct tracepoint __tracepoint_##_name __used \ 309 .name = __tpstrtab_##_name, \ 311 .static_call_key = &STATIC_CALL_KEY(tp_func_##_name), \ 312 .static_call_tramp = STATIC_CALL_TRAMP_ADDR(tp_func_##_name), \ [all …]
|
D | device.h | 157 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument 158 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 169 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument 170 struct device_attribute dev_attr_##_name = \ 171 __ATTR_PREALLOC(_name, _mode, _show, _store) 180 #define DEVICE_ATTR_RW(_name) \ argument 181 struct device_attribute dev_attr_##_name = __ATTR_RW(_name) 189 #define DEVICE_ATTR_ADMIN_RW(_name) \ argument 190 struct device_attribute dev_attr_##_name = __ATTR_RW_MODE(_name, 0600) 198 #define DEVICE_ATTR_RO(_name) \ argument [all …]
|
D | semaphore.h | 34 #define DEFINE_SEMAPHORE(_name, _n) \ argument 35 struct semaphore _name = __SEMAPHORE_INITIALIZER(_name, _n)
|
D | cpufreq.h | 300 #define cpufreq_freq_attr_ro(_name) \ argument 301 static struct freq_attr _name = \ 302 __ATTR(_name, 0444, show_##_name, NULL) 304 #define cpufreq_freq_attr_ro_perm(_name, _perm) \ argument 305 static struct freq_attr _name = \ 306 __ATTR(_name, _perm, show_##_name, NULL) 308 #define cpufreq_freq_attr_rw(_name) \ argument 309 static struct freq_attr _name = \ 310 __ATTR(_name, 0644, show_##_name, store_##_name) 312 #define cpufreq_freq_attr_wo(_name) \ argument [all …]
|
D | ioport.h | 163 #define DEFINE_RES_NAMED(_start, _size, _name, _flags) \ argument 167 .name = (_name), \ 172 #define DEFINE_RES_IO_NAMED(_start, _size, _name) \ argument 173 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_IO) 177 #define DEFINE_RES_MEM_NAMED(_start, _size, _name) \ argument 178 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_MEM) 182 #define DEFINE_RES_REG_NAMED(_start, _size, _name) \ argument 183 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_REG) 187 #define DEFINE_RES_IRQ_NAMED(_irq, _name) \ argument 188 DEFINE_RES_NAMED((_irq), 1, (_name), IORESOURCE_IRQ) [all …]
|
/include/linux/iio/ |
D | sysfs.h | 54 #define IIO_ATTR(_name, _mode, _show, _store, _addr) \ argument 55 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 58 #define IIO_ATTR_RO(_name, _addr) \ argument 59 { .dev_attr = __ATTR_RO(_name), \ 62 #define IIO_ATTR_WO(_name, _addr) \ argument 63 { .dev_attr = __ATTR_WO(_name), \ 66 #define IIO_ATTR_RW(_name, _addr) \ argument 67 { .dev_attr = __ATTR_RW(_name), \ 70 #define IIO_DEVICE_ATTR(_name, _mode, _show, _store, _addr) \ argument 71 struct iio_dev_attr iio_dev_attr_##_name \ [all …]
|
/include/rdma/ |
D | ib_sysfs.h | 21 #define IB_PORT_ATTR_RW(_name) \ argument 22 struct ib_port_attribute ib_port_attr_##_name = __ATTR_RW(_name) 24 #define IB_PORT_ATTR_ADMIN_RW(_name) \ argument 25 struct ib_port_attribute ib_port_attr_##_name = \ 26 __ATTR_RW_MODE(_name, 0600) 28 #define IB_PORT_ATTR_RO(_name) \ argument 29 struct ib_port_attribute ib_port_attr_##_name = __ATTR_RO(_name) 31 #define IB_PORT_ATTR_WO(_name) \ argument 32 struct ib_port_attribute ib_port_attr_##_name = __ATTR_WO(_name)
|
D | uverbs_named_ioctl.h | 75 #define ADD_UVERBS_METHODS(_name, _object_id, ...) \ argument 78 static const struct uverbs_object_def _name = { \ 87 #define ADD_UVERBS_ATTRIBUTES_SIMPLE(_name, _object_id, _method_id, ...) \ argument 95 ADD_UVERBS_METHODS(_name, _object_id, &UVERBS_METHOD(_method_id))
|
/include/trace/events/ |
D | mmflags.h | 70 #define IF_HAVE_PG_MLOCK(_name) ,{1UL << PG_##_name, __stringify(_name)} argument 72 #define IF_HAVE_PG_MLOCK(_name) argument 76 #define IF_HAVE_PG_UNCACHED(_name) ,{1UL << PG_##_name, __stringify(_name)} argument 78 #define IF_HAVE_PG_UNCACHED(_name) argument 82 #define IF_HAVE_PG_HWPOISON(_name) ,{1UL << PG_##_name, __stringify(_name)} argument 84 #define IF_HAVE_PG_HWPOISON(_name) argument 88 #define IF_HAVE_PG_IDLE(_name) ,{1UL << PG_##_name, __stringify(_name)} argument 90 #define IF_HAVE_PG_IDLE(_name) argument 94 #define IF_HAVE_PG_ARCH_X(_name) ,{1UL << PG_##_name, __stringify(_name)} argument 96 #define IF_HAVE_PG_ARCH_X(_name) argument [all …]
|
/include/linux/mfd/ |
D | core.h | 17 #define MFD_CELL_ALL(_name, _res, _pdata, _pdsize, _id, _compat, _of_reg, _use_of_reg, _match) \ argument 19 .name = (_name), \ 31 #define MFD_CELL_OF_REG(_name, _res, _pdata, _pdsize, _id, _compat, _of_reg) \ argument 32 MFD_CELL_ALL(_name, _res, _pdata, _pdsize, _id, _compat, _of_reg, true, NULL) 34 #define MFD_CELL_OF(_name, _res, _pdata, _pdsize, _id, _compat) \ argument 35 MFD_CELL_ALL(_name, _res, _pdata, _pdsize, _id, _compat, 0, false, NULL) 37 #define MFD_CELL_ACPI(_name, _res, _pdata, _pdsize, _id, _match) \ argument 38 MFD_CELL_ALL(_name, _res, _pdata, _pdsize, _id, NULL, 0, false, _match) 40 #define MFD_CELL_BASIC(_name, _res, _pdata, _pdsize, _id) \ argument 41 MFD_CELL_ALL(_name, _res, _pdata, _pdsize, _id, NULL, 0, false, NULL) [all …]
|
D | lm3533.h | 13 #define LM3533_ATTR_RO(_name) \ argument 14 DEVICE_ATTR(_name, S_IRUGO, show_##_name, NULL) 15 #define LM3533_ATTR_RW(_name) \ argument 16 DEVICE_ATTR(_name, S_IRUGO | S_IWUSR , show_##_name, store_##_name)
|
/include/trace/hooks/ |
D | vendor_hooks.h | 22 #define DEFINE_HOOK_FN(_name, _reg, _unreg, proto, args) \ argument 23 static const char __tpstrtab_##_name[] \ 24 __section("__tracepoints_strings") = #_name; \ 25 extern struct static_call_key STATIC_CALL_KEY(tp_func_##_name); \ 26 int __traceiter_##_name(void *__data, proto); \ 27 struct tracepoint __tracepoint_##_name __used \ 29 .name = __tpstrtab_##_name, \ 31 .static_call_key = &STATIC_CALL_KEY(tp_func_##_name), \ 32 .static_call_tramp = STATIC_CALL_TRAMP_ADDR(tp_func_##_name), \ 33 .iterator = &__traceiter_##_name, \ [all …]
|
/include/linux/device/ |
D | class.h | 185 #define CLASS_ATTR_RW(_name) \ argument 186 struct class_attribute class_attr_##_name = __ATTR_RW(_name) 187 #define CLASS_ATTR_RO(_name) \ argument 188 struct class_attribute class_attr_##_name = __ATTR_RO(_name) 189 #define CLASS_ATTR_WO(_name) \ argument 190 struct class_attribute class_attr_##_name = __ATTR_WO(_name) 216 #define _CLASS_ATTR_STRING(_name, _mode, _str) \ argument 217 { __ATTR(_name, _mode, show_class_attr_string, NULL), _str } 218 #define CLASS_ATTR_STRING(_name, _mode, _str) \ argument 219 struct class_attribute_string class_attr_##_name = \ [all …]
|
D | driver.h | 148 #define DRIVER_ATTR_RW(_name) \ argument 149 struct driver_attribute driver_attr_##_name = __ATTR_RW(_name) 150 #define DRIVER_ATTR_RO(_name) \ argument 151 struct driver_attribute driver_attr_##_name = __ATTR_RO(_name) 152 #define DRIVER_ATTR_WO(_name) \ argument 153 struct driver_attribute driver_attr_##_name = __ATTR_WO(_name)
|
D | bus.h | 130 #define BUS_ATTR_RW(_name) \ argument 131 struct bus_attribute bus_attr_##_name = __ATTR_RW(_name) 132 #define BUS_ATTR_RO(_name) \ argument 133 struct bus_attribute bus_attr_##_name = __ATTR_RO(_name) 134 #define BUS_ATTR_WO(_name) \ argument 135 struct bus_attribute bus_attr_##_name = __ATTR_WO(_name)
|
/include/linux/usb/ |
D | composite.h | 599 #define DECLARE_USB_FUNCTION(_name, _inst_alloc, _func_alloc) \ argument 600 static struct usb_function_driver _name ## usb_func = { \ 601 .name = __stringify(_name), \ 606 MODULE_ALIAS("usbfunc:"__stringify(_name)); 608 #define DECLARE_USB_FUNCTION_INIT(_name, _inst_alloc, _func_alloc) \ argument 609 DECLARE_USB_FUNCTION(_name, _inst_alloc, _func_alloc) \ 610 static int __init _name ## mod_init(void) \ 612 return usb_function_register(&_name ## usb_func); \ 614 static void __exit _name ## mod_exit(void) \ 616 usb_function_unregister(&_name ## usb_func); \ [all …]
|
/include/uapi/rdma/ |
D | rvt-abi.h | 14 #define RDMA_ATOMIC_UAPI(_type, _name) struct{ _type val; } _name argument
|
/include/uapi/linux/ |
D | map_to_7segment.h | 75 #define SEG7_CONVERSION_MAP(_name, _map) \ argument 76 struct seg7_conversion_map _name = { .table = { _map } } 175 #define SEG7_DEFAULT_MAP(_name) \ argument 176 SEG7_CONVERSION_MAP(_name,MAP_ASCII7SEG_ALPHANUM)
|