Home
last modified time | relevance | path

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

12345678910>>...15

/freebsd-12.1/sys/geom/bde/
H A Dg_bde_work.c435 g_bde_work_done(wp, wp->error); in g_bde_write_done()
448 if (wp->sp == NULL && wp->ksp != NULL && wp->ksp->state == VALID) in g_bde_write_done()
449 g_bde_work_done(wp, wp->error); in g_bde_write_done()
574 if (wp->ksp->owner != wp) in g_bde_worker()
610 KASSERT(wp->sp->owner == wp, in g_bde_worker()
612 KASSERT(wp->ksp->owner == wp, in g_bde_worker()
689 wp->sp = g_bde_new_sector(wp, 0); in g_bde_start2()
694 wp->sp->size = wp->length; in g_bde_start2()
695 wp->sp->data = wp->data; in g_bde_start2()
705 wp->sp = g_bde_new_sector(wp, wp->length); in g_bde_start2()
[all …]
H A Dg_bde_crypt.c130 sc = wp->softc; in g_bde_crypt_read()
133 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; in g_bde_crypt_read()
163 sc = wp->softc; in g_bde_crypt_write()
174 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; in g_bde_crypt_write()
204 sc = wp->softc; in g_bde_crypt_delete()
303 if (wp->so + wp->length > kp->media_width) in g_bde_map_sector()
304 wp->length = kp->media_width - wp->so; in g_bde_map_sector()
324 } else if ((wp->so + wp->length) > ko) { in g_bde_map_sector()
326 wp->length = ko - wp->so; in g_bde_map_sector()
336 wp->ko); in g_bde_map_sector()
[all …]
/freebsd-12.1/contrib/tcsh/
H A Dtc.who.c300 for (wp = whohead.who_next; wp->who_next != NULL; wp = wp->who_next)
333 wp = wp->who_next;/* find that tty! */
433 for (wp = whohead.who_next; wp->who_next != NULL; wp = wp->who_next) {
460 (void) strcpy(wp->who_name, wp->who_new);
467 (void) strcpy(wp->who_name, wp->who_new);
505 if (wp)
506 xprintf("wp: %s/%s\n", wp->who_name, wp->who_tty);
525 str = tprintf(FMT_WHO, cp, NULL, wp->who_time, wp);
636 wp = wp->who_next;
656 for (wp = whohead.who_next; wp->who_next != NULL; wp = wp->who_next) {
[all …]
H A Dsh.func.c438 for (wp = whyles; wp; wp = wp->w_next) in gotolab()
1013 if (wp) in getword()
1027 if (wp) in getword()
1046 if (wp) in getword()
1060 if (wp) in getword()
1072 wp->len--; in getword()
1130 xfree(wp); in wpfree()
1160 wp->w_start.a_seek, wp->w_start.f_seek); in wfree()
1162 foo[wp->w_end.type + 1], wp->w_end.a_seek, wp->w_end.f_seek); in wfree()
1168 if (wp->w_end.type != TCSH_I_SEEK && wp->w_start.type == wp->w_end.type && in wfree()
[all …]
/freebsd-12.1/sys/geom/vinum/
H A Dgeom_vinum_raid5.c64 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); in gv_raid5_start()
65 wp->bio = bp; in gv_raid5_start()
79 g_free(wp); in gv_raid5_start()
102 g_free(wp); in gv_raid5_start()
113 g_free(wp); in gv_raid5_start()
138 return (wp); in gv_raid5_start()
157 if (owp == wp) in gv_stripe_active()
165 (wp->lockbase + wp->length >= owp->lockbase)) { in gv_stripe_active()
208 wp->data = addr; in gv_raid5_check()
300 wp->data = addr; in gv_raid5_rebuild()
[all …]
H A Dgeom_vinum_plex.c70 wp = NULL; in gv_plex_start()
78 if (wp == NULL) in gv_plex_start()
81 len = wp->length; in gv_plex_start()
84 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()
518 cbp = wp->parity; in gv_normal_parity()
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/lib/libuutil/common/
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-12.1/contrib/ncurses/ncurses/base/
H A Dlib_window.c97 WINDOW *wp; in wsyncup() local
101 for (wp = win; wp->_parent; wp = wp->_parent) { in wsyncup()
103 WINDOW *pp = wp->_parent; in wsyncup()
105 assert((wp->_pary <= pp->_maxy) && in wsyncup()
106 ((wp->_pary + wp->_maxy) <= pp->_maxy)); in wsyncup()
109 int left = wp->_line[y].firstchar; in wsyncup()
113 int right = wp->_line[y].lastchar + wp->_parx; in wsyncup()
114 left += wp->_parx; in wsyncup()
166 WINDOW *wp; in wcursyncup() local
169 for (wp = win; wp && wp->_parent; wp = wp->_parent) { in wcursyncup()
[all …]
H A Dresizeterm.c70 WINDOWLIST *wp; in show_window_sizes() local
78 for (each_window(sp, wp)) { in show_window_sizes()
80 (void *) &(wp->win), in show_window_sizes()
81 (long) wp->win._maxy + 1, in show_window_sizes()
83 (long) wp->win._begy, in show_window_sizes()
84 (long) wp->win._begx); in show_window_sizes()
173 WINDOWLIST *wp; in child_depth() local
175 for (each_window(sp, wp)) { in child_depth()
176 WINDOW *tst = &(wp->win); in child_depth()
276 WINDOWLIST *wp; in decrease_size() local
[all …]
/freebsd-12.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-12.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-12.1/contrib/nvi/cl/
H A Dcl_term.c96 CHAR_T *wp; in cl_term_init() local
104 MEMCPY(name, wp, wlen); in cl_term_init()
106 MEMCPY(ts, wp, wlen); in cl_term_init()
125 MEMCPY(name, wp, wlen); in cl_term_init()
127 MEMCPY(ts, wp, wlen); in cl_term_init()
149 MEMCPY(name, wp, wlen); in cl_term_init()
151 MEMCPY(ts, wp, wlen); in cl_term_init()
158 MEMCPY(name, wp, wlen); in cl_term_init()
160 MEMCPY(ts, wp, wlen); in cl_term_init()
235 CHAR_T *wp; in cl_pfmap() local
[all …]
/freebsd-12.1/sys/compat/linux/
H A Dlinux_futex.c306 if (wp != NULL) { in futex_put()
452 (*wp)->wp_flags = 0; in futex_get()
528 f->f_uaddr, wp, wp->wp_futex->f_uaddr, in futex_sleep()
534 error, f->f_uaddr, wp, wp->wp_futex->f_uaddr, in futex_sleep()
537 f = wp->wp_futex; in futex_sleep()
548 futex_put(f, wp); in futex_sleep()
583 wakeup_one(wp); in futex_wake()
610 wakeup_one(wp); in futex_requeue()
626 wp->wp_futex = f2; in futex_requeue()
810 futex_put(f, wp); in linux_sys_futex()
[all …]
/freebsd-12.1/release/picobsd/tinyware/msh/
H A Dsh3.c157 wp = dolv+1;
241 char **wp;
251 owp = wp;
259 cp = *wp;
273 t->words = wp;
336 cp = rexecve(wp[0], wp, makenv());
437 echo(wp) in echo() argument
446 prs(wp[i]);
468 for (wp = t1->words; *wp;)
824 for (wp = t->words+1; *wp; wp++) {
[all …]
/freebsd-12.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()
653 assertEqualWString(wc_nfd, wp); in test_archive_string_normalization_mac_nfd()
667 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_mac_nfd()
[all …]
/freebsd-12.1/crypto/openssh/
H A Dutf8.c105 vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap) in vasnmprintf() argument
138 max_width = wp == NULL ? INT_MAX : *wp; in vasnmprintf()
148 } else if (wp == NULL && in vasnmprintf()
213 if (wp != NULL) in vasnmprintf()
214 *wp = total_width; in vasnmprintf()
229 if (wp != NULL) in vasnmprintf()
230 *wp = 0; in vasnmprintf()
241 snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...) in snmprintf() argument
248 ret = vasnmprintf(&cp, sz, wp, fmt, ap); in snmprintf()
/freebsd-12.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-12.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-12.1/contrib/nvi/ex/
H A Dex_script.c204 CHAR_T *wp; in sscr_getprompt() local
249 db_append(sp, 0, lline, wp, wlen)) in sscr_getprompt()
305 CHAR_T *wp; in sscr_exec() local
313 INT2CHAR(sp, wp, wlen, p, last_len); in sscr_exec()
322 if (db_eget(sp, lno, &wp, &wlen, &isempty)) { in sscr_exec()
331 INT2CHAR(sp, wp, wlen, p, len); in sscr_exec()
358 CHAR2INT(sp, bp, last_len + len, wp, wlen); in sscr_exec()
359 if (db_set(sp, last_lno, wp, wlen)) in sscr_exec()
432 CHAR_T *wp; in sscr_insert() local
468 if (db_append(sp, 1, lno++, wp, wlen)) in sscr_insert()
[all …]
/freebsd-12.1/contrib/nvi/common/
H A Dmsg.c155 CHAR_T *wp; in msgq() local
159 for (; *wp != '\0'; ++wp) { in msgq()
160 len = snprintf(mp, REM, "%s", KEY_NAME(sp, *wp)); in msgq()
549 CHAR_T *wp; in msgq_status() local
559 CHAR2INT(sp, sp->frp->name, len + 1, wp, wlen); in msgq_status()
562 for (; *wp != '\0'; ++wp) { in msgq_status()
563 len = KEY_LEN(sp, *wp); in msgq_status()
564 memcpy(p, KEY_NAME(sp, *wp), len); in msgq_status()
874 CHAR_T *wp, *cp; in msg_print() local
881 for (cp = wp; *cp != '\0'; ++cp) in msg_print()
[all …]
/freebsd-12.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-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/
H A DFreeBSDThread.cpp66 lldb::WatchpointSP wp = wp_list.GetByIndex(wp_idx); in FreeBSDThread() local
67 if (wp.get() && wp->IsEnabled()) { in FreeBSDThread()
399 bool FreeBSDThread::EnableHardwareWatchpoint(Watchpoint *wp) { in EnableHardwareWatchpoint() argument
401 if (wp) { in EnableHardwareWatchpoint()
402 addr_t wp_addr = wp->GetLoadAddress(); in EnableHardwareWatchpoint()
403 size_t wp_size = wp->GetByteSize(); in EnableHardwareWatchpoint()
404 bool wp_read = wp->WatchpointRead(); in EnableHardwareWatchpoint()
405 bool wp_write = wp->WatchpointWrite(); in EnableHardwareWatchpoint()
406 uint32_t wp_hw_index = wp->GetHardwareIndex(); in EnableHardwareWatchpoint()
415 bool FreeBSDThread::DisableHardwareWatchpoint(Watchpoint *wp) { in DisableHardwareWatchpoint() argument
[all …]

12345678910>>...15