| /freebsd-11-stable/sys/geom/bde/ |
| HD | g_bde_work.c | 78 static void g_bde_delete_sector(struct g_bde_softc *wp, struct g_bde_sector *sp); 79 static struct g_bde_sector * g_bde_new_sector(struct g_bde_work *wp, u_int len); 80 static void g_bde_release_keysector(struct g_bde_work *wp); 81 static struct g_bde_sector *g_bde_get_keysector(struct g_bde_work *wp); 98 struct g_bde_work *wp; in g_bde_new_work() local 100 wp = malloc(sizeof *wp, M_GBDE, M_NOWAIT | M_ZERO); in g_bde_new_work() 101 if (wp == NULL) in g_bde_new_work() 102 return (wp); in g_bde_new_work() 103 wp->state = SETUP; in g_bde_new_work() 104 wp->softc = sc; in g_bde_new_work() [all …]
|
| HD | g_bde_crypt.c | 116 g_bde_crypt_read(struct g_bde_work *wp) in g_bde_crypt_read() argument 128 sc = wp->softc; in g_bde_crypt_read() 130 for (n = 0; o < wp->length; n++, o += sc->sectorsize) { in g_bde_crypt_read() 131 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; in g_bde_crypt_read() 132 g_bde_kkey(sc, &ki, DIR_DECRYPT, wp->offset + o); in g_bde_crypt_read() 134 d = (u_char *)wp->data + o; in g_bde_crypt_read() 151 g_bde_crypt_write(struct g_bde_work *wp) in g_bde_crypt_write() argument 161 sc = wp->softc; in g_bde_crypt_write() 164 for (n = 0; o < wp->length; n++, o += sc->sectorsize) { in g_bde_crypt_write() 166 s = (u_char *)wp->data + o; in g_bde_crypt_write() [all …]
|
| /freebsd-11-stable/sys/dev/wds/ |
| HD | wd7000.c | 162 #define WDSTOPHYS(wp, a) ( ((uintptr_t)a) - ((uintptr_t)wp->dx) + (wp->dx_p) ) argument 163 #define WDSTOVIRT(wp, a) ( ((a) - (wp->dx_p)) + ((char *)wp->dx) ) argument 327 static void wds_intr_locked(struct wds *wp); 332 static int wds_preinit(struct wds *wp); 333 static int wds_init(struct wds *wp); 337 static void wds_free_resources(struct wds *wp); 339 static struct wds_req *wdsr_alloc(struct wds *wp); 342 static void wdsr_ccb_done(struct wds *wp, struct wds_req *r, 345 static void wds_done(struct wds *wp, struct wds_req *r, u_int8_t stat); 346 static int wds_runsense(struct wds *wp, struct wds_req *r); [all …]
|
| /freebsd-11-stable/contrib/tcsh/ |
| HD | 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 = wp->who_next;/* find that tty! */ 314 if (wp->who_next && comp == 0) { /* found the tty... */ 315 if (utmp.ut_time < wp->who_time) 319 wp->who_time = utmp.ut_time; 320 wp->who_status = OFFLINE; [all …]
|
| HD | sh.func.c | 428 struct whyle *wp; in gotolab() local 434 for (wp = whyles; wp; wp = wp->w_next) in gotolab() 435 if (wp->w_end.type == TCSH_F_SEEK && wp->w_end.f_seek == 0) { in gotolab() 437 btell(&wp->w_end); in gotolab() 440 bseek(&wp->w_end); in gotolab() 753 struct whyle *wp; in search() local 828 wp = whyles; in search() 829 if (wp) { in search() 830 whyles = wp->w_next; in search() 831 wpfree(wp); in search() [all …]
|
| /freebsd-11-stable/sys/geom/vinum/ |
| HD | geom_vinum_raid5.c | 57 struct gv_raid5_packet *wp, *wp2; in gv_raid5_start() local 62 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); in gv_raid5_start() 63 wp->bio = bp; in gv_raid5_start() 64 wp->waiting = NULL; in gv_raid5_start() 65 wp->parity = NULL; in gv_raid5_start() 66 TAILQ_INIT(&wp->bits); in gv_raid5_start() 69 err = gv_raid5_rebuild(p, wp, bp, addr, boff, bcount); in gv_raid5_start() 71 err = gv_raid5_check(p, wp, bp, addr, boff, bcount); in gv_raid5_start() 73 err = gv_raid5_request(p, wp, bp, addr, boff, bcount, &delay); in gv_raid5_start() 77 g_free(wp); in gv_raid5_start() [all …]
|
| HD | geom_vinum_plex.c | 58 struct gv_raid5_packet *wp; in gv_plex_start() local 68 wp = NULL; in gv_plex_start() 75 wp = gv_raid5_start(p, bp, addr, boff, bcount); in gv_plex_start() 76 if (wp == NULL) in gv_plex_start() 79 len = wp->length; in gv_plex_start() 81 if (TAILQ_EMPTY(&wp->bits)) in gv_plex_start() 82 g_free(wp); in gv_plex_start() 83 else if (wp->lockbase != -1) in gv_plex_start() 84 TAILQ_INSERT_TAIL(&p->packets, wp, list); in gv_plex_start() 333 struct gv_raid5_packet *wp; in gv_plex_raid5_done() local [all …]
|
| /freebsd-11-stable/cddl/contrib/opensolaris/lib/libuutil/common/ |
| HD | uu_avl.c | 309 _avl_walk_init(uu_avl_walk_t *wp, uu_avl_t *ap, uint32_t flags) in _avl_walk_init() argument 316 (void) memset(wp, 0, sizeof (*wp)); in _avl_walk_init() 317 wp->uaw_avl = ap; in _avl_walk_init() 318 wp->uaw_robust = robust; in _avl_walk_init() 319 wp->uaw_dir = direction; in _avl_walk_init() 322 wp->uaw_next_result = avl_first(&ap->ua_tree); in _avl_walk_init() 324 wp->uaw_next_result = avl_last(&ap->ua_tree); in _avl_walk_init() 327 wp->uaw_next = next = &ap->ua_null_walk; in _avl_walk_init() 328 wp->uaw_prev = prev = next->uaw_prev; in _avl_walk_init() 329 next->uaw_prev = wp; in _avl_walk_init() [all …]
|
| HD | uu_list.c | 397 list_walk_init(uu_list_walk_t *wp, uu_list_t *lp, uint32_t flags) in list_walk_init() argument 404 (void) memset(wp, 0, sizeof (*wp)); in list_walk_init() 405 wp->ulw_list = lp; in list_walk_init() 406 wp->ulw_robust = robust; in list_walk_init() 407 wp->ulw_dir = direction; in list_walk_init() 409 wp->ulw_next_result = lp->ul_null_node.uln_next; in list_walk_init() 411 wp->ulw_next_result = lp->ul_null_node.uln_prev; in list_walk_init() 419 wp->ulw_next = next = &lp->ul_null_walk; in list_walk_init() 420 wp->ulw_prev = prev = next->ulw_prev; in list_walk_init() 421 next->ulw_prev = wp; in list_walk_init() [all …]
|
| /freebsd-11-stable/contrib/ncurses/ncurses/base/ |
| HD | lib_window.c | 97 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() 108 for (y = 0; y <= wp->_maxy; y++) { in wsyncup() 109 int left = wp->_line[y].firstchar; in wsyncup() 111 struct ldat *line = &(pp->_line[wp->_pary + y]); in wsyncup() 113 int right = wp->_line[y].lastchar + wp->_parx; in wsyncup() 114 left += wp->_parx; in wsyncup() [all …]
|
| HD | resizeterm.c | 70 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() 82 (long) wp->win._maxx + 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() [all …]
|
| /freebsd-11-stable/usr.sbin/ppp/ |
| HD | pred.c | 181 u_char *cp, *wp, *hp; in Pred1Output() local 188 hp = wp = MBUF_CTOP(mwp); in Pred1Output() 190 *wp++ = *cp++ = orglen >> 8; in Pred1Output() 191 *wp++ = *cp++ = orglen & 0377; in Pred1Output() 198 len = compress(state, bufp + 2, wp, orglen); in Pred1Output() 203 wp += len; in Pred1Output() 206 memcpy(wp, bufp + 2, orglen); in Pred1Output() 207 wp += orglen; in Pred1Output() 211 *wp++ = fcs & 0377; in Pred1Output() 212 *wp++ = fcs >> 8; in Pred1Output() [all …]
|
| HD | async.c | 88 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 …]
|
| HD | deflate.c | 75 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() 250 state->cx.next_out = wp + 1; in DeflateInput() 284 if (!(wp[1] & 1)) { in DeflateInput() [all …]
|
| /freebsd-11-stable/contrib/libarchive/libarchive/ |
| HD | 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; in archive_acl_to_text_w() local 697 wp = ws = (wchar_t *)malloc(length * sizeof(wchar_t)); in archive_acl_to_text_w() 698 if (wp == NULL) { in archive_acl_to_text_w() 706 append_entry_w(&wp, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, in archive_acl_to_text_w() 709 *wp++ = separator; in archive_acl_to_text_w() 710 append_entry_w(&wp, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, in archive_acl_to_text_w() 713 *wp++ = separator; in archive_acl_to_text_w() [all …]
|
| /freebsd-11-stable/contrib/nvi/cl/ |
| HD | cl_term.c | 96 CHAR_T *wp; in cl_term_init() local 103 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init() 104 MEMCPY(name, wp, wlen); in cl_term_init() 105 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init() 106 MEMCPY(ts, wp, wlen); in cl_term_init() 107 CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen); in cl_term_init() 108 MEMCPY(output, wp, wlen); in cl_term_init() 124 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init() 125 MEMCPY(name, wp, wlen); in cl_term_init() 126 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init() [all …]
|
| /freebsd-11-stable/sys/compat/linux/ |
| HD | linux_futex.c | 308 futex_put(struct futex *f, struct waiting_proc *wp) in futex_put() argument 310 LIN_SDT_PROBE2(futex, futex_put, entry, f, wp); in futex_put() 312 if (wp != NULL) { in futex_put() 313 if ((wp->wp_flags & FUTEX_WP_REMOVED) == 0) in futex_put() 314 TAILQ_REMOVE(&f->f_waiting_proc, wp, wp_list); in futex_put() 315 free(wp, M_FUTEX_WP); in futex_put() 449 futex_get(uint32_t *uaddr, struct waiting_proc **wp, struct futex **f, in futex_get() argument 454 LIN_SDT_PROBE3(futex, futex_get, entry, uaddr, wp, f); in futex_get() 457 *wp = malloc(sizeof(struct waiting_proc), M_FUTEX_WP, M_WAITOK); in futex_get() 458 (*wp)->wp_flags = 0; in futex_get() [all …]
|
| /freebsd-11-stable/release/picobsd/tinyware/msh/ |
| HD | sh3.c | 43 _PROTOTYPE(static int forkexec, (struct op *t, int *pin, int *pout, int act, char **wp, int *pforke… 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 != NULL;) { [all …]
|
| /freebsd-11-stable/contrib/libarchive/libarchive/test/ |
| HD | test_archive_string_conversion.c | 135 unicode_to_wc(wchar_t *wp, uint32_t uc) in unicode_to_wc() argument 138 *wp = (wchar_t)uc; in unicode_to_wc() 145 *wp++ = (wchar_t)(((uc >> 10) & 0x3ff) + 0xD800); in unicode_to_wc() 146 *wp = (wchar_t)((uc & 0x3ff) + 0xDC00); 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 415 archive_mstring_get_wcs(a, &mstr, &wp)); in test_archive_string_normalization_nfc() 418 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_nfc() 426 archive_mstring_get_wcs(a, &mstr, &wp)); in test_archive_string_normalization_nfc() 429 assertEqualWString(wc_nfc, wp); in test_archive_string_normalization_nfc() [all …]
|
| /freebsd-11-stable/contrib/libreadline/ |
| HD | nls.c | 161 char *wp, *retval; local 182 wp = retval; 186 *wp++ = 'i'; 187 *wp++ = 's'; 188 *wp++ = 'o'; 193 *wp++ = _rl_to_lower (codeset[i]); 195 *wp++ = codeset[i]; 196 *wp = '\0';
|
| /freebsd-11-stable/crypto/openssh/ |
| HD | utf8.c | 99 vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap) in vasnmprintf() argument 132 max_width = wp == NULL ? INT_MAX : *wp; in vasnmprintf() 142 } else if (wp == NULL && in vasnmprintf() 207 if (wp != NULL) in vasnmprintf() 208 *wp = total_width; in vasnmprintf() 223 if (wp != NULL) in vasnmprintf() 224 *wp = 0; in vasnmprintf() 235 snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...) in snmprintf() argument 242 ret = vasnmprintf(&cp, sz, wp, fmt, ap); in snmprintf()
|
| /freebsd-11-stable/usr.bin/mail/ |
| HD | head.c | 250 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-11-stable/contrib/nvi/ex/ |
| HD | ex_script.c | 204 CHAR_T *wp; in sscr_getprompt() local 246 if (CHAR2INT5(sp, exp->ibcw, t, p - t, wp, wlen)) in sscr_getprompt() 249 db_append(sp, 0, lline, wp, wlen)) in sscr_getprompt() 279 if (CHAR2INT5(sp, exp->ibcw, buf, llen, wp, wlen)) in sscr_getprompt() 281 if (db_last(sp, &lline) || db_append(sp, 0, lline, wp, wlen)) { in sscr_getprompt() 305 CHAR_T *wp; in sscr_exec() local 311 if (db_get(sp, last_lno, DBG_FATAL, &wp, &wlen)) in sscr_exec() 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() [all …]
|
| /freebsd-11-stable/contrib/nvi/common/ |
| HD | msg.c | 155 CHAR_T *wp; in msgq() local 158 CHAR2INT(sp, gp->if_name, strlen(gp->if_name) + 1, wp, wlen); in msgq() 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 [all …]
|
| /freebsd-11-stable/lib/libc/db/test/hash.tests/ |
| HD | tseq.c | 54 char wp[8192]; variable 77 bcopy ( res.data, wp, res.size ); 78 wp[res.size] = 0; 82 printf ( "%s %s\n", wp, cp );
|