Home
last modified time | relevance | path

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

1234

/external/blktrace/iowatcher/
Dlist.h286 #define list_entry(ptr, type, member) \ macro
337 for (pos = list_entry((head)->next, typeof(*pos), member); \
339 pos = list_entry(pos->member.next, typeof(*pos), member))
348 for (pos = list_entry((head)->prev, typeof(*pos), member); \
350 pos = list_entry(pos->member.prev, typeof(*pos), member))
361 ((pos) ? : list_entry(head, typeof(*pos), member))
373 for (pos = list_entry(pos->member.next, typeof(*pos), member); \
375 pos = list_entry(pos->member.next, typeof(*pos), member))
387 pos = list_entry(pos->member.next, typeof(*pos), member))
397 for (pos = list_entry((head)->next, typeof(*pos), member), \
[all …]
/external/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 …]
/external/u-boot/include/linux/
Dlist.h326 #define list_entry(ptr, type, member) \ macro
338 list_entry((ptr)->next, type, member)
349 list_entry((ptr)->prev, type, member)
410 for (pos = list_entry((head)->next, typeof(*pos), member); \
412 pos = list_entry(pos->member.next, typeof(*pos), member))
421 for (pos = list_entry((head)->prev, typeof(*pos), member); \
423 pos = list_entry(pos->member.prev, typeof(*pos), member))
434 ((pos) ? : list_entry(head, typeof(*pos), member))
446 for (pos = list_entry(pos->member.next, typeof(*pos), member); \
448 pos = list_entry(pos->member.next, typeof(*pos), member))
[all …]
/external/kmod/libkmod/
Dlibkmod.h91 #define kmod_list_foreach(list_entry, first_entry) \ argument
92 for (list_entry = first_entry; \
93 list_entry != NULL; \
94 list_entry = kmod_list_next(first_entry, list_entry))
96 #define kmod_list_foreach_reverse(list_entry, first_entry) \ argument
97 for (list_entry = kmod_list_last(first_entry); \
98 list_entry != NULL; \
99 list_entry = kmod_list_prev(first_entry, list_entry))
Dlibkmod-internal.h74 #define kmod_list_foreach(list_entry, first_entry) \ argument
75 for (list_entry = ((first_entry) == NULL) ? NULL : (first_entry); \
76 list_entry != NULL; \
77 list_entry = (list_entry->node.next == &((first_entry)->node)) ? NULL : \
78 container_of(list_entry->node.next, struct kmod_list, node))
81 #define kmod_list_foreach_reverse(list_entry, first_entry) \ argument
82 …for (list_entry = (((first_entry) == NULL) ? NULL : container_of(first_entry->node.prev, struct km…
83 list_entry != NULL; \
84 list_entry = ((list_entry == first_entry) ? NULL : \
85 container_of(list_entry->node.prev, struct kmod_list, node)))
/external/u-boot/scripts/kconfig/
Dlist.h40 #define list_entry(ptr, type, member) \ macro
50 for (pos = list_entry((head)->next, typeof(*pos), member); \
52 pos = list_entry(pos->member.next, typeof(*pos), member))
62 for (pos = list_entry((head)->next, typeof(*pos), member), \
63 n = list_entry(pos->member.next, typeof(*pos), member); \
65 pos = n, n = list_entry(n->member.next, typeof(*n), member))
/external/ltp/utils/ffsb-6.0-rc2/
Dlist.h35 #define list_entry(ptr, type, member) \ macro
39 for (pos = list_entry((head)->next, typeof(*pos), member); \
41 pos = list_entry(pos->member.next, typeof(*pos), member))
44 for (pos = list_entry((head)->next, typeof(*pos), member), \
45 n = list_entry(pos->member.next, typeof(*pos), member); \
47 pos = n, n = list_entry(n->member.next, typeof(*n), member))
/external/libnfnetlink/include/
Dlinux_list.h334 #define list_entry(ptr, type, member) \ macro
385 for (pos = list_entry((head)->next, typeof(*pos), member), \
388 pos = list_entry(pos->member.next, typeof(*pos), member), \
398 for (pos = list_entry((head)->prev, typeof(*pos), member), \
401 pos = list_entry(pos->member.prev, typeof(*pos), member), \
412 ((pos) ? : list_entry(head, typeof(*pos), member))
422 for (pos = list_entry(pos->member.next, typeof(*pos), member), \
425 pos = list_entry(pos->member.next, typeof(*pos), member), \
436 for (pos = list_entry((head)->next, typeof(*pos), member), \
437 n = list_entry(pos->member.next, typeof(*pos), member); \
[all …]
/external/iptables/libiptc/
Dlinux_list.h330 #define list_entry(ptr, type, member) \ macro
381 for (pos = list_entry((head)->next, typeof(*pos), member), \
384 pos = list_entry(pos->member.next, typeof(*pos), member), \
394 for (pos = list_entry((head)->prev, typeof(*pos), member), \
397 pos = list_entry(pos->member.prev, typeof(*pos), member), \
408 ((pos) ? : list_entry(head, typeof(*pos), member))
418 for (pos = list_entry(pos->member.next, typeof(*pos), member), \
421 pos = list_entry(pos->member.next, typeof(*pos), member), \
432 for (pos = list_entry((head)->next, typeof(*pos), member), \
433 n = list_entry(pos->member.next, typeof(*pos), member); \
[all …]
/external/libnetfilter_conntrack/include/internal/
Dlinux_list.h335 #define list_entry(ptr, type, member) \ macro
386 for (pos = list_entry((head)->next, typeof(*pos), member), \
389 pos = list_entry(pos->member.next, typeof(*pos), member), \
399 for (pos = list_entry((head)->prev, typeof(*pos), member), \
402 pos = list_entry(pos->member.prev, typeof(*pos), member), \
413 ((pos) ? : list_entry(head, typeof(*pos), member))
423 for (pos = list_entry(pos->member.next, typeof(*pos), member), \
426 pos = list_entry(pos->member.next, typeof(*pos), member), \
437 for (pos = list_entry((head)->next, typeof(*pos), member), \
438 n = list_entry(pos->member.next, typeof(*pos), member); \
[all …]
/external/u-boot/cmd/
Dmtdparts.c238 dev = list_entry(dentry, struct mtd_device, link); in index_partitions()
499 part_tmp = list_entry(entry, struct part_info, link); in part_delall()
529 new_pi = list_entry(&part->link, struct part_info, link); in part_sort_add()
539 pi = list_entry(entry, struct part_info, link); in part_sort_add()
741 dev_tmp = list_entry(entry, struct mtd_device, link); in device_delall()
771 current_mtd_dev = list_entry(devices.next, struct mtd_device, link); in device_del()
796 dev_tmp = list_entry(entry, struct mtd_device, link); in device_find()
887 part = list_entry(dev->parts.prev, struct part_info, link); in device_parse()
949 part = list_entry(entry, struct part_info, link); in device_parse()
988 id = list_entry(entry, struct mtdids, link); in id_find()
[all …]
/external/e2fsprogs/lib/blkid/
Dcache.c75 blkid_dev dev = list_entry(p, struct blkid_struct_dev, bid_devs);
130 blkid_dev dev = list_entry(cache->bic_devs.next, in blkid_put_cache()
137 blkid_tag tag = list_entry(cache->bic_tags.next, in blkid_put_cache()
142 blkid_tag bad = list_entry(tag->bit_names.next, in blkid_put_cache()
166 blkid_dev dev = list_entry(p, struct blkid_struct_dev, bid_devs); in blkid_gc_cache()
Ddev.c44 blkid_tag tag = list_entry(dev->bid_tags.next, in blkid_free_dev()
78 blkid_tag tag = list_entry(p, struct blkid_struct_tag, bit_tags); in blkid_debug_dump_dev()
165 dev = list_entry(iter->p, struct blkid_struct_dev, bid_devs); in blkid_dev_next()
/external/iproute2/include/
Dlist.h52 #define list_entry(ptr, type, member) \ macro
56 list_entry((ptr)->next, type, member)
59 list_entry((ptr)->prev, type, member)
62 list_entry((pos)->member.next, typeof(*(pos)), member)
65 list_entry((pos)->member.prev, typeof(*(pos)), member)
/external/perfetto/src/traced/probes/filesystem/
Dlru_inode_cache.cc26 auto list_entry = map_it->second; in Get() local
30 Insert(map_it, std::move(list_entry->first), std::move(list_entry->second)); in Get()
/external/blktrace/btt/
Ddevs.c68 dip = list_entry(p, struct d_info, hash_head); in __dip_find()
103 struct d_info *dip = list_entry(p, struct d_info, all_head); in dip_exit()
191 this = list_entry(p, struct io, f_head); in dip_foreach()
214 func(list_entry(p, struct d_info, all_head), arg); in dip_foreach_out()
273 struct d_info *dip = list_entry(p, struct d_info, all_head); in dip_cleanup()
Ddevmap.c55 struct devmap *dmp = list_entry(p, struct devmap, head); in dev_map_find()
88 struct devmap *dmp = list_entry(p, struct devmap, head); in dev_map_exit()
/external/libusb/libusb/
Dlibusbi.h86 #define list_entry(ptr, type, member) \ macro
90 list_entry((ptr)->next, type, member)
99 for (pos = list_entry((head)->next, type, member); \
101 pos = list_entry(pos->member.next, type, member))
104 for (pos = list_entry((head)->next, type, member), \
105 n = list_entry(pos->member.next, type, member); \
107 pos = n, n = list_entry(n->member.next, type, member))
/external/libusb/include/libusb/
Dlibusbi.h86 #define list_entry(ptr, type, member) \ macro
90 list_entry((ptr)->next, type, member)
99 for (pos = list_entry((head)->next, type, member); \
101 pos = list_entry(pos->member.next, type, member))
104 for (pos = list_entry((head)->next, type, member), \
105 n = list_entry(pos->member.next, type, member); \
107 pos = n, n = list_entry(n->member.next, type, member))
/external/blktrace/
Dblktrace.c934 struct devpath *dpp = list_entry(p, struct devpath, head); in net_send_drops()
1076 struct devpath *dpp = list_entry(p, struct devpath, head); in setup_buts()
1105 struct devpath *dpp = list_entry(p, struct devpath, head); in start_buts()
1147 struct devpath *dpp = list_entry(p, struct devpath, head); in get_all_drops()
1192 struct devpath *dpp = list_entry(p, struct devpath, head); in setup_tracer_devpaths()
1256 struct devpath *tmp = list_entry(p, struct devpath, head); in add_devpath()
1285 struct devpath *dpp = list_entry(p, struct devpath, head); in rel_devpaths()
1321 tbp = list_entry(p, struct trace_buf, head); in handle_list_net()
1378 tbp = list_entry(p, struct trace_buf, head); in handle_list_file()
1440 struct devpath *dpp = list_entry(p, struct devpath, head); in __process_trace_bufs()
[all …]
/external/u-boot/lib/efi_loader/
Defi_memory.c55 struct efi_mem_list *mema = list_entry(a, struct efi_mem_list, link); in efi_mem_cmp()
56 struct efi_mem_list *memb = list_entry(b, struct efi_mem_list, link); in efi_mem_cmp()
192 lmem = list_entry(lhandle, struct efi_mem_list, link); in efi_add_memory_map()
248 struct efi_mem_list *lmem = list_entry(lhandle, in efi_find_free_memory()
472 lmem = list_entry(lhandle, struct efi_mem_list, link); in efi_get_memory_map()
/external/u-boot/drivers/mmc/
Dmmc_legacy.c43 m = list_entry(entry, struct mmc, link); in find_mmc_device()
77 m = list_entry(entry, struct mmc, link); in mmc_do_preinit()
109 m = list_entry(entry, struct mmc, link); in print_mmc_devices()
/external/u-boot/drivers/misc/
Dqfw.c331 file = list_entry(entry, struct fw_file, list); in qemu_fwcfg_read_firmware_list()
344 file = list_entry(entry, struct fw_file, list); in qemu_fwcfg_find_file()
355 return list_entry((struct list_head *)iter->entry, in qemu_fwcfg_file_iter_init()
362 return list_entry((struct list_head *)iter->entry, in qemu_fwcfg_file_iter_next()
/external/u-boot/common/
Dmiiphyutil.c49 dev = list_entry(entry, struct mii_dev, link); in miiphy_get_dev_by_name()
141 struct mii_dev *bus = list_entry(entry, struct mii_dev, link); in mdio_list_devices()
187 bus = list_entry(entry, struct mii_dev, link); in mdio_phydev_for_ethname()
285 dev = list_entry(entry, struct mii_dev, link); in miiphy_listdev()
/external/u-boot/drivers/usb/musb-new/
Dmusb_host.h59 return list_entry(q->next, struct musb_qh, ring); in first_qh()
83 return list_entry(queue->next, struct urb, urb_list); in next_urb()

1234