Home
last modified time | relevance | path

Searched refs:member (Results 1 – 21 of 21) sorted by relevance

/tools/include/linux/
Dlist.h351 #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 …]
Dhashtable.h105 #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)
Doverflow.h139 #define struct_size(p, member, n) \ argument
141 sizeof(*(p)->member) + __must_be_array((p)->member),\
Dkernel.h36 #define container_of(ptr, type, member) ({ \ argument
37 const typeof(((type *)0)->member) * __mptr = (ptr); \
38 (type *)((char *)__mptr - offsetof(type, member)); })
Drbtree.h37 #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; \
/tools/firewire/
Dlist.h47 #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/
Dlist.h104 #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/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dmisc.h18 #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/
Dtest_cls_redirect.h21 #define offsetof(type, member) __builtin_offsetof(type, member) argument
/tools/virtio/linux/
Dkernel.h110 #define container_of(ptr, type, member) ({ \ argument
111 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
112 (type *)( (char *)__mptr - offsetof(type,member) );})
/tools/lib/bpf/
Dbpf_helpers.h81 #define offsetof(type, member) ((unsigned long)&((type *)0)->member) argument
85 #define container_of(ptr, type, member) \ argument
88 ((type *)(__mptr - offsetof(type, member))); \
Dbtf.c3359 const struct btf_member *member = btf_members(t); in btf_hash_struct() local
3365 h = hash_combine(h, member->name_off); in btf_hash_struct()
3366 h = hash_combine(h, member->offset); in btf_hash_struct()
3368 member++; in btf_hash_struct()
3456 const struct btf_param *member = btf_params(t); in btf_hash_fnproto() local
3462 h = hash_combine(h, member->name_off); in btf_hash_fnproto()
3463 h = hash_combine(h, member->type); in btf_hash_fnproto()
3464 member++; in btf_hash_fnproto()
Dlibbpf.c859 const struct btf_member *member, *kern_member, *kern_data_member; in bpf_map__init_kern_struct_ops() local
891 member = btf_members(type); in bpf_map__init_kern_struct_ops()
892 for (i = 0; i < btf_vlen(type); i++, member++) { in bpf_map__init_kern_struct_ops()
901 mname = btf__name_by_offset(btf, member->name_off); in bpf_map__init_kern_struct_ops()
917 moff = member->offset / 8; in bpf_map__init_kern_struct_ops()
923 mtype = skip_mods_and_typedefs(btf, member->type, &mtype_id); in bpf_map__init_kern_struct_ops()
5888 const struct btf_member *member; in bpf_object__collect_map_relos() local
5958 member = btf_members(def) + btf_vlen(def) - 1; in bpf_object__collect_map_relos()
5959 mname = btf__name_by_offset(obj->btf, member->name_off); in bpf_object__collect_map_relos()
8191 const struct btf_member *member; in bpf_object__collect_st_ops_relos() local
[all …]
/tools/perf/
Dbuiltin-lock.c210 #define SINGLE_KEY(member) \ argument
211 static int lock_stat_key_ ## member(struct lock_stat *one, \
214 return one->member > two->member; \
Ddesign.txt272 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/
Dpython.c143 #define member_def(type, member, ptype, help) \ argument
144 { #member, ptype, \
145 offsetof(struct pyrf_event, event) + offsetof(struct type, member), \
148 #define sample_member_def(name, member, ptype, help) \ argument
150 offsetof(struct pyrf_event, sample) + offsetof(struct perf_sample, member), \
/tools/perf/Documentation/
Dperf-probe.txt199member (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 …
Dperf-dlfilter.txt184 The 'flags' member of 'perf_dlfilter_sample' corresponds with the flags field
Dperf-intel-pt.txt221 fields within the config member of the struct perf_event_attr which is
/tools/kvm/kvm_stat/
Dkvm_stat602 for member in members:
603 if '-' not in member:
604 integers.append(int(member))
606 int_range = member.split('-')
/tools/objtool/
Delf.c37 #define elf_hash_for_each_possible(name, obj, member, key) \ argument
38 hlist_for_each_entry(obj, &__elf_table(name)[hash_min(key, __elf_bits(name))], member)