/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 | 125 #define CONFIGFS_ATTR(_pfx, _name) \ argument 126 static struct configfs_attribute _pfx##attr_##_name = { \ 127 .ca_name = __stringify(_name), \ 130 .show = _pfx##_name##_show, \ 131 .store = _pfx##_name##_store, \ 134 #define CONFIGFS_ATTR_RO(_pfx, _name) \ argument 135 static struct configfs_attribute _pfx##attr_##_name = { \ 136 .ca_name = __stringify(_name), \ 139 .show = _pfx##_name##_show, \ 142 #define CONFIGFS_ATTR_WO(_pfx, _name) \ argument [all …]
|
D | mdev.h | 105 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ argument 106 struct mdev_type_attribute mdev_type_attr_##_name = \ 107 __ATTR(_name, _mode, _show, _store) 108 #define MDEV_TYPE_ATTR_RW(_name) \ argument 109 struct mdev_type_attribute mdev_type_attr_##_name = __ATTR_RW(_name) 110 #define MDEV_TYPE_ATTR_RO(_name) \ argument 111 struct mdev_type_attribute mdev_type_attr_##_name = __ATTR_RO(_name) 112 #define MDEV_TYPE_ATTR_WO(_name) \ argument 113 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 | counter.h | 100 #define COUNTER_SIGNAL_ENUM(_name, _e) \ argument 102 .name = (_name), \ 117 #define COUNTER_SIGNAL_ENUM_AVAILABLE(_name, _e) \ argument 119 .name = (_name "_available"), \ 241 #define COUNTER_COUNT_ENUM(_name, _e) \ argument 243 .name = (_name), \ 258 #define COUNTER_COUNT_ENUM_AVAILABLE(_name, _e) \ argument 260 .name = (_name "_available"), \ 424 #define COUNTER_DEVICE_ENUM(_name, _e) \ argument 426 .name = (_name), \ [all …]
|
D | cpufreq.h | 264 #define cpufreq_freq_attr_ro(_name) \ argument 265 static struct freq_attr _name = \ 266 __ATTR(_name, 0444, show_##_name, NULL) 268 #define cpufreq_freq_attr_ro_perm(_name, _perm) \ argument 269 static struct freq_attr _name = \ 270 __ATTR(_name, _perm, show_##_name, NULL) 272 #define cpufreq_freq_attr_rw(_name) \ argument 273 static struct freq_attr _name = \ 274 __ATTR(_name, 0644, show_##_name, store_##_name) 276 #define cpufreq_freq_attr_wo(_name) \ argument [all …]
|
D | device.h | 54 #define BUS_ATTR_RW(_name) \ argument 55 struct bus_attribute bus_attr_##_name = __ATTR_RW(_name) 56 #define BUS_ATTR_RO(_name) \ argument 57 struct bus_attribute bus_attr_##_name = __ATTR_RO(_name) 58 #define BUS_ATTR_WO(_name) \ argument 59 struct bus_attribute bus_attr_##_name = __ATTR_WO(_name) 440 #define DRIVER_ATTR_RW(_name) \ argument 441 struct driver_attribute driver_attr_##_name = __ATTR_RW(_name) 442 #define DRIVER_ATTR_RO(_name) \ argument 443 struct driver_attribute driver_attr_##_name = __ATTR_RO(_name) [all …]
|
D | ioport.h | 154 #define DEFINE_RES_NAMED(_start, _size, _name, _flags) \ argument 158 .name = (_name), \ 163 #define DEFINE_RES_IO_NAMED(_start, _size, _name) \ argument 164 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_IO) 168 #define DEFINE_RES_MEM_NAMED(_start, _size, _name) \ argument 169 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_MEM) 173 #define DEFINE_RES_IRQ_NAMED(_irq, _name) \ argument 174 DEFINE_RES_NAMED((_irq), 1, (_name), IORESOURCE_IRQ) 178 #define DEFINE_RES_DMA_NAMED(_dma, _name) \ argument 179 DEFINE_RES_NAMED((_dma), 1, (_name), IORESOURCE_DMA)
|
D | clk-provider.h | 916 #define CLK_HW_INIT(_name, _parent, _ops, _flags) \ argument 919 .name = _name, \ 925 #define CLK_HW_INIT_HW(_name, _parent, _ops, _flags) \ argument 928 .name = _name, \ 939 #define CLK_HW_INIT_HWS(_name, _parent, _ops, _flags) \ argument 942 .name = _name, \ 948 #define CLK_HW_INIT_FW_NAME(_name, _parent, _ops, _flags) \ argument 951 .name = _name, \ 959 #define CLK_HW_INIT_PARENTS(_name, _parents, _ops, _flags) \ argument 962 .name = _name, \ [all …]
|
D | ide.h | 908 #define __IDE_DEVSET(_name, _flags, _get, _set) \ argument 909 const struct ide_devset ide_devset_##_name = \ 912 #define IDE_DEVSET(_name, _flags, _get, _set) \ argument 913 static __IDE_DEVSET(_name, _flags, _get, _set) 915 #define ide_devset_rw(_name, _func) \ argument 916 IDE_DEVSET(_name, 0, get_##_func, set_##_func) 918 #define ide_devset_w(_name, _func) \ argument 919 IDE_DEVSET(_name, 0, NULL, set_##_func) 921 #define ide_ext_devset_rw(_name, _func) \ argument 922 __IDE_DEVSET(_name, 0, get_##_func, set_##_func) [all …]
|
D | of_platform.h | 45 #define OF_DEV_AUXDATA(_compat,_phys,_name,_pdata) \ argument 46 { .compatible = _compat, .phys_addr = _phys, .name = _name, \
|
/include/linux/iio/ |
D | sysfs.h | 51 #define IIO_ATTR(_name, _mode, _show, _store, _addr) \ argument 52 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 55 #define IIO_ATTR_RO(_name, _addr) \ argument 56 { .dev_attr = __ATTR_RO(_name), \ 59 #define IIO_ATTR_WO(_name, _addr) \ argument 60 { .dev_attr = __ATTR_WO(_name), \ 63 #define IIO_ATTR_RW(_name, _addr) \ argument 64 { .dev_attr = __ATTR_RW(_name), \ 67 #define IIO_DEVICE_ATTR(_name, _mode, _show, _store, _addr) \ argument 68 struct iio_dev_attr iio_dev_attr_##_name \ [all …]
|
/include/linux/mfd/ |
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/usb/ |
D | composite.h | 612 #define DECLARE_USB_FUNCTION(_name, _inst_alloc, _func_alloc) \ argument 613 static struct usb_function_driver _name ## usb_func = { \ 614 .name = __stringify(_name), \ 619 MODULE_ALIAS("usbfunc:"__stringify(_name)); 621 #define DECLARE_USB_FUNCTION_INIT(_name, _inst_alloc, _func_alloc) \ argument 622 DECLARE_USB_FUNCTION(_name, _inst_alloc, _func_alloc) \ 623 static int __init _name ## mod_init(void) \ 625 return usb_function_register(&_name ## usb_func); \ 627 static void __exit _name ## mod_exit(void) \ 629 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/linux/wimax/ |
D | debug.h | 192 #define _D_SUBMODULE_INDEX(_name) (D_SUBMODULE_DECLARE(_name)) argument 295 #define D_SUBMODULE_DECLARE(_name) __D_SUBMODULE_##_name argument 317 #define D_SUBMODULE_DEFINE(_name) \ argument 318 [__D_SUBMODULE_##_name] = { \ 320 .name = #_name \
|
/include/uapi/rdma/ |
D | rvt-abi.h | 14 #define RDMA_ATOMIC_UAPI(_type, _name) struct{ _type val; } _name argument
|
D | ib_user_ioctl_verbs.h | 41 #define RDMA_UAPI_PTR(_type, _name) __aligned_u64 _name argument
|
/include/rdma/ |
D | uverbs_named_ioctl.h | 102 #define ADD_UVERBS_METHODS(_name, _object_id, ...) \ argument 105 static const struct uverbs_object_def _name = { \ 114 #define ADD_UVERBS_ATTRIBUTES_SIMPLE(_name, _object_id, _method_id, ...) \ argument 122 ADD_UVERBS_METHODS(_name, _object_id, &UVERBS_METHOD(_method_id))
|
/include/uapi/linux/ |
D | map_to_7segment.h | 84 #define SEG7_CONVERSION_MAP(_name, _map) \ argument 85 struct seg7_conversion_map _name = { .table = { _map } } 184 #define SEG7_DEFAULT_MAP(_name) \ argument 185 SEG7_CONVERSION_MAP(_name,MAP_ASCII7SEG_ALPHANUM)
|
/include/linux/regulator/ |
D | machine.h | 212 #define REGULATOR_SUPPLY(_name, _dev_name) \ argument 214 .supply = _name, \
|
/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[] = { \
|
/include/sound/ |
D | hdaudio_ext.h | 17 #define HDA_CODEC_REV_EXT_ENTRY(_vid, _rev, _name, drv_data) \ argument 18 { .vendor_id = (_vid), .rev_id = (_rev), .name = (_name), \ 21 #define HDA_CODEC_EXT_ENTRY(_vid, _revid, _name, _drv_data) \ argument 22 HDA_CODEC_REV_EXT_ENTRY(_vid, _revid, _name, _drv_data)
|