/freebsd-9.3-release/sys/geom/bde/ |
H A D | 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; local 100 wp = malloc(sizeof *wp, M_GBDE, M_NOWAIT | M_ZERO); 101 if (wp == NULL) 102 return (wp); 103 wp 112 g_bde_delete_work(struct g_bde_work *wp) argument 144 g_bde_new_sector(struct g_bde_work *wp, u_int len) argument 201 g_bde_get_keysector(struct g_bde_work *wp) argument 266 g_bde_release_keysector(struct g_bde_work *wp) argument 332 g_bde_read_keysector(struct g_bde_softc *sc, struct g_bde_work *wp) argument 393 g_bde_work_done(struct g_bde_work *wp, int error) argument 413 struct g_bde_work *wp; local 551 struct g_bde_work *wp, *twp; local 677 g_bde_start2(struct g_bde_work *wp) argument 739 struct g_bde_work *wp; local [all...] |
H A D | g_bde_crypt.c | 116 g_bde_crypt_read(struct g_bde_work *wp) argument 128 sc = wp->softc; 130 for (n = 0; o < wp->length; n++, o += sc->sectorsize) { 131 d = (u_char *)wp->ksp->data + wp->ko + n * G_BDE_SKEYLEN; 132 g_bde_kkey(sc, &ki, DIR_DECRYPT, wp->offset + o); 134 d = (u_char *)wp->data + o; 151 g_bde_crypt_write(struct g_bde_work *wp) argument 161 sc = wp->softc; 164 for (n = 0; o < wp 193 g_bde_crypt_delete(struct g_bde_work *wp) argument 269 g_bde_map_sector(struct g_bde_work *wp) argument [all...] |
H A D | g_bde.h | 145 void g_bde_crypt_delete(struct g_bde_work *wp); 146 void g_bde_crypt_read(struct g_bde_work *wp); 147 void g_bde_crypt_write(struct g_bde_work *wp); 164 void g_bde_map_sector(struct g_bde_work *wp);
|
/freebsd-9.3-release/crypto/heimdal/lib/roken/ |
H A D | get_window_size.c | 64 get_window_size(int fd, struct winsize *wp) argument 68 memset(wp, 0, sizeof(*wp)); 71 ret = ioctl(fd, TIOCGWINSZ, wp); 78 wp->ws_row = ts.ts_lines; 79 wp->ws_col = ts.ts_cols; 87 wp->ws_row = dst[1]; 88 wp->ws_col = dst[0]; 95 wp->ws_col = atoi(s); 97 wp [all...] |
/freebsd-9.3-release/contrib/tcsh/ |
H A D | tc.who.c | 207 struct who *wp, *wpnew; local 298 for (wp = whohead.who_next; wp->who_next != NULL; wp = wp->who_next) 299 wp->who_status = OFFLINE | CLEARED; 329 wp = whohead.who_next; 330 while (wp->who_next && (comp = strncmp(wp->who_tty, utmp.ut_line, UTLINLEN)) < 0) 331 wp 476 debugwholist(struct who *new, struct who *wp) argument 510 print_who(struct who *wp) argument 535 struct who *wp = ptr; local 622 struct who *wp; local 649 struct who *wp; local 669 struct who *wp, *wpnew; local [all...] |
/freebsd-9.3-release/sys/dev/wds/ |
H A D | wd7000.c | 162 #define WDSTOPHYS(wp, a) ( ((u_long)a) - ((u_long)wp->dx) + ((u_long)wp->dx_p) ) 163 #define WDSTOVIRT(wp, a) ( ((char *)a) - ((char*)wp->dx_p) + ((char *)wp->dx) ) 326 static void wds_intr(struct wds *wp); 331 static int wds_preinit(struct wds *wp); 332 static int wds_init(struct wds *wp); 336 static void wds_free_resources(struct wds *wp); 457 struct wds *wp; local 514 struct wds *wp; local 648 wds_free_resources(struct wds *wp) argument 689 frag_alloc(struct wds *wp, int size, u_int8_t **res, u_int32_t *maskp) argument 724 frag_free(struct wds *wp, u_int32_t mask) argument 731 wdsr_alloc(struct wds *wp) argument 762 wds_intr(struct wds *wp) argument 802 wds_done(struct wds *wp, struct wds_req *r, u_int8_t stat) argument 912 wds_runsense(struct wds *wp, struct wds_req *r) argument 958 wds_getvers(struct wds *wp) argument 1010 wdsr_ccb_done(struct wds *wp, struct wds_req *r, union ccb *ccb, u_int32_t status) argument 1040 struct wds *wp; local 1252 wds_preinit(struct wds *wp) argument 1291 wds_init(struct wds *wp) argument 1370 cmdtovirt(struct wds *wp, u_int32_t phys) argument 1390 struct wds *wp; local [all...] |
/freebsd-9.3-release/sys/geom/vinum/ |
H A D | geom_vinum_raid5.c | 57 struct gv_raid5_packet *wp, *wp2; local 62 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); 63 wp->bio = bp; 64 wp->waiting = NULL; 65 wp->parity = NULL; 66 TAILQ_INIT(&wp->bits); 69 err = gv_raid5_rebuild(p, wp, bp, addr, boff, bcount); 71 err = gv_raid5_check(p, wp, bp, addr, boff, bcount); 73 err = gv_raid5_request(p, wp, b 146 struct gv_raid5_packet *wp, *owp; local 173 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 251 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 339 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 640 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 | 58 struct gv_raid5_packet *wp; local 68 wp = NULL; 75 wp = gv_raid5_start(p, bp, addr, boff, bcount); 76 if (wp == NULL) 79 len = wp->length; 81 if (TAILQ_EMPTY(&wp->bits)) 82 g_free(wp); 83 else if (wp->lockbase != -1) 84 TAILQ_INSERT_TAIL(&p->packets, wp, list); 332 struct gv_raid5_packet *wp; local 450 gv_check_parity(struct gv_plex *p, struct bio *bp, struct gv_raid5_packet *wp) argument 505 gv_normal_parity(struct gv_plex *p, struct bio *bp, struct gv_raid5_packet *wp) argument [all...] |
/freebsd-9.3-release/contrib/ncurses/ncurses/base/ |
H A D | lib_window.c | 99 WINDOW *wp; local 103 for (wp = win; wp->_parent; wp = wp->_parent) { 105 WINDOW *pp = wp->_parent; 107 assert((wp->_pary <= pp->_maxy) && 108 ((wp->_pary + wp->_maxy) <= pp->_maxy)); 110 for (y = 0; y <= wp 168 WINDOW *wp; local [all...] |
H A D | resizeterm.c | 67 WINDOWLIST *wp; local 72 for (each_window(wp)) { 74 &(wp->win), 75 (long) wp->win._maxy + 1, 76 (long) wp->win._maxx + 1, 77 (long) wp->win._begy, 78 (long) wp->win._begx); 149 WINDOWLIST *wp; local 151 for (each_window(wp)) { 152 WINDOW *tst = &(wp 246 WINDOWLIST *wp; local 280 WINDOWLIST *wp; local [all...] |
/freebsd-9.3-release/usr.sbin/pkg_install/info/ |
H A D | perform.c | 336 struct which_entry *wp; local 338 TAILQ_FOREACH(wp, which_list, next) { 342 wp->skip = TRUE; 344 if (isfile(wp->file) == FALSE) { 345 if (strchr(wp->file, '/') == NULL) { 346 tmp = vpipe("/usr/bin/which %s", wp->file); 348 strlcpy(wp->file, tmp, PATH_MAX); 349 wp->skip = FALSE; 355 tmp = abspath(wp->file); 357 strlcpy(wp [all...] |
/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | async.c | 86 u_char *wp; local 88 wp = *cp; 91 *wp++ = HDLC_ESC; 95 *wp++ = HDLC_ESC; 98 *wp++ = c; 99 *cp = wp; 108 struct mbuf *wp; local 121 wp = bp; 123 while (wp) { 124 sp = MBUF_CTOP(wp); [all...] |
H A D | pred.c | 179 u_char *cp, *wp, *hp; local 186 hp = wp = MBUF_CTOP(mwp); 188 *wp++ = *cp++ = orglen >> 8; 189 *wp++ = *cp++ = orglen & 0377; 196 len = compress(state, bufp + 2, wp, orglen); 201 wp += len; 204 memcpy(wp, bufp + 2, orglen); 205 wp += orglen; 209 *wp++ = fcs & 0377; 210 *wp 222 struct mbuf *wp; local [all...] |
/freebsd-9.3-release/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-9.3-release/contrib/libreadline/ |
H A D | 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-9.3-release/lib/libc/db/test/hash.tests/ |
H A D | 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 );
|
/freebsd-9.3-release/usr.bin/mail/ |
H A D | head.c | 250 nextword(char *wp, char *wbuf) argument 254 if (wp == NULL) { 258 while ((c = *wp++) != '\0' && c != ' ' && c != '\t') { 261 while ((c = *wp++) != '\0' && c != '"') 266 wp--; 270 for (; c == ' ' || c == '\t'; c = *wp++) 274 return (wp - 1);
|
/freebsd-9.3-release/sys/compat/linux/ |
H A D | linux_futex.c | 191 static MALLOC_DEFINE(M_FUTEX_WP, "futex wp", "Linux futexes wp"); 247 #define FUTEX_WP_REQUEUED 0x1 /* wp requeued - wp moved from wp_list 251 #define FUTEX_WP_REMOVED 0x2 /* wp is woken up and removed from futex 263 futex_put(struct futex *f, struct waiting_proc *wp) argument 265 LIN_SDT_PROBE2(futex, futex_put, entry, f, wp); 268 if (wp != NULL) { 269 if ((wp->wp_flags & FUTEX_WP_REMOVED) == 0) 270 TAILQ_REMOVE(&f->f_waiting_proc, wp, wp_lis 400 futex_get(uint32_t *uaddr, struct waiting_proc **wp, struct futex **f, uint32_t flags) argument 431 futex_sleep(struct futex *f, struct waiting_proc *wp, int timeout) argument 474 struct waiting_proc *wp, *wpt; local 512 struct waiting_proc *wp, *wpt; local 557 futex_wait(struct futex *f, struct waiting_proc *wp, int timeout_hz, uint32_t bitset) argument 660 struct waiting_proc *wp; local [all...] |
/freebsd-9.3-release/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-9.3-release/contrib/ncurses/ncurses/widechar/ |
H A D | lib_cchar.c | 102 wchar_t *wp; local 110 len = (wp = wmemchr(wcval->chars, L'\0', CCHARW_MAX)) 111 ? wp - wcval->chars
|
/freebsd-9.3-release/contrib/libarchive/libarchive/ |
H A D | archive_entry.c | 116 static void append_entry_w(wchar_t **wp, const wchar_t *prefix, int tag, 118 static void append_id_w(wchar_t **wp, int id); 126 static void next_field_w(const wchar_t **wp, const wchar_t **start, 176 wchar_t *wp; local 183 wp = (wchar_t *)malloc((wcslen(src->aes_wcs) + 1) 185 if (wp == NULL) 187 wcscpy(wp, src->aes_wcs); 188 dest->aes_wcs = wp; 1455 wchar_t *wp; local 1498 wp 1559 append_id_w(wchar_t **wp, int id) argument 1569 append_entry_w(wchar_t **wp, const wchar_t *prefix, int tag, const wchar_t *wname, int perm, int id) argument 1802 next_field_w(const wchar_t **wp, const wchar_t **start, const wchar_t **end, wchar_t *sep) argument [all...] |
H A D | archive_write_set_format_pax.c | 200 const wchar_t *wp; local 205 for (wp = wval; *wp != L'\0'; ) { 206 wc = *wp++; 209 && *wp >= 0xdc00 && *wp <= 0xdfff) { 214 wc += (*wp++ - 0xdc00); /* Low 10 bits */ 238 for (wp = wval, p = utf8_value; *wp != L'\0'; ) { 239 wc = *wp 405 const wchar_t *wp; local 1284 has_non_ASCII(const wchar_t *wp) argument [all...] |
/freebsd-9.3-release/sys/dev/xen/console/ |
H A D | console.c | 73 static unsigned int wc, wp; /* write_cons, write_prod */ variable 194 if ((wp-wc) < (WBUF_SIZE-1)) { 195 if ((wbuf[WBUF_MASK(wp++)] = c) == '\n') { 196 wbuf[WBUF_MASK(wp++)] = '\r'; 211 return ((wp - wc) >= WBUF_SIZE - 100) ? TRUE : FALSE; 309 while (wc != wp) { 311 sz = wp - wc; 366 if ((wp - wc) == WBUF_SIZE) 368 wbuf[WBUF_MASK(wp++)] = _ch; 434 while (wc != wp) { [all...] |
/freebsd-9.3-release/contrib/less/ |
H A D | prompt.c | 455 wherechar(p, wp) 457 int *wp; 464 case 't': *wp = TOP; break; 465 case 'm': *wp = MIDDLE; break; 466 case 'b': *wp = BOTTOM; break; 467 case 'B': *wp = BOTTOM_PLUS_ONE; break; 468 case 'j': *wp = adjsline(jump_sline); break; 469 default: *wp = TOP; p--; break;
|