Home
last modified time | relevance | path

Searched refs:xbp (Results 1 – 7 of 7) sorted by relevance

/NextBSD/contrib/libxo/libxo/
HDxo_buf.h38 xo_buf_init (xo_buffer_t *xbp) in xo_buf_init() argument
40 xbp->xb_size = XO_BUFSIZ; in xo_buf_init()
41 xbp->xb_bufp = xo_realloc(NULL, xbp->xb_size); in xo_buf_init()
42 xbp->xb_curp = xbp->xb_bufp; in xo_buf_init()
49 xo_buf_reset (xo_buffer_t *xbp) in xo_buf_reset() argument
51 xbp->xb_curp = xbp->xb_bufp; in xo_buf_reset()
58 xo_buf_left (xo_buffer_t *xbp) in xo_buf_left() argument
60 return xbp->xb_size - (xbp->xb_curp - xbp->xb_bufp); in xo_buf_left()
67 xo_buf_is_empty (xo_buffer_t *xbp) in xo_buf_is_empty() argument
69 return (xbp->xb_curp == xbp->xb_bufp); in xo_buf_is_empty()
[all …]
HDlibxo.c733 xo_buffer_t *xbp = &xop->xo_data; in xo_buf_indent() local
738 if (!xo_buf_has_room(xbp, indent)) in xo_buf_indent()
741 memset(xbp->xb_curp, ' ', indent); in xo_buf_indent()
742 xbp->xb_curp += indent; in xo_buf_indent()
751 xo_escape_xml (xo_buffer_t *xbp, int len, xo_xff_flags_t flags) in xo_escape_xml() argument
759 for (cp = xbp->xb_curp, ep = cp + len; cp < ep; cp++) { in xo_escape_xml()
774 if (!xo_buf_has_room(xbp, delta)) /* No room; bail, but don't append */ in xo_escape_xml()
777 ep = xbp->xb_curp; in xo_escape_xml()
807 xo_escape_json (xo_buffer_t *xbp, int len, xo_xff_flags_t flags UNUSED) in xo_escape_json() argument
812 for (cp = xbp->xb_curp, ep = cp + len; cp < ep; cp++) { in xo_escape_json()
[all …]
HDxo_syslog.c452 xo_buffer_t *xbp = opaque; in xo_syslog_handle_write() local
454 int left = xo_buf_left(xbp); in xo_syslog_handle_write()
459 memcpy(xbp->xb_curp, data, len); in xo_syslog_handle_write()
460 xbp->xb_curp += len; in xo_syslog_handle_write()
461 *xbp->xb_curp = '\0'; in xo_syslog_handle_write()
/NextBSD/contrib/libxo/encoder/cbor/
HDenc_cbor.c133 cbor_encode_uint (xo_buffer_t *xbp, uint64_t minor, unsigned limit) in cbor_encode_uint() argument
135 char *bp = xbp->xb_curp; in cbor_encode_uint()
163 xbp->xb_curp = bp; in cbor_encode_uint()
167 cbor_append (xo_handle_t *xop, cbor_private_t *cbor, xo_buffer_t *xbp, in cbor_append() argument
170 if (!xo_buf_has_room(xbp, minor + 2)) in cbor_append()
173 unsigned offset = xo_buf_offset(xbp); in cbor_append()
175 *xbp->xb_curp = major; in cbor_append()
176 cbor_encode_uint(xbp, minor, CBOR_ULIMIT); in cbor_append()
178 xo_buf_append(xbp, data, minor); in cbor_append()
181 cbor_memdump(stdout, "append", xo_buf_data(xbp, offset), in cbor_append()
[all …]
/NextBSD/lib/libc/db/hash/
HDhash_buf.c159 BUFHEAD *xbp; /* Temp pointer */ in newbuf() local
246 for (xbp = bp; xbp->ovfl;) { in newbuf()
247 next_xbp = xbp->ovfl; in newbuf()
248 xbp->ovfl = 0; in newbuf()
249 xbp = next_xbp; in newbuf()
252 if (IS_BUCKET(xbp->flags) || in newbuf()
253 (oaddr != xbp->addr)) in newbuf()
256 shortp = (u_int16_t *)xbp->page; in newbuf()
260 if ((xbp->flags & BUF_MOD) && __put_page(hashp, in newbuf()
261 xbp->page, xbp->addr, 0, 0)) in newbuf()
[all …]
HDhash_bigkey.c449 BUFHEAD *xbp; in collect_data() local
481 xbp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in collect_data()
482 if (!xbp || ((totlen = in collect_data()
483 collect_data(hashp, xbp, len + mylen, set)) < 1)) in collect_data()
514 BUFHEAD *xbp; in collect_key() local
533 xbp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in collect_key()
534 if (!xbp || ((totlen = in collect_key()
535 collect_key(hashp, xbp, totlen, val, set)) < 1)) in collect_key()
/NextBSD/sys/geom/raid3/
HDg_raid3.c1114 struct bio *xbp, *fbp, *cbp; in g_raid3_gather() local
1126 xbp = fbp = NULL; in g_raid3_gather()
1129 KASSERT(xbp == NULL, ("More than one parity bio.")); in g_raid3_gather()
1130 xbp = cbp; in g_raid3_gather()
1178 if (xbp != fbp) in g_raid3_gather()
1179 g_raid3_replace_bio(xbp, fbp); in g_raid3_gather()
1213 if (xbp != NULL) { in g_raid3_gather()
1220 g_raid3_xor(cbp->bio_data, xbp->bio_data, in g_raid3_gather()
1221 xbp->bio_length); in g_raid3_gather()
1223 xbp->bio_cflags &= ~G_RAID3_BIO_CFLAG_PARITY; in g_raid3_gather()
[all …]