/kernel/power/ |
D | power.h | 78 #define power_attr(_name) \ argument 79 static struct kobj_attribute _name##_attr = { \ 81 .name = __stringify(_name), \ 84 .show = _name##_show, \ 85 .store = _name##_store, \ 88 #define power_attr_ro(_name) \ argument 89 static struct kobj_attribute _name##_attr = { \ 91 .name = __stringify(_name), \ 94 .show = _name##_show, \
|
D | main.c | 310 #define suspend_attr(_name) \ argument 311 static ssize_t _name##_show(struct kobject *kobj, \ 314 return sprintf(buf, "%d\n", suspend_stats._name); \ 316 static struct kobj_attribute _name = __ATTR_RO(_name)
|
/kernel/ |
D | ksysfs.c | 23 #define KERNEL_ATTR_RO(_name) \ argument 24 static struct kobj_attribute _name##_attr = __ATTR_RO(_name) 26 #define KERNEL_ATTR_RW(_name) \ argument 27 static struct kobj_attribute _name##_attr = \ 28 __ATTR(_name, 0644, _name##_show, _name##_store)
|
D | padata.c | 905 #define PADATA_ATTR_RW(_name, _show_name, _store_name) \ argument 906 static struct padata_sysfs_entry _name##_attr = \ 907 __ATTR(_name, 0644, _show_name, _store_name) 908 #define PADATA_ATTR_RO(_name, _show_name) \ argument 909 static struct padata_sysfs_entry _name##_attr = \ 910 __ATTR(_name, 0400, _show_name, NULL)
|
/kernel/bpf/ |
D | bpf_struct_ops.c | 68 #define BPF_STRUCT_OPS_TYPE(_name) \ argument 69 extern struct bpf_struct_ops bpf_##_name; \ 71 struct bpf_struct_ops_##_name { \ 73 struct _name data ____cacheline_aligned_in_smp; \ 79 #define BPF_STRUCT_OPS_TYPE(_name) BPF_STRUCT_OPS_TYPE_##_name, argument 86 #define BPF_STRUCT_OPS_TYPE(_name) \ argument 87 [BPF_STRUCT_OPS_TYPE_##_name] = &bpf_##_name, 111 #define BPF_STRUCT_OPS_TYPE(_name) BTF_TYPE_EMIT(struct bpf_struct_ops_##_name); in bpf_struct_ops_init() argument
|
D | syscall.c | 59 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) argument 62 #define BPF_LINK_TYPE(_id, _name) argument 1657 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \ argument 1658 [_id] = & _name ## _prog_ops, 1660 #define BPF_LINK_TYPE(_id, _name) argument 2490 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) argument 2492 #define BPF_LINK_TYPE(_id, _name) [_id] = #_name, argument
|
D | hashtab.c | 21 #define BATCH_OPS(_name) \ argument 23 _name##_map_lookup_batch, \ 25 _name##_map_lookup_and_delete_batch, \
|
D | btf.c | 4413 #define BPF_LINK_TYPE(_id, _name) argument 4416 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \ argument 4426 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \ argument 4433 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \ argument 4510 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) argument 4511 #define BPF_LINK_TYPE(_id, _name) argument
|
D | verifier.c | 29 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \ argument 30 [_id] = & _name ## _verifier_ops, 32 #define BPF_LINK_TYPE(_id, _name) argument
|
/kernel/trace/ |
D | trace_probe.h | 183 #define __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, str, _fmttype) \ argument 184 {.name = _name, \ 194 #define _ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, _fmttype) \ argument 195 __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, 0, #_fmttype)
|
D | trace_syscalls.c | 206 #define SYSCALL_FIELD(_type, _name) { \ argument 207 .type = #_type, .name = #_name, \
|
D | blktrace.c | 1674 #define BLK_TRACE_DEVICE_ATTR(_name) \ argument 1675 DEVICE_ATTR(_name, S_IRUGO | S_IWUSR, \
|
/kernel/irq/ |
D | irqdesc.c | 143 #define IRQ_ATTR_RO(_name) \ argument 144 static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
|
/kernel/sched/ |
D | topology.c | 33 #define SD_FLAG(_name, mflags) [__##_name] = { .meta_flags = mflags, .name = #_name }, argument
|