/linux-4.4.14/include/linux/usb/ |
H A D | gadget_configfs.h | 9 #define GS_STRINGS_W(__struct, __name) \ 10 static ssize_t __struct##_##__name##_store(struct config_item *item, \ 16 ret = usb_string_copy(page, &gs->__name); \ 22 #define GS_STRINGS_R(__struct, __name) \ 23 static ssize_t __struct##_##__name##_show(struct config_item *item, char *page) \ 26 return sprintf(page, "%s\n", gs->__name ?: ""); \
|
H A D | serial.h | 397 #define usb_serial_module_driver(__name, __serial_drivers, __ids) \ 401 __name, __ids); \
|
/linux-4.4.14/drivers/net/wireless/rt2x00/ |
H A D | rt2x00debug.c | 437 #define RT2X00DEBUGFS_OPS_READ(__name, __format, __type) \ 438 static ssize_t rt2x00debug_read_##__name(struct file *file, \ 447 unsigned int index = intf->offset_##__name; \ 453 if (index >= debug->__name.word_count) \ 456 index += (debug->__name.word_base / \ 457 debug->__name.word_size); \ 459 if (debug->__name.flags & RT2X00DEBUGFS_OFFSET) \ 460 index *= debug->__name.word_size; \ 462 debug->__name.read(intf->rt2x00dev, index, &value); \ 473 #define RT2X00DEBUGFS_OPS_WRITE(__name, __type) \ 474 static ssize_t rt2x00debug_write_##__name(struct file *file, \ 483 unsigned int index = intf->offset_##__name; \ 489 if (index >= debug->__name.word_count) \ 501 index += (debug->__name.word_base / \ 502 debug->__name.word_size); \ 504 if (debug->__name.flags & RT2X00DEBUGFS_OFFSET) \ 505 index *= debug->__name.word_size; \ 507 debug->__name.write(intf->rt2x00dev, index, value); \ 513 #define RT2X00DEBUGFS_OPS(__name, __format, __type) \ 514 RT2X00DEBUGFS_OPS_READ(__name, __format, __type); \ 515 RT2X00DEBUGFS_OPS_WRITE(__name, __type); \ 517 static const struct file_operations rt2x00debug_fop_##__name = {\ 519 .read = rt2x00debug_read_##__name, \ 520 .write = rt2x00debug_write_##__name, \ 630 #define RT2X00DEBUGFS_SPRINTF_REGISTER(__name) \ rt2x00debug_create_file_chipset() 632 if(debug->__name.read) \ rt2x00debug_create_file_chipset() 633 data += sprintf(data, __stringify(__name) \ rt2x00debug_create_file_chipset() 635 debug->__name.word_base, \ rt2x00debug_create_file_chipset() 636 debug->__name.word_count, \ rt2x00debug_create_file_chipset() 637 debug->__name.word_size); \ rt2x00debug_create_file_chipset() 700 #define RT2X00DEBUGFS_CREATE_REGISTER_ENTRY(__intf, __name) \ rt2x00debug_register() 702 if(debug->__name.read) { \ rt2x00debug_register() 703 (__intf)->__name##_off_entry = \ rt2x00debug_register() 704 debugfs_create_u32(__stringify(__name) "_offset", \ rt2x00debug_register() 707 &(__intf)->offset_##__name); \ rt2x00debug_register() 708 if (IS_ERR((__intf)->__name##_off_entry) \ rt2x00debug_register() 709 || !(__intf)->__name##_off_entry) \ rt2x00debug_register() 712 (__intf)->__name##_val_entry = \ rt2x00debug_register() 713 debugfs_create_file(__stringify(__name) "_value", \ rt2x00debug_register() 716 (__intf), &rt2x00debug_fop_##__name); \ rt2x00debug_register() 717 if (IS_ERR((__intf)->__name##_val_entry) \ rt2x00debug_register() 718 || !(__intf)->__name##_val_entry) \ rt2x00debug_register()
|
H A D | rt2x00debug.h | 39 #define RT2X00DEBUGFS_REGISTER_ENTRY(__name, __type) \ 40 struct reg##__name { \ 51 } __name
|
/linux-4.4.14/include/linux/netfilter/ |
H A D | nf_conntrack_sip.h | 33 #define SDP_MEDIA_TYPE(__name, __class) \ 35 .name = (__name), \ 36 .len = sizeof(__name) - 1, \ 73 #define __SIP_HDR(__name, __cname, __search, __match) \ 75 .name = (__name), \ 76 .len = sizeof(__name) - 1, \ 84 #define SIP_HDR(__name, __cname, __search, __match) \ 85 __SIP_HDR(__name, __cname, __search, __match) 87 #define SDP_HDR(__name, __search, __match) \ 88 __SIP_HDR(__name, NULL, __search, __match)
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | mdesc.h | 22 #define mdesc_for_each_node_by_name(__hdl, __node, __name) \ 23 for (__node = mdesc_node_by_name(__hdl, MDESC_NODE_NULL, __name); \ 25 __node = mdesc_node_by_name(__hdl, __node, __name))
|
/linux-4.4.14/fs/ncpfs/ |
H A D | dir.c | 318 __u8 __name[NCP_MAXPATHLEN + 1]; ncp_lookup_validate() local 347 len = sizeof(__name); ncp_lookup_validate() 349 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, ncp_lookup_validate() 352 res = ncp_lookup_volume(server, __name, &(finfo.i)); ncp_lookup_validate() 357 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, ncp_lookup_validate() 360 res = ncp_obtain_info(server, dir, __name, &(finfo.i)); ncp_lookup_validate() 364 dentry->d_parent, __name, res); ncp_lookup_validate() 589 __u8 __name[NCP_MAXPATHLEN + 1]; ncp_fill_cache() local 591 qname.len = sizeof(__name); ncp_fill_cache() 592 if (ncp_vol2io(NCP_SERVER(dir), __name, &qname.len, ncp_fill_cache() 597 qname.name = __name; ncp_fill_cache() 796 __u8 __name[NCP_MAXPATHLEN + 1]; ncp_conn_logged_in() local 798 len = sizeof(__name); ncp_conn_logged_in() 799 result = ncp_io2vol(server, __name, &len, server->m.mounted_vol, ncp_conn_logged_in() 804 if (ncp_get_volume_root(server, __name, &volNumber, &dirEntNum, &DosDirNum)) { ncp_conn_logged_in() 836 __u8 __name[NCP_MAXPATHLEN + 1]; ncp_lookup() local 844 len = sizeof(__name); ncp_lookup() 846 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, ncp_lookup() 849 res = ncp_lookup_volume(server, __name, &(finfo.i)); ncp_lookup() 853 res = ncp_io2vol(server, __name, &len, dentry->d_name.name, ncp_lookup() 856 res = ncp_obtain_info(server, dir, __name, &(finfo.i)); ncp_lookup() 917 __u8 __name[NCP_MAXPATHLEN + 1]; ncp_create_new() local 922 len = sizeof(__name); ncp_create_new() 923 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, ncp_create_new() 935 result = ncp_open_create_file_or_subdir(server, dir, __name, ncp_create_new() 940 result = ncp_open_create_file_or_subdir(server, dir, __name, ncp_create_new() 979 __u8 __name[NCP_MAXPATHLEN + 1]; ncp_mkdir() local 984 len = sizeof(__name); ncp_mkdir() 985 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, ncp_mkdir() 990 error = ncp_open_create_file_or_subdir(server, dir, __name, ncp_mkdir() 1016 __u8 __name[NCP_MAXPATHLEN + 1]; ncp_rmdir() local 1020 len = sizeof(__name); ncp_rmdir() 1021 error = ncp_io2vol(server, __name, &len, dentry->d_name.name, ncp_rmdir() 1026 result = ncp_del_file_or_subdir(server, dir, __name); ncp_rmdir()
|
/linux-4.4.14/drivers/pinctrl/vt8500/ |
H A D | pinctrl-wmt.h | 36 #define WMT_GROUP(__name, __data) \ 38 .name = __name, \
|
/linux-4.4.14/arch/arm/mach-at91/ |
H A D | soc.h | 24 #define AT91_SOC(__cidr, __exid, __name, __family) \ 28 .name = (__name), \
|
/linux-4.4.14/include/xen/interface/io/ |
H A D | ring.h | 71 #define DEFINE_RING_TYPES(__name, __req_t, __rsp_t) \ 74 union __name##_sring_entry { \ 80 struct __name##_sring { \ 84 union __name##_sring_entry ring[1]; /* variable-length */ \ 88 struct __name##_front_ring { \ 92 struct __name##_sring *sring; \ 96 struct __name##_back_ring { \ 100 struct __name##_sring *sring; \
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
H A D | aic94xx_dump.c | 753 #define DDB_FIELDB(__name) \ 755 offsetof(struct asd_ddb_ssp_smp_target_port, __name)) 756 #define DDB2_FIELDB(__name) \ 758 offsetof(struct asd_ddb_stp_sata_target_port, __name)) 759 #define DDB_FIELDW(__name) \ 761 offsetof(struct asd_ddb_ssp_smp_target_port, __name)) 763 #define DDB_FIELDD(__name) \ 765 offsetof(struct asd_ddb_ssp_smp_target_port, __name)) 795 #define DDB0_FIELDB(__name) \ 797 offsetof(struct asd_ddb_seq_shared, __name)) 798 #define DDB0_FIELDW(__name) \ 800 offsetof(struct asd_ddb_seq_shared, __name)) 802 #define DDB0_FIELDD(__name) \ 804 offsetof(struct asd_ddb_seq_shared, __name)) 806 #define DDB0_FIELDA(__name, _o) \ 808 offsetof(struct asd_ddb_seq_shared, __name)+_o) 839 #define SCB_FIELDB(__name) \ 841 + offsetof(struct initiate_ssp_task, __name)) 842 #define SCB_FIELDW(__name) \ 844 + offsetof(struct initiate_ssp_task, __name)) 845 #define SCB_FIELDD(__name) \ 847 + offsetof(struct initiate_ssp_task, __name))
|
/linux-4.4.14/include/uapi/linux/netfilter/ |
H A D | x_tables.h | 56 #define XT_TARGET_INIT(__name, __size) \ 60 .name = __name, \
|
/linux-4.4.14/include/net/ |
H A D | inet_hashtables.h | 249 #define INET_ADDR_COOKIE(__name, __saddr, __daddr) \ 250 const __addrpair __name = (__force __addrpair) ( \ 254 #define INET_ADDR_COOKIE(__name, __saddr, __daddr) \ 255 const __addrpair __name = (__force __addrpair) ( \ 266 #define INET_ADDR_COOKIE(__name, __saddr, __daddr) \ 267 const int __name __deprecated __attribute__((unused))
|
/linux-4.4.14/include/linux/ |
H A D | kprobes.h | 285 #define DEFINE_INSN_CACHE_OPS(__name) \ 286 extern struct kprobe_insn_cache kprobe_##__name##_slots; \ 288 static inline kprobe_opcode_t *get_##__name##_slot(void) \ 290 return __get_insn_slot(&kprobe_##__name##_slots); \ 293 static inline void free_##__name##_slot(kprobe_opcode_t *slot, int dirty)\ 295 __free_insn_slot(&kprobe_##__name##_slots, slot, dirty); \
|
/linux-4.4.14/net/bluetooth/ |
H A D | hci_debugfs.c | 31 #define DEFINE_QUIRK_ATTRIBUTE(__name, __quirk) \ 32 static ssize_t __name ## _read(struct file *file, \ 45 static ssize_t __name ## _write(struct file *file, \ 72 static const struct file_operations __name ## _fops = { \ 74 .read = __name ## _read, \ 75 .write = __name ## _write, \
|
/linux-4.4.14/drivers/usb/storage/ |
H A D | usb.h | 208 #define module_usb_stor_driver(__driver, __sht, __name) \ 211 usb_stor_host_template_init(&(__sht), __name, THIS_MODULE); \
|
/linux-4.4.14/drivers/hwmon/ |
H A D | adt7411.c | 216 #define ADT7411_BIT_ATTR(__name, __reg, __bit) \ 217 SENSOR_DEVICE_ATTR_2(__name, S_IRUGO | S_IWUSR, adt7411_show_bit, \
|
/linux-4.4.14/fs/ |
H A D | filesystems.c | 125 static int fs_index(const char __user * __name) fs_index() argument 131 name = getname(__name); fs_index()
|
/linux-4.4.14/drivers/usb/gadget/ |
H A D | configfs.c | 131 #define GI_DEVICE_DESC_SIMPLE_R_u8(__name) \ 132 static ssize_t gadget_dev_desc_##__name##_show(struct config_item *item, \ 136 to_gadget_info(item)->cdev.desc.__name); \ 139 #define GI_DEVICE_DESC_SIMPLE_R_u16(__name) \ 140 static ssize_t gadget_dev_desc_##__name##_show(struct config_item *item, \ 144 le16_to_cpup(&to_gadget_info(item)->cdev.desc.__name)); \
|
/linux-4.4.14/drivers/ntb/test/ |
H A D | ntb_tool.c | 119 #define TOOL_FOPS_RDWR(__name, __read, __write) \ 120 const struct file_operations __name = { \
|
/linux-4.4.14/kernel/trace/ |
H A D | blktrace.c | 194 #define MASK_TC_BIT(rw, __name) ((rw & REQ_ ## __name) << \ 195 (ilog2(BLK_TC_ ## __name) + BLK_TC_SHIFT - __REQ_ ## __name))
|
/linux-4.4.14/tools/perf/util/ |
H A D | parse-events.c | 875 #define ADD_CONFIG_TERM(__type, __name, __val) \ get_config_terms() 885 __t->val.__name = __val; \ get_config_terms()
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
H A D | file.c | 1269 #define DEFINE_SPUFS_ATTRIBUTE(__name, __get, __set, __fmt, __acquire) \ 1292 DEFINE_SPUFS_SIMPLE_ATTRIBUTE(__name, __##__get, __set, __fmt);
|