| /freebsd-13.1/usr.sbin/ppp/ |
| H A D | iplist.c | 71 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange() 77 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange() 145 list->cur.ip.s_addr = htonl(list->cur.lstart + list->cur.srcitem); in iplist_next() 154 strncpy(list->src, src, sizeof list->src - 1); in iplist_setsrc() 155 list->src[sizeof list->src - 1] = '\0'; in iplist_setsrc() 156 list->cur.srcptr = list->src; in iplist_setsrc() 159 list->nItems += list->cur.nItems; in iplist_setsrc() 162 } while (list->cur.srcptr != list->src); in iplist_setsrc() 191 list->cur.ip.s_addr = htonl(list->cur.lstart + list->cur.srcitem); in iplist_setcurpos() 196 list->cur.pos += list->cur.nItems; in iplist_setcurpos() [all …]
|
| /freebsd-13.1/sys/dev/ocs_fc/ |
| H A D | ocs_list.h | 104 ocs_list_assert(list); in _ocs_list_init() 107 list->next = list; in _ocs_list_init() 108 list->prev = list; in _ocs_list_init() 109 list->offset = offset; in _ocs_list_init() 126 return list->next == list; in ocs_list_empty() 234 _ocs_list_insert_link(list, list->next, item2link(list, item)); in ocs_list_add_head() 261 _ocs_list_insert_link(list->prev, list, link); in ocs_list_add_tail() 277 return ocs_list_empty(list) ? NULL : link2item(list, list->next); in ocs_list_get_head() 293 return ocs_list_empty(list) ? NULL : link2item(list, list->prev); in ocs_list_get_tail() 308 return ocs_list_empty(list) ? NULL : link2item(list, list->prev); in ocs_list_tail() [all …]
|
| /freebsd-13.1/contrib/apr-util/buckets/ |
| H A D | apr_buckets_alloc.c | 49 apr_allocator_free(list->allocator, list->blocks); in alloc_cleanup() 52 if (list->pool && list->allocator != apr_pool_allocator_get(list->pool)) { in alloc_cleanup() 83 list->pool = p; in apr_bucket_alloc_create() 84 apr_pool_cleanup_register(list->pool, list, alloc_cleanup, in apr_bucket_alloc_create() 87 return list; in apr_bucket_alloc_create() 101 list->pool = NULL; in apr_bucket_alloc_create_ex() 107 return list; in apr_bucket_alloc_create_ex() 112 if (list->pool) { in apr_bucket_alloc_destroy() 113 apr_pool_cleanup_kill(list->pool, list, alloc_cleanup); in apr_bucket_alloc_destroy() 116 apr_allocator_free(list->allocator, list->blocks); in apr_bucket_alloc_destroy() [all …]
|
| /freebsd-13.1/sys/kern/ |
| H A D | subr_eventhandler.c | 92 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 …]
|
| /freebsd-13.1/sys/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | list.h | 50 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 …]
|
| /freebsd-13.1/sys/contrib/openzfs/lib/libspl/ |
| H A D | list.c | 64 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 …]
|
| /freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/spl/ |
| H A D | list.c | 64 ASSERT3P(list, !=, NULL); in list_create() 67 list->list_size = size; in list_create() 69 list->list_head.list_next = list->list_head.list_prev = in list_create() 70 &list->list_head; in list_create() 74 list_destroy(list_t *list) in list_destroy() argument 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.list_next)); in list_head() 159 list_tail(list_t *list) in list_tail() argument 161 if (list_empty(list)) in list_tail() [all …]
|
| /freebsd-13.1/contrib/ntp/lib/isc/include/isc/ |
| H A D | list.h | 32 #define ISC_LIST_INIT(list) \ argument 33 do { (list).head = NULL; (list).tail = NULL; } while (0) 45 #define ISC_LIST_HEAD(list) ((list).head) argument 46 #define ISC_LIST_TAIL(list) ((list).tail) argument 47 #define ISC_LIST_EMPTY(list) ISC_TF((list).head == NULL) argument 51 if ((list).head != NULL) \ 54 (list).tail = (elt); \ 57 (list).head = (elt); \ 74 (list).head = (elt); \ 77 (list).tail = (elt); \ [all …]
|
| /freebsd-13.1/contrib/elftoolchain/ar/ |
| H A D | acpyacc.y | 73 static struct list *arscp_mlist(struct list *list, char *str); 114 struct list *list; member 350 arscp_addmod(struct list *list) in arscp_addmod() argument 365 arscp_delete(struct list *list) in arscp_delete() argument 380 arscp_extract(struct list *list) in arscp_extract() argument 453 arscp_replace(struct list *list) in arscp_replace() argument 565 arscp_mlist_len(struct list *list) in arscp_mlist_len() argument 569 for(len = 0; list; list = list->next) in arscp_mlist_len() 579 arscp_free_mlist(struct list *list) in arscp_free_mlist() argument 584 for(; list; list = l) { in arscp_free_mlist() [all …]
|
| /freebsd-13.1/usr.bin/ar/ |
| H A D | acpyacc.y | 72 static struct list *arscp_mlist(struct list *list, char *str); 113 struct list *list; member 377 arscp_addmod(struct list *list) in arscp_addmod() argument 390 arscp_delete(struct list *list) in arscp_delete() argument 403 arscp_extract(struct list *list) in arscp_extract() argument 468 arscp_replace(struct list *list) in arscp_replace() argument 574 arscp_mlist_len(struct list *list) in arscp_mlist_len() argument 578 for(len = 0; list; list = list->next) in arscp_mlist_len() 586 arscp_free_mlist(struct list *list) in arscp_free_mlist() argument 591 for(; list; list = l) { in arscp_free_mlist() [all …]
|
| /freebsd-13.1/contrib/wpa/src/utils/ |
| H A D | list.h | 24 list->next = list; in dl_list_init() 25 list->prev = list; in dl_list_init() 30 item->next = list->next; in dl_list_add() 31 item->prev = list; in dl_list_add() 32 list->next->prev = item; in dl_list_add() 33 list->next = item; in dl_list_add() 38 dl_list_add(list->prev, item); in dl_list_add_tail() 51 return list->next == list; in dl_list_empty() 58 for (item = list->next; item != list; item = item->next) in dl_list_len() 80 &item->member != (list); \ [all …]
|
| /freebsd-13.1/contrib/atf/atf-c/detail/ |
| H A D | list_test.c | 51 atf_list_t list; in ATF_TC_BODY() local 55 atf_list_fini(&list); in ATF_TC_BODY() 69 atf_list_t list; in ATF_TC_BODY() local 83 atf_list_fini(&list); in ATF_TC_BODY() 93 atf_list_t list; in ATF_TC_BODY() local 107 atf_list_fini(&list); in ATF_TC_BODY() 113 atf_list_t list; in ATF_TC_BODY() local 127 atf_list_t list; in ATF_TC_BODY() local 159 atf_list_t list; in ATF_TC_BODY() local 269 atf_list_t list; in ATF_TC_BODY() local [all …]
|
| /freebsd-13.1/sys/cam/ctl/ |
| H A D | ctl_tpc.c | 847 list->curbytes += list->segbytes; in tpc_process_b2b() 917 tior->list = list; in tpc_process_b2b() 938 tiow->list = list; in tpc_process_b2b() 1022 tio->list = list; in tpc_process_verify() 1083 tio->list = list; in tpc_process_register_key() 1210 list->curbytes += list->segbytes; in tpc_process_wut() 1214 if (tpc_skip_ranges(list->range, list->nrange, list->cursectors, in tpc_process_wut() 1279 tior->list = list; in tpc_process_wut() 1298 tiow->list = list; in tpc_process_wut() 1384 tiow->list = list; in tpc_process_zero_wut() [all …]
|
| /freebsd-13.1/contrib/libucl/uthash/ |
| H A D | utlist.h | 84 #define _SV(elt,list) _tmp = (char*)(list); {char **_alias = (char**)&(list); *_alias = (elt); } argument 85 #define _NEXT(elt,list,next) ((char*)((list)->next)) argument 129 _SV(_ls_q,list); _ls_q = _NEXT(_ls_q,list,next); _RS(list); \ 148 _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,_ls_e,next); _RS(list); \ 157 _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,NULL,next); _RS(list); \ 192 _SV(_ls_q,list); _ls_q = _NEXT(_ls_q,list,next); _RS(list); \ 211 _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,_ls_e,next); _RS(list); \ 215 _SV(_ls_e,list); _PREVASGN(_ls_e,list,_ls_tail,prev); _RS(list); \ 221 _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,NULL,next); _RS(list); \ 286 _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,_ls_e,next); _RS(list); \ [all …]
|
| /freebsd-13.1/lib/libc/include/isc/ |
| H A D | list.h | 32 #define INIT_LIST(list) \ argument 33 do { (list).head = NULL; (list).tail = NULL; } while (0) 46 #define HEAD(list) ((list).head) argument 47 #define TAIL(list) ((list).tail) argument 48 #define EMPTY(list) ((list).head == NULL) argument 56 (list).tail = (elt); \ 59 (list).head = (elt); \ 68 (list).head = (elt); \ 71 (list).tail = (elt); \ 123 #define ENQUEUE(list, elt, link) APPEND(list, elt, link) argument [all …]
|
| /freebsd-13.1/cddl/contrib/opensolaris/tools/ctf/common/ |
| H A D | list.c | 40 struct list { struct 42 struct list *l_next; argument 53 le->l_next = *list; in list_add() 54 *list = le; in list_add() 105 while (list) { in list_free() 106 le = list; in list_free() 107 list = list->l_next; in list_free() 125 while (list) { in list_iter() 130 list = lnext; in list_iter() 158 for (; list; list = list->l_next) { in list_find() [all …]
|
| /freebsd-13.1/contrib/dialog/ |
| H A D | fselect.c | 121 return list->data[list->choice]; in data_of() 137 init_list(list, list->par, list->win, list->mousex); in free_list() 151 list->data = dlg_realloc(char *, list->allocd, list->data); in add_to_list() 156 list->data[list->length] = 0; in add_to_list() 164 if (list->choice < list->offset) { in keep_visible() 165 list->offset = list->choice; in keep_visible() 167 if (list->choice - list->offset >= high) in keep_visible() 168 list->offset = list->choice - high + 1; in keep_visible() 226 dlg_attr_clear(list->win, getmaxy(list->win), getmaxx(list->win), item_attr); in display_list() 227 for (n = list->offset; n < list->length && list->data[n]; n++) { in display_list() [all …]
|
| H A D | dialog.pl | 243 $list[@list] = "ed($ent); 245 $list[@list] = "ed($ent); 283 $list[@list] = "ed($ent); 284 $list[@list] = "ed(""); 359 $list[@list] = "ON"; 362 $list[@list] = "OFF"; 402 $list[@list] = "ed(""); 403 $list[@list] = "OFF"; 438 $list[@list] = "OFF"; 482 $list[@list] = "ON"; [all …]
|
| /freebsd-13.1/contrib/bmake/ |
| H A D | lst.c | 55 List *list = bmake_malloc(sizeof *list); in Lst_New() local 56 Lst_Init(list); in Lst_New() 57 return list; in Lst_New() 88 Lst_Done(list); in Lst_Free() 89 free(list); in Lst_Free() 121 list->first = ln; in Lst_Prepend() 122 list->last = ln; in Lst_Prepend() 125 list->first = ln; in Lst_Prepend() 141 list->last = ln; in Lst_Append() 144 list->last = ln; in Lst_Append() [all …]
|
| /freebsd-13.1/contrib/processor-trace/libipt/src/ |
| H A D | pt_image.c | 67 list = malloc(sizeof(*list)); in pt_mk_section_list() 71 memset(list, 0, sizeof(*list)); in pt_mk_section_list() 103 list = list->next; in pt_section_list_free_tail() 194 list = &((*list)->next); in pt_image_add() 202 list = &((*list)->next); in pt_image_add() 254 for (; *list; list = &((*list)->next)) in pt_image_add() 275 for (list = &image->sections; *list; list = &((*list)->next)) { in pt_image_remove() 358 for (list = src->sections; list; list = list->next) { in pt_image_copy() 387 for (list = &image->sections; *list;) { in pt_image_remove_by_filename() 437 for (list = &image->sections; *list;) { in pt_image_remove_by_asid() [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/module/zfs/ |
| H A D | objlist.c | 25 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 …]
|
| /freebsd-13.1/contrib/less/ |
| H A D | lglob.h | 26 #define DECL_GLOB_LIST(list) char **list; char **pp; argument 27 #define GLOB_LIST(filename,list) list = _fnexplode(filename) argument 28 #define GLOB_LIST_FAILED(list) list == NULL argument 29 #define SCAN_GLOB_LIST(list,p) pp = list; *pp != NULL; pp++ argument 31 #define GLOB_LIST_DONE(list) _fnexplodefree(list) argument 36 #define DECL_GLOB_LIST(list) glob_t list; int i; argument 37 #define GLOB_LIST(filename,list) glob(filename,GLOB_NOCHECK,0,&list) argument 38 #define GLOB_LIST_FAILED(list) 0 argument 39 #define SCAN_GLOB_LIST(list,p) i = 0; i < list.gl_pathc; i++ argument 40 #define INIT_GLOB_LIST(list,p) p = list.gl_pathv[i] argument [all …]
|
| /freebsd-13.1/sys/dev/drm2/ttm/ |
| H A D | ttm_execbuf_util.c | 40 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation_locked() 60 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked() 76 list_for_each_entry(entry, list, head) { in ttm_eu_list_ref_sub() 91 if (list_empty(list)) in ttm_eu_backoff_reservation() 120 if (list_empty(list)) in ttm_eu_reserve_buffers() 148 ttm_eu_del_from_lru_locked(list); in ttm_eu_reserve_buffers() 169 ttm_eu_list_ref_sub(list); in ttm_eu_reserve_buffers() 192 ttm_eu_del_from_lru_locked(list); in ttm_eu_reserve_buffers() 194 ttm_eu_list_ref_sub(list); in ttm_eu_reserve_buffers() 201 ttm_eu_list_ref_sub(list); in ttm_eu_reserve_buffers() [all …]
|
| /freebsd-13.1/sys/dev/hptrr/ |
| H A D | hptrr_os_bsd.c | 134 list->dma = 0; in freelist_reserve() 135 list->size = size; in freelist_reserve() 136 list->head = 0; in freelist_reserve() 146 if (list->count) { in freelist_get() 150 list->count--; in freelist_get() 159 list->count++; in freelist_put() 161 list->head = p; in freelist_put() 173 list->dma = 1; in freelist_reserve_dma() 176 list->head = 0; in freelist_reserve_dma() 196 list->count++; in freelist_put_dma() [all …]
|
| /freebsd-13.1/crypto/openssl/crypto/ |
| H A D | mem_sec.c | 307 return list; in sh_getlist() 315 OPENSSL_assert(list >= 0 && list < sh.freelist_size); in sh_testbit() 326 OPENSSL_assert(list >= 0 && list < sh.freelist_size); in sh_clearbit() 338 OPENSSL_assert(list >= 0 && list < sh.freelist_size); in sh_setbit() 363 *list = ptr; in sh_add_to_list() 526 bit = (ONE << list) + (ptr - sh.arena) / (sh.arena_size >> list); in sh_find_my_buddy() 546 list--; in sh_malloc() 547 if (list < 0) in sh_malloc() 602 size_t list; in sh_free() local 627 list--; in sh_free() [all …]
|