/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_wqe.h | 24 #define HINIC_CMDQ_CTRL_SET(val, member) \ argument 25 (((u32)(val) & HINIC_CMDQ_CTRL_##member##_MASK) \ 26 << HINIC_CMDQ_CTRL_##member##_SHIFT) 28 #define HINIC_CMDQ_CTRL_GET(val, member) \ argument 29 (((val) >> HINIC_CMDQ_CTRL_##member##_SHIFT) \ 30 & HINIC_CMDQ_CTRL_##member##_MASK) 48 #define HINIC_CMDQ_WQE_HEADER_SET(val, member) \ argument 49 (((u32)(val) & HINIC_CMDQ_WQE_HEADER_##member##_MASK) \ 50 << HINIC_CMDQ_WQE_HEADER_##member##_SHIFT) 52 #define HINIC_CMDQ_WQE_HEADER_GET(val, member) \ argument [all …]
|
D | hinic_hw_api_cmd.h | 19 #define HINIC_API_CMD_PI_SET(val, member) \ argument 20 (((u32)(val) & HINIC_API_CMD_PI_##member##_MASK) << \ 21 HINIC_API_CMD_PI_##member##_SHIFT) 23 #define HINIC_API_CMD_PI_CLEAR(val, member) \ argument 24 ((val) & (~(HINIC_API_CMD_PI_##member##_MASK \ 25 << HINIC_API_CMD_PI_##member##_SHIFT))) 31 #define HINIC_API_CMD_CHAIN_REQ_SET(val, member) \ argument 32 (((u32)(val) & HINIC_API_CMD_CHAIN_REQ_##member##_MASK) << \ 33 HINIC_API_CMD_CHAIN_REQ_##member##_SHIFT) 35 #define HINIC_API_CMD_CHAIN_REQ_GET(val, member) \ argument [all …]
|
D | hinic_hw_if.h | 29 #define HINIC_DMA_ATTR_SET(val, member) \ argument 30 (((u32)(val) & HINIC_DMA_ATTR_##member##_MASK) << \ 31 HINIC_DMA_ATTR_##member##_SHIFT) 33 #define HINIC_DMA_ATTR_CLEAR(val, member) \ argument 34 ((val) & (~(HINIC_DMA_ATTR_##member##_MASK \ 35 << HINIC_DMA_ATTR_##member##_SHIFT))) 50 #define HINIC_FA0_GET(val, member) \ argument 51 (((val) >> HINIC_FA0_##member##_SHIFT) & HINIC_FA0_##member##_MASK) 70 #define HINIC_FA1_GET(val, member) \ argument 71 (((val) >> HINIC_FA1_##member##_SHIFT) & HINIC_FA1_##member##_MASK) [all …]
|
D | hinic_hw_cmdq.h | 30 #define HINIC_CMDQ_CTXT_PAGE_INFO_SET(val, member) \ argument 31 (((u64)(val) & HINIC_CMDQ_CTXT_##member##_MASK) \ 32 << HINIC_CMDQ_CTXT_##member##_SHIFT) 34 #define HINIC_CMDQ_CTXT_PAGE_INFO_GET(val, member) \ argument 35 (((u64)(val) >> HINIC_CMDQ_CTXT_##member##_SHIFT) \ 36 & HINIC_CMDQ_CTXT_##member##_MASK) 38 #define HINIC_CMDQ_CTXT_PAGE_INFO_CLEAR(val, member) \ argument 39 ((val) & (~((u64)HINIC_CMDQ_CTXT_##member##_MASK \ 40 << HINIC_CMDQ_CTXT_##member##_SHIFT))) 48 #define HINIC_CMDQ_CTXT_BLOCK_INFO_SET(val, member) \ argument [all …]
|
D | hinic_hw_qp_ctxt.h | 20 #define HINIC_SQ_CTXT_CEQ_ATTR_SET(val, member) \ argument 21 (((u32)(val) & HINIC_SQ_CTXT_CEQ_ATTR_##member##_MASK) \ 22 << HINIC_SQ_CTXT_CEQ_ATTR_##member##_SHIFT) 30 #define HINIC_SQ_CTXT_CI_SET(val, member) \ argument 31 (((u32)(val) & HINIC_SQ_CTXT_CI_##member##_MASK) \ 32 << HINIC_SQ_CTXT_CI_##member##_SHIFT) 40 #define HINIC_SQ_CTXT_WQ_PAGE_SET(val, member) \ argument 41 (((u32)(val) & HINIC_SQ_CTXT_WQ_PAGE_##member##_MASK) \ 42 << HINIC_SQ_CTXT_WQ_PAGE_##member##_SHIFT) 58 #define HINIC_SQ_CTXT_PREF_SET(val, member) \ argument [all …]
|
D | hinic_hw_eqs.h | 29 #define HINIC_AEQ_CTRL_0_SET(val, member) \ argument 30 (((u32)(val) & HINIC_AEQ_CTRL_0_##member##_MASK) << \ 31 HINIC_AEQ_CTRL_0_##member##_SHIFT) 33 #define HINIC_AEQ_CTRL_0_CLEAR(val, member) \ argument 34 ((val) & (~(HINIC_AEQ_CTRL_0_##member##_MASK \ 35 << HINIC_AEQ_CTRL_0_##member##_SHIFT))) 45 #define HINIC_AEQ_CTRL_1_SET(val, member) \ argument 46 (((u32)(val) & HINIC_AEQ_CTRL_1_##member##_MASK) << \ 47 HINIC_AEQ_CTRL_1_##member##_SHIFT) 49 #define HINIC_AEQ_CTRL_1_CLEAR(val, member) \ argument [all …]
|
/linux-6.6.21/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) 395 #define list_last_entry_or_null(ptr, type, member) \ argument 396 (!list_empty(ptr) ? list_last_entry(ptr, type, member) : NULL) [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)
|
/linux-6.6.21/include/linux/ |
D | rculist.h | 306 #define list_entry_rcu(ptr, type, member) \ argument 307 container_of(READ_ONCE(ptr), type, member) 350 #define list_first_or_null_rcu(ptr, type, member) \ argument 354 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \ 369 #define list_next_or_null_rcu(head, ptr, type, member) \ argument 375 member) : NULL; \ 389 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument 391 pos = list_entry_rcu((head)->next, typeof(*pos), member); \ 392 &pos->member != (head); \ 393 pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) [all …]
|
D | list.h | 600 #define list_entry(ptr, type, member) \ argument 601 container_of(ptr, type, member) 611 #define list_first_entry(ptr, type, member) \ argument 612 list_entry((ptr)->next, type, member) 622 #define list_last_entry(ptr, type, member) \ argument 623 list_entry((ptr)->prev, type, member) 633 #define list_first_entry_or_null(ptr, type, member) ({ \ argument 636 pos__ != head__ ? list_entry(pos__, type, member) : NULL; \ 644 #define list_next_entry(pos, member) \ argument 645 list_entry((pos)->member.next, typeof(*(pos)), member) [all …]
|
D | llist.h | 82 #define llist_entry(ptr, type, member) \ argument 83 container_of(ptr, type, member) 99 #define member_address_is_nonnull(ptr, member) \ argument 100 ((uintptr_t)(ptr) + offsetof(typeof(*(ptr)), member) != 0) 153 #define llist_for_each_entry(pos, node, member) \ argument 154 for ((pos) = llist_entry((node), typeof(*(pos)), member); \ 155 member_address_is_nonnull(pos, member); \ 156 (pos) = llist_entry((pos)->member.next, typeof(*(pos)), member)) 175 #define llist_for_each_entry_safe(pos, n, node, member) \ argument 176 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, cond...) \ argument 178 member, ## cond) [all …]
|
D | container_of.h | 18 #define container_of(ptr, type, member) ({ \ argument 20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 23 ((type *)(__mptr - offsetof(type, member))); }) 32 #define container_of_const(ptr, type, member) \ argument 34 const typeof(*(ptr)) *: ((const type *)container_of(ptr, type, member)),\ 35 default: ((type *)container_of(ptr, type, member)) \
|
D | virtio_config.h | 388 #define __virtio_native_type(structname, member) \ argument 389 typeof(virtio_to_cpu(NULL, ((structname*)0)->member)) 392 #define virtio_cread(vdev, structname, member, ptr) \ argument 394 typeof(((structname*)0)->member) virtio_cread_v; \ 405 offsetof(structname, member), \ 411 offsetof(structname, member), \ 421 #define virtio_cwrite(vdev, structname, member, ptr) \ argument 423 typeof(((structname*)0)->member) virtio_cwrite_v = \ 424 cpu_to_virtio(vdev, *(ptr), ((structname*)0)->member); \ 430 vdev->config->set((vdev), offsetof(structname, 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; \ 127 #define hlist_nulls_for_each_entry(tpos, pos, head, member) \ argument 130 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \ 140 #define hlist_nulls_for_each_entry_from(tpos, pos, member) \ argument 142 ({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
|
/linux-6.6.21/drivers/isdn/mISDN/ |
D | dsp_cmx.c | 151 struct dsp_conf_member *member; in dsp_cmx_debug() local 168 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_debug() 173 member->dsp->name, member->dsp->pcm_slot_tx, in dsp_cmx_debug() 174 member->dsp->pcm_bank_tx, member->dsp->pcm_slot_rx, in dsp_cmx_debug() 175 member->dsp->pcm_bank_rx, member->dsp->hfc_conf, in dsp_cmx_debug() 176 member->dsp->tx_data, member->dsp->rx_is_off, in dsp_cmx_debug() 177 (member->dsp == dsp) ? " *this*" : ""); in dsp_cmx_debug() 211 struct dsp_conf_member *member; in dsp_cmx_add_conf_member() local 217 if (dsp->member) { in dsp_cmx_add_conf_member() 229 member = kzalloc(sizeof(struct dsp_conf_member), GFP_ATOMIC); in dsp_cmx_add_conf_member() [all …]
|
/linux-6.6.21/scripts/mod/ |
D | list.h | 18 #define container_of(ptr, type, member) ({ \ argument 20 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 23 ((type *)(__mptr - offsetof(type, member))); }) 158 #define list_entry(ptr, type, member) \ argument 159 container_of(ptr, type, member) 169 #define list_first_entry(ptr, type, member) \ argument 170 list_entry((ptr)->next, type, member) 177 #define list_next_entry(pos, member) \ argument 178 list_entry((pos)->member.next, typeof(*(pos)), member) 186 #define list_entry_is_head(pos, head, member) \ argument [all …]
|
/linux-6.6.21/scripts/kconfig/ |
D | list.h | 19 #define container_of(ptr, type, member) ({ \ argument 20 const typeof( ((type *)0)->member ) *__mptr = (ptr); \ 21 (type *)( (char *)__mptr - offsetof(type,member) );}) 40 #define list_entry(ptr, type, member) \ argument 41 container_of(ptr, type, member) 49 #define list_for_each_entry(pos, head, member) \ argument 50 for (pos = list_entry((head)->next, typeof(*pos), member); \ 51 &pos->member != (head); \ 52 pos = list_entry(pos->member.next, typeof(*pos), member)) 61 #define list_for_each_entry_safe(pos, n, head, member) \ argument [all …]
|
/linux-6.6.21/drivers/infiniband/core/ |
D | multicast.c | 200 static void deref_member(struct mcast_member *member) in deref_member() argument 202 if (refcount_dec_and_test(&member->refcount)) in deref_member() 203 complete(&member->comp); in deref_member() 206 static void queue_join(struct mcast_member *member) in queue_join() argument 208 struct mcast_group *group = member->group; in queue_join() 212 list_add_tail(&member->list, &group->pending_list); in queue_join() 330 static int send_join(struct mcast_group *group, struct mcast_member *member) in send_join() argument 335 group->last_join = member; in send_join() 338 &member->multicast.rec, in send_join() 339 member->multicast.comp_mask, in send_join() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/security/tomoyo/ |
D | group.c | 134 struct tomoyo_path_group *member; in tomoyo_path_matches_group() local 136 list_for_each_entry_rcu(member, &group->member_list, head.list, in tomoyo_path_matches_group() 138 if (member->head.is_deleted) in tomoyo_path_matches_group() 140 if (!tomoyo_path_matches_pattern(pathname, member->member_name)) in tomoyo_path_matches_group() 142 return member->member_name; in tomoyo_path_matches_group() 162 struct tomoyo_number_group *member; in tomoyo_number_matches_group() local 165 list_for_each_entry_rcu(member, &group->member_list, head.list, in tomoyo_number_matches_group() 167 if (member->head.is_deleted) in tomoyo_number_matches_group() 169 if (min > member->number.values[1] || in tomoyo_number_matches_group() 170 max < member->number.values[0]) in tomoyo_number_matches_group() [all …]
|
/linux-6.6.21/kernel/trace/ |
D | trace_btf.c | 76 const struct btf_member *member; in btf_find_struct_member() local 87 member = ERR_PTR(-EINVAL); in btf_find_struct_member() 91 for_each_member(i, type, member) { in btf_find_struct_member() 92 if (!member->name_off) { in btf_find_struct_member() 94 if (btf_type_skip_modifiers(btf, member->type, &tid) && in btf_find_struct_member() 98 cur_offset + member->offset; in btf_find_struct_member() 101 name = btf_name_by_offset(btf, member->name_off); in btf_find_struct_member() 116 member = NULL; in btf_find_struct_member() 120 return member; in btf_find_struct_member()
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_prime.c | 99 struct drm_prime_member *member; in drm_prime_add_buf_handle() local 102 member = kmalloc(sizeof(*member), GFP_KERNEL); in drm_prime_add_buf_handle() 103 if (!member) in drm_prime_add_buf_handle() 107 member->dma_buf = dma_buf; in drm_prime_add_buf_handle() 108 member->handle = handle; in drm_prime_add_buf_handle() 122 rb_link_node(&member->dmabuf_rb, rb, p); in drm_prime_add_buf_handle() 123 rb_insert_color(&member->dmabuf_rb, &prime_fpriv->dmabufs); in drm_prime_add_buf_handle() 137 rb_link_node(&member->handle_rb, rb, p); in drm_prime_add_buf_handle() 138 rb_insert_color(&member->handle_rb, &prime_fpriv->handles); in drm_prime_add_buf_handle() 150 struct drm_prime_member *member; in drm_prime_lookup_buf_by_handle() local [all …]
|
/linux-6.6.21/drivers/net/dsa/realtek/ |
D | rtl8366-core.c | 76 if (vlanmc->vid == 0 && vlanmc->member == 0) { in rtl8366_obtain_mc() 86 vlanmc->member = vlan4k.member; in rtl8366_obtain_mc() 117 vlanmc->member = vlan4k.member; in rtl8366_obtain_mc() 136 int rtl8366_set_vlan(struct realtek_priv *priv, int vid, u32 member, in rtl8366_set_vlan() argument 149 vid, member, untag); in rtl8366_set_vlan() 156 vlan4k.member |= member; in rtl8366_set_vlan() 165 vid, vlan4k.member, vlan4k.untag); in rtl8366_set_vlan() 174 vlanmc.member |= member; in rtl8366_set_vlan() 186 vid, vlanmc.member, vlanmc.untag); in rtl8366_set_vlan() 282 vlanmc.member = 0; in rtl8366_reset_vlan() [all …]
|
/linux-6.6.21/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 …]
|