| /freebsd-14.2/contrib/nvi/common/ |
| H A D | cut.c | 66 CB *cbp; in cut() local 120 if (cbp == NULL) { in cut() 127 cbp->len = 0; in cut() 128 cbp->flags = 0; in cut() 176 cbp->len = 0; in cut() 177 cbp->flags = 0; in cut() 195 cbp->name += 1; in cb_rotate() 202 del_cbp = cbp; in cb_rotate() 205 pre_cbp = cbp; in cb_rotate() 261 CB *cbp; in cut_close() local [all …]
|
| H A D | put.c | 32 put(SCR *sp, CB *cbp, CHAR_T *namep, MARK *cp, MARK *rp, int append) in put() argument 42 if (cbp == NULL) { in put() 44 cbp = sp->gp->dcbp; in put() 45 if (cbp == NULL) { in put() 52 CBNAME(sp, cbp, name); in put() 53 if (cbp == NULL) { in put() 60 tp = TAILQ_FIRST(cbp->textq); in put() 92 if (F_ISSET(cbp, CB_LMODE)) { in put() 180 ltp = TAILQ_LAST(cbp->textq, _texth); in put()
|
| /freebsd-14.2/sys/geom/vinum/ |
| H A D | geom_vinum_raid5.c | 57 struct bio *cbp; in gv_raid5_start() local 182 struct bio *cbp; in gv_raid5_check() local 230 bq->bp = cbp; in gv_raid5_check() 236 if (cbp == NULL) in gv_raid5_check() 246 if (cbp == NULL) in gv_raid5_check() 260 struct bio *cbp; in gv_raid5_rebuild() local 325 bq->bp = cbp; in gv_raid5_rebuild() 515 bq->bp = cbp; in gv_raid5_request() 533 bq->bp = cbp; in gv_raid5_request() 545 bq->bp = cbp; in gv_raid5_request() [all …]
|
| H A D | geom_vinum_plex.c | 57 struct bio *cbp; in gv_plex_start() local 108 while (cbp != NULL) { in gv_plex_start() 115 if (cbp->bio_caller2 != NULL && gv_stripe_active(p, cbp)) { in gv_plex_start() 201 struct bio *cbp; in gv_plex_normal_request() local 270 if (cbp == NULL) { in gv_plex_normal_request() 276 cbp->bio_data = addr; in gv_plex_normal_request() 387 cbp = wp->parity; in gv_plex_raid5_done() 388 if (cbp != NULL) { in gv_plex_raid5_done() 517 cbp = wp->parity; in gv_normal_parity() 525 cbp = wp->parity; in gv_normal_parity() [all …]
|
| /freebsd-14.2/sys/geom/stripe/ |
| H A D | g_stripe.c | 306 struct bio *cbp; in g_stripe_start_fast() local 343 cbp = TAILQ_NEXT(cbp, bio_queue); in g_stripe_start_fast() 356 cbp->bio_caller1 = cbp->bio_data; in g_stripe_start_fast() 406 cbp->bio_offset, cbp->bio_length, 0); in g_stripe_start_fast() 420 cbp->bio_data = cbp->bio_caller1; in g_stripe_start_fast() 435 struct bio *cbp; in g_stripe_start_economic() local 495 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_stripe_start_economic() 497 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_stripe_start_economic() 535 struct bio *cbp; in g_stripe_pushdown() local 542 for (cbp = bioq_first(&queue); cbp != NULL; in g_stripe_pushdown() [all …]
|
| /freebsd-14.2/contrib/nvi/ex/ |
| H A D | ex_display.c | 84 CB *cbp; in bdisplay() local 92 SLIST_FOREACH(cbp, sp->gp->cutq, q) { in bdisplay() 93 if (isdigit(cbp->name)) in bdisplay() 95 if (!TAILQ_EMPTY(cbp->textq)) in bdisplay() 96 db(sp, cbp, NULL); in bdisplay() 102 if (!isdigit(cbp->name)) in bdisplay() 104 if (!TAILQ_EMPTY(cbp->textq)) in bdisplay() 105 db(sp, cbp, NULL); in bdisplay() 110 if ((cbp = sp->gp->dcbp) != NULL) in bdisplay() 111 db(sp, cbp, "default buffer"); in bdisplay() [all …]
|
| /freebsd-14.2/sys/geom/ |
| H A D | geom_ccd.c | 511 g_io_request(cbp[0], cbp[0]->bio_from); in g_ccd_start() 512 g_io_request(cbp[1], cbp[1]->bio_from); in g_ccd_start() 523 g_io_request(cbp[pick], cbp[pick]->bio_from); in g_ccd_start() 529 g_io_request(cbp[0], cbp[0]->bio_from); in g_ccd_start() 543 struct bio *cbp; in ccdbuffer() local 646 if (cbp == NULL) in ccdbuffer() 658 cb[0] = cbp; in ccdbuffer() 662 if (cbp == NULL) in ccdbuffer() 671 cb[1] = cbp; in ccdbuffer() 709 g_std_done(cbp); in ccdiodone() [all …]
|
| /freebsd-14.2/sys/geom/eli/ |
| H A D | g_eli_integrity.c | 324 cbp = bp->bio_driver1; in g_eli_auth_write_done() 326 g_destroy_bio(cbp); in g_eli_auth_write_done() 332 cbp = bp->bio_driver1; in g_eli_auth_write_done() 334 cbp->bio_to = cp->provider; in g_eli_auth_write_done() 358 cbp->bio_length = maxphys; in g_eli_auth_write_done() 366 g_io_request(cbp, cp); in g_eli_auth_write_done() 378 struct bio *cbp, *cbp2; in g_eli_auth_read() local 385 cbp = bp->bio_driver1; in g_eli_auth_read() 396 size = cbp->bio_length; in g_eli_auth_read() 402 g_destroy_bio(cbp); in g_eli_auth_read() [all …]
|
| H A D | g_eli_privacy.c | 144 struct bio *bp, *cbp; in g_eli_crypto_write_done() local 173 cbp = bp->bio_driver1; in g_eli_crypto_write_done() 179 g_destroy_bio(cbp); in g_eli_crypto_write_done() 184 cbp->bio_data = bp->bio_driver2; in g_eli_crypto_write_done() 189 cbp->bio_flags &= ~BIO_UNMAPPED; in g_eli_crypto_write_done() 192 cbp->bio_to = cp->provider; in g_eli_crypto_write_done() 197 g_io_request(cbp, cp); in g_eli_crypto_write_done() 210 struct bio *cbp; in g_eli_crypto_read() local 234 cbp = bp->bio_driver1; in g_eli_crypto_read() 237 cbp->bio_to = cp->provider; in g_eli_crypto_read() [all …]
|
| /freebsd-14.2/sys/geom/raid/ |
| H A D | tr_raid0.c | 194 struct bio *cbp; in g_raid_tr_iostart_raid0() local 229 cbp = g_clone_bio(bp); in g_raid_tr_iostart_raid0() 230 if (cbp == NULL) in g_raid_tr_iostart_raid0() 233 cbp->bio_length = length; in g_raid_tr_iostart_raid0() 237 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_raid_tr_iostart_raid0() 239 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_raid_tr_iostart_raid0() 242 cbp->bio_data = addr; in g_raid_tr_iostart_raid0() 244 bioq_insert_tail(&queue, cbp); in g_raid_tr_iostart_raid0() 255 sd = cbp->bio_caller1; in g_raid_tr_iostart_raid0() 256 cbp->bio_caller1 = NULL; in g_raid_tr_iostart_raid0() [all …]
|
| H A D | tr_raid1e.c | 691 struct bio *cbp; in g_raid_tr_iostart_raid1e_read() local 718 if (cbp == NULL) in g_raid_tr_iostart_raid1e_read() 724 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_raid_tr_iostart_raid1e_read() 726 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_raid_tr_iostart_raid1e_read() 749 g_destroy_bio(cbp); in g_raid_tr_iostart_raid1e_read() 761 struct bio *cbp; in g_raid_tr_iostart_raid1e_write() local 793 if (cbp == NULL) in g_raid_tr_iostart_raid1e_write() 800 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_raid_tr_iostart_raid1e_write() 802 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_raid_tr_iostart_raid1e_write() 885 struct bio *cbp; in g_raid_tr_iodone_raid1e() local [all …]
|
| H A D | tr_concat.c | 213 struct bio *cbp; in g_raid_tr_iostart_concat() local 249 cbp = g_clone_bio(bp); in g_raid_tr_iostart_concat() 250 if (cbp == NULL) in g_raid_tr_iostart_concat() 252 cbp->bio_offset = offset; in g_raid_tr_iostart_concat() 257 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_raid_tr_iostart_concat() 259 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_raid_tr_iostart_concat() 262 cbp->bio_data = addr; in g_raid_tr_iostart_concat() 263 cbp->bio_caller1 = sd; in g_raid_tr_iostart_concat() 273 sd = cbp->bio_caller1; in g_raid_tr_iostart_concat() 274 cbp->bio_caller1 = NULL; in g_raid_tr_iostart_concat() [all …]
|
| H A D | tr_raid1.c | 527 struct bio *cbp; in g_raid_tr_iostart_raid1_read() local 533 cbp = g_clone_bio(bp); in g_raid_tr_iostart_raid1_read() 534 if (cbp == NULL) { in g_raid_tr_iostart_raid1_read() 548 struct bio *cbp; in g_raid_tr_iostart_raid1_write() local 584 cbp = g_clone_bio(bp); in g_raid_tr_iostart_raid1_write() 585 if (cbp == NULL) in g_raid_tr_iostart_raid1_write() 587 cbp->bio_caller1 = sd; in g_raid_tr_iostart_raid1_write() 598 g_destroy_bio(cbp); in g_raid_tr_iostart_raid1_write() 656 struct bio *cbp; in g_raid_tr_iodone_raid1() local 817 cbp->bio_offset, cbp->bio_length, pbp, cbp); in g_raid_tr_iodone_raid1() [all …]
|
| H A D | tr_raid5.c | 215 struct bio *cbp; in g_raid_tr_iostart_raid5_read() local 276 cbp = g_clone_bio(bp); in g_raid_tr_iostart_raid5_read() 277 if (cbp == NULL) in g_raid_tr_iostart_raid5_read() 279 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid5_read() 280 cbp->bio_data = addr; in g_raid_tr_iostart_raid5_read() 281 cbp->bio_length = length; in g_raid_tr_iostart_raid5_read() 283 bioq_insert_tail(&queue, cbp); in g_raid_tr_iostart_raid5_read() 328 sd = cbp->bio_caller1; in g_raid_tr_iostart_raid5_read() 329 cbp->bio_caller1 = NULL; in g_raid_tr_iostart_raid5_read() 330 g_raid_subdisk_iostart(sd, cbp); in g_raid_tr_iostart_raid5_read() [all …]
|
| /freebsd-14.2/lib/libc/tests/sys/ |
| H A D | cpuset_test.c | 285 memset(&cbp.info, '\0', sizeof(cbp.info)); in do_jail_test() 290 &cbp.rootid)); in do_jail_test() 298 cbp.rootid = 1; in do_jail_test() 322 ATF_REQUIRE_EQ(sizeof(cbp.info), recv(sock, &cbp.info, in do_jail_test() 337 epilogue(&cbp); in do_jail_test() 347 mask = &cbp->mask; in jail_attach_mutate_pro() 363 info = &cbp->info; in jail_attach_newbase_epi() 364 mask = &cbp->mask; in jail_attach_newbase_epi() 416 info = &cbp->info; in jail_attach_jset_epi() 417 mask = &cbp->mask; in jail_attach_jset_epi() [all …]
|
| /freebsd-14.2/sys/dev/fxp/ |
| H A D | if_fxp.c | 1400 struct fxp_cb_tx *cbp; in fxp_encap() local 1584 cbp = txp->tx_cb; in fxp_encap() 2342 cbp->cb_status = 0; in fxp_init_body() 2410 cbp->fc_delay_lsb = 0; in fxp_init_body() 2413 cbp->tx_fc_dis = 0; in fxp_init_body() 2416 cbp->fc_filter = 0; in fxp_init_body() 2417 cbp->pri_fc_loc = 1; in fxp_init_body() 2429 cbp->tx_fc_dis = 0; in fxp_init_body() 2432 cbp->tx_fc_dis = 1; in fxp_init_body() 2458 cbp->gamla_rx = 1; in fxp_init_body() [all …]
|
| /freebsd-14.2/sys/geom/raid3/ |
| H A D | g_raid3.c | 945 #define G_RAID3_NEXT_BIO(cbp) (cbp)->bio_caller1 argument 1041 if (cbp == NULL) in g_raid3_clone_bio() 1065 return (cbp); in g_raid3_clone_bio() 1085 bp = cbp; in g_raid3_scatter() 1095 if (cbp == bp) in g_raid3_scatter() 1108 if (cbp == bp) in g_raid3_scatter() 1159 xbp = cbp; in g_raid3_gather() 1175 fbp = cbp; in g_raid3_gather() 1426 for (cbp = bioq_first(&queue); cbp != NULL; in g_raid3_flush() 1441 for (cbp = bioq_first(&queue); cbp != NULL; cbp = bioq_first(&queue)) { in g_raid3_flush() [all …]
|
| /freebsd-14.2/sys/geom/concat/ |
| H A D | g_concat.c | 237 struct bio *cbp; in g_concat_kernel_dump() local 255 cbp = g_clone_bio(bp); in g_concat_kernel_dump() 256 if (cbp == NULL) { in g_concat_kernel_dump() 295 struct bio *cbp; in g_concat_passdown() local 303 if (cbp == NULL) { in g_concat_passdown() 305 g_destroy_bio(cbp); in g_concat_passdown() 332 struct bio *cbp; in g_concat_start() local 393 if (cbp == NULL) { in g_concat_start() 395 g_destroy_bio(cbp); in g_concat_start() 413 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_concat_start() [all …]
|
| /freebsd-14.2/sys/geom/journal/ |
| H A D | g_journal.c | 821 cend = cbp->bio_offset + cbp->bio_length; in g_journal_insert() 886 cbp->bio_data = gj_malloc(cbp->bio_length, in g_journal_insert() 915 cbp->bio_data = gj_realloc(cbp->bio_data, in g_journal_insert() 950 cbp->bio_data = gj_realloc(cbp->bio_data, in g_journal_insert() 980 cbp->bio_data = gj_malloc(cbp->bio_length, in g_journal_insert() 984 cbp->bio_data, cbp->bio_length); in g_journal_insert() 994 pbp = cbp; in g_journal_insert() 1010 (intmax_t)cbp->bio_joffset, cbp->bio_data); in g_journal_insert() 1039 pbp = cbp; in g_journal_optimize() 1065 gj_free(cbp->bio_data, cbp->bio_length); in g_journal_optimize() [all …]
|
| /freebsd-14.2/sys/geom/union/ |
| H A D | g_union.c | 801 struct bio *cbp; in g_union_start() local 826 cbp = g_clone_bio(bp); in g_union_start() 827 if (cbp == NULL) { in g_union_start() 834 switch (cbp->bio_cmd) { in g_union_start() 869 cbp->bio_cmd); in g_union_start() 937 if (cbp == NULL) { in g_union_doio() 947 cbp->bio_caller1 = wip; in g_union_doio() 979 rdlen = cbp->bio_length; in g_union_doio() 996 g_io_request(cbp, cp); in g_union_doio() 1018 firstbp = cbp; in g_union_doio() [all …]
|
| /freebsd-14.2/contrib/nvi/vi/ |
| H A D | vs_line.c | 48 CHAR_T *cbp, *ecbp, cbuf[128]; in vs_line() local 408 *cbp = '\0'; \ in vs_line() 410 cbp = cbuf; \ in vs_line() 421 if (cbp >= ecbp) in vs_line() 423 *cbp++ = TABCH; in vs_line() 426 if (cbp + chlen >= ecbp) in vs_line() 431 *cbp++ = ' '; in vs_line() 436 *cbp++ = ch; in vs_line() 441 *cbp++ = *kp++; in vs_line() 463 *cbp++ = *kp++; in vs_line() [all …]
|
| H A D | v_at.c | 34 CB *cbp; in v_at() local 63 CBNAME(sp, cbp, name); in v_at() 64 if (cbp == NULL) { in v_at() 88 TAILQ_FOREACH_REVERSE(tp, cbp->textq, _texth, q) { in v_at() 89 if (((F_ISSET(cbp, CB_LMODE) || in v_at()
|
| /freebsd-14.2/usr.bin/mkuzip/ |
| H A D | mkuz_blockcache.c | 52 verify_match(int fd, const struct mkuz_blk *cbp, struct mkuz_blkcache_itm *bcep) in verify_match() argument 59 vbuf = malloc(cbp->info.len); in verify_match() 66 rlen = read(fd, vbuf, cbp->info.len); in verify_match() 67 if (rlen < 0 || (unsigned)rlen != cbp->info.len) { in verify_match() 70 rval = (memcmp(cbp->data, vbuf, cbp->info.len) == 0) ? 1 : 0; in verify_match() 72 lseek(fd, cbp->info.offset, SEEK_SET); in verify_match()
|
| /freebsd-14.2/sys/geom/shsec/ |
| H A D | g_shsec.c | 299 struct bio *cbp; in g_shsec_start() local 341 cbp = g_clone_bio(bp); in g_shsec_start() 342 if (cbp == NULL) { in g_shsec_start() 351 cbp->bio_done = g_shsec_done; in g_shsec_start() 378 cp = cbp->bio_caller2; in g_shsec_start() 379 cbp->bio_caller2 = NULL; in g_shsec_start() 380 cbp->bio_to = cp->provider; in g_shsec_start() 382 g_io_request(cbp, cp); in g_shsec_start() 389 if (cbp->bio_data != NULL) { in g_shsec_start() 390 explicit_bzero(cbp->bio_data, cbp->bio_length); in g_shsec_start() [all …]
|
| /freebsd-14.2/sys/geom/mirror/ |
| H A D | g_mirror.c | 1127 struct bio *cbp; in g_mirror_kernel_dump() local 1144 if (cbp == NULL) { in g_mirror_kernel_dump() 1513 struct bio *cbp; in g_mirror_request_prefer() local 1526 if (cbp == NULL) { in g_mirror_request_prefer() 1551 struct bio *cbp; in g_mirror_request_round_robin() local 1561 if (cbp == NULL) { in g_mirror_request_round_robin() 1590 struct bio *cbp; in g_mirror_request_load() local 1614 if (cbp == NULL) { in g_mirror_request_load() 1647 struct bio *cbp; in g_mirror_request_split() local 1673 if (cbp == NULL) { in g_mirror_request_split() [all …]
|