| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | iplist.c | 69 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange() 75 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange() 143 list->cur.ip.s_addr = htonl(list->cur.lstart + list->cur.srcitem); in iplist_next() 152 strncpy(list->src, src, sizeof list->src - 1); in iplist_setsrc() 153 list->src[sizeof list->src - 1] = '\0'; in iplist_setsrc() 154 list->cur.srcptr = list->src; in iplist_setsrc() 157 list->nItems += list->cur.nItems; in iplist_setsrc() 160 } while (list->cur.srcptr != list->src); in iplist_setsrc() 189 list->cur.ip.s_addr = htonl(list->cur.lstart + list->cur.srcitem); in iplist_setcurpos() 194 list->cur.pos += list->cur.nItems; in iplist_setcurpos() [all …]
|
| /freebsd-14.2/sys/dev/ocs_fc/ |
| H A D | ocs_list.h | 102 ocs_list_assert(list); in _ocs_list_init() 105 list->next = list; in _ocs_list_init() 106 list->prev = list; in _ocs_list_init() 107 list->offset = offset; in _ocs_list_init() 124 return list->next == list; in ocs_list_empty() 232 _ocs_list_insert_link(list, list->next, item2link(list, item)); in ocs_list_add_head() 259 _ocs_list_insert_link(list->prev, list, link); in ocs_list_add_tail() 275 return ocs_list_empty(list) ? NULL : link2item(list, list->next); in ocs_list_get_head() 291 return ocs_list_empty(list) ? NULL : link2item(list, list->prev); in ocs_list_get_tail() 306 return ocs_list_empty(list) ? NULL : link2item(list, list->prev); in ocs_list_tail() [all …]
|
| /freebsd-14.2/sys/kern/ |
| H A D | subr_eventhandler.c | 90 list = new_list; in eventhandler_find_or_create_list() 92 list->el_name = (char *)(list + 1); in eventhandler_find_or_create_list() 94 mtx_init(&list->el_lock, list->el_name, "eventhandler list", in eventhandler_find_or_create_list() 99 return (list); in eventhandler_find_or_create_list() 128 EHL_LOCK(list); in eventhandler_register_internal() 196 list->el_name); in _eventhandler_deregister() 208 list->el_name); in _eventhandler_deregister() 222 mtx_sleep(list, &list->el_lock, 0, "evhrm", 0); in _eventhandler_deregister() 272 EHL_LOCK(list); in eventhandler_find_list() 275 return(list); in eventhandler_find_list() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/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-14.2/contrib/ntp/libntp/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-14.2/usr.bin/ar/ |
| H A D | acpyacc.y | 70 static struct list *arscp_mlist(struct list *list, char *str); 111 struct list *list; member 375 arscp_addmod(struct list *list) in arscp_addmod() argument 388 arscp_delete(struct list *list) in arscp_delete() argument 401 arscp_extract(struct list *list) in arscp_extract() argument 466 arscp_replace(struct list *list) in arscp_replace() argument 572 arscp_mlist_len(struct list *list) in arscp_mlist_len() argument 576 for(len = 0; list; list = list->next) in arscp_mlist_len() 584 arscp_free_mlist(struct list *list) in arscp_free_mlist() argument 589 for(; list; list = l) { in arscp_free_mlist() [all …]
|
| /freebsd-14.2/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-14.2/sys/dev/qat/qat_api/common/ctrl/ |
| H A D | sal_list.c | 21 if (NULL == *list) { in SalList_add() 24 (*list)->next = NULL; in SalList_add() 25 (*list)->pObj = pObj; in SalList_add() 26 *tail = *list; in SalList_add() 44 if (list == NULL) { in SalList_getObject() 48 return list->pObj; in SalList_getObject() 54 if (*list == NULL) { in SalList_delObject() 58 (*list)->pObj = NULL; in SalList_delObject() 65 return list->next; in SalList_next() 77 LAC_OS_FREE(*list); in SalList_free() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/sys/cam/ctl/ |
| H A D | ctl_tpc.c | 845 list->curbytes += list->segbytes; in tpc_process_b2b() 915 tior->list = list; in tpc_process_b2b() 936 tiow->list = list; in tpc_process_b2b() 1020 tio->list = list; in tpc_process_verify() 1081 tio->list = list; in tpc_process_register_key() 1208 list->curbytes += list->segbytes; in tpc_process_wut() 1212 if (tpc_skip_ranges(list->range, list->nrange, list->cursectors, in tpc_process_wut() 1277 tior->list = list; in tpc_process_wut() 1296 tiow->list = list; in tpc_process_wut() 1382 tiow->list = list; in tpc_process_zero_wut() [all …]
|
| /freebsd-14.2/lib/libc/include/isc/ |
| H A D | list.h | 31 #define INIT_LIST(list) \ argument 32 do { (list).head = NULL; (list).tail = NULL; } while (0) 45 #define HEAD(list) ((list).head) argument 46 #define TAIL(list) ((list).tail) argument 47 #define EMPTY(list) ((list).head == NULL) argument 55 (list).tail = (elt); \ 58 (list).head = (elt); \ 67 (list).head = (elt); \ 70 (list).tail = (elt); \ 122 #define ENQUEUE(list, elt, link) APPEND(list, elt, link) argument [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/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-14.2/contrib/dialog/ |
| 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 …]
|
| 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() 228 dlg_attr_clear(list->win, getmaxy(list->win), getmaxx(list->win), item_attr); in display_list() 229 for (n = list->offset; n < list->length && list->data[n]; n++) { in display_list() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/contrib/wireguard-tools/ |
| H A D | ipc.c | 25 if (len >= list->cap - list->len) { in string_list_add() 27 size_t new_cap = list->cap * 2; in string_list_add() 29 if (new_cap < list->len + len + 1) in string_list_add() 30 new_cap = list->len + len + 1; in string_list_add() 34 list->buffer = new_buffer; in string_list_add() 35 list->cap = new_cap; in string_list_add() 37 memcpy(list->buffer + list->len, str, len); in string_list_add() 38 list->len += len; in string_list_add() 39 list->buffer[list->len] = '\0'; in string_list_add() 57 struct string_list list = { 0 }; in ipc_list_devices() local [all …]
|
| /freebsd-14.2/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-14.2/sys/dev/drm2/ttm/ |
| H A D | ttm_execbuf_util.c | 38 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation_locked() 58 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked() 74 list_for_each_entry(entry, list, head) { in ttm_eu_list_ref_sub() 89 if (list_empty(list)) in ttm_eu_backoff_reservation() 118 if (list_empty(list)) in ttm_eu_reserve_buffers() 146 ttm_eu_del_from_lru_locked(list); in ttm_eu_reserve_buffers() 167 ttm_eu_list_ref_sub(list); in ttm_eu_reserve_buffers() 190 ttm_eu_del_from_lru_locked(list); in ttm_eu_reserve_buffers() 192 ttm_eu_list_ref_sub(list); in ttm_eu_reserve_buffers() 199 ttm_eu_list_ref_sub(list); in ttm_eu_reserve_buffers() [all …]
|
| /freebsd-14.2/sys/dev/hptrr/ |
| H A D | hptrr_os_bsd.c | 132 list->dma = 0; in freelist_reserve() 133 list->size = size; in freelist_reserve() 134 list->head = 0; in freelist_reserve() 144 if (list->count) { in freelist_get() 148 list->count--; in freelist_get() 157 list->count++; in freelist_put() 159 list->head = p; in freelist_put() 171 list->dma = 1; in freelist_reserve_dma() 174 list->head = 0; in freelist_reserve_dma() 194 list->count++; in freelist_put_dma() [all …]
|