Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 272) sorted by relevance

1234567891011

/freebsd-13.1/sys/contrib/openzfs/lib/libuutil/
H A Duu_list.c198 lp = uu_zalloc(sizeof (*lp)); in uu_list_create()
212 lp->ul_null_node.uln_next = &lp->ul_null_node; in uu_list_create()
213 lp->ul_null_node.uln_prev = &lp->ul_null_node; in uu_list_create()
215 lp->ul_null_walk.ulw_next = &lp->ul_null_walk; in uu_list_create()
216 lp->ul_null_walk.ulw_prev = &lp->ul_null_walk; in uu_list_create()
236 if (lp->ul_null_node.uln_next != &lp->ul_null_node || in uu_list_destroy()
237 lp->ul_null_node.uln_prev != &lp->ul_null_node) { in uu_list_destroy()
245 if (lp->ul_null_walk.ulw_next != &lp->ul_null_walk || in uu_list_destroy()
276 (void *)lp, NODE_TO_ELEM(lp, np), (void *)np); in list_insert()
281 lp->ul_index = INDEX_NEXT(lp->ul_index); in list_insert()
[all …]
/freebsd-13.1/sys/net/
H A Dieee8023ad_lacp.c497 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()
1446 lacp_format_lagid(&lp->lp_actor, &lp->lp_partner, in lacp_select()
1747 lacp_sm_tx(lp); in lacp_sm_rx()
1911 if (ppsratecheck(&lp->lp_last_lacpdu, &lp->lp_lacpdu_sent, in lacp_sm_tx()
[all …]
H A Dif_lagg.c989 lagg_setcaps(lp, lp->lp_ifcapenable); in lagg_port_destroy()
1034 if ((lp = ifp->if_lagg) == NULL || lp->lp_softc != sc) { in lagg_port_ioctl()
1072 if (lp != NULL && lp->lp_ioctl != NULL) in lagg_port_ioctl()
1700 (*lp->lp_ioctl)(lp->lp_ifp, cmd, data); in lagg_ioctl()
1712 error = (*lp->lp_ioctl)(lp->lp_ifp, cmd, data); in lagg_ioctl()
1730 (*lp->lp_ioctl)(lp->lp_ifp, cmd, data); in lagg_ioctl()
2244 rval = lp; in lagg_link_active()
2307 lp = CK_SLIST_NEXT(lp, lp_entries); in lagg_rr_start()
2313 if ((lp = lagg_link_active(sc, lp)) == NULL) { in lagg_rr_start()
2362 last = lp; in lagg_bcast_start()
[all …]
/freebsd-13.1/sys/sys/
H A Dlockstat.h84 #define LOCKSTAT_RECORD0(probe, lp) \ argument
85 SDT_PROBE1(lockstat, , , probe, lp)
88 SDT_PROBE2(lockstat, , , probe, lp, arg1)
101 LOCKSTAT_RECORD0(probe, lp); \
106 LOCKSTAT_RECORD0(probe, lp); \
111 LOCKSTAT_RECORD1(probe, lp, a); \
116 LOCKSTAT_RECORD0(probe, lp); \
121 LOCKSTAT_RECORD0(probe, lp); \
126 LOCKSTAT_RECORD1(probe, lp, a); \
136 #define LOCKSTAT_RECORD0(probe, lp) argument
[all …]
/freebsd-13.1/lib/libc/gen/
H A Dtelldir.c78 flp = lp; in telldir()
82 lp = NULL; in telldir()
86 if (lp == NULL) { in telldir()
88 if (lp == NULL) { in telldir()
121 struct ddloc_mem *lp; in _seekdir() local
137 if (lp == NULL) in _seekdir()
180 struct ddloc_mem *lp; in _fixtelldir() local
183 if (lp != NULL) { in _fixtelldir()
202 while (lp != NULL) { in _reclaim_telldir()
203 templp = lp; in _reclaim_telldir()
[all …]
/freebsd-13.1/sbin/bsdlabel/
H A Dbsdlabel.c332 *lp = *dp; in makelabel()
333 bzero(lp->d_packname, sizeof(lp->d_packname)); in makelabel()
395 lp->d_checksum = dkcksum(lp); in writelabel()
402 lp); in writelabel()
525 lp = &lab; in display()
830 strncpy(lp->d_typename, tp, sizeof (lp->d_typename)); in getasciilabel()
834 strncpy(lp->d_packname, tp, sizeof (lp->d_packname)); in getasciilabel()
1105 lp = &lab; in checklabel()
1128 lp->d_secpercyl = lp->d_nsectors * lp->d_ntracks; in checklabel()
1130 lp->d_secperunit = lp->d_secpercyl * lp->d_ncylinders; in checklabel()
[all …]
/freebsd-13.1/bin/ed/
H A Dbuf.c65 len = lp->len; in get_sbuf_line()
83 line_t *lp; in put_sbuf_line() local
97 free(lp); in put_sbuf_line()
106 free(lp); in put_sbuf_line()
117 free(lp); in put_sbuf_line()
120 lp->len = len; in put_sbuf_line()
169 lp = lp->q_forw; in get_addressed_line_node()
173 lp = lp->q_back; in get_addressed_line_node()
178 lp = lp->q_back; in get_addressed_line_node()
182 lp = lp->q_forw; in get_addressed_line_node()
[all …]
H A Dglbl.c44 line_t *lp; in build_active_list() local
58 for (n = first_addr; n <= second_addr; n++, lp = lp->q_forw) { in build_active_list()
59 if ((s = get_sbuf_line(lp)) == NULL) in build_active_list()
62 NUL_TO_NEWLINE(s, lp->len); in build_active_list()
64 set_active_node(lp) < 0) in build_active_list()
79 line_t *lp = NULL; in exec_global() local
146 set_active_node(line_t *lp) in set_active_node() argument
177 active_list[active_last++] = lp; in set_active_node()
186 line_t *lp; in unset_active_nodes() local
189 for (lp = np; lp != mp; lp = lp->q_forw) in unset_active_nodes()
[all …]
/freebsd-13.1/usr.sbin/rpc.statd/
H A Dprocs.c160 MonList *lp; in sm_mon_1_svc() local
193 if (!lp) in sm_mon_1_svc()
232 while (lp) in do_unmon()
242 free(lp); in do_unmon()
243 lp = next; in do_unmon()
248 last = lp; in do_unmon()
249 lp = lp->next; in do_unmon()
389 MonList *lp; in sm_notify_1_svc() local
414 while (lp) in sm_notify_1_svc()
419 cli = clnt_create(lp->notifyHost, lp->notifyProg, lp->notifyVers, "udp"); in sm_notify_1_svc()
[all …]
/freebsd-13.1/libexec/revnetgroup/
H A Dparse_netgroup.c143 lp = linehead; in __endnetgrent()
144 while (lp) { in __endnetgrent()
145 olp = lp; in __endnetgrent()
146 lp = lp->l_next; in __endnetgrent()
189 while (lp) { in parse_netgrp()
192 lp = lp->l_next; in parse_netgrp()
209 lp->l_parsed = 1; in parse_netgrp()
210 pos = lp->l_line; in parse_netgrp()
311 lp = (struct linelist *)malloc(sizeof (*lp)); in read_for_group()
352 linehead = lp; in read_for_group()
[all …]
/freebsd-13.1/usr.bin/paste/
H A Dpaste.c133 LIST *lp; in parallel() local
145 lp->fp = stdin; in parallel()
148 lp->next = NULL; in parallel()
149 lp->cnt = cnt; in parallel()
150 lp->name = p; in parallel()
152 head = tmp = lp; in parallel()
154 tmp->next = lp; in parallel()
155 tmp = lp; in parallel()
160 for (output = 0, lp = head; lp; lp = lp->next) { in parallel()
161 if (!lp->fp) { in parallel()
[all …]
/freebsd-13.1/sbin/iscontrol/
H A Dlogin.c79 token_t *lp; in selectFrom() local
90 for(lp = list; lp->name != NULL; lp++) { in selectFrom()
231 debug(4, "Tbit=%d csg=%d nsg=%d status=%x", lp->T, lp->CSG, lp->NSG, status); in handleLoginResp()
263 if(lp->T) { in handleLoginResp()
285 login_req_t *lp; in handleChap() local
296 lp->CID = htons(1); in handleChap()
299 lp->T = 1; in handleChap()
328 login_req_t *lp; in authenticate() local
339 lp->T = 0; in authenticate()
372 login_req_t *lp; in loginPhase() local
[all …]
/freebsd-13.1/usr.sbin/ac/
H A Dac.c275 show(lp->user, lp->time); in show_users()
323 for (lp = SLIST_FIRST(&CurUtmpx), lp2 = NULL; lp != NULL;) in log_out()
332 tlp = lp; in log_out()
333 lp = SLIST_NEXT(lp, next); in log_out()
340 lp2 = lp; in log_out()
341 lp = SLIST_NEXT(lp, next); in log_out()
393 if ((lp = malloc(sizeof(*lp))) == NULL) in log_in()
396 strlcpy(lp->user, up->ut_user, sizeof(lp->user)); in log_in()
397 memcpy(lp->id, up->ut_id, sizeof(lp->id)); in log_in()
399 memcpy(lp->line, up->ut_line, sizeof(lp->line)); in log_in()
[all …]
/freebsd-13.1/sys/security/mac_veriexec/
H A Dveriexec_metadata.c121 for (lp = LIST_FIRST(head); lp != NULL; lp = LIST_NEXT(lp, entries)) in get_veriexec_file()
126 if (lp != NULL) { in get_veriexec_file()
188 for (lp = LIST_FIRST(head); lp != NULL; lp = LIST_NEXT(lp, entries)) { in mac_veriexec_print_db_head()
257 for (lp = LIST_FIRST(head); lp != NULL; in free_veriexec_dev()
258 lp = LIST_NEXT(lp, entries)) in free_veriexec_dev()
262 if (lp == NULL) in free_veriexec_dev()
309 for (lp = LIST_FIRST(head); lp != NULL; in find_veriexec_dev()
310 lp = LIST_NEXT(lp, entries)) in find_veriexec_dev()
313 if (lp == NULL) { in find_veriexec_dev()
340 lp = np; in find_veriexec_dev()
[all …]
/freebsd-13.1/usr.sbin/nfsdumpstate/
H A Dnfsdumpstate.c189 dumplocklist.ndllck_list = (void *)lp; in dump_lockstate()
206 open_flags(lp[cnt].ndlck_flags), in dump_lockstate()
207 lp[cnt].ndlck_stateid.seqid, in dump_lockstate()
208 lp[cnt].ndlck_stateid.other[0], in dump_lockstate()
209 lp[cnt].ndlck_stateid.other[1], in dump_lockstate()
215 lp[cnt].ndlck_stateid.seqid, in dump_lockstate()
216 lp[cnt].ndlck_stateid.other[0], in dump_lockstate()
217 lp[cnt].ndlck_stateid.other[1], in dump_lockstate()
222 lp[cnt].ndlck_first, in dump_lockstate()
223 lp[cnt].ndlck_end); in dump_lockstate()
[all …]
/freebsd-13.1/contrib/ntp/lib/isc/include/isc/
H A Dutil.h97 #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-13.1/sbin/recoverdisk/
H A Drecoverdisk.c262 lp->state, in report()
291 struct lump *lp; in new_lump() local
293 lp = malloc(sizeof *lp); in new_lump()
294 if (lp == NULL) in new_lump()
296 lp->start = start; in new_lump()
297 lp->len = len; in new_lump()
545 if (lp == NULL) in main()
587 lp->start, sz, lp->state, strerror(error)); in main()
604 new_lump(lp->start, sz, lp->state + 1); in main()
606 lp->len -= sz; in main()
[all …]
/freebsd-13.1/usr.bin/lam/
H A Dlam.c201 char *lp = linep; in pad() local
203 strlcpy(lp, ip->sepstring, line + sizeof(line) - lp); in pad()
204 lp += strlen(lp); in pad()
206 snprintf(lp, line + sizeof(line) - lp, ip->format, ""); in pad()
207 lp += strlen(lp); in pad()
209 return (lp); in pad()
234 strlcpy(lp, ip->sepstring, line + sizeof(line) - lp); in gatherline()
235 lp += strlen(lp); in gatherline()
236 snprintf(lp, line + sizeof(line) - lp, ip->format, s); in gatherline()
237 lp += strlen(lp); in gatherline()
[all …]
/freebsd-13.1/sys/kern/
H A Dsubr_lock.c398 lp->cnt_max / 1000, lp->cnt_wait_max / 1000, lp->cnt_tot / 1000, in lock_prof_output()
399 lp->cnt_wait / 1000, lp->cnt_cur, in lock_prof_output()
401 lp->cnt_tot / (lp->cnt_cur * 1000), in lock_prof_output()
403 lp->cnt_wait / (lp->cnt_cur * 1000), in lock_prof_output()
405 p, lp->line, lp->class->lc_name, lp->name); in lock_prof_output()
554 if (lp->line == line && lp->file == p && in lock_profile_lookup()
556 return (lp); in lock_profile_lookup()
561 return (lp); in lock_profile_lookup()
564 lp->file = p; in lock_profile_lookup()
569 return (lp); in lock_profile_lookup()
[all …]
/freebsd-13.1/contrib/nvi/vi/
H A Dv_section.c66 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-13.1/sys/libkern/
H A Dstrlen.c86 const unsigned long *lp; in size_t() local
99 lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK); in size_t()
100 va = (*lp - mask01); in size_t()
101 vb = ((~*lp) & mask80); in size_t()
102 lp++; in size_t()
105 for (p = str; p < (const char *)lp; p++) in size_t()
110 for (; ; lp++) { in size_t()
111 va = (*lp - mask01); in size_t()
112 vb = ((~*lp) & mask80); in size_t()
114 p = (const char *)(lp); in size_t()
/freebsd-13.1/lib/libc/string/
H A Dstrlen.c87 const unsigned long *lp; in strlen() local
100 lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK); in strlen()
101 va = (*lp - mask01); in strlen()
102 vb = ((~*lp) & mask80); in strlen()
103 lp++; in strlen()
106 for (p = str; p < (const char *)lp; p++) in strlen()
111 for (; ; lp++) { in strlen()
112 va = (*lp - mask01); in strlen()
113 vb = ((~*lp) & mask80); in strlen()
115 p = (const char *)(lp); in strlen()
/freebsd-13.1/usr.bin/join/
H A Djoin.c278 LINE *lp, *lastlp, tmp; in slurp() local
327 lp->linealloc += MAX(100, len + 1 - lp->linealloc); in slurp()
328 if ((lp->line = in slurp()
329 realloc(lp->line, lp->linealloc)) == NULL) in slurp()
338 lp->line[len] = '\0'; in slurp()
339 bp = lp->line; in slurp()
342 lp->fieldcnt = 0; in slurp()
346 if (lp->fieldcnt == lp->fieldalloc) { in slurp()
348 if ((lp->fields = realloc(lp->fields, in slurp()
352 lp->fields[lp->fieldcnt++] = fieldp; in slurp()
[all …]
/freebsd-13.1/stand/libsa/
H A Dgets.c45 char *lp; in ngets() local
47 for (lp = buf;;) { in ngets()
54 *lp = '\0'; in ngets()
59 if (lp > buf) { in ngets()
60 lp--; in ngets()
70 for (p = buf; p < lp; ++p) in ngets()
76 lp = buf; in ngets()
80 if ((n < 1) || ((lp - buf) < n - 1)) { in ngets()
81 *lp++ = c; in ngets()
/freebsd-13.1/stand/libsa/geli/
H A Dpwgets.c45 char *lp; in pwgets() local
47 for (lp = buf;;) in pwgets()
51 *lp = '\0'; in pwgets()
56 if (lp > buf) { in pwgets()
57 lp--; in pwgets()
67 lp = buf; in pwgets()
71 if ((n < 1) || ((lp - buf) < n - 1)) { in pwgets()
72 *lp++ = c; in pwgets()

1234567891011