Home
last modified time | relevance | path

Searched refs:list_entry (Results 1 – 25 of 85) sorted by relevance

1234

/third_party/mesa3d/src/util/
Dlist.h190 #define list_entry(__item, __type, __field) \ macro
203 list_entry((ptr)->next, type, member)
206 list_entry((ptr)->prev, type, member)
237 for (type *pos = list_entry((head)->next, type, member), \
238 *__next = list_entry(pos->member.next, type, member); \
240 pos = list_entry(pos->member.next, type, member), \
242 __next = list_entry(__next->member.next, type, member))
245 for (type *pos = list_entry((head)->next, type, member), \
246 *__next = list_entry(pos->member.next, type, member); \
249 __next = list_entry(__next->member.next, type, member))
[all …]
/third_party/exfatprogs/include/
Dlist.h202 #define list_entry(ptr, type, member) \ macro
254 for (pos = list_entry((head)->next, typeof(*pos), member); \
256 pos = list_entry(pos->member.next, typeof(*pos), member))
265 for (pos = list_entry((head)->prev, typeof(*pos), member); \
267 pos = list_entry(pos->member.prev, typeof(*pos), member))
277 ((pos) ? : list_entry(head, typeof(*pos), member))
287 for (pos = list_entry(pos->member.next, typeof(*pos), member); \
289 pos = list_entry(pos->member.next, typeof(*pos), member))
300 for (pos = list_entry((head)->next, typeof(*pos), member), \
301 n = list_entry(pos->member.next, typeof(*pos), member); \
[all …]
/third_party/ltp/testcases/realtime/include/
Dlist.h263 #define list_entry(ptr, type, member) \ macro
301 for (pos = list_entry((head)->next, typeof(*pos), member); \
303 pos = list_entry(pos->member.next, typeof(*pos), member))
312 for (pos = list_entry((head)->prev, typeof(*pos), member); \
314 pos = list_entry(pos->member.prev, typeof(*pos), member))
324 ((pos) ? : list_entry(head, typeof(*pos), member))
334 for (pos = list_entry(pos->member.next, typeof(*pos), member); \
336 pos = list_entry(pos->member.next, typeof(*pos), member))
346 for (pos = list_entry((head)->next, typeof(*pos), member), \
347 n = list_entry(pos->member.next, typeof(*pos), member); \
[all …]
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/
Dlist.h138 #define list_entry(ptr, type, field) container_of(ptr, type, field) macro
141 list_entry((ptr)->next, type, member)
144 list_entry((ptr)->prev, type, member)
150 list_entry(((ptr)->member.next), typeof(*(ptr)), member)
156 list_entry(((ptr)->member.prev), typeof(*(ptr)), member)
165 for (p = list_entry((h)->next, typeof(*p), field); &(p)->field != (h); \
166 p = list_entry((p)->field.next, typeof(*p), field))
169 for (p = list_entry((h)->next, typeof(*p), field), \
170 n = list_entry((p)->field.next, typeof(*p), field); &(p)->field != (h);\
171 p = n, n = list_entry(n->field.next, typeof(*n), field))
[all …]
/third_party/alsa-lib/src/ucm/
Dutils.c68 ctl_list2 = list_entry(pos, struct ctl_list, list); in uc_mgr_get_master_ctl()
102 ctl_list = list_entry(pos, struct ctl_list, list); in uc_mgr_get_ctl_by_name()
151 ctl_dev = list_entry(pos, struct ctl_dev, list); in uc_mgr_free_ctl()
165 ctl_list = list_entry(pos, struct ctl_list, list); in uc_mgr_free_ctl_list()
179 ctl_dev = list_entry(pos, struct ctl_dev, list); in uc_mgr_ctl_add_dev()
278 ctl_list = list_entry(pos1, struct ctl_list, list); in uc_mgr_open_ctl()
282 ctl_dev = list_entry(pos2, struct ctl_dev, list); in uc_mgr_open_ctl()
308 ctl_list = list_entry(pos1, struct ctl_list, list); in uc_mgr_open_ctl()
409 val = list_entry(pos, struct ucm_value, list); in uc_mgr_free_value()
423 dlist = list_entry(pos, struct dev_list_node, list); in uc_mgr_free_dev_list()
[all …]
Dmain.c684 s = list_entry(pos, struct sequence_element, list); in execute_sequence()
1152 device = list_entry(pos, struct dev_list_node, list); in is_devlist_supported()
1155 adev = list_entry(pos1, struct use_case_device, in is_devlist_supported()
1190 device = list_entry(pos, struct use_case_device, list); in find_device()
1218 modifier = list_entry(pos, struct use_case_modifier, list); in find_modifier()
1239 dev = list_entry(pos, struct use_case_device, active_list); in device_status()
1253 mod = list_entry(pos, struct use_case_modifier, active_list); in modifier_status()
1483 modifier = list_entry(pos, struct use_case_modifier, in dismantle_use_case()
1492 device = list_entry(pos, struct use_case_device, in dismantle_use_case()
1693 value = list_entry(pos, struct myvalue, list); in myvalue_to_str_list()
[all …]
/third_party/alsa-utils/alsactl/
Dlist.h211 #define list_entry(ptr, type, member) \ macro
261 for (pos = list_entry((head)->next, typeof(*pos), member); \
263 pos = list_entry(pos->member.next, typeof(*pos), member))
272 for (pos = list_entry((head)->prev, typeof(*pos), member); \
274 pos = list_entry(pos->member.prev, typeof(*pos), member))
284 for (pos = list_entry((head)->next, typeof(*pos), member), \
285 n = list_entry(pos->member.next, typeof(*pos), member); \
287 pos = n, n = list_entry(n->member.next, typeof(*n), member))
/third_party/alsa-lib/src/mixer/
Dmixer.c182 c = list_entry(pos, snd_mixer_class_t, list); in hctl_event_handler()
255 s = list_entry(pos, snd_mixer_slave_t, list); in snd_mixer_detach()
279 s = list_entry(pos, snd_mixer_slave_t, list); in snd_mixer_detach_hctl()
301 s = list_entry(pos, snd_mixer_slave_t, list); in snd_mixer_get_hctl()
527 slave = list_entry(pos, snd_mixer_slave_t, list); in snd_mixer_class_register()
574 s = list_entry(pos, snd_mixer_slave_t, list); in snd_mixer_load()
591 s = list_entry(pos, snd_mixer_slave_t, list); in snd_mixer_free()
607 c = list_entry(mixer->classes.next, snd_mixer_class_t, list); in snd_mixer_close()
617 s = list_entry(mixer->slaves.next, snd_mixer_slave_t, list); in snd_mixer_close()
694 s = list_entry(pos, snd_mixer_slave_t, list); in snd_mixer_poll_descriptors_count()
[all …]
/third_party/alsa-lib/modules/mixer/simple/
Dsbase.c86 helem = list_entry(pos, struct helem_base, list); in update_ranges()
98 helem = list_entry(pos, struct helem_base, list); in update_ranges()
122 helem = list_entry(pos, struct helem_base, list); in is_ops()
139 helem = list_entry(s->helems.next, struct helem_base, list); in is_ops()
145 helem = list_entry(s->helems.next, struct helem_base, list); in is_ops()
310 hsimple = list_entry(pos, struct helem_base, list); in selem_free()
335 bsid = list_entry(pos, struct bclass_sid, list); in simple_event_add1()
467 sel = list_entry(pos, struct bclass_selector, list); in simple_event_add()
521 sel = list_entry(pos, struct bclass_selector, list); in sbasic_cpriv_free()
525 sid = list_entry(pos, struct bclass_sid, list); in sbasic_cpriv_free()
/third_party/alsa-lib/src/topology/
Dbuilder.c85 elem = list_entry(pos, struct tplg_elem, list); in write_elem_block()
90 elem_next = list_entry(pos->next, struct tplg_elem, list); in write_elem_block()
106 elem = list_entry(sub_pos, struct tplg_elem, list); in write_elem_block()
164 elem = list_entry(pos, struct tplg_elem, list); in calc_real_size()
175 elem_next = list_entry(pos->next, struct tplg_elem, list); in calc_real_size()
192 elem = list_entry(pos, struct tplg_elem, list); in calc_block_size()
Delem.c284 ref = list_entry(pos, struct tplg_ref, list); in tplg_ref_free_list()
327 elem = list_entry(pos, struct tplg_elem, list); in tplg_elem_free_list()
343 elem = list_entry(pos, struct tplg_elem, list); in tplg_elem_lookup()
381 elem = list_entry(pos, struct tplg_elem, list); in tplg_elem_type_lookup()
394 elem = list_entry(pos, struct tplg_elem, list); in tplg_elem_insert()
507 a = list_entry(pos, struct tplg_alloc, list); in tplg_free()
Ddata.c134 ref = list_entry(pos, struct tplg_ref, list); in tplg_save_refs()
151 ref = list_entry(pos, struct tplg_ref, list); in tplg_save_refs()
538 ref = list_entry(pos, struct tplg_ref, list); in get_tokens()
563 ref = list_entry(pos, struct tplg_ref, list); in has_tuples()
685 ref = list_entry(pos, struct tplg_ref, list); in build_tuples()
1254 ref = list_entry(pos, struct tplg_ref, list); in tplg_save_manifest_data()
1269 ref = list_entry(pos, struct tplg_ref, list); in tplg_save_manifest_data()
1302 elem = list_entry(pos, struct tplg_elem, list); in tplg_build_manifest_data()
1314 ref = list_entry(pos, struct tplg_ref, list); in tplg_build_manifest_data()
1435 ref = list_entry(pos, struct tplg_ref, list); in tplg_save_data()
[all …]
/third_party/ffmpeg/libavformat/
Daiffenc.c51 PacketListEntry *list_entry = aiff->pict_list.head; in put_id3v2_tags() local
53 if (!s->metadata && !s->nb_chapters && !list_entry) in put_id3v2_tags()
62 while (list_entry) { in put_id3v2_tags()
63 if ((ret = ff_id3v2_write_apic(s, &id3v2, &list_entry->pkt)) < 0) in put_id3v2_tags()
65 list_entry = list_entry->next; in put_id3v2_tags()
Dsegment.c314 const SegmentListEntry *list_entry, in segment_list_print_entry() argument
319 avio_printf(list_ioctx, "%s\n", list_entry->filename); in segment_list_print_entry()
323 print_csv_escaped_str(list_ioctx, list_entry->filename); in segment_list_print_entry()
324 avio_printf(list_ioctx, ",%f,%f\n", list_entry->start_time, list_entry->end_time); in segment_list_print_entry()
328 list_entry->end_time - list_entry->start_time, list_entry->filename); in segment_list_print_entry()
333 …if (av_escape(&buf, list_entry->filename, NULL, AV_ESCAPE_MODE_AUTO, AV_ESCAPE_FLAG_WHITESPACE) < … in segment_list_print_entry()
335 "Error writing list entry '%s' in list file\n", list_entry->filename); in segment_list_print_entry()
/third_party/libbpf/include/linux/
Dlist.h80 #define list_entry(ptr, type, member) \ macro
83 list_entry((ptr)->next, type, member)
85 list_entry((pos)->member.next, typeof(*(pos)), member)
/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_slab.c150 list_is_empty(&list_entry(group->slabs.next, struct pb_slab, head)->free)) { in pb_slab_alloc_reclaimed()
159 slab = list_entry(group->slabs.next, struct pb_slab, head); in pb_slab_alloc_reclaimed()
183 entry = list_entry(slab->free.next, struct pb_slab_entry, head); in pb_slab_alloc_reclaimed()
290 list_entry(slabs->reclaim.next, struct pb_slab_entry, head); in pb_slabs_deinit()
Dpb_cache.c66 entry = list_entry(curr, struct pb_cache_entry, head); in release_expired_buffers_locked()
169 cur_entry = list_entry(cur, struct pb_cache_entry, head); in pb_cache_reclaim_buffer()
191 cur_entry = list_entry(cur, struct pb_cache_entry, head); in pb_cache_reclaim_buffer()
240 buf = list_entry(curr, struct pb_cache_entry, head); in pb_cache_release_all_buffers()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_screen_cache.c116 entry = list_entry(curr, struct svga_host_surface_cache_entry, bucket_head); in svga_screen_cache_lookup()
264 entry = list_entry(cache->empty.next, in svga_screen_cache_add()
273 entry = list_entry(cache->unused.prev, in svga_screen_cache_add()
345 entry = list_entry(curr, struct svga_host_surface_cache_entry, head); in svga_screen_cache_flush()
371 entry = list_entry(curr, struct svga_host_surface_cache_entry, head); in svga_screen_cache_flush()
649 list_entry(curr, struct svga_host_surface_cache_entry,bucket_head); in svga_screen_cache_dump()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_dirty_surfaces.h62 struct util_dirty_surface *ds = list_entry(p, struct util_dirty_surface, dirty_list); in util_dirty_surfaces_use_for_sampling()
77 struct util_dirty_surface *ds = list_entry(p, struct util_dirty_surface, dirty_list); in util_dirty_surfaces_use_levels_for_sampling()
/third_party/alsa-lib/src/pcm/
Dpcm_ladspa.c184 snd_pcm_ladspa_plugin_t *plugin = list_entry(plugins->next, snd_pcm_ladspa_plugin_t, list); in snd_pcm_ladspa_free_plugins()
326 snd_pcm_ladspa_plugin_t *plugin = list_entry(pos, snd_pcm_ladspa_plugin_t, list); in snd_pcm_ladspa_free_instances()
328 snd_pcm_ladspa_instance_t *instance = list_entry(pos1, snd_pcm_ladspa_instance_t, list); in snd_pcm_ladspa_free_instances()
625 snd_pcm_ladspa_plugin_t *plugin = list_entry(pos, snd_pcm_ladspa_plugin_t, list); in snd_pcm_ladspa_allocate_instances()
710 snd_pcm_ladspa_plugin_t *plugin = list_entry(pos, snd_pcm_ladspa_plugin_t, list); in snd_pcm_ladspa_allocate_memory()
712 instance = list_entry(pos1, snd_pcm_ladspa_instance_t, list); in snd_pcm_ladspa_allocate_memory()
784 snd_pcm_ladspa_plugin_t *plugin = list_entry(pos, snd_pcm_ladspa_plugin_t, list); in snd_pcm_ladspa_allocate_memory()
786 instance = list_entry(pos1, snd_pcm_ladspa_instance_t, list); in snd_pcm_ladspa_allocate_memory()
809 snd_pcm_ladspa_plugin_t *plugin = list_entry(pos, snd_pcm_ladspa_plugin_t, list); in snd_pcm_ladspa_allocate_memory()
811 instance = list_entry(pos1, snd_pcm_ladspa_instance_t, list); in snd_pcm_ladspa_allocate_memory()
[all …]
Dpcm_hooks.c87 snd_pcm_hook_t *hook = list_entry(pos, snd_pcm_hook_t, list); in snd_pcm_hooks_close()
97 hook = list_entry(pos, snd_pcm_hook_t, list); in snd_pcm_hooks_close()
103 hook_remove_dlobj(list_entry(pos, struct snd_pcm_hook_dllist, list)); in snd_pcm_hooks_close()
119 snd_pcm_hook_t *hook = list_entry(pos, snd_pcm_hook_t, list); in snd_pcm_hooks_hw_params()
135 snd_pcm_hook_t *hook = list_entry(pos, snd_pcm_hook_t, list); in snd_pcm_hooks_hw_free()
Dpcm_meter.c194 scope = list_entry(pos, snd_pcm_scope_t, list); in snd_pcm_meter_thread()
209 scope = list_entry(pos, snd_pcm_scope_t, list); in snd_pcm_meter_thread()
241 scope = list_entry(pos, snd_pcm_scope_t, list); in snd_pcm_meter_thread()
249 scope = list_entry(pos, snd_pcm_scope_t, list); in snd_pcm_meter_thread()
256 scope = list_entry(pos, snd_pcm_scope_t, list); in snd_pcm_meter_thread()
263 scope = list_entry(pos, snd_pcm_scope_t, list); in snd_pcm_meter_thread()
282 scope = list_entry(pos, snd_pcm_scope_t, list); in snd_pcm_meter_close()
869 scope = list_entry(pos, snd_pcm_scope_t, list); in snd_pcm_meter_search_scope()
/third_party/alsa-lib/src/
Ddlmisc.c318 c = list_entry(p, struct dlobj_cache, list); in snd_dlobj_cache_get0()
412 c = list_entry(p, struct dlobj_cache, list); in snd_dlobj_cache_put()
432 c = list_entry(p, struct dlobj_cache, list); in snd_dlobj_cache_cleanup()
/third_party/mesa3d/src/gallium/drivers/r600/
Dradeon_vce.c207 return list_entry(enc->cpb_slots.prev, struct rvce_cpb_slot, list); in current_slot()
215 return list_entry(enc->cpb_slots.next, struct rvce_cpb_slot, list); in l0_slot()
223 return list_entry(enc->cpb_slots.next->next, struct rvce_cpb_slot, list); in l1_slot()
337 struct rvce_cpb_slot *slot = list_entry(enc->cpb_slots.prev, in rvce_end_frame()
/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/
Doptimize.c83 gpir_block *prev_block = list_entry(block->list.prev, gpir_block, list); in optimize_branches()
112 block->successors[0] = list_entry(block->list.next, gpir_block, list); in optimize_branches()

1234