/linux-4.19.296/include/linux/ |
D | list.h | 395 #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 …]
|
D | rculist.h | 277 #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 …]
|
D | llist.h | 92 #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 …]
|
D | hashtable.h | 126 #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 …]
|
D | list_nulls.h | 32 #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;}); \
|
D | plist.h | 235 # 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)
|
D | virtio_config.h | 287 #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 …]
|
D | list_bl.h | 50 #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;}); \
|
D | rculist_nulls.h | 152 #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); \
|
D | rbtree.h | 66 #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; \
|
D | irq_cpustat.h | 22 #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat.member, cpu)) argument
|
D | compiler_types.h | 24 # define ACCESS_PRIVATE(p, member) (*((typeof((p)->member) __force *) &(p)->member)) argument 48 # define ACCESS_PRIVATE(p, member) ((p)->member) argument
|
D | rhashtable.h | 274 #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 …]
|
D | rculist_bl.h | 123 #define hlist_bl_for_each_entry_rcu(tpos, pos, head, member) \ argument 126 ({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1; }); \
|
D | lru_cache.h | 308 #define lc_entry(ptr, type, member) \ argument 309 container_of(ptr, type, member)
|
D | overflow.h | 311 #define struct_size(p, member, n) \ argument 313 sizeof(*(p)->member) + __must_be_array((p)->member),\
|
D | kernel.h | 997 #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/ |
D | dsp_cmx.c | 162 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/ |
D | pll.c | 18 #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/ |
D | pcc-cpufreq.c | 393 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/ |
D | xfs_ondisk.h | 13 #define XFS_CHECK_OFFSET(structname, member, off) \ argument 14 BUILD_BUG_ON_MSG(offsetof(structname, member) != (off), \ 15 "XFS: offsetof(" #structname ", " #member ") is wrong, " \
|
D | xfs_stats.h | 176 #define XFS_STATS_CALC_INDEX(member) \ argument 177 (offsetof(struct __xfsstats, member) / (int)sizeof(uint32_t))
|
/linux-4.19.296/fs/dlm/ |
D | Makefile | 9 member.o \
|
/linux-4.19.296/include/net/ |
D | ieee802154_netdev.h | 26 #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/ |
D | sctp.h | 443 #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;\
|