Searched refs:_item (Results 1 – 4 of 4) sorted by relevance
/linux-4.1.27/include/target/ |
D | configfs_macros.h | 53 #define CONFIGFS_EATTR_STRUCT(_name, _item) \ argument 56 ssize_t (*show)(struct _item *, char *); \ 57 ssize_t (*store)(struct _item *, const char *, size_t); \ 101 #define CONFIGFS_EATTR_OPS_TO_FUNC(_name, _item, _item_member) \ argument 102 static struct _item *to_##_name(struct config_item *ci) \ 104 return (ci) ? container_of(to_config_group(ci), struct _item, \ 108 #define CONFIGFS_EATTR_OPS_SHOW(_name, _item) \ argument 113 struct _item *_item = to_##_name(item); \ 119 ret = _name##_attr->show(_item, page); \ 123 #define CONFIGFS_EATTR_OPS_STORE(_name, _item) \ argument [all …]
|
/linux-4.1.27/include/linux/ |
D | configfs.h | 138 #define CONFIGFS_ATTR_STRUCT(_item) \ argument 139 struct _item##_attribute { \ 141 ssize_t (*show)(struct _item *, char *); \ 142 ssize_t (*store)(struct _item *, const char *, size_t); \ 182 #define CONFIGFS_ATTR_OPS(_item) \ argument 183 static ssize_t _item##_attr_show(struct config_item *item, \ 187 struct _item *_item = to_##_item(item); \ 188 struct _item##_attribute *_item##_attr = \ 189 container_of(attr, struct _item##_attribute, attr); \ 192 if (_item##_attr->show) \ [all …]
|
D | input.h | 443 #define INPUT_GENERATE_ABS_ACCESSORS(_suffix, _item) \ argument 447 return dev->absinfo ? dev->absinfo[axis]._item : 0; \ 455 dev->absinfo[axis]._item = val; \
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | uvc_configfs.c | 20 #define CONFIGFS_ATTR_OPS_RO(_item) \ argument 21 static ssize_t _item##_attr_show(struct config_item *item, \ 25 struct _item *_item = to_##_item(item); \ 26 struct _item##_attribute *_item##_attr = \ 27 container_of(attr, struct _item##_attribute, attr); \ 30 if (_item##_attr->show) \ 31 ret = _item##_attr->show(_item, page); \
|