Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 1647) sorted by relevance

12345678910>>...66

/f-stack/app/redis-5.0.5/src/
H A Dadlist.c43 struct list *list; in listCreate() local
47 list->head = list->tail = NULL; in listCreate()
56 void listEmpty(list *list) in listEmpty() argument
69 list->head = list->tail = NULL; in listEmpty()
76 void listRelease(list *list) in listRelease() argument
88 list *listAddNodeHead(list *list, void *value) in listAddNodeHead() argument
96 list->head = list->tail = node; in listAddNodeHead()
114 list *listAddNodeTail(list *list, void *value) in listAddNodeTail() argument
250 list *listDup(list *orig) in listDup()
330 void listRotate(list *list) { in listRotate() argument
[all …]
H A Dadlist.h54 } list; argument
74 void listRelease(list *list);
75 void listEmpty(list *list);
76 list *listAddNodeHead(list *list, void *value);
77 list *listAddNodeTail(list *list, void *value);
78 list *listInsertNode(list *list, listNode *old_node, void *value, int after);
83 list *listDup(list *orig);
85 listNode *listIndex(list *list, long index);
86 void listRewind(list *list, listIter *li);
88 void listRotate(list *list);
[all …]
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dlist.h50 typedef struct list { struct
75 list->list_size = size; in list_create()
89 list_add(list_d2l(list, object), &list->list_head); in list_insert_head()
95 list_add_tail(list_d2l(list, object), &list->list_head); in list_insert_tail()
104 list_add(list_d2l(list, nobject), list_d2l(list, object)); in list_insert_after()
113 list_add_tail(list_d2l(list, nobject), list_d2l(list, object)); in list_insert_before()
145 list_head(list_t *list) in list_head() argument
147 if (list_is_empty(list)) in list_head()
150 return (list_object(list, list->list_head.next)); in list_head()
154 list_tail(list_t *list) in list_tail() argument
[all …]
/f-stack/freebsd/kern/
H A Dsubr_eventhandler.c92 list = new_list; in eventhandler_find_or_create_list()
94 list->el_name = (char *)(list + 1); in eventhandler_find_or_create_list()
96 mtx_init(&list->el_lock, list->el_name, "eventhandler list", in eventhandler_find_or_create_list()
101 return (list); in eventhandler_find_or_create_list()
198 list->el_name); in _eventhandler_deregister()
210 list->el_name); in _eventhandler_deregister()
224 mtx_sleep(list, &list->el_lock, 0, "evhrm", 0); in _eventhandler_deregister()
256 return (list); in _eventhandler_find_list()
274 EHL_LOCK(list); in eventhandler_find_list()
277 return(list); in eventhandler_find_list()
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libspl/
H A Dlist.c64 ASSERT(list); in list_create()
68 list->list_size = size; in list_create()
70 list->list_head.next = list->list_head.prev = &list->list_head; in list_create()
74 list_destroy(list_t *list) in list_destroy() argument
78 ASSERT(list); in list_destroy()
151 list_head(list_t *list) in list_head() argument
153 if (list_empty(list)) in list_head()
155 return (list_object(list, list->list_head.next)); in list_head()
159 list_tail(list_t *list) in list_tail() argument
161 if (list_empty(list)) in list_tail()
[all …]
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/spl/
H A Dlist.c64 ASSERT(list); in list_create()
68 list->list_size = size; in list_create()
70 list->list_head.list_next = list->list_head.list_prev = in list_create()
71 &list->list_head; in list_create()
79 ASSERT(list); in list_destroy()
152 list_head(list_t *list) in list_head() argument
154 if (list_empty(list)) in list_head()
156 return (list_object(list, list->list_head.list_next)); in list_head()
160 list_tail(list_t *list) in list_tail() argument
162 if (list_empty(list)) in list_tail()
[all …]
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dobjlist.c25 objlist_t *list = kmem_alloc(sizeof (*list), KM_SLEEP); in objlist_create() local
28 list->ol_last_lookup = 0; in objlist_create()
29 return (list); in objlist_create()
33 objlist_destroy(objlist_t *list) in objlist_destroy() argument
39 list_destroy(&list->ol_list); in objlist_destroy()
40 kmem_free(list, sizeof (*list)); in objlist_destroy()
52 objlist_exists(objlist_t *list, uint64_t object) in objlist_exists() argument
55 ASSERT3U(object, >=, list->ol_last_lookup); in objlist_exists()
56 list->ol_last_lookup = object; in objlist_exists()
60 node = list_head(&list->ol_list); in objlist_exists()
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Drsend_005_pos.ksh63 list=$(getds_with_suffix $POOL2 @snapA)
64 list="$list $(getds_with_suffix $POOL2 @snapB)"
65 list="$list $(getds_with_suffix $POOL2 @snapC)"
66 list="$list $(getds_with_suffix $POOL2 @final)"
67 log_must destroy_tree $list
78 list=$(getds_with_suffix $dstds/$FS @snapA)
79 list="$list $(getds_with_suffix $dstds/$FS @snapB)"
80 list="$list $(getds_with_suffix $dstds/$FS @snapC)"
81 list="$list $(getds_with_suffix $dstds/$FS @final)"
82 log_must destroy_tree $list
H A Dsend-c_incremental.ksh38 typeset final dstlist list vol
59 list="$final $(getds_with_suffix $POOL2 @snapA)"
60 list="$list $(getds_with_suffix $POOL2 @snapB)"
61 list="$list $(getds_with_suffix $POOL2 @snapC)"
64 log_must destroy_tree $list
87 list="$final $(getds_with_suffix $POOL2/$FS @snapA)"
88 list="$list $(getds_with_suffix $POOL2/$FS @snapB)"
89 list="$list $(getds_with_suffix $POOL2/$FS @snapC)"
92 log_must destroy_tree $list
H A Drsend_007_pos.ksh85 list=$(getds_with_suffix $dstds @snapA)
86 list="$list $(getds_with_suffix $dstds @snapB)"
87 list="$list $(getds_with_suffix $dstds @snapC)"
88 list="$list $(getds_with_suffix $dstds @final)"
89 log_must destroy_tree $list
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_list.h37 ngx_list_init(ngx_list_t *list, ngx_pool_t *pool, ngx_uint_t n, size_t size) in ngx_list_init() argument
39 list->part.elts = ngx_palloc(pool, n * size); in ngx_list_init()
40 if (list->part.elts == NULL) { in ngx_list_init()
44 list->part.nelts = 0; in ngx_list_init()
45 list->part.next = NULL; in ngx_list_init()
46 list->last = &list->part; in ngx_list_init()
47 list->size = size; in ngx_list_init()
48 list->nalloc = n; in ngx_list_init()
49 list->pool = pool; in ngx_list_init()
80 void *ngx_list_push(ngx_list_t *list);
/f-stack/tools/libmemstat/
H A Dmemstat_malloc.c207 _memstat_mtl_empty(list); in memstat_sysctl_malloc()
353 list->mtl_error = ret; in memstat_kvm_malloc()
360 list->mtl_error = ret; in memstat_kvm_malloc()
366 list->mtl_error = ret; in memstat_kvm_malloc()
375 _memstat_mtl_empty(list); in memstat_kvm_malloc()
376 list->mtl_error = ret; in memstat_kvm_malloc()
382 _memstat_mtl_empty(list); in memstat_kvm_malloc()
383 list->mtl_error = ret; in memstat_kvm_malloc()
406 _memstat_mtl_empty(list); in memstat_kvm_malloc()
420 _memstat_mtl_empty(list); in memstat_kvm_malloc()
[all …]
H A Dmemstat_uma.c197 _memstat_mtl_empty(list); in memstat_sysctl_uma()
348 list->mtl_error = ret; in memstat_kvm_uma()
354 list->mtl_error = ret; in memstat_kvm_uma()
359 list->mtl_error = ret; in memstat_kvm_uma()
370 list->mtl_error = ret; in memstat_kvm_uma()
383 _memstat_mtl_empty(list); in memstat_kvm_uma()
384 list->mtl_error = ret; in memstat_kvm_uma()
392 _memstat_mtl_empty(list); in memstat_kvm_uma()
393 list->mtl_error = ret; in memstat_kvm_uma()
402 list->mtl_error = ret; in memstat_kvm_uma()
[all …]
/f-stack/dpdk/drivers/net/qede/base/
H A Dbcm_osal.h204 (list)->head = NULL; \
206 (list)->cnt = 0; \
219 (list)->cnt++; \
232 (list)->cnt++; \
236 (type *)((list)->head)
242 (list)->head = (list)->head->next; \
248 (list)->cnt--; \
252 (list)->tail = (list)->tail->prev; \
258 (list)->cnt--; \
263 (list)->cnt--; \
[all …]
/f-stack/tools/libutil/
H A Dproperty.c239 while (list != NULL) { in property_find()
240 if (list->name != NULL && strcmp(list->name, name) == 0) in property_find()
242 list = list->next; in property_find()
252 while (list) { in properties_free()
253 tmp = list->next; in properties_free()
254 if (list->name) in properties_free()
255 free(list->name); in properties_free()
256 if (list->value) in properties_free()
257 free(list->value); in properties_free()
258 free(list); in properties_free()
[all …]
/f-stack/dpdk/lib/librte_stack/
H A Drte_stack_lf_c11.h34 __rte_stack_lf_push_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_push_elems() argument
42 old_head = list->head; in __rte_stack_lf_push_elems()
59 (rte_int128_t *)&list->head, in __rte_stack_lf_push_elems()
69 __atomic_add_fetch(&list->len, num, __ATOMIC_RELEASE); in __rte_stack_lf_push_elems()
73 __rte_stack_lf_pop_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_pop_elems() argument
83 len = __atomic_load_n(&list->len, __ATOMIC_RELAXED); in __rte_stack_lf_pop_elems()
91 if (__atomic_compare_exchange_n(&list->len, in __rte_stack_lf_pop_elems()
101 old_head = list->head; in __rte_stack_lf_pop_elems()
137 old_head = list->head; in __rte_stack_lf_pop_elems()
159 (rte_int128_t *)&list->head, in __rte_stack_lf_pop_elems()
H A Drte_stack_lf_generic.h34 __rte_stack_lf_push_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_push_elems() argument
42 old_head = list->head; in __rte_stack_lf_push_elems()
64 (rte_int128_t *)&list->head, in __rte_stack_lf_push_elems()
71 rte_atomic64_add((rte_atomic64_t *)&list->len, num); in __rte_stack_lf_push_elems()
75 __rte_stack_lf_pop_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_pop_elems() argument
85 uint64_t len = rte_atomic64_read((rte_atomic64_t *)&list->len); in __rte_stack_lf_pop_elems()
91 if (rte_atomic64_cmpset((volatile uint64_t *)&list->len, in __rte_stack_lf_pop_elems()
96 old_head = list->head; in __rte_stack_lf_pop_elems()
139 (rte_int128_t *)&list->head, in __rte_stack_lf_pop_elems()
/f-stack/dpdk/drivers/common/qat/
H A Dqat_common.c16 struct qat_sgl *list = (struct qat_sgl *)list_in; in qat_sgl_fill_array() local
27 list->buffers[nr].len = rte_pktmbuf_data_len(buf) - offset; in qat_sgl_fill_array()
28 list->buffers[nr].resrvd = 0; in qat_sgl_fill_array()
35 buf_len += list->buffers[nr].len; in qat_sgl_fill_array()
38 list->buffers[nr].len -= buf_len - data_len; in qat_sgl_fill_array()
54 list->num_bufs = ++nr; in qat_sgl_fill_array()
56 QAT_DP_LOG(INFO, "SGL with %d buffers:", list->num_bufs); in qat_sgl_fill_array()
57 for (nr = 0; nr < list->num_bufs; nr++) { in qat_sgl_fill_array()
60 nr, list->buffers[nr].len, in qat_sgl_fill_array()
61 list->buffers[nr].addr); in qat_sgl_fill_array()
[all …]
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_utils.c244 MLX5_ASSERT(list); in mlx5_cache_list_init()
248 snprintf(list->name, sizeof(list->name), "%s", name); in mlx5_cache_list_init()
250 list->ctx = ctx; in mlx5_cache_list_init()
266 if (list->cb_match(list, entry, ctx)) in __cache_lookup()
302 MLX5_ASSERT(list); in mlx5_cache_register()
317 entry = list->cb_create(list, entry, ctx); in mlx5_cache_register()
349 list->cb_remove(list, entry); in mlx5_cache_unregister()
361 MLX5_ASSERT(list); in mlx5_cache_list_destroy()
366 list->cb_remove(list, entry); in mlx5_cache_list_destroy()
370 memset(list, 0, sizeof(*list)); in mlx5_cache_list_destroy()
[all …]
/f-stack/freebsd/contrib/openzfs/module/icp/api/
H A Dkcf_mac.c141 if (list != NULL) in crypto_mac()
142 kcf_free_triedlist(list); in crypto_mac()
156 if (list != NULL) in crypto_mac()
202 if (list != NULL) in crypto_mac()
203 kcf_free_triedlist(list); in crypto_mac()
266 if (list != NULL) in crypto_mac_verify()
281 if (list != NULL) in crypto_mac_verify()
323 if (list != NULL) in crypto_mac_verify()
445 if (list != NULL) in crypto_mac_init()
461 if (list != NULL) in crypto_mac_init()
[all …]
/f-stack/freebsd/sys/
H A Deventhandler.h64 #define _EVENTHANDLER_INVOKE(name, list, ...) do { \ argument
68 EHL_LOCK_ASSERT((list), MA_OWNED); \
69 (list)->el_runcount++; \
70 KASSERT((list)->el_runcount > 0, \
75 EHL_UNLOCK((list)); \
80 EHL_LOCK((list)); \
83 KASSERT((list)->el_runcount > 0, \
85 (list)->el_runcount--; \
86 if ((list)->el_runcount == 0) \
87 eventhandler_prune_list(list); \
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list.kshlib42 typeset list=$2
57 EXPECTED=$(echo $list | awk "{print \$$index}")
70 if [ $index -ne $(echo $list | awk '{print split($0,arr)+1}') ]
84 typeset list=$2
88 typeset -i index=$(echo $list | awk '{print split($0,arr)}')
91 "expecting the reverse of '$list'"
99 EXPECTED=$(echo $list | awk "{print \$$index}")
/f-stack/dpdk/drivers/net/ice/
H A Dice_switch_filter.c413 if (!list) { in ice_switch_create()
440 rte_free(list); in ice_switch_create()
445 rte_free(list); in ice_switch_create()
1206 list[t].type = ICE_ESP; in ice_switch_inset_get()
1263 list[t].type = ICE_AH; in ice_switch_inset_get()
1264 list[t].h_u.ah_hdr.spi = in ice_switch_inset_get()
1684 list = rte_zmalloc(NULL, item_num * sizeof(*list), 0); in ice_switch_parse_pattern_action()
1685 if (!list) { in ice_switch_parse_pattern_action()
1739 ((struct sw_meta *)*meta)->list = list; in ice_switch_parse_pattern_action()
1743 rte_free(list); in ice_switch_parse_pattern_action()
[all …]
/f-stack/freebsd/contrib/libfdt/
H A Dfdt_ro.c643 if (!list) in fdt_stringlist_count()
646 end = list + length; in fdt_stringlist_count()
649 length = strnlen(list, end - list) + 1; in fdt_stringlist_count()
655 list += length; in fdt_stringlist_count()
669 if (!list) in fdt_stringlist_search()
676 length = strnlen(list, end - list) + 1; in fdt_stringlist_search()
685 list += length; in fdt_stringlist_search()
700 if (!list) { in fdt_stringlist_get()
710 length = strnlen(list, end - list) + 1; in fdt_stringlist_get()
724 return list; in fdt_stringlist_get()
[all …]
/f-stack/dpdk/drivers/vdpa/ifc/
H A Difcvf_vdpa.c107 return list; in find_internal_resource_by_vdev()
131 return list; in find_internal_resource_by_dev()
887 if (list == NULL) { in ifcvf_dev_config()
914 if (list == NULL) { in ifcvf_dev_close()
955 if (list == NULL) { in ifcvf_set_features()
986 if (list == NULL) { in ifcvf_get_vfio_group_fd()
1002 if (list == NULL) { in ifcvf_get_vfio_device_fd()
1203 list = rte_zmalloc("ifcvf", sizeof(*list), 0); in ifcvf_pci_probe()
1204 if (list == NULL) in ifcvf_pci_probe()
1263 rte_free(list); in ifcvf_pci_probe()
[all …]

12345678910>>...66