/freebsd/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/sys/geom/vinum/ |
H A D | geom_vinum_raid5.c | 56 struct bio *cbp; in gv_raid5_start() local 181 struct bio *cbp; in gv_raid5_check() local 229 bq->bp = cbp; in gv_raid5_check() 235 if (cbp == NULL) in gv_raid5_check() 245 if (cbp == NULL) in gv_raid5_check() 259 struct bio *cbp; in gv_raid5_rebuild() local 324 bq->bp = cbp; in gv_raid5_rebuild() 514 bq->bp = cbp; in gv_raid5_request() 532 bq->bp = cbp; in gv_raid5_request() 544 bq->bp = cbp; in gv_raid5_request() [all …]
|
H A D | geom_vinum_plex.c | 56 struct bio *cbp; in gv_plex_start() local 107 while (cbp != NULL) { in gv_plex_start() 114 if (cbp->bio_caller2 != NULL && gv_stripe_active(p, cbp)) { in gv_plex_start() 200 struct bio *cbp; in gv_plex_normal_request() local 269 if (cbp == NULL) { in gv_plex_normal_request() 275 cbp->bio_data = addr; in gv_plex_normal_request() 386 cbp = wp->parity; in gv_plex_raid5_done() 387 if (cbp != NULL) { in gv_plex_raid5_done() 516 cbp = wp->parity; in gv_normal_parity() 524 cbp = wp->parity; in gv_normal_parity() [all …]
|
/freebsd/sys/geom/stripe/ |
H A D | g_stripe.c | 305 struct bio *cbp; in g_stripe_start_fast() local 342 cbp = TAILQ_NEXT(cbp, bio_queue); in g_stripe_start_fast() 355 cbp->bio_caller1 = cbp->bio_data; in g_stripe_start_fast() 405 cbp->bio_offset, cbp->bio_length, 0); in g_stripe_start_fast() 419 cbp->bio_data = cbp->bio_caller1; in g_stripe_start_fast() 434 struct bio *cbp; in g_stripe_start_economic() local 494 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_stripe_start_economic() 496 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_stripe_start_economic() 534 struct bio *cbp; in g_stripe_pushdown() local 541 for (cbp = bioq_first(&queue); cbp != NULL; in g_stripe_pushdown() [all …]
|
/freebsd/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/sys/geom/ |
H A D | geom_ccd.c | 508 g_io_request(cbp[0], cbp[0]->bio_from); in g_ccd_start() 509 g_io_request(cbp[1], cbp[1]->bio_from); in g_ccd_start() 520 g_io_request(cbp[pick], cbp[pick]->bio_from); in g_ccd_start() 526 g_io_request(cbp[0], cbp[0]->bio_from); in g_ccd_start() 540 struct bio *cbp; in ccdbuffer() local 643 if (cbp == NULL) in ccdbuffer() 655 cb[0] = cbp; in ccdbuffer() 659 if (cbp == NULL) in ccdbuffer() 668 cb[1] = cbp; in ccdbuffer() 706 g_std_done(cbp); in ccdiodone() [all …]
|
/freebsd/sys/geom/eli/ |
H A D | g_eli_integrity.c | 323 cbp = bp->bio_driver1; in g_eli_auth_write_done() 325 g_destroy_bio(cbp); in g_eli_auth_write_done() 331 cbp = bp->bio_driver1; in g_eli_auth_write_done() 333 cbp->bio_to = cp->provider; in g_eli_auth_write_done() 357 cbp->bio_length = maxphys; in g_eli_auth_write_done() 365 g_io_request(cbp, cp); in g_eli_auth_write_done() 377 struct bio *cbp, *cbp2; in g_eli_auth_read() local 384 cbp = bp->bio_driver1; in g_eli_auth_read() 395 size = cbp->bio_length; in g_eli_auth_read() 401 g_destroy_bio(cbp); in g_eli_auth_read() [all …]
|
H A D | g_eli_privacy.c | 143 struct bio *bp, *cbp; in g_eli_crypto_write_done() local 172 cbp = bp->bio_driver1; in g_eli_crypto_write_done() 178 g_destroy_bio(cbp); in g_eli_crypto_write_done() 183 cbp->bio_data = bp->bio_driver2; in g_eli_crypto_write_done() 188 cbp->bio_flags &= ~BIO_UNMAPPED; in g_eli_crypto_write_done() 191 cbp->bio_to = cp->provider; in g_eli_crypto_write_done() 196 g_io_request(cbp, cp); in g_eli_crypto_write_done() 209 struct bio *cbp; in g_eli_crypto_read() local 233 cbp = bp->bio_driver1; in g_eli_crypto_read() 236 cbp->bio_to = cp->provider; in g_eli_crypto_read() [all …]
|
/freebsd/sys/geom/raid/ |
H A D | tr_raid0.c | 193 struct bio *cbp; in g_raid_tr_iostart_raid0() local 228 cbp = g_clone_bio(bp); in g_raid_tr_iostart_raid0() 229 if (cbp == NULL) in g_raid_tr_iostart_raid0() 232 cbp->bio_length = length; in g_raid_tr_iostart_raid0() 236 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_raid_tr_iostart_raid0() 238 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_raid_tr_iostart_raid0() 241 cbp->bio_data = addr; in g_raid_tr_iostart_raid0() 243 bioq_insert_tail(&queue, cbp); in g_raid_tr_iostart_raid0() 254 sd = cbp->bio_caller1; in g_raid_tr_iostart_raid0() 255 cbp->bio_caller1 = NULL; in g_raid_tr_iostart_raid0() [all …]
|
H A D | tr_raid1e.c | 690 struct bio *cbp; in g_raid_tr_iostart_raid1e_read() local 717 if (cbp == NULL) in g_raid_tr_iostart_raid1e_read() 723 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_raid_tr_iostart_raid1e_read() 725 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_raid_tr_iostart_raid1e_read() 748 g_destroy_bio(cbp); in g_raid_tr_iostart_raid1e_read() 760 struct bio *cbp; in g_raid_tr_iostart_raid1e_write() local 792 if (cbp == NULL) in g_raid_tr_iostart_raid1e_write() 799 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_raid_tr_iostart_raid1e_write() 801 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_raid_tr_iostart_raid1e_write() 884 struct bio *cbp; in g_raid_tr_iodone_raid1e() local [all …]
|
H A D | tr_concat.c | 212 struct bio *cbp; in g_raid_tr_iostart_concat() local 248 cbp = g_clone_bio(bp); in g_raid_tr_iostart_concat() 249 if (cbp == NULL) in g_raid_tr_iostart_concat() 251 cbp->bio_offset = offset; in g_raid_tr_iostart_concat() 256 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_raid_tr_iostart_concat() 258 cbp->bio_ma_n = round_page(cbp->bio_ma_offset + in g_raid_tr_iostart_concat() 261 cbp->bio_data = addr; in g_raid_tr_iostart_concat() 262 cbp->bio_caller1 = sd; in g_raid_tr_iostart_concat() 272 sd = cbp->bio_caller1; in g_raid_tr_iostart_concat() 273 cbp->bio_caller1 = NULL; in g_raid_tr_iostart_concat() [all …]
|
H A D | tr_raid1.c | 526 struct bio *cbp; in g_raid_tr_iostart_raid1_read() local 532 cbp = g_clone_bio(bp); in g_raid_tr_iostart_raid1_read() 533 if (cbp == NULL) { in g_raid_tr_iostart_raid1_read() 547 struct bio *cbp; in g_raid_tr_iostart_raid1_write() local 583 cbp = g_clone_bio(bp); in g_raid_tr_iostart_raid1_write() 584 if (cbp == NULL) in g_raid_tr_iostart_raid1_write() 586 cbp->bio_caller1 = sd; in g_raid_tr_iostart_raid1_write() 597 g_destroy_bio(cbp); in g_raid_tr_iostart_raid1_write() 655 struct bio *cbp; in g_raid_tr_iodone_raid1() local 816 cbp->bio_offset, cbp->bio_length, pbp, cbp); in g_raid_tr_iodone_raid1() [all …]
|
H A D | tr_raid5.c | 214 struct bio *cbp; in g_raid_tr_iostart_raid5_read() local 275 cbp = g_clone_bio(bp); in g_raid_tr_iostart_raid5_read() 276 if (cbp == NULL) in g_raid_tr_iostart_raid5_read() 278 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid5_read() 279 cbp->bio_data = addr; in g_raid_tr_iostart_raid5_read() 280 cbp->bio_length = length; in g_raid_tr_iostart_raid5_read() 282 bioq_insert_tail(&queue, cbp); in g_raid_tr_iostart_raid5_read() 327 sd = cbp->bio_caller1; in g_raid_tr_iostart_raid5_read() 328 cbp->bio_caller1 = NULL; in g_raid_tr_iostart_raid5_read() 329 g_raid_subdisk_iostart(sd, cbp); in g_raid_tr_iostart_raid5_read() [all …]
|
/freebsd/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/sys/dev/fxp/ |
H A D | if_fxp.c | 1405 struct fxp_cb_tx *cbp; in fxp_encap() local 1589 cbp = txp->tx_cb; in fxp_encap() 2347 cbp->cb_status = 0; in fxp_init_body() 2415 cbp->fc_delay_lsb = 0; in fxp_init_body() 2418 cbp->tx_fc_dis = 0; in fxp_init_body() 2421 cbp->fc_filter = 0; in fxp_init_body() 2422 cbp->pri_fc_loc = 1; in fxp_init_body() 2434 cbp->tx_fc_dis = 0; in fxp_init_body() 2437 cbp->tx_fc_dis = 1; in fxp_init_body() 2463 cbp->gamla_rx = 1; in fxp_init_body() [all …]
|
/freebsd/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/sys/geom/concat/ |
H A D | g_concat.c | 236 struct bio *cbp; in g_concat_kernel_dump() local 254 cbp = g_clone_bio(bp); in g_concat_kernel_dump() 255 if (cbp == NULL) { in g_concat_kernel_dump() 294 struct bio *cbp; in g_concat_passdown() local 302 if (cbp == NULL) { in g_concat_passdown() 304 g_destroy_bio(cbp); in g_concat_passdown() 331 struct bio *cbp; in g_concat_start() local 392 if (cbp == NULL) { in g_concat_start() 394 g_destroy_bio(cbp); in g_concat_start() 412 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; in g_concat_start() [all …]
|
/freebsd/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/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/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/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/sys/geom/shsec/ |
H A D | g_shsec.c | 298 struct bio *cbp; in g_shsec_start() local 340 cbp = g_clone_bio(bp); in g_shsec_start() 341 if (cbp == NULL) { in g_shsec_start() 350 cbp->bio_done = g_shsec_done; in g_shsec_start() 377 cp = cbp->bio_caller2; in g_shsec_start() 378 cbp->bio_caller2 = NULL; in g_shsec_start() 379 cbp->bio_to = cp->provider; in g_shsec_start() 381 g_io_request(cbp, cp); in g_shsec_start() 388 if (cbp->bio_data != NULL) { in g_shsec_start() 389 explicit_bzero(cbp->bio_data, cbp->bio_length); in g_shsec_start() [all …]
|
/freebsd/sys/geom/mirror/ |
H A D | g_mirror.c | 1126 struct bio *cbp; in g_mirror_kernel_dump() local 1143 if (cbp == NULL) { in g_mirror_kernel_dump() 1512 struct bio *cbp; in g_mirror_request_prefer() local 1525 if (cbp == NULL) { in g_mirror_request_prefer() 1550 struct bio *cbp; in g_mirror_request_round_robin() local 1560 if (cbp == NULL) { in g_mirror_request_round_robin() 1589 struct bio *cbp; in g_mirror_request_load() local 1613 if (cbp == NULL) { in g_mirror_request_load() 1646 struct bio *cbp; in g_mirror_request_split() local 1672 if (cbp == NULL) { in g_mirror_request_split() [all …]
|