/tools/include/linux/ |
D | list.h | 351 #define list_entry(ptr, type, member) \ argument 352 container_of(ptr, type, member) 362 #define list_first_entry(ptr, type, member) \ argument 363 list_entry((ptr)->next, type, member) 373 #define list_last_entry(ptr, type, member) \ argument 374 list_entry((ptr)->prev, type, member) 384 #define list_first_entry_or_null(ptr, type, member) \ argument 385 (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL) 392 #define list_next_entry(pos, member) \ argument 393 list_entry((pos)->member.next, typeof(*(pos)), member) [all …]
|
D | hashtable.h | 105 #define hash_for_each(name, bkt, obj, member) \ argument 108 hlist_for_each_entry(obj, &name[bkt], member) 119 #define hash_for_each_safe(name, bkt, tmp, obj, member) \ argument 122 hlist_for_each_entry_safe(obj, tmp, &name[bkt], member) 132 #define hash_for_each_possible(name, obj, member, key) \ argument 133 hlist_for_each_entry(obj, &name[hash_min(key, HASH_BITS(name))], member) 144 #define hash_for_each_possible_safe(name, obj, tmp, member, key) \ argument 146 &name[hash_min(key, HASH_BITS(name))], member)
|
D | rbtree.h | 37 #define rb_entry(ptr, type, member) container_of(ptr, type, member) argument 75 #define rb_entry_safe(ptr, type, member) \ argument 77 ____ptr ? rb_entry(____ptr, type, member) : NULL; \
|
D | kernel.h | 34 #define container_of(ptr, type, member) ({ \ argument 35 const typeof(((type *)0)->member) * __mptr = (ptr); \ 36 (type *)((char *)__mptr - offsetof(type, member)); })
|
D | overflow.h | 273 #define struct_size(p, member, n) \ argument 275 sizeof(*(p)->member) + __must_be_array((p)->member),\
|
/tools/firewire/ |
D | list.h | 47 #define list_entry(link, type, member) \ argument 48 ((type *)((char *)(link)-(unsigned long)(&((type *)0)->member))) 50 #define list_head(list, type, member) \ argument 51 list_entry((list)->next, type, member) 53 #define list_tail(list, type, member) \ argument 54 list_entry((list)->prev, type, member) 56 #define list_next(elm, member) \ argument 57 list_entry((elm)->member.next, typeof(*elm), member) 59 #define list_for_each_entry(pos, list, member) \ argument 60 for (pos = list_head(list, typeof(*pos), member); \ [all …]
|
/tools/usb/usbip/libsrc/ |
D | list.h | 104 #define list_entry(ptr, type, member) \ argument 105 container_of(ptr, type, member) 133 #define container_of(ptr, type, member) ({ \ argument 134 const typeof( ((type *)0)->member ) *__mptr = (ptr); \ 135 (type *)( (char *)__mptr - offsetof(type,member) );})
|
/tools/lib/bpf/ |
D | bpf_helpers.h | 51 #define offsetof(type, member) ((unsigned long)&((type *)0)->member) argument 55 #define container_of(ptr, type, member) \ argument 58 ((type *)(__mptr - offsetof(type, member))); \
|
D | btf.c | 3398 const struct btf_member *member = btf_members(t); in btf_hash_struct() local 3404 h = hash_combine(h, member->name_off); in btf_hash_struct() 3405 h = hash_combine(h, member->offset); in btf_hash_struct() 3407 member++; in btf_hash_struct() 3495 const struct btf_param *member = btf_params(t); in btf_hash_fnproto() local 3501 h = hash_combine(h, member->name_off); in btf_hash_fnproto() 3502 h = hash_combine(h, member->type); in btf_hash_fnproto() 3503 member++; in btf_hash_fnproto() 4370 struct btf_member *member = btf_members(t); in btf_dedup_remap_type() local 4374 r = btf_dedup_remap_type_id(d, member->type); in btf_dedup_remap_type() [all …]
|
D | libbpf.c | 790 const struct btf_member *member, *kern_member, *kern_data_member; in bpf_map__init_kern_struct_ops() local 822 member = btf_members(type); in bpf_map__init_kern_struct_ops() 823 for (i = 0; i < btf_vlen(type); i++, member++) { in bpf_map__init_kern_struct_ops() 832 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops() 848 moff = member->offset / 8; in bpf_map__init_kern_struct_ops() 854 mtype = skip_mods_and_typedefs(btf, member->type, &mtype_id); in bpf_map__init_kern_struct_ops() 6495 const struct btf_member *member; in bpf_object__collect_map_relos() local 6565 member = btf_members(def) + btf_vlen(def) - 1; in bpf_object__collect_map_relos() 6566 mname = btf__name_by_offset(obj->btf, member->name_off); in bpf_object__collect_map_relos() 8560 const struct btf_member *member; in bpf_object__collect_st_ops_relos() local [all …]
|
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
D | misc.h | 18 #define container_of(ptr, type, member) ({ \ argument 19 const typeof(((type *)0)->member) *__mptr = (ptr); \ 20 (type *)((char *)__mptr - offsetof(type, member)); \
|
/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.h | 21 #define offsetof(type, member) __builtin_offsetof(type, member) argument
|
/tools/virtio/linux/ |
D | kernel.h | 110 #define container_of(ptr, type, member) ({ \ argument 111 const typeof( ((type *)0)->member ) *__mptr = (ptr); \ 112 (type *)( (char *)__mptr - offsetof(type,member) );})
|
/tools/perf/ |
D | builtin-lock.c | 210 #define SINGLE_KEY(member) \ argument 211 static int lock_stat_key_ ## member(struct lock_stat *one, \ 214 return one->member > two->member; \
|
D | design.txt | 272 considered to be a group with only 1 member.) 276 put onto the CPU. This means that the values of the member counters 428 counters in the group will count. Enabling or disabling a member of a
|
/tools/perf/util/ |
D | python.c | 116 #define member_def(type, member, ptype, help) \ argument 117 { #member, ptype, \ 118 offsetof(struct pyrf_event, event) + offsetof(struct type, member), \ 121 #define sample_member_def(name, member, ptype, help) \ argument 123 offsetof(struct pyrf_event, sample) + offsetof(struct perf_sample, member), \
|
/tools/perf/Documentation/ |
D | perf-probe.txt | 199 …member (e.g. var->field, var.field2), local array with fixed index (e.g. array[1], var->array[0], … 208 …. You can specify 'string' type only for the local variable or structure member which is an array …
|
D | perf-intel-pt.txt | 216 fields within the config member of the struct perf_event_attr which is
|
/tools/kvm/kvm_stat/ |
D | kvm_stat | 602 for member in members: 603 if '-' not in member: 604 integers.append(int(member)) 606 int_range = member.split('-')
|
/tools/objtool/ |
D | elf.c | 43 #define elf_hash_for_each_possible(name, obj, member, key) \ argument 44 hlist_for_each_entry(obj, &name[hash_min(key, elf_hash_bits())], member)
|