/freebsd-12-stable/sys/geom/bde/ |
H A D | g_bde_work.c | 80 static void g_bde_delete_sector(struct g_bde_softc *wp, struct g_bde_sector *sp); 81 static struct g_bde_sector * g_bde_new_sector(struct g_bde_work *wp, u_int len); 82 static void g_bde_release_keysector(struct g_bde_work *wp); 83 static struct g_bde_sector *g_bde_get_keysector(struct g_bde_work *wp); 100 struct g_bde_work *wp; local 102 wp = malloc(sizeof *wp, M_GBDE, M_NOWAIT | M_ZERO); 103 if (wp == NULL) 104 return (wp); 105 wp 114 g_bde_delete_work(struct g_bde_work *wp) argument 146 g_bde_new_sector(struct g_bde_work *wp, u_int len) argument 203 g_bde_get_keysector(struct g_bde_work *wp) argument 268 g_bde_release_keysector(struct g_bde_work *wp) argument 334 g_bde_read_keysector(struct g_bde_softc *sc, struct g_bde_work *wp) argument 395 g_bde_work_done(struct g_bde_work *wp, int error) argument 415 struct g_bde_work *wp; local 553 struct g_bde_work *wp, *twp; local 679 g_bde_start2(struct g_bde_work *wp) argument 741 struct g_bde_work *wp; local [all...] |
H A D | g_bde_crypt.c | 118 g_bde_crypt_read(struct g_bde_work *wp) argument 130 sc = wp->softc; 132 for (n = 0; o < wp->length; n++, o += sc->sectorsize) { 133 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; 134 g_bde_kkey(sc, &ki, DIR_DECRYPT, wp->offset + o); 136 d = (u_char *)wp->data + o; 153 g_bde_crypt_write(struct g_bde_work *wp) argument 163 sc = wp->softc; 166 for (n = 0; o < wp 195 g_bde_crypt_delete(struct g_bde_work *wp) argument 271 g_bde_map_sector(struct g_bde_work *wp) argument [all...] |
/freebsd-12-stable/contrib/tcsh/ |
H A D | tc.who.c | 205 struct who *wp, *wpnew; local 279 for (wp = whohead.who_next; wp->who_next != NULL; wp = wp->who_next) 280 wp->who_status = OFFLINE | CLEARED; 310 wp = whohead.who_next; 311 while (wp->who_next && (comp = strncmp(wp->who_tty, utmp.ut_line, UTLINLEN)) < 0) 312 wp 457 debugwholist(struct who *new, struct who *wp) argument 491 print_who(struct who *wp) argument 516 struct who *wp = ptr; local 603 struct who *wp; local 630 struct who *wp; local [all...] |
/freebsd-12-stable/sys/geom/vinum/ |
H A D | geom_vinum_raid5.c | 59 struct gv_raid5_packet *wp, *wp2; local 64 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); 65 wp->bio = bp; 66 wp->waiting = NULL; 67 wp->parity = NULL; 68 TAILQ_INIT(&wp->bits); 71 err = gv_raid5_rebuild(p, wp, bp, addr, boff, bcount); 73 err = gv_raid5_check(p, wp, bp, addr, boff, bcount); 75 err = gv_raid5_request(p, wp, b 151 struct gv_raid5_packet *wp, *owp; local 178 gv_raid5_check(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument 256 gv_raid5_rebuild(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument 344 gv_raid5_request(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount, int *delay) argument 645 gv_raid5_clone_bio(struct bio *bp, struct gv_sd *s, struct gv_raid5_packet *wp, caddr_t addr, int use_wp) argument [all...] |
H A D | geom_vinum_plex.c | 60 struct gv_raid5_packet *wp; local 70 wp = NULL; 77 wp = gv_raid5_start(p, bp, addr, boff, bcount); 78 if (wp == NULL) 81 len = wp->length; 83 if (TAILQ_EMPTY(&wp->bits)) 84 g_free(wp); 85 else if (wp->lockbase != -1) 86 TAILQ_INSERT_TAIL(&p->packets, wp, list); 335 struct gv_raid5_packet *wp; local 453 gv_check_parity(struct gv_plex *p, struct bio *bp, struct gv_raid5_packet *wp) argument 508 gv_normal_parity(struct gv_plex *p, struct bio *bp, struct gv_raid5_packet *wp) argument [all...] |
/freebsd-12-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_window.c | 97 WINDOW *wp; local 101 for (wp = win; wp->_parent; wp = wp->_parent) { 103 WINDOW *pp = wp->_parent; 105 assert((wp->_pary <= pp->_maxy) && 106 ((wp->_pary + wp->_maxy) <= pp->_maxy)); 108 for (y = 0; y <= wp 166 WINDOW *wp; local [all...] |
H A D | resizeterm.c | 70 WINDOWLIST *wp; local 78 for (each_window(sp, wp)) { 80 (void *) &(wp->win), 81 (long) wp->win._maxy + 1, 82 (long) wp->win._maxx + 1, 83 (long) wp->win._begy, 84 (long) wp->win._begx); 173 WINDOWLIST *wp; local 175 for (each_window(sp, wp)) { 176 WINDOW *tst = &(wp 276 WINDOWLIST *wp; local 310 WINDOWLIST *wp; local [all...] |
/freebsd-12-stable/usr.sbin/ppp/ |
H A D | async.c | 88 u_char *wp; local 90 wp = *cp; 93 *wp++ = HDLC_ESC; 97 *wp++ = HDLC_ESC; 100 *wp++ = c; 101 *cp = wp; 110 struct mbuf *wp; local 123 wp = bp; 125 while (wp) { 126 sp = MBUF_CTOP(wp); [all...] |
H A D | pred.c | 181 u_char *cp, *wp, *hp; local 188 hp = wp = MBUF_CTOP(mwp); 190 *wp++ = *cp++ = orglen >> 8; 191 *wp++ = *cp++ = orglen & 0377; 198 len = compress(state, bufp + 2, wp, orglen); 203 wp += len; 206 memcpy(wp, bufp + 2, orglen); 207 wp += orglen; 211 *wp++ = fcs & 0377; 212 *wp 224 struct mbuf *wp; local [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libuutil/common/ |
H A D | uu_avl.c | 309 _avl_walk_init(uu_avl_walk_t *wp, uu_avl_t *ap, uint32_t flags) argument 316 (void) memset(wp, 0, sizeof (*wp)); 317 wp->uaw_avl = ap; 318 wp->uaw_robust = robust; 319 wp->uaw_dir = direction; 322 wp->uaw_next_result = avl_first(&ap->ua_tree); 324 wp->uaw_next_result = avl_last(&ap->ua_tree); 327 wp->uaw_next = next = &ap->ua_null_walk; 328 wp 335 _avl_walk_advance(uu_avl_walk_t *wp, uu_avl_t *ap) argument 351 _avl_walk_fini(uu_avl_walk_t *wp) argument 366 uu_avl_walk_t *wp; local 384 uu_avl_walk_next(uu_avl_walk_t *wp) argument 390 uu_avl_walk_end(uu_avl_walk_t *wp) argument 424 uu_avl_walk_t *wp; local [all...] |
H A D | uu_list.c | 397 list_walk_init(uu_list_walk_t *wp, uu_list_t *lp, uint32_t flags) argument 404 (void) memset(wp, 0, sizeof (*wp)); 405 wp->ulw_list = lp; 406 wp->ulw_robust = robust; 407 wp->ulw_dir = direction; 409 wp->ulw_next_result = lp->ul_null_node.uln_next; 411 wp->ulw_next_result = lp->ul_null_node.uln_prev; 419 wp->ulw_next = next = &lp->ul_null_walk; 420 wp 427 list_walk_advance(uu_list_walk_t *wp, uu_list_t *lp) argument 442 list_walk_fini(uu_list_walk_t *wp) argument 458 uu_list_walk_t *wp; local 476 uu_list_walk_next(uu_list_walk_t *wp) argument 488 uu_list_walk_end(uu_list_walk_t *wp) argument 543 uu_list_walk_t *wp; local [all...] |
/freebsd-12-stable/contrib/nvi/vi/ |
H A D | v_at.c | 44 CHAR_T *wp; local 107 CHAR2INT(sp, nbuf, len, wp, wlen); 108 MEMCPY(wbuf, wp, wlen); 109 if (v_event_push(sp, NULL, wp, wlen, 0))
|
/freebsd-12-stable/lib/libc/db/test/hash.tests/ |
H A D | tseq.c | 56 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-stable/usr.bin/mail/ |
H A D | head.c | 252 nextword(char *wp, char *wbuf) argument 256 if (wp == NULL) { 260 while ((c = *wp++) != '\0' && c != ' ' && c != '\t') { 263 while ((c = *wp++) != '\0' && c != '"') 268 wp--; 272 for (; c == ' ' || c == '\t'; c = *wp++) 276 return (wp - 1);
|
/freebsd-12-stable/contrib/nvi/cl/ |
H A D | cl_term.c | 96 CHAR_T *wp; local 103 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); 104 MEMCPY(name, wp, wlen); 105 CHAR2INT(sp, t, strlen(t), wp, wlen); 106 MEMCPY(ts, wp, wlen); 107 CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen); 108 MEMCPY(output, wp, wlen); 124 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); 125 MEMCPY(name, wp, wlen); 126 CHAR2INT(sp, t, strlen(t), wp, wle 235 CHAR_T *wp; local [all...] |
/freebsd-12-stable/crypto/openssh/regress/unittests/utf8/ |
H A D | tests.c | 38 int *wp; local 46 wp = wantwidth == -2 ? NULL : &width; 47 len = snmprintf(buf, sizeof(buf), wp, "%s", mbs);
|
/freebsd-12-stable/sys/compat/linux/ |
H A D | linux_futex.c | 246 #define FUTEX_WP_REQUEUED 0x1 /* wp requeued - wp moved from wp_list 250 #define FUTEX_WP_REMOVED 0x2 /* wp is woken up and removed from futex 299 futex_put(struct futex *f, struct waiting_proc *wp) argument 301 LIN_SDT_PROBE2(futex, futex_put, entry, f, wp); 303 if (wp != NULL) { 304 if ((wp->wp_flags & FUTEX_WP_REMOVED) == 0) 305 TAILQ_REMOVE(&f->f_waiting_proc, wp, wp_list); 306 free(wp, M_FUTEX_WP); 440 futex_get(uint32_t *uaddr, struct waiting_proc **wp, struc argument 491 futex_sleep(struct futex *f, struct waiting_proc *wp, struct timespec *ts) argument 554 struct waiting_proc *wp, *wpt; local 592 struct waiting_proc *wp, *wpt; local 637 futex_wait(struct futex *f, struct waiting_proc *wp, struct timespec *ts, uint32_t bitset) argument 741 struct waiting_proc *wp; local [all...] |
/freebsd-12-stable/release/picobsd/tinyware/msh/ |
H A D | sh3.c | 43 _PROTOTYPE(static int forkexec, (struct op *t, int *pin, int *pout, int act, char **wp, int *pforked )); 46 _PROTOTYPE(static void echo, (char **wp )); 70 _PROTOTYPE(static void rdexp, (char **wp, void (*f)(), int key)); 84 char *cp, **wp, **wp2; local 92 wp = (wp2 = t->words) != NULL 99 rv = forkexec(t, pin, pout, act, wp, &child); 156 if (wp == NULL) { 157 wp = dolv+1; 162 while (*wp++ != NULL) 170 for (t1 = t->left; i-- && *wp ! 458 register char **wp, *cp; local 816 register char *cp, **wp; local [all...] |
/freebsd-12-stable/contrib/libarchive/libarchive/ |
H A D | archive_acl.c | 69 static void next_field_w(const wchar_t **wp, const wchar_t **start, 71 static void append_entry_w(wchar_t **wp, const wchar_t *prefix, int type, 73 static void append_id_w(wchar_t **wp, int id); 675 wchar_t *wp, *ws; local 697 wp = ws = (wchar_t *)malloc(length * sizeof(wchar_t)); 698 if (wp == NULL) { 706 append_entry_w(&wp, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, 709 *wp++ = separator; 710 append_entry_w(&wp, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, 713 *wp 769 append_id_w(wchar_t **wp, int id) argument 779 append_entry_w(wchar_t **wp, const wchar_t *prefix, int type, int tag, int flags, const wchar_t *wname, int perm, int id) argument 1569 next_field_w(const wchar_t **wp, const wchar_t **start, const wchar_t **end, wchar_t *sep) argument [all...] |
/freebsd-12-stable/contrib/libarchive/libarchive/test/ |
H A D | test_archive_string_conversion.c | 135 unicode_to_wc(wchar_t *wp, uint32_t uc) argument 138 *wp = (wchar_t)uc; 145 *wp++ = (wchar_t)(((uc >> 10) & 0x3ff) + 0xD800); 146 *wp = (wchar_t)((uc & 0x3ff) + 0xDC00); 149 *wp = (wchar_t)uc; 319 const wchar_t *wp; local 415 archive_mstring_get_wcs(a, &mstr, &wp)); 418 assertEqualWString(wc_nfc, wp); 426 archive_mstring_get_wcs(a, &mstr, &wp)); 429 assertEqualWString(wc_nfc, wp); 530 const wchar_t *wp; local 787 const wchar_t *wp = NULL; local [all...] |
/freebsd-12-stable/crypto/openssh/ |
H A D | utf8.c | 94 * including the terminating '\0', to sz. Unless wp is NULL, 95 * they limit the number of display columns occupied to *wp. 99 * If wp is NULL, newline, carriage return, and tab are allowed; 101 * written is returned in *wp. 105 vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap) argument 138 max_width = wp == NULL ? INT_MAX : *wp; 148 } else if (wp == NULL && 153 * is only returned for wp != NULL. 213 if (wp ! 241 snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...) argument [all...] |
/freebsd-12-stable/contrib/ncurses/ncurses/widechar/ |
H A D | lib_cchar.c | 102 wchar_t *wp; local 114 len = ((wp = wmemchr(wcval->chars, L'\0', (size_t) CCHARW_MAX)) 115 ? (int) (wp - wcval->chars)
|
/freebsd-12-stable/contrib/nvi/ex/ |
H A D | ex_source.c | 45 CHAR_T *wp; local 87 if (CHAR2INT(sp, bp, (size_t)sb.st_size + 1, wp, wlen)) 90 rc = ex_run_str(sp, np, wp, wlen - 1, 1, 0);
|
H A D | ex_visual.c | 44 CHAR_T *wp; local 87 CHAR2INT(sp, buf, len, wp, wlen); 88 (void)v_event_push(sp, NULL, wp, wlen, CH_NOMAP | CH_QUOTED);
|
/freebsd-12-stable/contrib/nvi/common/ |
H A D | msg.c | 155 CHAR_T *wp; local 158 CHAR2INT(sp, gp->if_name, strlen(gp->if_name) + 1, wp, wlen); 159 for (; *wp != '\0'; ++wp) { 160 len = snprintf(mp, REM, "%s", KEY_NAME(sp, *wp)); 549 CHAR_T *wp; local 559 CHAR2INT(sp, sp->frp->name, len + 1, wp, wlen); 562 for (; *wp != '\0'; ++wp) { 563 len = KEY_LEN(sp, *wp); 874 CHAR_T *wp, *cp; local [all...] |