/include/linux/ |
D | hwmon-sysfs.h | 19 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument 20 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 23 #define SENSOR_ATTR_RO(_name, _func, _index) \ argument 24 SENSOR_ATTR(_name, 0444, _func##_show, NULL, _index) 26 #define SENSOR_ATTR_RW(_name, _func, _index) \ argument 27 SENSOR_ATTR(_name, 0644, _func##_show, _func##_store, _index) 29 #define SENSOR_ATTR_WO(_name, _func, _index) \ argument 30 SENSOR_ATTR(_name, 0200, NULL, _func##_store, _index) 32 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument 33 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 | 330 #define COUNTER_COMP_DEVICE_U8(_name, _read, _write) \ argument 333 .name = (_name), \ 337 #define COUNTER_COMP_COUNT_U8(_name, _read, _write) \ argument 340 .name = (_name), \ 344 #define COUNTER_COMP_SIGNAL_U8(_name, _read, _write) \ argument 347 .name = (_name), \ 352 #define COUNTER_COMP_DEVICE_U64(_name, _read, _write) \ argument 355 .name = (_name), \ 359 #define COUNTER_COMP_COUNT_U64(_name, _read, _write) \ argument 362 .name = (_name), \ [all …]
|
D | mdev.h | 131 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ argument 132 struct mdev_type_attribute mdev_type_attr_##_name = \ 133 __ATTR(_name, _mode, _show, _store) 134 #define MDEV_TYPE_ATTR_RW(_name) \ argument 135 struct mdev_type_attribute mdev_type_attr_##_name = __ATTR_RW(_name) 136 #define MDEV_TYPE_ATTR_RO(_name) \ argument 137 struct mdev_type_attribute mdev_type_attr_##_name = __ATTR_RO(_name) 138 #define MDEV_TYPE_ATTR_WO(_name) \ argument 139 struct mdev_type_attribute mdev_type_attr_##_name = __ATTR_WO(_name)
|
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 | 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 | device.h | 126 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument 127 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 128 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument 129 struct device_attribute dev_attr_##_name = \ 130 __ATTR_PREALLOC(_name, _mode, _show, _store) 131 #define DEVICE_ATTR_RW(_name) \ argument 132 struct device_attribute dev_attr_##_name = __ATTR_RW(_name) 133 #define DEVICE_ATTR_ADMIN_RW(_name) \ argument 134 struct device_attribute dev_attr_##_name = __ATTR_RW_MODE(_name, 0600) 135 #define DEVICE_ATTR_RO(_name) \ argument [all …]
|
D | cpufreq.h | 283 #define cpufreq_freq_attr_ro(_name) \ argument 284 static struct freq_attr _name = \ 285 __ATTR(_name, 0444, show_##_name, NULL) 287 #define cpufreq_freq_attr_ro_perm(_name, _perm) \ argument 288 static struct freq_attr _name = \ 289 __ATTR(_name, _perm, show_##_name, NULL) 291 #define cpufreq_freq_attr_rw(_name) \ argument 292 static struct freq_attr _name = \ 293 __ATTR(_name, 0644, show_##_name, store_##_name) 295 #define cpufreq_freq_attr_wo(_name) \ argument [all …]
|
D | tracepoint.h | 290 #define DEFINE_TRACE_FN(_name, _reg, _unreg, proto, args) \ argument 291 static const char __tpstrtab_##_name[] \ 292 __section("__tracepoints_strings") = #_name; \ 293 extern struct static_call_key STATIC_CALL_KEY(tp_func_##_name); \ 294 int __traceiter_##_name(void *__data, proto); \ 295 struct tracepoint __tracepoint_##_name __used \ 297 .name = __tpstrtab_##_name, \ 299 .static_call_key = &STATIC_CALL_KEY(tp_func_##_name), \ 300 .static_call_tramp = STATIC_CALL_TRAMP_ADDR(tp_func_##_name), \ 301 .iterator = &__traceiter_##_name, \ [all …]
|
D | ioport.h | 161 #define DEFINE_RES_NAMED(_start, _size, _name, _flags) \ argument 165 .name = (_name), \ 170 #define DEFINE_RES_IO_NAMED(_start, _size, _name) \ argument 171 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_IO) 175 #define DEFINE_RES_MEM_NAMED(_start, _size, _name) \ argument 176 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_MEM) 180 #define DEFINE_RES_IRQ_NAMED(_irq, _name) \ argument 181 DEFINE_RES_NAMED((_irq), 1, (_name), IORESOURCE_IRQ) 185 #define DEFINE_RES_DMA_NAMED(_dma, _name) \ argument 186 DEFINE_RES_NAMED((_dma), 1, (_name), IORESOURCE_DMA)
|
/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/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/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/linux/device/ |
D | class.h | 205 #define CLASS_ATTR_RW(_name) \ argument 206 struct class_attribute class_attr_##_name = __ATTR_RW(_name) 207 #define CLASS_ATTR_RO(_name) \ argument 208 struct class_attribute class_attr_##_name = __ATTR_RO(_name) 209 #define CLASS_ATTR_WO(_name) \ argument 210 struct class_attribute class_attr_##_name = __ATTR_WO(_name) 238 #define _CLASS_ATTR_STRING(_name, _mode, _str) \ argument 239 { __ATTR(_name, _mode, show_class_attr_string, NULL), _str } 240 #define CLASS_ATTR_STRING(_name, _mode, _str) \ argument 241 struct class_attribute_string class_attr_##_name = \ [all …]
|
D | driver.h | 146 #define DRIVER_ATTR_RW(_name) \ argument 147 struct driver_attribute driver_attr_##_name = __ATTR_RW(_name) 148 #define DRIVER_ATTR_RO(_name) \ argument 149 struct driver_attribute driver_attr_##_name = __ATTR_RO(_name) 150 #define DRIVER_ATTR_WO(_name) \ argument 151 struct driver_attribute driver_attr_##_name = __ATTR_WO(_name)
|
D | bus.h | 134 #define BUS_ATTR_RW(_name) \ argument 135 struct bus_attribute bus_attr_##_name = __ATTR_RW(_name) 136 #define BUS_ATTR_RO(_name) \ argument 137 struct bus_attribute bus_attr_##_name = __ATTR_RO(_name) 138 #define BUS_ATTR_WO(_name) \ argument 139 struct bus_attribute bus_attr_##_name = __ATTR_WO(_name)
|
/include/linux/usb/ |
D | composite.h | 614 #define DECLARE_USB_FUNCTION(_name, _inst_alloc, _func_alloc) \ argument 615 static struct usb_function_driver _name ## usb_func = { \ 616 .name = __stringify(_name), \ 621 MODULE_ALIAS("usbfunc:"__stringify(_name)); 623 #define DECLARE_USB_FUNCTION_INIT(_name, _inst_alloc, _func_alloc) \ argument 624 DECLARE_USB_FUNCTION(_name, _inst_alloc, _func_alloc) \ 625 static int __init _name ## mod_init(void) \ 627 return usb_function_register(&_name ## usb_func); \ 629 static void __exit _name ## mod_exit(void) \ 631 usb_function_unregister(&_name ## usb_func); \ [all …]
|
D | gadget_configfs.h | 30 #define GS_STRINGS_RW(struct_name, _name) \ argument 31 GS_STRINGS_R(struct_name, _name) \ 32 GS_STRINGS_W(struct_name, _name) \ 33 CONFIGFS_ATTR(struct_name##_, _name)
|
/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)
|
/include/linux/platform_data/ |
D | keyboard-spear.h | 18 #define DECLARE_9x9_KEYMAP(_name) \ argument 19 int _name[] = { \ 103 #define DECLARE_6x6_KEYMAP(_name) \ argument 104 int _name[] = { \
|