Searched refs:wp (Results 1 - 25 of 193) sorted by relevance

12345678

/freebsd-10-stable/sys/geom/bde/
H A Dg_bde_work.c78 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 Dg_bde_crypt.c116 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...]
/freebsd-10-stable/contrib/tcsh/
H A Dtc.who.c209 struct who *wp, *wpnew; local
300 for (wp = whohead.who_next; wp->who_next != NULL; wp = wp->who_next)
301 wp->who_status = OFFLINE | CLEARED;
331 wp = whohead.who_next;
332 while (wp->who_next && (comp = strncmp(wp->who_tty, utmp.ut_line, UTLINLEN)) < 0)
333 wp
478 debugwholist(struct who *new, struct who *wp) argument
512 print_who(struct who *wp) argument
537 struct who *wp = ptr; local
624 struct who *wp; local
651 struct who *wp; local
671 struct who *wp, *wpnew; local
[all...]
/freebsd-10-stable/sys/dev/wds/
H A Dwd7000.c162 #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-10-stable/sys/geom/vinum/
H A Dgeom_vinum_raid5.c57 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 Dgeom_vinum_plex.c58 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-10-stable/contrib/ncurses/ncurses/base/
H A Dlib_window.c99 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 Dresizeterm.c67 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-10-stable/usr.sbin/pkg_install/info/
H A Dperform.c336 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-10-stable/usr.sbin/ppp/
H A Dasync.c86 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 Dpred.c179 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-10-stable/cddl/contrib/opensolaris/lib/libuutil/common/
H A Duu_avl.c309 _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 Duu_list.c397 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-10-stable/contrib/libreadline/
H A Dnls.c161 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-10-stable/contrib/nvi/vi/
H A Dv_at.c44 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-10-stable/lib/libc/db/test/hash.tests/
H A Dtseq.c54 char wp[8192]; variable
77 bcopy ( res.data, wp, res.size );
78 wp[res.size] = 0;
82 printf ( "%s %s\n", wp, cp );
/freebsd-10-stable/sys/gnu/dts/arm/
H A Domap5-sbc-t54.dts35 wp-inverted;
37 wp-gpios = <&gpio8 5 GPIO_ACTIVE_LOW>; /* gpio8_229 */
H A Dkirkwood-sheevaplug-esata.dts28 wp-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
/freebsd-10-stable/usr.bin/mail/
H A Dhead.c250 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-10-stable/contrib/nvi/cl/
H A Dcl_term.c96 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-10-stable/crypto/openssh/regress/unittests/utf8/
H A Dtests.c39 int *wp; local
47 wp = wantwidth == -2 ? NULL : &width;
48 len = snmprintf(buf, sizeof(buf), wp, "%s", mbs);
/freebsd-10-stable/sys/compat/linux/
H A Dlinux_futex.c248 #define FUTEX_WP_REQUEUED 0x1 /* wp requeued - wp moved from wp_list
252 #define FUTEX_WP_REMOVED 0x2 /* wp is woken up and removed from futex
312 futex_put(struct futex *f, struct waiting_proc *wp) argument
314 LIN_SDT_PROBE2(futex, futex_put, entry, f, wp);
316 if (wp != NULL) {
317 if ((wp->wp_flags & FUTEX_WP_REMOVED) == 0)
318 TAILQ_REMOVE(&f->f_waiting_proc, wp, wp_list);
319 free(wp, M_FUTEX_WP);
453 futex_get(uint32_t *uaddr, struct waiting_proc **wp, struc argument
504 futex_sleep(struct futex *f, struct waiting_proc *wp, struct timespec *ts) argument
567 struct waiting_proc *wp, *wpt; local
605 struct waiting_proc *wp, *wpt; local
650 futex_wait(struct futex *f, struct waiting_proc *wp, struct timespec *ts, uint32_t bitset) argument
753 struct waiting_proc *wp; local
[all...]
/freebsd-10-stable/release/picobsd/tinyware/msh/
H A Dsh3.c43 _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-10-stable/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c135 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-10-stable/crypto/openssh/
H A Dutf8.c86 * including the terminating '\0', to sz. Unless wp is NULL,
87 * they limit the number of display columns occupied to *wp.
91 * If wp is NULL, newline, carriage return, and tab are allowed;
93 * written is returned in *wp.
97 vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap) argument
129 max_width = wp == NULL ? INT_MAX : *wp;
139 } else if (wp == NULL &&
144 * is only returned for wp != NULL.
204 if (wp !
232 snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...) argument
[all...]

Completed in 299 milliseconds

12345678