Home
last modified time | relevance | path

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

12345678910>>...18

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_wqe.h24 #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 …]
H A Dhinic_hw_api_cmd.h19 #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 …]
H A Dhinic_hw_if.h29 #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 …]
H A Dhinic_hw_cmdq.h30 #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 …]
H A Dhinic_hw_eqs.h29 #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 …]
H A Dhinic_hw_qp_ctxt.h20 #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 …]
/linux/tools/include/linux/
H A 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)
395 #define list_last_entry_or_null(ptr, type, member) \ argument
396 (!list_empty(ptr) ? list_last_entry(ptr, type, member) : NULL)
[all …]
H A 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)
/linux/include/linux/
H A Drculist.h309 #define list_entry_rcu(ptr, type, member) \ argument
310 container_of(READ_ONCE(ptr), type, member)
353 #define list_first_or_null_rcu(ptr, type, member) \ argument
357 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \
372 #define list_next_or_null_rcu(head, ptr, type, member) \ argument
378 member) : NULL; \
392 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument
394 pos = list_entry_rcu((head)->next, typeof(*pos), member); \
395 &pos->member != (head); \
396 pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
[all …]
H A Dlist.h400 * in the process of modifying either member (next or prev)
598 * @member: the name of the list_head within the struct.
600 #define list_entry(ptr, type, member) \ argument
601 container_of(ptr, type, member)
607 * @member: the name of the list_head within the struct.
611 #define list_first_entry(ptr, type, member) \ argument
612 list_entry((ptr)->next, type, member)
618 * @member: the name of the list_head within the struct.
622 #define list_last_entry(ptr, type, member) \ argument
623 list_entry((ptr)->prev, type, member)
633 list_first_entry_or_null(ptr,type,member) global() argument
644 list_next_entry(pos,member) global() argument
656 list_next_entry_circular(pos,head,member) global() argument
665 list_prev_entry(pos,member) global() argument
677 list_prev_entry_circular(pos,head,member) global() argument
768 list_entry_is_head(pos,head,member) global() argument
777 list_for_each_entry(pos,head,member) global() argument
788 list_for_each_entry_reverse(pos,head,member) global() argument
801 list_prepare_entry(pos,head,member) global() argument
813 list_for_each_entry_continue(pos,head,member) global() argument
827 list_for_each_entry_continue_reverse(pos,head,member) global() argument
840 list_for_each_entry_from(pos,head,member) global() argument
853 list_for_each_entry_from_reverse(pos,head,member) global() argument
864 list_for_each_entry_safe(pos,n,head,member) global() argument
880 list_for_each_entry_safe_continue(pos,n,head,member) global() argument
896 list_for_each_entry_safe_from(pos,n,head,member) global() argument
911 list_for_each_entry_safe_reverse(pos,n,head,member) global() argument
929 list_safe_reset_next(pos,n,member) global() argument
1142 hlist_entry(ptr,type,member) global() argument
1151 hlist_entry_safe(ptr,type,member) global() argument
1162 hlist_for_each_entry(pos,head,member) global() argument
1172 hlist_for_each_entry_continue(pos,member) global() argument
1182 hlist_for_each_entry_from(pos,member) global() argument
1193 hlist_for_each_entry_safe(pos,n,head,member) global() argument
[all...]
H A Dllist.h109 #define llist_entry(ptr, type, member) \ argument
110 container_of(ptr, type, member)
126 #define member_address_is_nonnull(ptr, member) \ argument
127 ((uintptr_t)(ptr) + offsetof(typeof(*(ptr)), member) != 0)
180 #define llist_for_each_entry(pos, node, member) \ argument
181 for ((pos) = llist_entry((node), typeof(*(pos)), member); \
182 member_address_is_nonnull(pos, member); \
183 (pos) = llist_entry((pos)->member.next, typeof(*(pos)), member))
202 #define llist_for_each_entry_safe(pos, n, node, member) \ argument
203 for (pos = llist_entry((node), typeof(*pos), member); \
[all …]
H A 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, cond...) \ argument
178 member, ## cond)
[all …]
H A Dvirtio_config.h390 #define __virtio_native_type(structname, member) \ argument
391 typeof(virtio_to_cpu(NULL, ((structname*)0)->member))
394 #define virtio_cread(vdev, structname, member, ptr) \ argument
396 typeof(((structname*)0)->member) virtio_cread_v; \
407 offsetof(structname, member), \
413 offsetof(structname, member), \
423 #define virtio_cwrite(vdev, structname, member, ptr) \ argument
425 typeof(((structname*)0)->member) virtio_cwrite_v = \
426 cpu_to_virtio(vdev, *(ptr), ((structname*)0)->member); \
432 vdev->config->set((vdev), offsetof(structname, member), \
[all …]
H A Doverflow.h354 #define flex_array_size(p, member, count) \ argument
356 (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
357 size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
370 #define struct_size(p, member, count) \ argument
372 sizeof(*(p)) + flex_array_size(p, member, count), \
373 size_add(sizeof(*(p)), flex_array_size(p, member, count)))
388 #define struct_size_t(type, member, count) \ argument
389 struct_size((type *)NULL, member, count)
401 #define _DEFINE_FLEX(type, name, member, count, initializer...) \ argument
405 u8 bytes[struct_size_t(type, member, count)]; \
[all …]
H A Dcontainer_of.h18 #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)) \
/linux/scripts/include/
H A Dlist.h19 #define container_of(ptr, type, member) ({ \ argument
21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
24 ((type *)(__mptr - offsetof(type, member))); })
228 #define list_entry(ptr, type, member) \ argument
229 container_of(ptr, type, member)
239 #define list_first_entry(ptr, type, member) \ argument
240 list_entry((ptr)->next, type, member)
250 #define list_last_entry(ptr, type, member) \ argument
251 list_entry((ptr)->prev, type, member)
258 #define list_next_entry(pos, member) \ argument
[all …]
H A Dhashtable.h59 #define hash_for_each(table, obj, member) \ argument
61 hlist_for_each_entry(obj, &table[_bkt], member)
71 #define hash_for_each_safe(table, obj, tmp, member) \ argument
73 hlist_for_each_entry_safe(obj, tmp, &table[_bkt], member)
83 #define hash_for_each_possible(table, obj, member, key) \ argument
84 hlist_for_each_entry(obj, hash_head(table, key), member)
95 #define hash_for_each_possible_safe(table, obj, tmp, member, key) \ argument
96 hlist_for_each_entry_safe(obj, tmp, hash_head(table, key), member)
/linux/drivers/isdn/mISDN/
H A Ddsp_cmx.c151 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/drivers/infiniband/core/
H A Dmulticast.c200 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/tools/firewire/
H A 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 …]
/linux/security/tomoyo/
H A Dgroup.c134 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/kernel/trace/
H A Dtrace_btf.c76 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/drivers/net/dsa/realtek/
H A Drtl8366-core.c76 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/drivers/clk/sprd/
H A 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/drivers/gpu/drm/
H A Ddrm_prime.c99 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 …]

12345678910>>...18