/linux/drivers/net/ethernet/huawei/hinic/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/linux/scripts/include/ |
H A D | list.h | 13 * container_of - cast a member of a structure out to the containing structure 14 * @ptr: the pointer to the member. 16 * @member: the name of the member within the struct. 19 #define container_of(ptr, type, member) ({ \ argument 21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 24 ((type *)(__mptr - offsetof(type, member))); }) 226 * @member: the name of the list_head within the struct. 228 #define list_entry(ptr, type, member) \ 229 container_of(ptr, type, member) 178 list_entry(ptr,type,member) global() argument 189 list_first_entry(ptr,type,member) global() argument 200 list_last_entry(ptr,type,member) global() argument 208 list_next_entry(pos,member) global() argument 216 list_prev_entry(pos,member) global() argument 225 list_entry_is_head(pos,head,member) global() argument 234 list_for_each_entry(pos,head,member) global() argument 245 list_for_each_entry_reverse(pos,head,member) global() argument 257 list_for_each_entry_safe(pos,n,head,member) global() argument 348 hlist_entry(ptr,type,member) global() argument 350 hlist_entry_safe(ptr,type,member) global() argument 361 hlist_for_each_entry(pos,head,member) global() argument 373 hlist_for_each_entry_safe(pos,n,head,member) global() argument [all...] |
H A D | hashtable.h | 57 * @member: the name of the hlist_node within the struct 59 #define hash_for_each(table, obj, member) \ argument 61 hlist_for_each_entry(obj, &table[_bkt], member) 69 * @member: the name of the hlist_node within the struct 71 #define hash_for_each_safe(table, obj, tmp, member) \ argument 73 hlist_for_each_entry_safe(obj, tmp, &table[_bkt], member) 80 * @member: the name of the hlist_node within the struct 83 #define hash_for_each_possible(table, obj, member, key) \ argument 84 hlist_for_each_entry(obj, hash_head(table, key), member) 92 * @member: the name of the hlist_node within the struct [all …]
|
/linux/tools/include/linux/ |
H A D | list.h | 198 * in the process of modifying either member (next or prev) 349 * @member: the name of the list_head within the struct. 351 #define list_entry(ptr, type, member) \ argument 352 container_of(ptr, type, member) 358 * @member: the name of the list_head within the struct. 362 #define list_first_entry(ptr, type, member) \ argument 363 list_entry((ptr)->next, type, member) 369 * @member: the name of the list_head within the struct. 373 #define list_last_entry(ptr, type, member) \ argument 374 list_entry((ptr)->prev, type, member) [all …]
|
/linux/drivers/infiniband/core/ |
H A 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() 222 * A multicast group has four types of members: full member, non member, 223 * sendonly non member and sendonly full member. 239 * the group is still a member with the SA, we need to leave that join state. 330 static int send_join(struct mcast_group *group, struct mcast_member *member) in send_join() argument [all …]
|
/linux/drivers/isdn/mISDN/ |
H A D | dsp_cmx.c | 32 * There are 3 types of interaction: One member is alone, in this case only 54 * individual member. This is only the case if data needs to be dejittered 87 * If a member joins a conference: 89 * - If a member joins, its rx_buff is set to silence and change read pointer 109 * If tones are generated by hardware, this conference member is removed for 151 struct dsp_conf_member *member; in dsp_cmx_debug() local 168 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_debug() 170 " - member = %s (slot_tx %d, bank_tx %d, " 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() [all …]
|
/linux/include/linux/ |
H A D | list.h | 400 * 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) [all …]
|
H A D | container_of.h | 11 * container_of - cast a member of a structure out to the containing structure 12 * @ptr: the pointer to the member. 14 * @member: the name of the member within the struct. 18 #define container_of(ptr, type, member) ({ \ argument 20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 23 ((type *)(__mptr - offsetof(type, member))); }) 26 * container_of_const - cast a member of a structure out to the containing 28 * @ptr: the pointer to the member 30 * @member: the name of the member within the struct. 32 #define container_of_const(ptr, type, member) \ argument [all …]
|
H A D | rculist.h | 304 * @member: the name of the list_head within the struct. 309 #define list_entry_rcu(ptr, type, member) \ argument 310 container_of(READ_ONCE(ptr), type, member) 346 * @member: the name of the list_head within the struct. 353 #define list_first_or_null_rcu(ptr, type, member) \ argument 357 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \ 365 * @member: the name of the list_head within the struct. 372 #define list_next_or_null_rcu(head, ptr, type, member) \ argument 378 member) : NULL; \ 385 * @member: the name of the list_head within the struct. [all …]
|
H A D | stddef.h | 16 #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) argument 22 * @MEMBER: The field to return the size of 24 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument 30 * @MEMBER: The member within the structure to get the end offset of 32 #define offsetofend(TYPE, MEMBER) \ argument 33 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER)) 39 * @MEMBERS: The member declarations for the mirrored structs 55 * @MEMBERS: The member declarations for the mirrored structs 71 * @MEMBERS: The member declarations for the mirrored structs 87 * @NAME: The name of the flexible array member [all …]
|
H A D | overflow.h | 343 * flex_array_size() - Calculate size of a flexible array member 346 * @member: Name of the flexible array member. 349 * Calculates size of a flexible array of @count number of @member 354 #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))) 362 * @member: Name of the array member. 366 * array of @count number of @member elements. 370 #define struct_size(p, member, count) \ argument 372 sizeof(*(p)) + flex_array_size(p, member, count), \ [all …]
|
H A D | hashtable.h | 124 * @member: the name of the hlist_node within the struct 126 #define hash_for_each(name, bkt, obj, member) \ argument 129 hlist_for_each_entry(obj, &name[bkt], member) 136 * @member: the name of the hlist_node within the struct 138 #define hash_for_each_rcu(name, bkt, obj, member) \ argument 141 hlist_for_each_entry_rcu(obj, &name[bkt], member) 150 * @member: the name of the hlist_node within the struct 152 #define hash_for_each_safe(name, bkt, tmp, obj, member) \ argument 155 hlist_for_each_entry_safe(obj, tmp, &name[bkt], member) 162 * @member: the name of the hlist_node within the struct [all …]
|
H A D | llist.h | 107 * @member: the name of the llist_node within the struct. 109 #define llist_entry(ptr, type, member) \ argument 110 container_of(ptr, type, member) 113 * member_address_is_nonnull - check whether the member address is not NULL 115 * @member: the name of the llist_node within the struct. 118 * &ptr->member != NULL 119 * but it works around the fact that compilers can decide that taking a member 122 * Real objects that start at a high address and have a member at NULL are 126 #define member_address_is_nonnull(ptr, member) \ argument 127 ((uintptr_t)(ptr) + offsetof(typeof(*(ptr)), member) != 0) [all …]
|
/linux/tools/firewire/ |
H A 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/drivers/scsi/isci/ |
H A D | isci.h | 125 * This member indicates successful completion. 147 * This member indicates that the object for which a state change is 153 * This member indicates interrupt coalescence timer may cause SAS 166 * This member indicates that there was a general failure. 171 * This member indicates that the SCI implementation is unable to complete 178 * This member indicates the calling function failed, because the state 184 * This member indicates the calling function failed, because there is 190 * This member indicates the calling function failed, because the 196 * This member indicates the calling function failed, because the 202 * This member indicates the calling function failed, because the [all …]
|
/linux/Documentation/driver-api/pm/ |
H A D | cpuidle.rst | 53 containing four callback pointers, :c:member:`enable`, :c:member:`disable`, 54 :c:member:`select`, :c:member:`reflect`, a :c:member:`rating` field described 62 :c:member:`rating` field is greater than the value of that field for the 75 :c:member:`enable` 94 :c:member:`disable` 107 :c:member:`select` 118 :c:member:`states` array of struct cpuidle_state objects held by the 133 This callback is mandatory (i.e. the :c:member:`select` callback pointer 137 :c:member:`reflect` 154 :c:member:`exit_latency` value is greater than the number returned by that [all …]
|
/linux/security/tomoyo/ |
H A D | group.c | 125 * Returns matched member's pathname if @pathname matches pathnames in @group, 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() [all …]
|
/linux/drivers/net/dsa/realtek/ |
H A D | rtl8366-core.c | 40 * rtl8366_obtain_mc() - retrieve or allocate a VLAN member configuration 43 * @vlanmc: the pointer will be assigned to a pointer to a valid member config 45 * @return: index of a new member config or negative error number 54 /* Try to find an existing member config entry for this VID */ in rtl8366_obtain_mc() 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() 132 dev_err(priv->dev, "all VLAN member configurations are in use\n"); 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() [all …]
|
/linux/kernel/trace/ |
H A D | trace_btf.c | 63 * Find a member of data structure/union by name and return it. 65 * If the member is an member of anonymous union/structure, the offset 68 * adding anon_offset to the member's offset. 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() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | mkregtable.c | 20 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument 22 * container_of - cast a member of a structure out to the containing structure 23 * @ptr: the pointer to the member. 25 * @member: the name of the member within the struct. 28 #define container_of(ptr, type, member) ({ \ argument 29 const typeof(((type *)0)->member)*__mptr = (ptr); \ 30 (type *)((char *)__mptr - offsetof(type, member)); }) 90 * @member: the name of the list_head within the struct. 92 #define list_entry(ptr, type, member) \ argument 93 container_of(ptr, type, member) [all …]
|