| /freebsd-14.2/sys/contrib/openzfs/lib/libuutil/ |
| H A D | uu_list.c | 196 lp = uu_zalloc(sizeof (*lp)); in uu_list_create() 210 lp->ul_null_node.uln_next = &lp->ul_null_node; in uu_list_create() 211 lp->ul_null_node.uln_prev = &lp->ul_null_node; in uu_list_create() 213 lp->ul_null_walk.ulw_next = &lp->ul_null_walk; in uu_list_create() 214 lp->ul_null_walk.ulw_prev = &lp->ul_null_walk; in uu_list_create() 234 if (lp->ul_null_node.uln_next != &lp->ul_null_node || in uu_list_destroy() 251 lp->ul_next->ul_prev = lp->ul_prev; in uu_list_destroy() 252 lp->ul_prev->ul_next = lp->ul_next; in uu_list_destroy() 274 (void *)lp, NODE_TO_ELEM(lp, np), (void *)np); in list_insert() 279 lp->ul_index = INDEX_NEXT(lp->ul_index); in list_insert() [all …]
|
| /freebsd-14.2/sys/net/ |
| H A D | ieee8023ad_lacp.c | 497 lp->lp_key = lacp_compose_key(lp); in lacp_linkstate() 499 if (old_state != lp->lp_state || old_key != lp->lp_key) { in lacp_linkstate() 521 lacp_sm_tx(lp); in lacp_tick() 553 if (lp == NULL) in lacp_port_create() 565 lacp_fill_actorinfo(lp, &lp->lp_actor); in lacp_port_create() 566 lacp_fill_markerinfo(lp, &lp->lp_marker); in lacp_port_create() 876 lp = map[hash]; in lacp_select_tx_port_by_hash() 1442 lacp_format_lagid(&lp->lp_actor, &lp->lp_partner, in lacp_select() 1744 lacp_sm_tx(lp); in lacp_sm_rx() 1908 if (ppsratecheck(&lp->lp_last_lacpdu, &lp->lp_lacpdu_sent, in lacp_sm_tx() [all …]
|
| H A D | if_lagg.c | 992 lagg_setcaps(lp, lp->lp_ifcapenable, lp->lp_ifcapenable2); in lagg_port_destroy() 1076 if (lp != NULL && lp->lp_ioctl != NULL) in lagg_port_ioctl() 1701 (*lp->lp_ioctl)(lp->lp_ifp, cmd, data); in lagg_ioctl() 1717 error = (*lp->lp_ioctl)(lp->lp_ifp, cmd, data); in lagg_ioctl() 1735 (*lp->lp_ioctl)(lp->lp_ifp, cmd, data); in lagg_ioctl() 2040 (*lp->lp_ioctl)(lp->lp_ifp, SIOCSIFCAPNV, in lagg_setcaps() 2331 rval = lp; in lagg_link_active() 2394 lp = CK_SLIST_NEXT(lp, lp_entries); in lagg_rr_start() 2400 if ((lp = lagg_link_active(sc, lp)) == NULL) { in lagg_rr_start() 2590 if ((lp = lagg_link_active(sc, lp)) == NULL) { in lagg_lb_start() [all …]
|
| /freebsd-14.2/sys/sys/ |
| H A D | lockstat.h | 82 #define LOCKSTAT_RECORD0(probe, lp) \ argument 83 SDT_PROBE1(lockstat, , , probe, lp) 86 SDT_PROBE2(lockstat, , , probe, lp, arg1) 99 LOCKSTAT_RECORD0(probe, lp); \ 104 LOCKSTAT_RECORD0(probe, lp); \ 109 LOCKSTAT_RECORD1(probe, lp, a); \ 114 LOCKSTAT_RECORD0(probe, lp); \ 119 LOCKSTAT_RECORD0(probe, lp); \ 124 LOCKSTAT_RECORD1(probe, lp, a); \ 134 #define LOCKSTAT_RECORD0(probe, lp) argument [all …]
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | telldir.c | 76 flp = lp; in telldir() 80 lp = NULL; in telldir() 84 if (lp == NULL) { in telldir() 86 if (lp == NULL) { in telldir() 119 struct ddloc_mem *lp; in _seekdir() local 135 if (lp == NULL) in _seekdir() 178 struct ddloc_mem *lp; in _fixtelldir() local 181 if (lp != NULL) { in _fixtelldir() 200 while (lp != NULL) { in _reclaim_telldir() 201 templp = lp; in _reclaim_telldir() [all …]
|
| /freebsd-14.2/sbin/bsdlabel/ |
| H A D | bsdlabel.c | 334 *lp = *dp; in makelabel() 335 bzero(lp->d_packname, sizeof(lp->d_packname)); in makelabel() 397 lp->d_checksum = dkcksum(lp); in writelabel() 404 lp); in writelabel() 527 lp = &lab; in display() 832 strncpy(lp->d_typename, tp, sizeof (lp->d_typename)); in getasciilabel() 836 strncpy(lp->d_packname, tp, sizeof (lp->d_packname)); in getasciilabel() 1107 lp = &lab; in checklabel() 1130 lp->d_secpercyl = lp->d_nsectors * lp->d_ntracks; in checklabel() 1132 lp->d_secperunit = lp->d_secpercyl * lp->d_ncylinders; in checklabel() [all …]
|
| /freebsd-14.2/bin/ed/ |
| H A D | buf.c | 63 len = lp->len; in get_sbuf_line() 81 line_t *lp; in put_sbuf_line() local 95 free(lp); in put_sbuf_line() 104 free(lp); in put_sbuf_line() 115 free(lp); in put_sbuf_line() 118 lp->len = len; in put_sbuf_line() 167 lp = lp->q_forw; in get_addressed_line_node() 171 lp = lp->q_back; in get_addressed_line_node() 176 lp = lp->q_back; in get_addressed_line_node() 180 lp = lp->q_forw; in get_addressed_line_node() [all …]
|
| H A D | glbl.c | 42 line_t *lp; in build_active_list() local 56 for (n = first_addr; n <= second_addr; n++, lp = lp->q_forw) { in build_active_list() 57 if ((s = get_sbuf_line(lp)) == NULL) in build_active_list() 60 NUL_TO_NEWLINE(s, lp->len); in build_active_list() 62 set_active_node(lp) < 0) in build_active_list() 77 line_t *lp = NULL; in exec_global() local 144 set_active_node(line_t *lp) in set_active_node() argument 175 active_list[active_last++] = lp; in set_active_node() 184 line_t *lp; in unset_active_nodes() local 187 for (lp = np; lp != mp; lp = lp->q_forw) in unset_active_nodes() [all …]
|
| /freebsd-14.2/usr.sbin/rpc.statd/ |
| H A D | procs.c | 158 MonList *lp; in sm_mon_1_svc() local 191 if (!lp) in sm_mon_1_svc() 230 while (lp) in do_unmon() 240 free(lp); in do_unmon() 241 lp = next; in do_unmon() 246 last = lp; in do_unmon() 247 lp = lp->next; in do_unmon() 387 MonList *lp; in sm_notify_1_svc() local 412 while (lp) in sm_notify_1_svc() 417 cli = clnt_create(lp->notifyHost, lp->notifyProg, lp->notifyVers, "udp"); in sm_notify_1_svc() [all …]
|
| /freebsd-14.2/libexec/revnetgroup/ |
| H A D | parse_netgroup.c | 138 lp = linehead; in __endnetgrent() 139 while (lp) { in __endnetgrent() 140 olp = lp; in __endnetgrent() 141 lp = lp->l_next; in __endnetgrent() 184 while (lp) { in parse_netgrp() 187 lp = lp->l_next; in parse_netgrp() 204 lp->l_parsed = 1; in parse_netgrp() 205 pos = lp->l_line; in parse_netgrp() 306 lp = (struct linelist *)malloc(sizeof (*lp)); in read_for_group() 347 linehead = lp; in read_for_group() [all …]
|
| /freebsd-14.2/usr.bin/paste/ |
| H A D | paste.c | 131 LIST *lp; in parallel() local 143 lp->fp = stdin; in parallel() 146 lp->next = NULL; in parallel() 147 lp->cnt = cnt; in parallel() 148 lp->name = p; in parallel() 150 head = tmp = lp; in parallel() 152 tmp->next = lp; in parallel() 153 tmp = lp; in parallel() 158 for (output = 0, lp = head; lp; lp = lp->next) { in parallel() 159 if (!lp->fp) { in parallel() [all …]
|
| /freebsd-14.2/usr.sbin/ac/ |
| H A D | ac.c | 273 show(lp->user, lp->time); in show_users() 321 for (lp = SLIST_FIRST(&CurUtmpx), lp2 = NULL; lp != NULL;) in log_out() 330 tlp = lp; in log_out() 331 lp = SLIST_NEXT(lp, next); in log_out() 338 lp2 = lp; in log_out() 339 lp = SLIST_NEXT(lp, next); in log_out() 391 if ((lp = malloc(sizeof(*lp))) == NULL) in log_in() 394 strlcpy(lp->user, up->ut_user, sizeof(lp->user)); in log_in() 395 memcpy(lp->id, up->ut_id, sizeof(lp->id)); in log_in() 397 memcpy(lp->line, up->ut_line, sizeof(lp->line)); in log_in() [all …]
|
| /freebsd-14.2/usr.sbin/nfsdumpstate/ |
| H A D | nfsdumpstate.c | 187 dumplocklist.ndllck_list = (void *)lp; in dump_lockstate() 204 open_flags(lp[cnt].ndlck_flags), in dump_lockstate() 205 lp[cnt].ndlck_stateid.seqid, in dump_lockstate() 206 lp[cnt].ndlck_stateid.other[0], in dump_lockstate() 207 lp[cnt].ndlck_stateid.other[1], in dump_lockstate() 213 lp[cnt].ndlck_stateid.seqid, in dump_lockstate() 214 lp[cnt].ndlck_stateid.other[0], in dump_lockstate() 215 lp[cnt].ndlck_stateid.other[1], in dump_lockstate() 220 lp[cnt].ndlck_first, in dump_lockstate() 221 lp[cnt].ndlck_end); in dump_lockstate() [all …]
|
| /freebsd-14.2/sys/security/mac_veriexec/ |
| H A D | veriexec_metadata.c | 124 for (lp = LIST_FIRST(head); lp != NULL; lp = LIST_NEXT(lp, entries)) in get_veriexec_file() 129 if (lp != NULL) { in get_veriexec_file() 191 for (lp = LIST_FIRST(head); lp != NULL; lp = LIST_NEXT(lp, entries)) { in mac_veriexec_print_db_head() 260 for (lp = LIST_FIRST(head); lp != NULL; in free_veriexec_dev() 261 lp = LIST_NEXT(lp, entries)) in free_veriexec_dev() 265 if (lp == NULL) in free_veriexec_dev() 312 for (lp = LIST_FIRST(head); lp != NULL; in find_veriexec_dev() 313 lp = LIST_NEXT(lp, entries)) in find_veriexec_dev() 316 if (lp == NULL) { in find_veriexec_dev() 343 lp = np; in find_veriexec_dev() [all …]
|
| /freebsd-14.2/contrib/ntp/libntp/lib/isc/include/isc/ |
| H A D | util.h | 97 #define LOCK(lp) do { \ argument 101 (lp), __FILE__, __LINE__)); \ 106 (lp), __FILE__, __LINE__)); \ 108 #define UNLOCK(lp) do { \ argument 113 (lp), __FILE__, __LINE__)); \ 115 #define ISLOCKED(lp) (1) argument 116 #define DESTROYLOCK(lp) \ argument 134 #define WAIT(cvp, lp) do { \ argument 159 #define WAITUNTIL(cvp, lp, tp) \ argument 162 #define RWLOCK(lp, t) do { \ argument [all …]
|
| /freebsd-14.2/sbin/recoverdisk/ |
| H A D | recoverdisk.c | 258 lp->state, in report() 287 struct lump *lp; in new_lump() local 289 lp = malloc(sizeof *lp); in new_lump() 290 if (lp == NULL) in new_lump() 292 lp->start = start; in new_lump() 293 lp->len = len; in new_lump() 541 if (lp == NULL) in main() 583 lp->start, sz, lp->state, strerror(error)); in main() 590 new_lump(lp->start, sz, lp->state + 1); in main() 592 lp->len -= sz; in main() [all …]
|
| /freebsd-14.2/usr.bin/lam/ |
| H A D | lam.c | 199 char *lp = linep; in pad() local 201 strlcpy(lp, ip->sepstring, line + sizeof(line) - lp); in pad() 202 lp += strlen(lp); in pad() 204 snprintf(lp, line + sizeof(line) - lp, ip->format, ""); in pad() 205 lp += strlen(lp); in pad() 207 return (lp); in pad() 232 strlcpy(lp, ip->sepstring, line + sizeof(line) - lp); in gatherline() 233 lp += strlen(lp); in gatherline() 234 snprintf(lp, line + sizeof(line) - lp, ip->format, s); in gatherline() 235 lp += strlen(lp); in gatherline() [all …]
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | umountf2.sh | 319 lp->args[0], lp->args[0] + lp->args[1] - 1, 322 lp->args[0] + lp->args[1]) 327 lp->args[0], lp->args[0] + lp->args[1] - 1, 330 lp->args[0] + lp->args[1]) 335 lp->args[0], lp->args[0] + lp->args[1] - 1, 338 badoff < lp->args[0] + lp->args[1]) 343 lp->args[0], lp->args[0] + lp->args[1] - 1, 345 if (lp->args[0] > lp->args[2]) 347 else if (lp->args[0] + lp->args[1] > lp->args[2]) 350 badoff < lp->args[0] + lp->args[1]) [all …]
|
| /freebsd-14.2/sys/kern/ |
| H A D | subr_lock.c | 378 lp->cnt_max / 1000, lp->cnt_wait_max / 1000, lp->cnt_tot / 1000, in lock_prof_output() 379 lp->cnt_wait / 1000, lp->cnt_cur, in lock_prof_output() 381 lp->cnt_tot / (lp->cnt_cur * 1000), in lock_prof_output() 383 lp->cnt_wait / (lp->cnt_cur * 1000), in lock_prof_output() 385 p, lp->line, lp->class->lc_name, lp->name); in lock_prof_output() 534 if (lp->line == line && lp->file == p && in lock_profile_lookup() 536 return (lp); in lock_profile_lookup() 541 return (lp); in lock_profile_lookup() 544 lp->file = p; in lock_profile_lookup() 549 return (lp); in lock_profile_lookup() [all …]
|
| /freebsd-14.2/contrib/nvi/vi/ |
| H A D | v_section.c | 66 char *list, *lp; in v_sectionf() local 119 for (lp = list; *lp != '\0'; lp += 2 * sizeof(*lp)) in v_sectionf() 120 if (lp[0] == p[1] && in v_sectionf() 121 ((lp[1] == ' ' && len == 2) || lp[1] == p[2]) && in v_sectionf() 174 char *list, *lp; in v_sectionb() local 209 for (lp = list; *lp != '\0'; lp += 2 * sizeof(*lp)) in v_sectionb() 210 if (lp[0] == p[1] && in v_sectionb() 211 ((lp[1] == ' ' && len == 2) || lp[1] == p[2]) && in v_sectionb()
|
| /freebsd-14.2/lib/libc/string/ |
| H A D | strlen.c | 77 const unsigned long *lp; in strlen() local 90 lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK); in strlen() 91 va = (*lp - mask01); in strlen() 92 vb = ((~*lp) & mask80); in strlen() 93 lp++; in strlen() 96 for (p = str; p < (const char *)lp; p++) in strlen() 101 for (; ; lp++) { in strlen() 102 va = (*lp - mask01); in strlen() 103 vb = ((~*lp) & mask80); in strlen() 105 p = (const char *)(lp); in strlen()
|
| /freebsd-14.2/sys/libkern/ |
| H A D | strlen.c | 77 const unsigned long *lp; in size_t() local 90 lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK); in size_t() 91 va = (*lp - mask01); in size_t() 92 vb = ((~*lp) & mask80); in size_t() 93 lp++; in size_t() 96 for (p = str; p < (const char *)lp; p++) in size_t() 101 for (; ; lp++) { in size_t() 102 va = (*lp - mask01); in size_t() 103 vb = ((~*lp) & mask80); in size_t() 105 p = (const char *)(lp); in size_t()
|
| /freebsd-14.2/usr.bin/join/ |
| H A D | join.c | 276 LINE *lp, *lastlp, tmp; in slurp() local 325 lp->linealloc += MAX(100, len + 1 - lp->linealloc); in slurp() 326 if ((lp->line = in slurp() 327 realloc(lp->line, lp->linealloc)) == NULL) in slurp() 336 lp->line[len] = '\0'; in slurp() 337 bp = lp->line; in slurp() 340 lp->fieldcnt = 0; in slurp() 344 if (lp->fieldcnt == lp->fieldalloc) { in slurp() 346 if ((lp->fields = realloc(lp->fields, in slurp() 350 lp->fields[lp->fieldcnt++] = fieldp; in slurp() [all …]
|
| /freebsd-14.2/stand/libsa/geli/ |
| H A D | pwgets.c | 40 char *lp; in pwgets() local 42 for (lp = buf;;) in pwgets() 46 *lp = '\0'; in pwgets() 51 if (lp > buf) { in pwgets() 52 lp--; in pwgets() 62 lp = buf; in pwgets() 66 if ((n < 1) || ((lp - buf) < n - 1)) { in pwgets() 67 *lp++ = c; in pwgets()
|
| /freebsd-14.2/stand/libsa/ |
| H A D | gets.c | 40 char *lp; in ngets() local 42 for (lp = buf;;) { in ngets() 49 *lp = '\0'; in ngets() 54 if (lp > buf) { in ngets() 55 lp--; in ngets() 65 for (p = buf; p < lp; ++p) in ngets() 71 lp = buf; in ngets() 75 if ((n < 1) || ((lp - buf) < n - 1)) { in ngets() 76 *lp++ = c; in ngets()
|