Home
last modified time | relevance | path

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

12345

/device/soc/chipsea/cst85/liteos_m/sdk/modules/wifi/macif/
Dcs_list.h20 #define _2offsetof(type, member) ((long) &((type *) 0)->member) argument
25 #define container_of(ptr, type, member) ({ \
26 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
27 (type *)( (char *)__mptr - _2offsetof(type,member) );})
29 #define list_entry(ptr, type, member) \
30 container_of(ptr, type, member)
32 #define list_for_each_entry_safe(pos, n, head, member) \
33 for (pos = list_entry((head)->next, typeof(*pos), member), \
34 n = list_entry(pos->member.next, typeof(*pos), member); \
35 &pos->member != (head); \
[all …]
/device/soc/chipsea/cst85/liteos_m/sdk/modules/console/api/
Dlnx_list.h65 #define container_of(ptr, type, member) \ argument
66 (type *)((char *)ptr - offsetof(type,member))
409 #define list_entry(ptr, type, member) \ argument
410 container_of(ptr, type, member)
420 #define list_first_entry(ptr, type, member) \ argument
421 list_entry((ptr)->next, type, member)
479 #define list_for_each_entry(pos, head, type, member) \ argument
480 for (pos = list_entry((head)->next, type, member); \
481 &pos->member != (head); \
482 pos = list_entry(pos->member.next, type, member))
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/
Dosal_list.h364 #define osal_container_of(ptr, type, member) ({ \ argument
365 __typeof__(((type *)0)->member) *__mptr = (ptr); \
366 (type *)((char *)__mptr - (osal_offsetof(type, member))); })
374 #define osal_list_entry(ptr, type, member) \ argument
375 osal_container_of(ptr, type, member)
385 #define osal_list_first_entry(ptr, type, member) \ argument
386 osal_list_entry((ptr)->next, type, member)
442 #define osal_list_for_each_entry(pos, head, member) \ argument
443 for ((pos) = osal_list_entry((head)->next, __typeof__(*(pos)), member); \
444 &(pos)->member != (head); \
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/
Dosal_list.h365 #define osal_container_of(ptr, type, member) ({ \ argument
366 __typeof__(((type *)0)->member) *__mptr = (ptr); \
367 (type *)((char *)__mptr - (osal_offsetof(type, member))); })
375 #define osal_list_entry(ptr, type, member) \ argument
376 osal_container_of(ptr, type, member)
386 #define osal_list_first_entry(ptr, type, member) \ argument
387 osal_list_entry((ptr)->next, type, member)
443 #define osal_list_for_each_entry(pos, head, member) \ argument
444 for ((pos) = osal_list_entry((head)->next, __typeof__(*(pos)), member); \
445 &(pos)->member != (head); \
[all …]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/include/
Dosal_list.h363 #define osal_container_of(ptr, type, member) ({ \ argument
364 const __typeof__( ((type *)0)->member) *__mptr = (ptr); \
365 (type *)((char *)__mptr - osal_offsetof(type, member)); })
373 #define osal_list_entry(ptr, type, member) \ argument
374 osal_container_of(ptr, type, member)
384 #define osal_list_first_entry(ptr, type, member) \ argument
385 osal_list_entry((ptr)->next, type, member)
441 #define osal_list_for_each_entry(pos, head, member) \ argument
442 for ((pos) = osal_list_entry((head)->next, __typeof__(*pos), member); \
443 &(pos)->member != (head); \
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/include/
Dosal_list.h368 #define osal_container_of(ptr, type, member) ({ \ argument
369 __typeof__(((type *)0)->member) *__mptr = (ptr); \
370 (type *)((char *)__mptr - (osal_offsetof(type, member))); })
378 #define osal_list_entry(ptr, type, member) \ argument
379 osal_container_of(ptr, type, member)
389 #define osal_list_first_entry(ptr, type, member) \ argument
390 osal_list_entry((ptr)->next, type, member)
446 #define osal_list_for_each_entry(pos, head, member) \ argument
447 for ((pos) = osal_list_entry((head)->next, __typeof__(*(pos)), member); \
448 &(pos)->member != (head); \
[all …]
/device/soc/rockchip/common/hardware/mpp/include/
Dmpp_list.h103 #define list_entry(ptr, type, member) ((type *)((char *)(ptr) - (unsigned long)(&((type *)0)->membe… argument
105 #define list_first_entry(ptr, type, member) list_entry((ptr)->next, type, member) argument
107 #define list_last_entry(ptr, type, member) list_entry((ptr)->prev, type, member) argument
109 #define list_first_entry_or_null(ptr, type, member) … argument
113 …pos__ != head__ ? list_entry(pos__, type, member) : NULL; …
116 #define list_next_entry(pos, type, member) list_entry((pos)->member.next, type, member) argument
118 #define list_prev_entry(pos, type, member) list_entry((pos)->member.prev, type, member) argument
120 #define list_for_each_entry(pos, head, type, member) … argument
121 …for ((pos) = list_entry((head)->next, type, member); &(pos)->member != (head); …
122 (pos) = list_next_entry((pos), type, member))
[all …]
Dmpp_hash.h159 #define hlist_entry(ptr, type, member) container_of(ptr, type, member) argument
170 #define hlist_entry_safe(ptr, type, member) … argument
173 …____ptr ? hlist_entry(____ptr, type, member) : NULL; …
176 #define hlist_for_each_entry(pos, head, member) … argument
178 …for ((pos) = hlist_entry_safe((head)->first, typeof(*(pos)), member); pos; …
179 …pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) …
182 #define hlist_for_each_entry_continue(pos, member) … argument
184 …for ((pos) = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member); pos; …
185 …pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) …
188 #define hlist_for_each_entry_from(pos, member) … argument
[all …]
/device/soc/rockchip/rk3399/hardware/mpp/include/
Dmpp_list.h102 #define list_entry(ptr, type, member) \ argument
103 ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
105 #define list_first_entry(ptr, type, member) \ argument
106 list_entry((ptr)->next, type, member)
108 #define list_last_entry(ptr, type, member) \ argument
109 list_entry((ptr)->prev, type, member)
111 #define list_first_entry_or_null(ptr, type, member) do { \ argument
114 pos__ != head__ ? list_entry(pos__, type, member) : NULL; \
117 #define list_next_entry(pos, type, member) \ argument
118 list_entry((pos)->member.next, type, member)
[all …]
Dmpp_hash.h159 #define hlist_entry(ptr, type, member) container_of(ptr, type, member) argument
168 #define hlist_entry_safe(ptr, type, member) \ argument
170 ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
173 #define hlist_for_each_entry(pos, head, member) do { \ argument
174 for ((pos) = hlist_entry_safe((head)->first, typeof(*(pos)), member); \
176 (pos) = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) \
179 #define hlist_for_each_entry_continue(pos, member) do { \ argument
180 for ((pos) = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member); \
182 (pos) = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) \
185 #define hlist_for_each_entry_from(pos, member) \ argument
[all …]
/device/soc/rockchip/rk3568/hardware/mpp/include/
Dmpp_list.h102 #define list_entry(ptr, type, member) \ argument
103 ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
105 #define list_first_entry(ptr, type, member) \ argument
106 list_entry((ptr)->next, type, member)
108 #define list_last_entry(ptr, type, member) \ argument
109 list_entry((ptr)->prev, type, member)
111 #define list_first_entry_or_null(ptr, type, member) do { \ argument
114 pos__ != head__ ? list_entry(pos__, type, member) : NULL; \
117 #define list_next_entry(pos, type, member) \ argument
118 list_entry((pos)->member.next, type, member)
[all …]
Dmpp_hash.h159 #define hlist_entry(ptr, type, member) container_of(ptr, type, member) argument
168 #define hlist_entry_safe(ptr, type, member) \ argument
170 ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
173 #define hlist_for_each_entry(pos, head, member) \ argument
175 for ((pos) = hlist_entry_safe((head)->first, typeof(*(pos)), member); \
177 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) \
180 #define hlist_for_each_entry_continue(pos, member) \ argument
182 for ((pos) = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member); \
184 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) \
187 #define hlist_for_each_entry_from(pos, member) \ argument
[all …]
/device/soc/rockchip/rk3588/hardware/mpp/include/
Dmpp_list.h108 #define list_entry(ptr, type, member) \ argument
109 ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
111 #define list_first_entry(ptr, type, member) \ argument
112 list_entry((ptr)->next, type, member)
114 #define list_last_entry(ptr, type, member) \ argument
115 list_entry((ptr)->prev, type, member)
117 #define list_first_entry_or_null(ptr, type, member) ({ \ argument
120 pos__ != head__ ? list_entry(pos__, type, member) : NULL; \
123 #define list_next_entry(pos, type, member) \ argument
124 list_entry((pos)->member.next, type, member)
[all …]
Dmpp_hash.h158 #define hlist_entry(ptr, type, member) container_of(ptr,type,member) argument
167 #define hlist_entry_safe(ptr, type, member) \ argument
169 ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
172 #define hlist_for_each_entry(pos, head, member) \ argument
173 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
175 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
177 #define hlist_for_each_entry_continue(pos, member) \ argument
178 for (pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member);\
180 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
182 #define hlist_for_each_entry_from(pos, member) \ argument
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
Dmali_osk_list.h209 #define MALI_OSK_LIST_ENTRY(ptr, type, member) MALI_OSK_CONTAINER_OF(ptr, type, member) argument
237 #define MALI_OSK_LIST_FOREACHENTRY(ptr, tmp, list, type, member) … argument
238 …for (ptr = MALI_OSK_LIST_ENTRY((list)->next, type, member), …
239 …tmp = MALI_OSK_LIST_ENTRY((ptr)->member.next, type, member); …
240 …&(ptr)->member != (list); ptr = (tmp), tmp = MALI_OSK_LIST_ENTRY((tmp)->member.next, type, member))
258 #define MALI_OSK_LIST_FOREACHENTRY_REVERSE(ptr, tmp, list, type, member) … argument
259 …for (ptr = MALI_OSK_LIST_ENTRY((list)->prev, type, member), …
260 …tmp = MALI_OSK_LIST_ENTRY((ptr)->member.prev, type, member); …
261 … &(ptr)->member != (list); ptr = tmp, tmp = MALI_OSK_LIST_ENTRY((tmp)->member.prev, type, member))
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
Dmali_osk_list.h208 #define _MALI_OSK_LIST_ENTRY(ptr, type, member) \ argument
209 _MALI_OSK_CONTAINER_OF(ptr, type, member)
237 #define _MALI_OSK_LIST_FOREACHENTRY(ptr, tmp, list, type, member) \ argument
238 for (ptr = _MALI_OSK_LIST_ENTRY((list)->next, type, member), \
239 tmp = _MALI_OSK_LIST_ENTRY(ptr->member.next, type, member); \
240 &ptr->member != (list); \
242 tmp = _MALI_OSK_LIST_ENTRY(tmp->member.next, type, member))
260 #define _MALI_OSK_LIST_FOREACHENTRY_REVERSE(ptr, tmp, list, type, member) \ argument
261 for (ptr = _MALI_OSK_LIST_ENTRY((list)->prev, type, member), \
262 tmp = _MALI_OSK_LIST_ENTRY(ptr->member.prev, type, member); \
[all …]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/kernel/include/
Dlos_list.h288 #define LOS_OFF_SET_OF(type, member) ((UINT32)&(((type *)0)->member)) argument
313 #define LOS_DL_LIST_ENTRY(item, type, member) \ argument
314 ((type *)(VOID *)((CHAR *)(item) - LOS_OFF_SET_OF(type, member))) \
337 #define LOS_DL_LIST_FOR_EACH_ENTRY(item, list, type, member) \ argument
338 for ((item) = LOS_DL_LIST_ENTRY((list)->pstNext, type, member); \
339 &(item)->member != (list); \
340 (item) = LOS_DL_LIST_ENTRY((item)->member.pstNext, type, member))
364 #define LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, next, list, type, member) \ argument
365 for ((item) = LOS_DL_LIST_ENTRY((list)->pstNext, type, member), \
366 (next) = LOS_DL_LIST_ENTRY((item)->member.pstNext, type, member); \
[all …]
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
Dhi_list.h206 #define hi_list_entry(item, type, member) \ argument
207 ((type*)((char*)(item) - hi_offset_of_member(type, member)))
209 #define hi_list_for_each_entry(item, list, type, member) \ argument
210 for ((item) = hi_list_entry((list)->next, type, member); \
211 &(item)->member != (list); \
212 (item) = hi_list_entry((item)->member.next, type, member))
214 #define hi_list_for_each_entry_safe(list, item, pnext, type, member) \ argument
215 for ((item) = hi_list_entry((list)->next, type, member), \
216 (pnext) = hi_list_entry((item)->member.next, type, member); \
217 &(item)->member != (list); \
[all …]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/include/
Dhi_list.h264 #define hi_list_entry(item, type, member) ((type *)((char *)(item)-hi_offset_of_member(type, member argument
270 #define hi_list_for_each_entry(item, list, type, member) \ argument
271 for ((item) = hi_list_entry((list)->next, type, member); &(item)->member != (list); \
272 (item) = hi_list_entry((item)->member.next, type, member))
278 #define hi_list_for_each_entry_safe(list, item, pnext, type, member) \ argument
279 for ((item) = hi_list_entry((list)->next, type, member), \
280 (pnext) = hi_list_entry((item)->member.next, type, member); \
281 …&(item)->member != (list); (item) = (pnext), (pnext) = hi_list_entry((item)->member.next, type, me…
283 #define hi_list_for_each_entry_continue_safe(pitem, list, item, pnext, type, member) \ argument
284 for ((item) = hi_list_entry((pitem)->next, type, member), \
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/ve/google-ve/
Dvp9_mem_list.h16 #define aw_container_of(aw_ptr, type, member) ({ \ argument
17 const typeof(((type *)0)->member)*__mptr = (aw_ptr); \
18 (type *)((char *)__mptr - ion_offsetof(type, member)); })
97 #define aw_mem_list_entry(aw_ptr, type, member) aw_container_of(aw_ptr, type, member) argument
103 #define aw_mem_list_for_each_entry(aw_pos, aw_head, member) \ argument
104 for (aw_pos = aw_mem_list_entry((aw_head)->aw_next, typeof(*aw_pos), member); \
105 aw_prefetch(aw_pos->member.aw_next), &aw_pos->member != (aw_head); \
106 aw_pos = aw_mem_list_entry(aw_pos->member.aw_next, typeof(*aw_pos), member))
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/ve/cedar-ve/
Dve_mem_list.h28 #define aw_container_of(aw_ptr, type, member) ({ \ argument
29 const typeof(((type *)0)->member)*__mptr = (aw_ptr); \
30 (type *)((char *)__mptr - ion_offsetof(type, member)); })
109 #define aw_mem_list_entry(aw_ptr, type, member) aw_container_of(aw_ptr, type, member) argument
115 #define aw_mem_list_for_each_entry(aw_pos, aw_head, member) \ argument
116 for (aw_pos = aw_mem_list_entry((aw_head)->aw_next, typeof(*aw_pos), member); \
117 aw_prefetch(aw_pos->member.aw_next), &aw_pos->member != (aw_head); \
118 aw_pos = aw_mem_list_entry(aw_pos->member.aw_next, typeof(*aw_pos), member))
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_common/include/
Dbk_list.h27 #define list_entry(ptr, type, member) ((type *)((char *)ptr - offsetof(type,member))) argument
242 #define list_for_each_entry(pos, head, member) \ argument
243 for (pos = list_entry((head)->next, __typeof__(*pos), member); \
244 prefetch(pos->member.next), &pos->member != (head); \
245 pos = list_entry(pos->member.next, __typeof__(*pos), member))
254 #define list_for_each_entry_safe(pos, n, head, member) \ argument
255 for (pos = list_entry((head)->next, __typeof__(*pos), member), \
256 n = list_entry(pos->member.next, __typeof__(*pos), member); \
257 &pos->member != (head); \
258 pos = n, n = list_entry(n->member.next, __typeof__(*n), member))
/device/soc/esp/esp32/components/esp_common/include/
Desp_compiler.h44 #define ESP_COMPILER_DESIGNATED_INIT_AGGREGATE_TYPE_STR(member, value) { .member = value }, argument
45 #define ESP_COMPILER_DESIGNATED_INIT_AGGREGATE_TYPE_EMPTY(member) .member = { }, argument
47 #define ESP_COMPILER_DESIGNATED_INIT_AGGREGATE_TYPE_STR(member, value) .member = value, argument
48 #define ESP_COMPILER_DESIGNATED_INIT_AGGREGATE_TYPE_EMPTY(member) argument
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include/
Dlinux_cbb_list.h133 #define cbb_list_entry(ptr, type, member) \ argument
134 ((type *)((uintptr_t)(ptr)-((uintptr_t)(&((type *)0)->member))))
144 #define cbb_get_first_item(attached, type, member) \ argument
145 ((type *)((char *)((attached)->next)-(HPT_UPTR)(&((type *)0)->member)))
147 #define cbb_list_for_each_entry_safe(pos, n, head, member) \ argument
149 for ((pos) = cbb_list_entry((head)->next, typeof(*(pos)), member), \
150 (n) = cbb_list_entry((pos)->member.next, typeof(*(pos)), member); \
151 &(pos)->member != (head); \
152 (pos) = (n), (n) = cbb_list_entry((n)->member.next, typeof(*(n)), member)) \
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
Ddrm_prime.c101 struct drm_prime_member *member; in drm_prime_add_buf_handle() local
104 member = kmalloc(sizeof(*member), GFP_KERNEL); in drm_prime_add_buf_handle()
105 if (!member) { in drm_prime_add_buf_handle()
110 member->dma_buf = dma_buf; in drm_prime_add_buf_handle()
111 member->handle = handle; in drm_prime_add_buf_handle()
126 rb_link_node(&member->dmabuf_rb, rb, p); in drm_prime_add_buf_handle()
127 rb_insert_color(&member->dmabuf_rb, &prime_fpriv->dmabufs); in drm_prime_add_buf_handle()
142 rb_link_node(&member->handle_rb, rb, p); in drm_prime_add_buf_handle()
143 rb_insert_color(&member->handle_rb, &prime_fpriv->handles); in drm_prime_add_buf_handle()
154 struct drm_prime_member *member; in drm_prime_lookup_buf_by_handle() local
[all …]

12345