Home
last modified time | relevance | path

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

12345678910>>...19

/freebsd-13.1/sys/geom/bde/
H A Dg_bde_work.c449 g_bde_work_done(wp, wp->error); in g_bde_write_done()
462 if (wp->sp == NULL && wp->ksp != NULL && wp->ksp->state == VALID) in g_bde_write_done()
463 g_bde_work_done(wp, wp->error); in g_bde_write_done()
588 if (wp->ksp->owner != wp) in g_bde_worker()
624 KASSERT(wp->sp->owner == wp, in g_bde_worker()
626 KASSERT(wp->ksp->owner == wp, in g_bde_worker()
703 wp->sp = g_bde_new_sector(wp, 0); in g_bde_start2()
708 wp->sp->size = wp->length; in g_bde_start2()
709 wp->sp->data = wp->data; in g_bde_start2()
719 wp->sp = g_bde_new_sector(wp, wp->length); in g_bde_start2()
[all …]
H A Dg_bde_crypt.c129 sc = wp->softc; in g_bde_crypt_read()
132 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; in g_bde_crypt_read()
162 sc = wp->softc; in g_bde_crypt_write()
172 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; in g_bde_crypt_write()
202 sc = wp->softc; in g_bde_crypt_delete()
301 if (wp->so + wp->length > kp->media_width) in g_bde_map_sector()
302 wp->length = kp->media_width - wp->so; in g_bde_map_sector()
322 } else if ((wp->so + wp->length) > ko) { in g_bde_map_sector()
324 wp->length = ko - wp->so; in g_bde_map_sector()
334 wp->ko); in g_bde_map_sector()
[all …]
/freebsd-13.1/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-13.1/sys/geom/vinum/
H A Dgeom_vinum_raid5.c65 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); in gv_raid5_start()
66 wp->bio = bp; in gv_raid5_start()
80 g_free(wp); in gv_raid5_start()
105 g_free(wp); in gv_raid5_start()
116 g_free(wp); in gv_raid5_start()
142 return (wp); in gv_raid5_start()
161 if (owp == wp) in gv_stripe_active()
169 (wp->lockbase + wp->length >= owp->lockbase)) { in gv_stripe_active()
212 wp->data = addr; in gv_raid5_check()
304 wp->data = addr; in gv_raid5_rebuild()
[all …]
H A Dgeom_vinum_plex.c71 wp = NULL; in gv_plex_start()
79 if (wp == NULL) in gv_plex_start()
82 len = wp->length; in gv_plex_start()
85 g_free(wp); in gv_plex_start()
346 if (wp == NULL) { in gv_plex_raid5_done()
371 g_free(wp); in gv_plex_raid5_done()
378 if (wp == NULL) { in gv_plex_raid5_done()
414 g_free(wp); in gv_plex_raid5_done()
471 pbp = wp->parity; in gv_check_parity()
519 cbp = wp->parity; in gv_normal_parity()
[all …]
/freebsd-13.1/sys/contrib/openzfs/lib/libuutil/
H A Duu_avl.c316 (void) memset(wp, 0, sizeof (*wp)); in _avl_walk_init()
317 wp->uaw_avl = ap; in _avl_walk_init()
344 wp->uaw_next_result = (wp->uaw_dir > 0)? AVL_NEXT(t, np) : in _avl_walk_advance()
354 wp->uaw_next->uaw_prev = wp->uaw_prev; in _avl_walk_fini()
355 wp->uaw_prev->uaw_next = wp->uaw_next; in _avl_walk_fini()
373 wp = uu_zalloc(sizeof (*wp)); in uu_avl_walk_start()
380 return (wp); in uu_avl_walk_start()
386 return (_avl_walk_advance(wp, wp->uaw_avl)); in uu_avl_walk_next()
393 uu_free(wp); in uu_avl_walk_end()
440 for (wp = ap->ua_null_walk.uaw_next; wp != &ap->ua_null_walk; in uu_avl_remove()
[all …]
H A Duu_list.c404 (void) memset(wp, 0, sizeof (*wp)); in list_walk_init()
405 wp->ulw_list = lp; in list_walk_init()
446 wp->ulw_next->ulw_prev = wp->ulw_prev; in list_walk_fini()
447 wp->ulw_prev->ulw_next = wp->ulw_next; in list_walk_fini()
458 uu_list_walk_t *wp; in uu_list_walk_start() local
465 wp = uu_zalloc(sizeof (*wp)); in uu_list_walk_start()
466 if (wp == NULL) { in uu_list_walk_start()
472 return (wp); in uu_list_walk_start()
491 uu_free(wp); in uu_list_walk_end()
559 for (wp = lp->ul_null_walk.ulw_next; wp != &lp->ul_null_walk; in uu_list_remove()
[all …]
/freebsd-13.1/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-13.1/sbin/dump/
H A Dtape.c155 wp = &workers[0]; in alloctape()
156 wp->count = 1; in alloctape()
157 wp->tapea = 0; in alloctape()
158 wp->firstrec = 0; in alloctape()
239 if (atomic(write, wp->fd, (char *)wp->req, siz) != siz) in flushtape()
249 if (wp->sent) { in flushtape()
255 wp->sent = 0; in flushtape()
453 wp->sent = 1; in rollforward()
478 wp->req[0] = *q; in rollforward()
488 if (wp->sent) { in rollforward()
[all …]
/freebsd-13.1/usr.sbin/ppp/
H A Dpred.c203 wp += len; in Pred1Output()
207 wp += orglen; in Pred1Output()
211 *wp++ = fcs & 0377; in Pred1Output()
212 *wp++ = fcs >> 8; in Pred1Output()
224 struct mbuf *wp; in Pred1Input() local
245 m_freem(wp); in Pred1Input()
253 m_freem(wp); in Pred1Input()
271 wp->m_offset++; in Pred1Input()
272 wp->m_len--; in Pred1Input()
279 return wp; in Pred1Input()
[all …]
H A Dasync.c88 u_char *wp; in async_Encode() local
90 wp = *cp; in async_Encode()
93 *wp++ = HDLC_ESC; in async_Encode()
97 *wp++ = HDLC_ESC; in async_Encode()
100 *wp++ = c; in async_Encode()
101 *cp = wp; in async_Encode()
110 struct mbuf *wp; in async_LayerPush() local
123 wp = bp; in async_LayerPush()
125 while (wp) { in async_LayerPush()
126 sp = MBUF_CTOP(wp); in async_LayerPush()
[all …]
H A Ddeflate.c75 u_char *wp, *rp; in DeflateOutput() local
99 wp = MBUF_CTOP(mo); in DeflateOutput()
100 *wp++ = state->seqno >> 8; in DeflateOutput()
101 *wp++ = state->seqno & 0377; in DeflateOutput()
106 state->cx.next_out = wp; in DeflateOutput()
205 u_char *wp; in DeflateInput() local
240 wp = MBUF_CTOP(mo); in DeflateInput()
241 wp[0] = '\0'; in DeflateInput()
284 if (!(wp[1] & 1)) { in DeflateInput()
286 wp[0] = wp[1]; in DeflateInput()
[all …]
/freebsd-13.1/contrib/libarchive/libarchive/
H A Darchive_acl.c786 *wp += wcslen(*wp); in append_entry_w()
827 *wp += wcslen(*wp); in append_entry_w()
834 *wp += wcslen(*wp); in append_entry_w()
884 *wp += wcslen(*wp); in append_entry_w()
1573 while (**wp == L' ' || **wp == L'\t' || **wp == L'\n') { in next_field_w()
1574 (*wp)++; in next_field_w()
1579 while (**wp != L'\0' && **wp != L',' && **wp != L':' && in next_field_w()
1580 **wp != L'\n' && **wp != L'#') { in next_field_w()
1581 (*wp)++; in next_field_w()
1598 while (**wp != L'\0' && **wp != L',' && **wp != L'\n') { in next_field_w()
[all …]
/freebsd-13.1/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-13.1/sys/compat/linux/
H A Dlinux_futex.c303 if (wp != NULL) { in futex_put()
525 f->f_uaddr, wp, wp->wp_futex->f_uaddr, in futex_sleep()
531 error, f->f_uaddr, wp, wp->wp_futex->f_uaddr, in futex_sleep()
534 f = wp->wp_futex; in futex_sleep()
545 futex_put(f, wp); in futex_sleep()
580 wakeup_one(wp); in futex_wake()
608 wakeup_one(wp); in futex_requeue()
624 wp->wp_futex = f2; in futex_requeue()
647 futex_put(f, wp); in futex_wait()
809 futex_put(f, wp); in linux_sys_futex()
[all …]
/freebsd-13.1/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c138 *wp = (wchar_t)uc; in unicode_to_wc()
149 *wp = (wchar_t)uc; in unicode_to_wc()
319 const wchar_t *wp; in test_archive_string_normalization_nfc() local
418 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_nfc()
429 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_nfc()
440 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_nfc()
530 const wchar_t *wp; in test_archive_string_normalization_mac_nfd() local
649 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_mac_nfd()
787 const wchar_t *wp = NULL; in check_string() local
804 assertEqualWString(wexp, wp); in check_string()
[all …]
/freebsd-13.1/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-13.1/crypto/openssl/crypto/whrlpool/
H A Dbuild.info4 GENERATE[wp-mmx.s]=asm/wp-mmx.pl \
6 DEPEND[wp-mmx.s]=../perlasm/x86asm.pl
8 GENERATE[wp-x86_64.s]=asm/wp-x86_64.pl $(PERLASM_SCHEME)
/freebsd-13.1/usr.bin/mail/
H A Dhead.c252 nextword(char *wp, char *wbuf) in nextword() argument
256 if (wp == NULL) { in nextword()
260 while ((c = *wp++) != '\0' && c != ' ' && c != '\t') { in nextword()
263 while ((c = *wp++) != '\0' && c != '"') in nextword()
268 wp--; in nextword()
272 for (; c == ' ' || c == '\t'; c = *wp++) in nextword()
276 return (wp - 1); in nextword()
/freebsd-13.1/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-13.1/lib/libc/db/test/hash.tests/
H A Dtseq.c56 char wp[8192]; variable
79 bcopy ( res.data, wp, res.size );
80 wp[res.size] = 0;
84 printf ( "%s %s\n", wp, cp );
/freebsd-13.1/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-13.1/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>>...19