Home
last modified time | relevance | path

Searched refs:wp (Results 1 – 25 of 615) sorted by relevance

12345678910>>...25

/freebsd-14.2/sys/geom/bde/
H A Dg_bde_work.c447 g_bde_work_done(wp, wp->error); in g_bde_write_done()
460 if (wp->sp == NULL && wp->ksp != NULL && wp->ksp->state == VALID) in g_bde_write_done()
461 g_bde_work_done(wp, wp->error); in g_bde_write_done()
586 if (wp->ksp->owner != wp) in g_bde_worker()
622 KASSERT(wp->sp->owner == wp, in g_bde_worker()
624 KASSERT(wp->ksp->owner == wp, in g_bde_worker()
701 wp->sp = g_bde_new_sector(wp, 0); in g_bde_start2()
706 wp->sp->size = wp->length; in g_bde_start2()
707 wp->sp->data = wp->data; in g_bde_start2()
717 wp->sp = g_bde_new_sector(wp, wp->length); in g_bde_start2()
[all …]
H A Dg_bde_crypt.c127 sc = wp->softc; in g_bde_crypt_read()
130 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; in g_bde_crypt_read()
160 sc = wp->softc; in g_bde_crypt_write()
170 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; in g_bde_crypt_write()
200 sc = wp->softc; in g_bde_crypt_delete()
299 if (wp->so + wp->length > kp->media_width) in g_bde_map_sector()
300 wp->length = kp->media_width - wp->so; in g_bde_map_sector()
320 } else if ((wp->so + wp->length) > ko) { in g_bde_map_sector()
322 wp->length = ko - wp->so; in g_bde_map_sector()
332 wp->ko); in g_bde_map_sector()
[all …]
/freebsd-14.2/contrib/tcsh/
H A Dtc.who.c279 for (wp = whohead.who_next; wp->who_next != NULL; wp = wp->who_next)
312 wp = wp->who_next;/* find that tty! */
412 for (wp = whohead.who_next; wp->who_next != NULL; wp = wp->who_next) {
439 (void) strcpy(wp->who_name, wp->who_new);
446 (void) strcpy(wp->who_name, wp->who_new);
484 if (wp)
485 xprintf("wp: %s/%s\n", wp->who_name, wp->who_tty);
504 str = tprintf(FMT_WHO, cp, NULL, wp->who_time, wp);
603 struct who *wp; local
615 wp = wp->who_next;
[all …]
H A Dsh.func.c434 for (wp = whyles; wp; wp = wp->w_next) in gotolab()
1009 if (wp) in getword()
1023 if (wp) in getword()
1042 if (wp) in getword()
1056 if (wp) in getword()
1068 wp->len--; in getword()
1126 xfree(wp); in wpfree()
1156 wp->w_start.a_seek, wp->w_start.f_seek); in wfree()
1158 foo[wp->w_end.type + 1], wp->w_end.a_seek, wp->w_end.f_seek); in wfree()
1164 if (wp->w_end.type != TCSH_I_SEEK && wp->w_start.type == wp->w_end.type && in wfree()
[all …]
/freebsd-14.2/sys/geom/vinum/
H A Dgeom_vinum_raid5.c63 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); in gv_raid5_start()
64 wp->bio = bp; in gv_raid5_start()
78 g_free(wp); in gv_raid5_start()
103 g_free(wp); in gv_raid5_start()
114 g_free(wp); in gv_raid5_start()
140 return (wp); in gv_raid5_start()
159 if (owp == wp) in gv_stripe_active()
167 (wp->lockbase + wp->length >= owp->lockbase)) { in gv_stripe_active()
210 wp->data = addr; in gv_raid5_check()
302 wp->data = addr; in gv_raid5_rebuild()
[all …]
H A Dgeom_vinum_plex.c69 wp = NULL; in gv_plex_start()
77 if (wp == NULL) in gv_plex_start()
80 len = wp->length; in gv_plex_start()
83 g_free(wp); in gv_plex_start()
344 if (wp == NULL) { in gv_plex_raid5_done()
369 g_free(wp); in gv_plex_raid5_done()
376 if (wp == NULL) { in gv_plex_raid5_done()
412 g_free(wp); in gv_plex_raid5_done()
469 pbp = wp->parity; in gv_check_parity()
517 cbp = wp->parity; in gv_normal_parity()
[all …]
/freebsd-14.2/sys/contrib/openzfs/lib/libuutil/
H A Duu_avl.c314 (void) memset(wp, 0, sizeof (*wp)); in _avl_walk_init()
315 wp->uaw_avl = ap; in _avl_walk_init()
342 wp->uaw_next_result = (wp->uaw_dir > 0)? AVL_NEXT(t, np) : in _avl_walk_advance()
352 wp->uaw_next->uaw_prev = wp->uaw_prev; in _avl_walk_fini()
353 wp->uaw_prev->uaw_next = wp->uaw_next; in _avl_walk_fini()
371 wp = uu_zalloc(sizeof (*wp)); in uu_avl_walk_start()
378 return (wp); in uu_avl_walk_start()
384 return (_avl_walk_advance(wp, wp->uaw_avl)); in uu_avl_walk_next()
391 uu_free(wp); in uu_avl_walk_end()
438 for (wp = ap->ua_null_walk.uaw_next; wp != &ap->ua_null_walk; in uu_avl_remove()
[all …]
H A Duu_list.c402 (void) memset(wp, 0, sizeof (*wp)); in list_walk_init()
403 wp->ulw_list = lp; in list_walk_init()
444 wp->ulw_next->ulw_prev = wp->ulw_prev; in list_walk_fini()
445 wp->ulw_prev->ulw_next = wp->ulw_next; in list_walk_fini()
456 uu_list_walk_t *wp; in uu_list_walk_start() local
463 wp = uu_zalloc(sizeof (*wp)); in uu_list_walk_start()
464 if (wp == NULL) { in uu_list_walk_start()
470 return (wp); in uu_list_walk_start()
489 uu_free(wp); in uu_list_walk_end()
563 for (wp = lp->ul_null_walk.ulw_next; wp != &lp->ul_null_walk; in uu_list_remove()
[all …]
/freebsd-14.2/contrib/ncurses/ncurses/base/
H A Dlib_window.c99 WINDOW *wp; in wsyncup() local
103 for (wp = win; wp->_parent; wp = wp->_parent) { in wsyncup()
105 WINDOW *pp = wp->_parent; in wsyncup()
107 assert((wp->_pary <= pp->_maxy) && in wsyncup()
108 ((wp->_pary + wp->_maxy) <= pp->_maxy)); in wsyncup()
111 int left = wp->_line[y].firstchar; in wsyncup()
115 int right = wp->_line[y].lastchar + wp->_parx; in wsyncup()
116 left += wp->_parx; in wsyncup()
168 WINDOW *wp; in wcursyncup() local
171 for (wp = win; wp && wp->_parent; wp = wp->_parent) { in wcursyncup()
[all …]
H A Dresizeterm.c77 WINDOWLIST *wp; in show_window_sizes() local
85 for (each_window(sp, wp)) { in show_window_sizes()
87 (void *) &(wp->win), in show_window_sizes()
88 (long) wp->win._maxy + 1, in show_window_sizes()
90 (long) wp->win._begy, in show_window_sizes()
91 (long) wp->win._begx); in show_window_sizes()
181 WINDOWLIST *wp; in child_depth() local
183 for (each_window(sp, wp)) { in child_depth()
184 WINDOW *tst = &(wp->win); in child_depth()
284 WINDOWLIST *wp; in decrease_size() local
[all …]
/freebsd-14.2/sbin/dump/
H A Dtape.c154 wp = &workers[0]; in alloctape()
155 wp->count = 1; in alloctape()
156 wp->tapea = 0; in alloctape()
157 wp->firstrec = 0; in alloctape()
238 if (atomic_write(wp->fd, (const void *)wp->req, siz) != siz) in flushtape()
248 if (wp->sent) { in flushtape()
254 wp->sent = 0; in flushtape()
452 wp->sent = 1; in rollforward()
477 wp->req[0] = *q; in rollforward()
487 if (wp->sent) { in rollforward()
[all …]
/freebsd-14.2/usr.sbin/ppp/
H A Dpred.c201 wp += len; in Pred1Output()
205 wp += orglen; in Pred1Output()
209 *wp++ = fcs & 0377; in Pred1Output()
210 *wp++ = fcs >> 8; in Pred1Output()
222 struct mbuf *wp; in Pred1Input() local
243 m_freem(wp); in Pred1Input()
251 m_freem(wp); in Pred1Input()
269 wp->m_offset++; in Pred1Input()
270 wp->m_len--; in Pred1Input()
277 return wp; in Pred1Input()
[all …]
H A Dasync.c86 u_char *wp; in async_Encode() local
88 wp = *cp; in async_Encode()
91 *wp++ = HDLC_ESC; in async_Encode()
95 *wp++ = HDLC_ESC; in async_Encode()
98 *wp++ = c; in async_Encode()
99 *cp = wp; in async_Encode()
108 struct mbuf *wp; in async_LayerPush() local
121 wp = bp; in async_LayerPush()
123 while (wp) { in async_LayerPush()
124 sp = MBUF_CTOP(wp); in async_LayerPush()
[all …]
H A Ddeflate.c73 u_char *wp, *rp; in DeflateOutput() local
97 wp = MBUF_CTOP(mo); in DeflateOutput()
98 *wp++ = state->seqno >> 8; in DeflateOutput()
99 *wp++ = state->seqno & 0377; in DeflateOutput()
104 state->cx.next_out = wp; in DeflateOutput()
203 u_char *wp; in DeflateInput() local
238 wp = MBUF_CTOP(mo); in DeflateInput()
239 wp[0] = '\0'; in DeflateInput()
282 if (!(wp[1] & 1)) { in DeflateInput()
284 wp[0] = wp[1]; in DeflateInput()
[all …]
/freebsd-14.2/contrib/libarchive/libarchive/
H A Darchive_acl.c696 wp = ws = malloc(length * sizeof(*wp)); in archive_acl_to_text_w()
785 *wp += wcslen(*wp); in append_entry_w()
826 *wp += wcslen(*wp); in append_entry_w()
833 *wp += wcslen(*wp); in append_entry_w()
883 *wp += wcslen(*wp); in append_entry_w()
1572 while (**wp == L' ' || **wp == L'\t' || **wp == L'\n') { in next_field_w()
1573 (*wp)++; in next_field_w()
1578 while (**wp != L'\0' && **wp != L',' && **wp != L':' && in next_field_w()
1579 **wp != L'\n' && **wp != L'#') { in next_field_w()
1580 (*wp)++; in next_field_w()
[all …]
/freebsd-14.2/contrib/nvi/cl/
H A Dcl_term.c93 CHAR_T *wp; in cl_term_init() local
101 MEMCPY(name, wp, wlen); in cl_term_init()
103 MEMCPY(ts, wp, wlen); in cl_term_init()
122 MEMCPY(name, wp, wlen); in cl_term_init()
124 MEMCPY(ts, wp, wlen); in cl_term_init()
146 MEMCPY(name, wp, wlen); in cl_term_init()
148 MEMCPY(ts, wp, wlen); in cl_term_init()
155 MEMCPY(name, wp, wlen); in cl_term_init()
157 MEMCPY(ts, wp, wlen); in cl_term_init()
232 CHAR_T *wp; in cl_pfmap() local
[all …]
/freebsd-14.2/crypto/openssh/
H A Dutf8.c104 vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap) in vasnmprintf() argument
137 max_width = wp == NULL ? INT_MAX : *wp; in vasnmprintf()
147 } else if (wp == NULL && in vasnmprintf()
212 if (wp != NULL) in vasnmprintf()
213 *wp = total_width; in vasnmprintf()
228 if (wp != NULL) in vasnmprintf()
229 *wp = 0; in vasnmprintf()
240 snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...) in snmprintf() argument
247 ret = vasnmprintf(&cp, sz, wp, fmt, ap); in snmprintf()
258 asmprintf(char **outp, size_t sz, int *wp, const char *fmt, ...) in asmprintf() argument
[all …]
/freebsd-14.2/crypto/openssl/crypto/whrlpool/
H A Dbuild.info6 $WPASM_x86=wp_block.c wp-mmx.S
9 $WPASM_x86_64=wp-x86_64.s
30 GENERATE[wp-mmx.S]=asm/wp-mmx.pl
31 DEPEND[wp-mmx.S]=../perlasm/x86asm.pl
33 GENERATE[wp-x86_64.s]=asm/wp-x86_64.pl
/freebsd-14.2/usr.bin/mail/
H A Dhead.c250 nextword(char *wp, char *wbuf) in nextword() argument
254 if (wp == NULL) { in nextword()
258 while ((c = *wp++) != '\0' && c != ' ' && c != '\t') { in nextword()
261 while ((c = *wp++) != '\0' && c != '"') in nextword()
266 wp--; in nextword()
270 for (; c == ' ' || c == '\t'; c = *wp++) in nextword()
274 return (wp - 1); in nextword()
/freebsd-14.2/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c136 *wp = (wchar_t)uc; in unicode_to_wc()
147 *wp = (wchar_t)uc; in unicode_to_wc()
317 const wchar_t *wp; in test_archive_string_normalization_nfc() local
416 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_nfc()
427 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_nfc()
438 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_nfc()
528 const wchar_t *wp; in test_archive_string_normalization_mac_nfd() local
647 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_mac_nfd()
785 const wchar_t *wp = NULL; in check_string() local
802 assertEqualWString(wexp, wp); in check_string()
[all …]
/freebsd-14.2/contrib/nvi/ex/
H A Dex_script.c202 CHAR_T *wp; in sscr_getprompt() local
247 db_append(sp, 0, lline, wp, wlen)) in sscr_getprompt()
303 CHAR_T *wp; in sscr_exec() local
311 INT2CHAR(sp, wp, wlen, p, last_len); in sscr_exec()
320 if (db_eget(sp, lno, &wp, &wlen, &isempty)) { in sscr_exec()
329 INT2CHAR(sp, wp, wlen, p, len); in sscr_exec()
356 CHAR2INT(sp, bp, last_len + len, wp, wlen); in sscr_exec()
357 if (db_set(sp, last_lno, wp, wlen)) in sscr_exec()
430 CHAR_T *wp; in sscr_insert() local
466 if (db_append(sp, 1, lno++, wp, wlen)) in sscr_insert()
[all …]
/freebsd-14.2/contrib/arm-optimized-routines/pl/math/tools/
H A Dexp10.sollya11 wp = single;
18 //wp = D;
37 p = roundcoefficients(approx(poly,i), [|wp ...|]);
38 // p = roundcoefficients(approx_abs(poly,i), [|wp ...|]);
49 log10_2 = round(N * log(10) / log(2), wp, RN);
51 log2_10_hi = round(log2_10, wp, RN);
52 log2_10_lo = round(log2_10 - log2_10_hi, wp, RN);
/freebsd-14.2/lib/libc/db/test/hash.tests/
H A Dtseq.c53 char wp[8192]; variable
76 bcopy ( res.data, wp, res.size );
77 wp[res.size] = 0;
81 printf ( "%s %s\n", wp, cp );
/freebsd-14.2/tools/build/cross-build/
H A Dfgetwln_fallback.c66 wchar_t *wp; in fgetwln() local
73 wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t)); in fgetwln()
74 if (wp == NULL) { in fgetwln()
78 fb->wbuf = wp; in fgetwln()
/freebsd-14.2/contrib/nvi/common/
H A Dmsg.c147 CHAR_T *wp; in msgq() local
151 for (; *wp != '\0'; ++wp) { in msgq()
152 len = snprintf(mp, REM, "%s", KEY_NAME(sp, *wp)); in msgq()
530 CHAR_T *wp; in msgq_status() local
540 CHAR2INT(sp, sp->frp->name, len + 1, wp, wlen); in msgq_status()
543 for (; *wp != '\0'; ++wp) { in msgq_status()
544 len = KEY_LEN(sp, *wp); in msgq_status()
545 memcpy(p, KEY_NAME(sp, *wp), len); in msgq_status()
849 CHAR_T *wp, *cp; in msg_print() local
856 for (cp = wp; *cp != '\0'; ++cp) in msg_print()
[all …]

12345678910>>...25