/freebsd-current/sys/geom/shsec/ |
H A D | g_shsec.c | 298 struct bio *cbp; local 340 cbp = g_clone_bio(bp); 341 if (cbp == NULL) { 345 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); 350 cbp->bio_done = g_shsec_done; 351 cbp->bio_caller2 = sc->sc_disks[no]; 353 cbp->bio_data = uma_zalloc(g_shsec_zone, M_NOWAIT); 354 if (cbp->bio_data == NULL) { 361 dst = (uint32_t *)cbp->bio_data; 364 g_shsec_xor2((uint32_t *)cbp [all...] |
/freebsd-current/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_util.c | 1271 zprop_print_headers(zprop_get_cbdata_t *cbp, zfs_type_t type) argument 1278 cbp->cb_first = B_FALSE; 1279 if (cbp->cb_scripted) 1285 cbp->cb_colwidths[GET_COL_NAME] = strlen(dgettext(TEXT_DOMAIN, "NAME")); 1286 cbp->cb_colwidths[GET_COL_PROPERTY] = strlen(dgettext(TEXT_DOMAIN, 1288 cbp->cb_colwidths[GET_COL_VALUE] = strlen(dgettext(TEXT_DOMAIN, 1290 cbp->cb_colwidths[GET_COL_RECVD] = strlen(dgettext(TEXT_DOMAIN, 1292 cbp->cb_colwidths[GET_COL_SOURCE] = strlen(dgettext(TEXT_DOMAIN, 1296 assert(cbp->cb_proplist->pl_prop == 1308 for (pl = cbp 1401 zprop_print_one_property(const char *name, zprop_get_cbdata_t *cbp, const char *propname, const char *value, zprop_source_t sourcetype, const char *source, const char *recvd_value) argument [all...] |
H A D | libzfs_mount.c | 890 libzfs_add_handle(get_all_cb_t *cbp, zfs_handle_t *zhp) argument 892 if (cbp->cb_alloc == cbp->cb_used) { 896 newsz = cbp->cb_alloc != 0 ? cbp->cb_alloc * 2 : 64; 898 cbp->cb_handles, cbp->cb_alloc * sizeof (zfs_handle_t *), 900 cbp->cb_handles = newhandles; 901 cbp->cb_alloc = newsz; 903 cbp 912 get_all_cb_t *cbp = data; local [all...] |
H A D | libzfs_import.c | 250 aux_cbdata_t *cbp = data; local 257 if (nvlist_lookup_nvlist_array(nvroot, cbp->cb_type, 262 if (guid == cbp->cb_guid) { 263 cbp->cb_zhp = zhp;
|
/freebsd-current/contrib/libedit/ |
H A D | read.c | 285 size_t cbp = 0; local 290 while ((num_read = read(el->el_infd, cbuf + cbp, (size_t)1)) == -1) { 321 ++cbp; 324 switch (mbrtowc(cp, cbuf, cbp, &mbs)) { 326 if (cbp > 1) { 331 cbuf[0] = cbuf[cbp - 1]; 332 cbp = 0; 336 cbp = 0; 340 if (cbp >= MB_LEN_MAX) {
|
/freebsd-current/sys/geom/mirror/ |
H A D | g_mirror.c | 1126 struct bio *cbp; local 1142 cbp = g_clone_bio(bp); 1143 if (cbp == NULL) { 1147 cbp->bio_done = g_std_done; 1148 g_io_request(cbp, disk->d_consumer); 1512 struct bio *cbp; local 1524 cbp = g_clone_bio(bp); 1525 if (cbp == NULL) { 1535 cbp->bio_done = g_mirror_done; 1536 cbp 1550 struct bio *cbp; local 1589 struct bio *cbp; local 1646 struct bio *cbp; local 1713 struct bio *cbp; local [all...] |
/freebsd-current/sys/geom/cache/ |
H A D | g_cache.c | 262 struct bio *cbp; local 288 cbp = g_clone_bio(bp); 289 if (cbp == NULL) { 303 G_CACHE_DESC1(cbp) = sc; 304 G_CACHE_DESC2(cbp) = dp; 305 cbp->bio_done = g_cache_done; 306 cbp->bio_offset = BNO2OFF(dp->d_bno, sc); 307 cbp->bio_data = dp->d_data; 308 cbp->bio_length = sc->sc_bsize; 309 g_io_request(cbp, LIST_FIRS 347 struct bio *cbp; local [all...] |
/freebsd-current/sys/geom/gate/ |
H A D | g_gate.c | 219 g_gate_done(struct bio *cbp) argument 225 cp = cbp->bio_from; 226 pbp = cbp->bio_parent; 227 if (cbp->bio_error == 0) { 228 pbp->bio_completed = cbp->bio_completed; 229 g_destroy_bio(cbp); 234 g_destroy_bio(cbp); 251 struct bio *cbp; local 263 cbp = g_clone_bio(pbp); 264 if (cbp [all...] |
/freebsd-current/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_retire.c | 86 find_cbdata_t *cbp = data; local 88 if (cbp->cb_guid == 90 cbp->cb_zhp = zhp; 153 find_cbdata_t *cbp = data; local 173 &spareguid) == 0 && spareguid == cbp->cb_vdev_guid) { 180 cbp->cb_num_spares++;
|
/freebsd-current/sys/contrib/zstd/programs/ |
H A D | benchzstd.c | 397 BMK_benchParams_t cbp, dbp; local 401 cbp.benchFn = local_defaultCompress; /* ZSTD_compress2 */ 402 cbp.benchPayload = cctx; 403 cbp.initFn = local_initCCtx; /* BMK_initCCtx */ 404 cbp.initPayload = &cctxprep; 405 cbp.errorFn = ZSTD_isError; 406 cbp.blockCount = nbBlocks; 407 cbp.srcBuffers = srcPtrs; 408 cbp.srcSizes = srcSizes; 409 cbp [all...] |
/freebsd-current/contrib/nvi/vi/ |
H A D | vs_msg.c | 399 char *cbp, *ecbp, cbuf[128]; local 459 *cbp = '\0'; \ 460 (void)gp->scr_addstr(sp, cbuf, cbp - cbuf); \ 461 cbp = cbuf; \ 463 ecbp = (cbp = cbuf) + sizeof(cbuf) - 1; 472 if (cbp + 1 >= ecbp) 474 *cbp++ = *t == '\t' ? ' ' : *t; 476 if (cbp > cbuf)
|
/freebsd-current/sys/dev/cardbus/ |
H A D | cardbus_device.c | 98 struct cis_buffer *cbp) 104 return (cardbus_parse_cis(parent, child, cb, cbp)); 97 cardbus_device_buffer_cis(device_t parent, device_t child, struct cis_buffer *cbp) argument
|
/freebsd-current/sys/geom/nop/ |
H A D | g_nop.c | 166 g_nop_pass(struct bio *cbp, struct g_geom *gp) argument 169 G_NOP_LOGREQ(cbp, "Sending request."); 170 g_io_request(cbp, LIST_FIRST(&gp->consumer)); 200 struct bio *cbp; local 280 cbp = g_clone_bio(bp); 281 if (cbp == NULL) { 285 cbp->bio_done = g_std_done; 286 cbp->bio_offset = bp->bio_offset + sc->sc_offset; 289 cbp->bio_to = pp; 301 gndelay->dl_bio = cbp; [all...] |
/freebsd-current/contrib/tcsh/ |
H A D | ed.inputl.c | 751 size_t cbp; local 784 cbp = 0; 786 while ((num_read = xread(SHIN, cbuf + cbp, 1)) == -1) { 801 if (cbp == 0 /* && *cbuf < NT_NUM_KEYS */ 805 cbp++; 806 if (normal_mbtowc(cp, cbuf, cbp) == -1) { 808 if (cbp < MB_CUR_MAX)
|
/freebsd-current/sys/contrib/openzfs/cmd/zfs/ |
H A D | zfs_main.c | 1357 destroy_cbdata_t *cbp = data; local 1358 const char *tname = zfs_get_name(cbp->cb_target); 1367 if (cbp->cb_recurse) 1370 if (cbp->cb_first) { 1373 zfs_get_name(cbp->cb_target), 1374 zfs_type_to_name(zfs_get_type(cbp->cb_target))); 1377 cbp->cb_first = B_FALSE; 1378 cbp->cb_error = B_TRUE; 1387 if (!cbp->cb_recurse && 1388 zfs_get_type(cbp 1875 is_recvd_column(zprop_get_cbdata_t *cbp) argument 1916 zprop_get_cbdata_t *cbp = data; local 1957 zprop_print_one_property(zfs_get_name(zhp), cbp, local 1969 zprop_print_one_property(zfs_get_name(zhp), cbp, local 1980 zprop_print_one_property(zfs_get_name(zhp), cbp, local 2013 zprop_print_one_property(zfs_get_name(zhp), cbp, local 3616 list_cbdata_t *cbp = data; local 4043 rollback_cbdata_t *cbp = data; local 4072 rollback_cbdata_t *cbp = data; local 6630 holds_cbdata_t *cbp = data; local [all...] |
/freebsd-current/contrib/wpa/src/wps/ |
H A D | httpread.c | 534 char *cbp = h->body + h->chunk_start; local 535 if (bbp-cbp >= 2 && bbp[-2] == '\r' && 541 if (!isxdigit(*cbp)) { 546 h->chunk_size = strtoul(cbp, NULL, 16); 558 bbp = cbp;
|
/freebsd-current/sys/geom/mountver/ |
H A D | g_mountver.c | 140 struct bio *cbp; local 143 cbp = g_clone_bio(bp); 144 if (cbp == NULL) { 153 cbp->bio_done = g_mountver_done; 154 g_io_request(cbp, cp);
|
/freebsd-current/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_main.c | 2260 spare_cbdata_t *cbp = data; local 2267 if (find_vdev(nvroot, cbp->cb_guid)) { 2268 cbp->cb_zhp = zhp; 6671 list_cbdata_t *cbp = data; local 6673 print_pool(zhp, cbp); 6675 if (cbp->cb_verbose) { 6681 print_list_stats(zhp, NULL, nvroot, cbp, 0, B_FALSE); 8851 status_cbdata_t *cbp = data; local 8863 cbp->cb_count++; 8869 if (cbp 9648 upgrade_cbdata_t *cbp = arg; local 9700 upgrade_cbdata_t *cbp = arg; local 9736 upgrade_cbdata_t *cbp = arg; local 9804 upgrade_cbdata_t *cbp = data; local 10642 zprop_get_cbdata_t *cbp = (zprop_get_cbdata_t *)data; local 10678 zprop_get_cbdata_t *cbp = (zprop_get_cbdata_t *)data; local 10707 zprop_get_cbdata_t *cbp = (zprop_get_cbdata_t *)data; local 10751 cbp, pl->pl_user_prop, value, srctype, local 10762 zpool_get_name(zhp), cbp, local 10773 cbp, zpool_prop_to_name(pl->pl_prop), local [all...] |
/freebsd-current/sys/ufs/ffs/ |
H A D | ffs_snapshot.c | 1775 struct buf *ibp, *cbp, *savedcbp = NULL; local 1912 fs->fs_bsize, KERNCRED, 0, &cbp); 1921 (intmax_t)cbp->b_blkno); 1934 bcopy(savedcbp->b_data, cbp->b_data, fs->fs_bsize); 1935 bawrite(cbp); 1944 if ((error = readblock(vp, cbp, lbn)) != 0) { 1945 bzero(cbp->b_data, fs->fs_bsize); 1946 bawrite(cbp); 1952 savedcbp = cbp; 2268 struct buf *ibp, *cbp, *savedcb local [all...] |
/freebsd-current/sys/geom/eli/ |
H A D | g_eli.c | 461 struct bio *cbp; local 492 cbp = g_clone_bio(bp); 493 if (cbp == NULL) { 497 bp->bio_driver1 = cbp; 519 cbp->bio_done = g_eli_getattr_done; 521 cbp->bio_done = g_std_done; 523 cbp->bio_to = cp->provider; 524 G_ELI_LOGREQ(2, cbp, "Sending request."); 525 g_io_request(cbp, cp);
|
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_label.c | 1282 abd_t **cbp = rio->io_private; local 1288 if (*cbp == NULL) { 1290 *cbp = zio->io_abd; 1544 struct ubl_cbdata *cbp = rio->io_private; local 1550 if (vdev_uberblock_compare(ub, &cbp->ubl_latest) > 0) { 1551 cbp->ubl_latest = *ub; 1554 vdev_uberblock_compare(ub, cbp->ubl_ubbest) > 0) { 1561 *cbp->ubl_ubbest = *ub; 1562 cbp->ubl_vd = vd; 1572 struct ubl_cbdata *cbp) 1571 vdev_uberblock_load_impl(zio_t *zio, vdev_t *vd, int flags, struct ubl_cbdata *cbp) argument [all...] |
/freebsd-current/contrib/nvi/ex/ |
H A D | ex_cscope.c | 603 CB *cbp; local 641 cbp = NULL; 643 CBNAME(sp, cbp, p[1]); 644 if (cbp != NULL) { 645 INT2CHAR(sp, TAILQ_FIRST(cbp->textq)->lb, 646 TAILQ_FIRST(cbp->textq)->len, p, tlen);
|
/freebsd-current/sys/contrib/openzfs/module/icp/algs/modes/ |
H A D | ccm.c | 354 uint8_t *cbp; local 451 cbp = (uint8_t *)ctx->ccm_tmp; 452 encrypt_block(ctx->ccm_keysched, (uint8_t *)ctx->ccm_cb, cbp); 470 xor_block(blockp, cbp); 475 copy_block(cbp, resultp);
|
/freebsd-current/sys/fs/ext2fs/ |
H A D | ext2_extattr.c | 632 struct buf *cbp; local 648 cbp = getblk(ip->i_devvp, fsbtodb(fs, facl), fs->e2fs_bsize, 0, 0, 0); 649 if (!cbp) { 654 memcpy(cbp->b_data, sbp->b_data, fs->e2fs_bsize); 661 header = EXT2_HDR(cbp); 664 *bpp = cbp;
|
/freebsd-current/sys/geom/raid/ |
H A D | g_raid.c | 963 struct bio *cbp; local 978 cbp = g_clone_bio(bp); 979 if (cbp == NULL) 981 cbp->bio_caller1 = sd; 982 bioq_insert_tail(&queue, cbp); 984 while ((cbp = bioq_takefirst(&queue)) != NULL) { 985 sd = cbp->bio_caller1; 986 cbp->bio_caller1 = NULL; 987 g_raid_subdisk_iostart(sd, cbp); 991 while ((cbp [all...] |