/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/ |
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...] |
H A D | rt2x00debug.h | 28 #define RT2X00DEBUGFS_REGISTER_ENTRY(__name, __type) \ 29 struct reg##__name { \ 40 } __name
|
/kernel/linux/linux-6.6/drivers/net/wireless/ralink/rt2x00/ |
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...] |
H A D | rt2x00debug.h | 28 #define RT2X00DEBUGFS_REGISTER_ENTRY(__name, __type) \ 29 struct reg##__name { \ 40 } __name
|
/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | seq_file.h | 149 #define DEFINE_SEQ_ATTRIBUTE(__name) \ 150 static int __name ## _open(struct inode *inode, struct file *file) \ 152 int ret = seq_open(file, &__name ## _sops); \ 160 static const struct file_operations __name ## _fops = { \ 162 .open = __name ## _open, \ 168 #define DEFINE_SHOW_ATTRIBUTE(__name) \ 169 static int __name ## _open(struct inode *inode, struct file *file) \ 171 return single_open(file, __name ## _show, inode->i_private); \ 174 static const struct file_operations __name ## _fops = { \ 176 .open = __name ## _ope [all...] |
H A D | kprobes.h | 280 #define DEFINE_INSN_CACHE_OPS(__name) \ 281 extern struct kprobe_insn_cache kprobe_##__name##_slots; \ 283 static inline kprobe_opcode_t *get_##__name##_slot(void) \ 285 return __get_insn_slot(&kprobe_##__name##_slots); \ 288 static inline void free_##__name##_slot(kprobe_opcode_t *slot, int dirty)\ 290 __free_insn_slot(&kprobe_##__name##_slots, slot, dirty); \ 293 static inline bool is_kprobe_##__name##_slot(unsigned long addr) \ 295 return __is_insn_slot_addr(&kprobe_##__name##_slots, addr); \ 302 #define DEFINE_INSN_CACHE_OPS(__name) \ 303 static inline bool is_kprobe_##__name##_slo [all...] |
H A D | init.h | 240 #define ____define_initcall(fn, __stub, __name, __sec) \ 243 __stringify(__name) ": \n" \ 247 #define ____define_initcall(fn, __unused, __name, __sec) \ 248 static initcall_t __name __used \
|
/kernel/linux/linux-6.6/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 | 317 #define DEFINE_INSN_CACHE_OPS(__name) \ 318 extern struct kprobe_insn_cache kprobe_##__name##_slots; \ 320 static inline kprobe_opcode_t *get_##__name##_slot(void) \ 322 return __get_insn_slot(&kprobe_##__name##_slots); \ 325 static inline void free_##__name##_slot(kprobe_opcode_t *slot, int dirty)\ 327 __free_insn_slot(&kprobe_##__name##_slots, slot, dirty); \ 330 static inline bool is_kprobe_##__name##_slot(unsigned long addr) \ 332 return __is_insn_slot_addr(&kprobe_##__name##_slots, addr); \ 339 #define DEFINE_INSN_CACHE_OPS(__name) \ 340 static inline bool is_kprobe_##__name##_slo [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | debugfs_gt.h | 13 #define DEFINE_GT_DEBUGFS_ATTRIBUTE(__name) \ 14 static int __name ## _open(struct inode *inode, struct file *file) \ 16 return single_open(file, __name ## _show, inode->i_private); \ 18 static const struct file_operations __name ## _fops = { \ 20 .open = __name ## _open, \
|
/kernel/linux/linux-6.6/drivers/dma/ |
H A D | fsl-edma-common.h | 232 #define edma_read_tcdreg(chan, __name) \ 233 (sizeof(chan->tcd->__name) == sizeof(u32) ? \ 234 edma_readl(chan->edma, &chan->tcd->__name) : \ 235 edma_readw(chan->edma, &chan->tcd->__name)) 237 #define edma_write_tcdreg(chan, val, __name) \ 238 (sizeof(chan->tcd->__name) == sizeof(u32) ? \ 239 edma_writel(chan->edma, (u32 __force)val, &chan->tcd->__name) : \ 240 edma_writew(chan->edma, (u16 __force)val, &chan->tcd->__name)) 242 #define edma_readl_chreg(chan, __name) \ 244 (void __iomem *)&(container_of(chan->tcd, struct fsl_edma3_ch_reg, tcd)->__name)) [all...] |
/kernel/linux/linux-5.10/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 ?: ""); \
|
/kernel/linux/linux-6.6/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 ?: ""); \
|
/kernel/linux/linux-6.6/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, \
|
/kernel/linux/linux-5.10/include/xen/interface/io/ |
H A D | ring.h | 103 #define DEFINE_RING_TYPES(__name, __req_t, __rsp_t) \ 106 union __name##_sring_entry { \ 112 struct __name##_sring { \ 116 union __name##_sring_entry ring[1]; /* variable-length */ \ 120 struct __name##_front_ring { \ 124 struct __name##_sring *sring; \ 128 struct __name##_back_ring { \ 132 struct __name##_sring *sring; \
|
/kernel/linux/linux-6.6/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[1]; /* variable-length */ \ 102 struct __name##_front_ring { \ 106 struct __name##_sring *sring; \ 110 struct __name##_back_ring { \ 114 struct __name##_sring *sring; \
|
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/ |
H A D | aic94xx_dump.c | 735 #define DDB_FIELDB(__name) \ 737 offsetof(struct asd_ddb_ssp_smp_target_port, __name)) 738 #define DDB2_FIELDB(__name) \ 740 offsetof(struct asd_ddb_stp_sata_target_port, __name)) 741 #define DDB_FIELDW(__name) \ 743 offsetof(struct asd_ddb_ssp_smp_target_port, __name)) 745 #define DDB_FIELDD(__name) \ 747 offsetof(struct asd_ddb_ssp_smp_target_port, __name)) 777 #define DDB0_FIELDB(__name) \ 779 offsetof(struct asd_ddb_seq_shared, __name)) [all...] |
/kernel/linux/linux-5.10/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))
|
/kernel/linux/linux-6.6/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))
|
/kernel/linux/linux-5.10/drivers/soc/amlogic/ |
H A D | meson-secure-pwrc.c | 85 #define SEC_PD(__name, __flag) \ 86 [PWRC_##__name##_ID] = \ 88 .name = #__name, \ 89 .index = PWRC_##__name##_ID, \
|