/linux-master/tools/perf/util/ |
H A D | rb_resort.h | 55 #define DEFINE_RESORT_RB(__name, __comp, ...) \ 56 struct __name##_sorted_entry { \ 60 static void __name##_sorted__init_entry(struct rb_node *nd, \ 61 struct __name##_sorted_entry *entry); \ 63 static int __name##_sorted__cmp(struct rb_node *nda, struct rb_node *ndb) \ 65 struct __name##_sorted_entry *a, *b; \ 66 a = rb_entry(nda, struct __name##_sorted_entry, rb_node); \ 67 b = rb_entry(ndb, struct __name##_sorted_entry, rb_node); \ 71 struct __name##_sorted { \ 73 struct __name##_sorted_entr [all...] |
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_debugfs.h | 13 #define __GT_DEBUGFS_ATTRIBUTE_FOPS(__name) \ 14 static const struct file_operations __name ## _fops = { \ 16 .open = __name ## _open, \ 22 #define DEFINE_INTEL_GT_DEBUGFS_ATTRIBUTE(__name) \ 23 static int __name ## _open(struct inode *inode, struct file *file) \ 25 return single_open(file, __name ## _show, inode->i_private); \ 27 __GT_DEBUGFS_ATTRIBUTE_FOPS(__name) 29 #define DEFINE_INTEL_GT_DEBUGFS_ATTRIBUTE_WITH_SIZE(__name, __size_vf) \ 30 static int __name ## _open(struct inode *inode, struct file *file) \ 32 return single_open_size(file, __name ## _sho [all...] |
/linux-master/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00debug.h | 28 #define RT2X00DEBUGFS_REGISTER_ENTRY(__name, __type) \ 29 struct reg##__name { \ 40 } __name
|
H A D | rt2x00debug.c | 409 #define RT2X00DEBUGFS_OPS_READ(__name, __format, __type) \ 410 static ssize_t rt2x00debug_read_##__name(struct file *file, \ 419 unsigned int index = intf->offset_##__name; \ 425 if (index >= debug->__name.word_count) \ 428 index += (debug->__name.word_base / \ 429 debug->__name.word_size); \ 431 if (debug->__name.flags & RT2X00DEBUGFS_OFFSET) \ 432 index *= debug->__name.word_size; \ 434 value = debug->__name.read(intf->rt2x00dev, index); \ 441 #define RT2X00DEBUGFS_OPS_WRITE(__name, __typ [all...] |
/linux-master/include/linux/ |
H A D | seq_file.h | 177 #define DEFINE_SEQ_ATTRIBUTE(__name) \ 178 static int __name ## _open(struct inode *inode, struct file *file) \ 180 int ret = seq_open(file, &__name ## _sops); \ 188 static const struct file_operations __name ## _fops = { \ 190 .open = __name ## _open, \ 196 #define DEFINE_SHOW_ATTRIBUTE(__name) \ 197 static int __name ## _open(struct inode *inode, struct file *file) \ 199 return single_open(file, __name ## _show, inode->i_private); \ 202 static const struct file_operations __name ## _fops = { \ 204 .open = __name ## _ope [all...] |
H A D | kprobes.h | 312 #define DEFINE_INSN_CACHE_OPS(__name) \ 313 extern struct kprobe_insn_cache kprobe_##__name##_slots; \ 315 static inline kprobe_opcode_t *get_##__name##_slot(void) \ 317 return __get_insn_slot(&kprobe_##__name##_slots); \ 320 static inline void free_##__name##_slot(kprobe_opcode_t *slot, int dirty)\ 322 __free_insn_slot(&kprobe_##__name##_slots, slot, dirty); \ 325 static inline bool is_kprobe_##__name##_slot(unsigned long addr) \ 327 return __is_insn_slot_addr(&kprobe_##__name##_slots, addr); \ 334 #define DEFINE_INSN_CACHE_OPS(__name) \ 335 static inline bool is_kprobe_##__name##_slo [all...] |
H A D | init.h | 260 #define ____define_initcall(fn, __stub, __name, __sec) \ 263 __stringify(__name) ": \n" \ 268 #define ____define_initcall(fn, __unused, __name, __sec) \ 269 static initcall_t __name __used \
|
/linux-master/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, NUL [all...] |
/linux-master/include/linux/usb/ |
H A D | gadget_configfs.h | 10 #define GS_STRINGS_W(__struct, __name) \ 11 static ssize_t __struct##_##__name##_store(struct config_item *item, \ 17 ret = usb_string_copy(page, &gs->__name); \ 23 #define GS_STRINGS_R(__struct, __name) \ 24 static ssize_t __struct##_##__name##_show(struct config_item *item, char *page) \ 27 return sprintf(page, "%s\n", gs->__name ?: ""); \
|
/linux-master/drivers/net/ipa/ |
H A D | reg.h | 40 #define REG_FIELDS(__NAME, __name, __offset) \ 41 REG_STRIDE_FIELDS(__NAME, __name, __offset, 0) 43 #define REG_STRIDE_FIELDS(__NAME, __name, __offset, __stride) \ 44 static const struct reg reg_ ## __name = { \ 48 .fcount = ARRAY_SIZE(reg_ ## __name ## _fmask), \ 49 .fmask = reg_ ## __name ## _fmask, \
|
/linux-master/drivers/dma/ |
H A D | fsl-edma-common.h | 253 #define edma_read_tcdreg_c(chan, _tcd, __name) \ 254 (sizeof((_tcd)->__name) == sizeof(u64) ? \ 255 edma_readq(chan->edma, &(_tcd)->__name) : \ 256 ((sizeof((_tcd)->__name) == sizeof(u32)) ? \ 257 edma_readl(chan->edma, &(_tcd)->__name) : \ 258 edma_readw(chan->edma, &(_tcd)->__name) \ 261 #define edma_read_tcdreg(chan, __name) \ 263 edma_read_tcdreg_c(chan, ((struct fsl_edma_hw_tcd64 __iomem *)chan->tcd), __name) : \ 264 edma_read_tcdreg_c(chan, ((struct fsl_edma_hw_tcd __iomem *)chan->tcd), __name) \ 267 #define edma_write_tcdreg_c(chan, _tcd, _val, __name) \ [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | mdesc.h | 24 #define mdesc_for_each_node_by_name(__hdl, __node, __name) \ 25 for (__node = mdesc_node_by_name(__hdl, MDESC_NODE_NULL, __name); \ 27 __node = mdesc_node_by_name(__hdl, __node, __name))
|
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | regulatory.c | 12 #define GET_BIOS_TABLE(__name, ...) \ 16 ret = iwl_uefi_get_ ## __name(__VA_ARGS__); \ 18 ret = iwl_acpi_get_ ## __name(__VA_ARGS__); \ 22 #define IWL_BIOS_TABLE_LOADER(__name) \ 23 int iwl_bios_get_ ## __name(struct iwl_fw_runtime *fwrt) \ 24 {GET_BIOS_TABLE(__name, fwrt); } \ 25 IWL_EXPORT_SYMBOL(iwl_bios_get_ ## __name) 27 #define IWL_BIOS_TABLE_LOADER_DATA(__name, data_type) \ 28 int iwl_bios_get_ ## __name(struct iwl_fw_runtime *fwrt, \ 30 {GET_BIOS_TABLE(__name, fwr [all...] |
/linux-master/drivers/pinctrl/vt8500/ |
H A D | pinctrl-wmt.h | 28 #define WMT_GROUP(__name, __data) \ 30 .name = __name, \
|
/linux-master/drivers/pmdomain/amlogic/ |
H A D | meson-secure-pwrc.c | 92 #define SEC_PD(__name, __flag) \ 93 [PWRC_##__name##_ID] = \ 95 .name = #__name, \ 96 .index = PWRC_##__name##_ID, \ 102 #define TOP_PD(__name, __flag, __parent) \ 103 [PWRC_##__name##_ID] = \ 105 .name = #__name, \ 106 .index = PWRC_##__name##_ID, \
|
H A D | meson-ee-pwrc.c | 248 #define VPU_PD(__name, __top_pd, __mem, __is_pwr_off, __resets, __clks) \ 250 .name = __name, \ 259 #define TOP_PD(__name, __top_pd, __mem, __is_pwr_off) \ 261 .name = __name, \ 268 #define MEM_PD(__name, __mem) \ 269 TOP_PD(__name, NULL, __mem, NULL)
|
/linux-master/include/xen/interface/io/ |
H A D | ring.h | 85 #define DEFINE_RING_TYPES(__name, __req_t, __rsp_t) \ 88 union __name##_sring_entry { \ 94 struct __name##_sring { \ 98 union __name##_sring_entry ring[]; \ 102 struct __name##_front_ring { \ 106 struct __name##_sring *sring; \ 110 struct __name##_back_ring { \ 114 struct __name##_sring *sring; \
|
/linux-master/drivers/soc/atmel/ |
H A D | soc.h | 23 __name, __family) \ 29 .name = (__name), \
|
/linux-master/drivers/usb/storage/ |
H A D | usb.h | 197 #define module_usb_stor_driver(__driver, __sht, __name) \ 200 usb_stor_host_template_init(&(__sht), __name, THIS_MODULE); \
|
/linux-master/include/uapi/linux/netfilter/ |
H A D | x_tables.h | 57 #define XT_TARGET_INIT(__name, __size) \ 61 .name = __name, \
|
/linux-master/net/dsa/ |
H A D | tag.h | 245 #define MODULE_ALIAS_DSA_TAG_DRIVER(__proto, __name) \ 246 MODULE_ALIAS(DSA_TAG_DRIVER_ALIAS __name); \
|
/linux-master/drivers/vdpa/pds/ |
H A D | debugfs.c | 29 #define PRINT_SBIT_NAME(__seq, __f, __name) \ 31 if ((__f) & (__name)) \ 32 seq_printf(__seq, " %s", &#__name[16]); \
|
/linux-master/drivers/hid/bpf/ |
H A D | hid_bpf_jmp_table.c | 522 #define ATTACH_AND_STORE_LINK(__name) do { \ 523 err = entrypoints_bpf__##__name##__attach(skel); \ 527 links[idx] = bpf_link_get_from_fd(skel->links.__name##_fd); \ 536 close_fd(skel->links.__name##_fd); \ 537 skel->links.__name##_fd = 0; \
|
/linux-master/drivers/platform/x86/intel/pmc/ |
H A D | core.h | 603 #define DEFINE_PMC_CORE_ATTR_WRITE(__name) \ 604 static int __name ## _open(struct inode *inode, struct file *file) \ 606 return single_open(file, __name ## _show, inode->i_private); \ 609 static const struct file_operations __name ## _fops = { \ 611 .open = __name ## _open, \ 613 .write = __name ## _write, \
|
/linux-master/include/net/ |
H A D | inet_hashtables.h | 343 #define INET_ADDR_COOKIE(__name, __saddr, __daddr) \ 344 const __addrpair __name = (__force __addrpair) ( \ 348 #define INET_ADDR_COOKIE(__name, __saddr, __daddr) \ 349 const __addrpair __name = (__force __addrpair) ( \
|