Home
last modified time | relevance | path

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

12

/linux-4.19.296/include/linux/
Dlist.h395 #define list_entry(ptr, type, member) \ argument
396 container_of(ptr, type, member)
406 #define list_first_entry(ptr, type, member) \ argument
407 list_entry((ptr)->next, type, member)
417 #define list_last_entry(ptr, type, member) \ argument
418 list_entry((ptr)->prev, type, member)
428 #define list_first_entry_or_null(ptr, type, member) ({ \ argument
431 pos__ != head__ ? list_entry(pos__, type, member) : NULL; \
439 #define list_next_entry(pos, member) \ argument
440 list_entry((pos)->member.next, typeof(*(pos)), member)
[all …]
Drculist.h277 #define list_entry_rcu(ptr, type, member) \ argument
278 container_of(READ_ONCE(ptr), type, member)
313 #define list_first_or_null_rcu(ptr, type, member) \ argument
317 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \
332 #define list_next_or_null_rcu(head, ptr, type, member) \ argument
338 member) : NULL; \
351 #define list_for_each_entry_rcu(pos, head, member) \ argument
352 for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
353 &pos->member != (head); \
354 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
[all …]
Dllist.h92 #define llist_entry(ptr, type, member) \ argument
93 container_of(ptr, type, member)
109 #define member_address_is_nonnull(ptr, member) \ argument
110 ((uintptr_t)(ptr) + offsetof(typeof(*(ptr)), member) != 0)
163 #define llist_for_each_entry(pos, node, member) \ argument
164 for ((pos) = llist_entry((node), typeof(*(pos)), member); \
165 member_address_is_nonnull(pos, member); \
166 (pos) = llist_entry((pos)->member.next, typeof(*(pos)), member))
185 #define llist_for_each_entry_safe(pos, n, node, member) \ argument
186 for (pos = llist_entry((node), typeof(*pos), member); \
[all …]
Dhashtable.h126 #define hash_for_each(name, bkt, obj, member) \ argument
129 hlist_for_each_entry(obj, &name[bkt], member)
138 #define hash_for_each_rcu(name, bkt, obj, member) \ argument
141 hlist_for_each_entry_rcu(obj, &name[bkt], member)
152 #define hash_for_each_safe(name, bkt, tmp, obj, member) \ argument
155 hlist_for_each_entry_safe(obj, tmp, &name[bkt], member)
165 #define hash_for_each_possible(name, obj, member, key) \ argument
166 hlist_for_each_entry(obj, &name[hash_min(key, HASH_BITS(name))], member)
176 #define hash_for_each_possible_rcu(name, obj, member, key) \ argument
178 member)
[all …]
Dlist_nulls.h32 #define hlist_nulls_entry(ptr, type, member) container_of(ptr,type,member) argument
34 #define hlist_nulls_entry_safe(ptr, type, member) \ argument
36 !is_a_nulls(____ptr) ? hlist_nulls_entry(____ptr, type, member) : NULL; \
105 #define hlist_nulls_for_each_entry(tpos, pos, head, member) \ argument
108 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
118 #define hlist_nulls_for_each_entry_from(tpos, pos, member) \ argument
120 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
Dplist.h235 # define plist_first_entry(head, type, member) \ argument
238 container_of(plist_first(head), type, member); \
241 # define plist_first_entry(head, type, member) \ argument
242 container_of(plist_first(head), type, member)
252 # define plist_last_entry(head, type, member) \ argument
255 container_of(plist_last(head), type, member); \
258 # define plist_last_entry(head, type, member) \ argument
259 container_of(plist_last(head), type, member)
Dvirtio_config.h287 #define virtio_cread(vdev, structname, member, ptr) \ argument
290 if (!typecheck(typeof((((structname*)0)->member)), *(ptr))) \
296 offsetof(structname, member)); \
300 offsetof(structname, member)); \
304 offsetof(structname, member)); \
308 offsetof(structname, member)); \
316 #define virtio_cwrite(vdev, structname, member, ptr) \ argument
319 if (!typecheck(typeof((((structname*)0)->member)), *(ptr))) \
325 offsetof(structname, member), \
330 offsetof(structname, member), \
[all …]
Dlist_bl.h50 #define hlist_bl_entry(ptr, type, member) container_of(ptr,type,member) argument
143 #define hlist_bl_for_each_entry(tpos, pos, head, member) \ argument
146 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
157 #define hlist_bl_for_each_entry_safe(tpos, pos, n, head, member) \ argument
160 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
Drculist_nulls.h152 #define hlist_nulls_for_each_entry_rcu(tpos, pos, head, member) \ argument
156 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1; }); \
167 #define hlist_nulls_for_each_entry_safe(tpos, pos, head, member) \ argument
171 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); \
Drbtree.h66 #define rb_entry(ptr, type, member) container_of(ptr, type, member) argument
123 #define rb_entry_safe(ptr, type, member) \ argument
125 ____ptr ? rb_entry(____ptr, type, member) : NULL; \
Dirq_cpustat.h22 #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat.member, cpu)) argument
Dcompiler_types.h24 # define ACCESS_PRIVATE(p, member) (*((typeof((p)->member) __force *) &(p)->member)) argument
48 # define ACCESS_PRIVATE(p, member) ((p)->member) argument
Drhashtable.h274 #define rht_entry(tpos, pos, member) \ argument
275 ({ tpos = container_of(pos, typeof(*tpos), member); 1; })
328 #define rht_for_each_entry_continue(tpos, pos, head, tbl, hash, member) \ argument
330 (!rht_is_a_nulls(pos)) && rht_entry(tpos, pos, member); \
341 #define rht_for_each_entry(tpos, pos, tbl, hash, member) \ argument
343 tbl, hash, member)
357 #define rht_for_each_entry_safe(tpos, pos, next, tbl, hash, member) \ argument
361 (!rht_is_a_nulls(pos)) && rht_entry(tpos, pos, member); \
409 #define rht_for_each_entry_rcu_continue(tpos, pos, head, tbl, hash, member) \ argument
412 (!rht_is_a_nulls(pos)) && rht_entry(tpos, pos, member); \
[all …]
Drculist_bl.h123 #define hlist_bl_for_each_entry_rcu(tpos, pos, head, member) \ argument
126 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1; }); \
Dlru_cache.h308 #define lc_entry(ptr, type, member) \ argument
309 container_of(ptr, type, member)
Doverflow.h311 #define struct_size(p, member, n) \ argument
313 sizeof(*(p)->member) + __must_be_array((p)->member),\
Dkernel.h997 #define container_of(ptr, type, member) ({ \ argument
999 BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
1002 ((type *)(__mptr - offsetof(type, member))); })
1012 #define container_of_safe(ptr, type, member) ({ \ argument
1014 BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
1018 ((type *)(__mptr - offsetof(type, member))); })
/linux-4.19.296/drivers/isdn/mISDN/
Ddsp_cmx.c162 struct dsp_conf_member *member; in dsp_cmx_debug() local
179 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_debug()
184 member->dsp->name, member->dsp->pcm_slot_tx, in dsp_cmx_debug()
185 member->dsp->pcm_bank_tx, member->dsp->pcm_slot_rx, in dsp_cmx_debug()
186 member->dsp->pcm_bank_rx, member->dsp->hfc_conf, in dsp_cmx_debug()
187 member->dsp->tx_data, member->dsp->rx_is_off, in dsp_cmx_debug()
188 (member->dsp == dsp) ? " *this*" : ""); in dsp_cmx_debug()
222 struct dsp_conf_member *member; in dsp_cmx_add_conf_member() local
228 if (dsp->member) { in dsp_cmx_add_conf_member()
240 member = kzalloc(sizeof(struct dsp_conf_member), GFP_ATOMIC); in dsp_cmx_add_conf_member()
[all …]
/linux-4.19.296/drivers/clk/sprd/
Dpll.c18 #define pindex(pll, member) \ argument
19 (pll->factors[member].shift / (8 * sizeof(pll->regs_num)))
21 #define pshift(pll, member) \ argument
22 (pll->factors[member].shift % (8 * sizeof(pll->regs_num)))
24 #define pwidth(pll, member) \ argument
25 pll->factors[member].width
27 #define pmask(pll, member) \ argument
28 ((pwidth(pll, member)) ? \
29 GENMASK(pwidth(pll, member) + pshift(pll, member) - 1, \
30 pshift(pll, member)) : 0)
[all …]
/linux-4.19.296/drivers/cpufreq/
Dpcc-cpufreq.c393 union acpi_object *out_obj, *member; in pcc_cpufreq_probe() local
423 member = &out_obj->package.elements[0]; in pcc_cpufreq_probe()
424 if (member->type != ACPI_TYPE_BUFFER) { in pcc_cpufreq_probe()
429 mem_resource = (struct pcc_memory_resource *)member->buffer.pointer; in pcc_cpufreq_probe()
479 member = &out_obj->package.elements[1]; in pcc_cpufreq_probe()
480 if (member->type != ACPI_TYPE_BUFFER) { in pcc_cpufreq_probe()
485 reg_resource = (struct pcc_register_resource *)member->buffer.pointer; in pcc_cpufreq_probe()
498 member = &out_obj->package.elements[2]; in pcc_cpufreq_probe()
499 if (member->type != ACPI_TYPE_INTEGER) { in pcc_cpufreq_probe()
504 doorbell_preserve = member->integer.value; in pcc_cpufreq_probe()
[all …]
/linux-4.19.296/fs/xfs/
Dxfs_ondisk.h13 #define XFS_CHECK_OFFSET(structname, member, off) \ argument
14 BUILD_BUG_ON_MSG(offsetof(structname, member) != (off), \
15 "XFS: offsetof(" #structname ", " #member ") is wrong, " \
Dxfs_stats.h176 #define XFS_STATS_CALC_INDEX(member) \ argument
177 (offsetof(struct __xfsstats, member) / (int)sizeof(uint32_t))
/linux-4.19.296/fs/dlm/
DMakefile9 member.o \
/linux-4.19.296/include/net/
Dieee802154_netdev.h26 #define IEEE802154_REQUIRED_SIZE(struct_type, member) \ argument
27 (offsetof(typeof(struct_type), member) + \
28 sizeof(((typeof(struct_type) *)(NULL))->member))
/linux-4.19.296/include/net/sctp/
Dsctp.h443 #define sctp_walk_params(pos, chunk, member)\ argument
444 _sctp_walk_params((pos), (chunk), ntohs((chunk)->chunk_hdr.length), member)
446 #define _sctp_walk_params(pos, chunk, end, member)\ argument
447 for (pos.v = chunk->member;\

12