/freebsd-10.1-release/contrib/nvi/common/ |
H A D | cut.c | 74 CB *cbp; local 114 namecb: CBNAME(sp, cbp, name); 121 cbp = &sp->gp->dcb_store; 128 if (cbp == NULL) { 129 CALLOC_RET(sp, cbp, CB *, 1, sizeof(CB)); 130 cbp->name = name; 131 TAILQ_INIT(cbp->textq); 132 SLIST_INSERT_HEAD(sp->gp->cutq, cbp, q); 134 text_lfree(cbp->textq); 135 cbp 196 CB *cbp, *del_cbp = NULL, *pre_cbp = NULL; local 228 cut_line( SCR *sp, recno_t lno, size_t fcno, size_t clen, CB *cbp) argument 274 CB *cbp; local [all...] |
H A D | put.c | 38 CB *cbp, 52 if (cbp == NULL) 54 cbp = sp->gp->dcbp; 55 if (cbp == NULL) { 62 CBNAME(sp, cbp, name); 63 if (cbp == NULL) { 69 tp = TAILQ_FIRST(cbp->textq); 101 if (F_ISSET(cbp, CB_LMODE)) { 189 ltp = TAILQ_LAST(cbp->textq, _texth); 36 put( SCR *sp, CB *cbp, CHAR_T *namep, MARK *cp, MARK *rp, int append) argument
|
H A D | cut.h | 68 #define CBNAME(sp, cbp, nch) { \ 71 SLIST_FOREACH(cbp, sp->gp->cutq, q) \ 72 if (cbp->name == L__name) \
|
/freebsd-10.1-release/contrib/nvi/ex/ |
H A D | ex_display.c | 88 CB *cbp; local 96 SLIST_FOREACH(cbp, sp->gp->cutq, q) { 97 if (isdigit(cbp->name)) 99 if (!TAILQ_EMPTY(cbp->textq)) 100 db(sp, cbp, NULL); 105 SLIST_FOREACH(cbp, sp->gp->cutq, q) { 106 if (!isdigit(cbp->name)) 108 if (!TAILQ_EMPTY(cbp->textq)) 109 db(sp, cbp, NULL); 114 if ((cbp 124 db(SCR *sp, CB *cbp, const char *name) argument [all...] |
H A D | ex_at.c | 40 CB *cbp; local 64 CBNAME(sp, cbp, name); 65 if (cbp == NULL) { 106 TAILQ_FOREACH_REVERSE(tp, cbp->textq, _texth, q) 116 TAILQ_FOREACH_REVERSE(tp, cbp->textq, _texth, q) {
|
/freebsd-10.1-release/sys/geom/vinum/ |
H A D | geom_vinum_raid5.c | 56 struct bio *cbp; local 114 cbp = bioq_takefirst(p->bqueue); 115 while (cbp != NULL) { 116 if (cbp->bio_cflags & GV_BIO_MALLOC) 117 g_free(cbp->bio_data); 118 g_destroy_bio(cbp); 119 cbp = bioq_takefirst(p->bqueue); 178 struct bio *cbp; local 218 cbp = gv_raid5_clone_bio(bp, s, wp, NULL, 1); 219 if (cbp 256 struct bio *cbp; local 345 struct bio *cbp; local 643 struct bio *cbp; local [all...] |
H A D | geom_vinum_plex.c | 56 struct bio *cbp; local 104 * cbp->bio_caller1. 106 cbp = bioq_takefirst(p->bqueue); 107 while (cbp != NULL) { 111 * another sub-request. We abuse cbp->bio_caller2 to mark 114 if (cbp->bio_caller2 != NULL && gv_stripe_active(p, cbp)) { 116 cbp->bio_pflags |= GV_BIO_ONHOLD; 117 bioq_disksort(p->wqueue, cbp); 119 s = cbp 200 struct bio *cbp; local 330 struct bio *cbp, *pbp; local 507 struct bio *cbp, *pbp; local 785 struct bio *bp, *cbp; local [all...] |
/freebsd-10.1-release/contrib/nvi/vi/ |
H A D | v_at.c | 38 CB *cbp; local 67 CBNAME(sp, cbp, name); 68 if (cbp == NULL) { 92 TAILQ_FOREACH_REVERSE(tp, cbp->textq, _texth, q) { 93 if (((F_ISSET(cbp, CB_LMODE) ||
|
H A D | vs_line.c | 52 CHAR_T *cbp, *ecbp, cbuf[128]; local 340 ecbp = (cbp = cbuf) + SIZE(cbuf) - 1; 410 *cbp = '\0'; \ 411 (void)gp->scr_waddstr(sp, cbuf, cbp - cbuf); \ 412 cbp = cbuf; \ 423 if (cbp >= ecbp) 425 *cbp++ = TABCH; 428 if (cbp + chlen >= ecbp) 433 *cbp++ = ' '; 438 *cbp [all...] |
/freebsd-10.1-release/sys/geom/stripe/ |
H A D | g_stripe.c | 315 struct bio *cbp; local 323 cbp = g_clone_bio(bp); 324 if (cbp == NULL) { 328 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); 333 cbp->bio_done = g_stripe_done; 334 cbp->bio_offset = offset; 335 cbp->bio_data = addr; 336 cbp->bio_caller1 = NULL; 337 cbp->bio_length = length; 338 cbp 442 struct bio *cbp; local 542 struct bio *cbp; local [all...] |
/freebsd-10.1-release/sys/geom/ |
H A D | geom_ccd.c | 437 struct bio *cbp[2]; local 465 err = ccdbuffer(cbp, cs, bp, bn, addr, bcount); 474 rcount = cbp[0]->bio_length; 486 if (cbp[0]->bio_cmd != BIO_READ) { 487 g_io_request(cbp[0], cbp[0]->bio_from); 488 g_io_request(cbp[1], cbp[1]->bio_from); 499 g_io_request(cbp[pick], cbp[pic 519 struct bio *cbp; local 656 ccdiodone(struct bio *cbp) argument [all...] |
/freebsd-10.1-release/sys/geom/raid/ |
H A D | tr_concat.c | 213 struct bio *cbp; local 247 cbp = g_clone_bio(bp); 248 if (cbp == NULL) 250 cbp->bio_offset = offset; 251 cbp->bio_length = length; 254 cbp->bio_ma_offset += (uintptr_t)addr; 255 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; 256 cbp->bio_ma_offset %= PAGE_SIZE; 257 cbp [all...] |
H A D | tr_raid0.c | 193 struct bio *cbp; local 228 cbp = g_clone_bio(bp); 229 if (cbp == NULL) 231 cbp->bio_offset = offset + start; 232 cbp->bio_length = length; 235 cbp->bio_ma_offset += (uintptr_t)addr; 236 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; 237 cbp->bio_ma_offset %= PAGE_SIZE; 238 cbp [all...] |
H A D | tr_raid1e.c | 698 struct bio *cbp; local 724 cbp = g_clone_bio(bp); 725 if (cbp == NULL) 727 cbp->bio_offset = offset + start; 728 cbp->bio_length = length; 730 cbp->bio_ma_offset += (uintptr_t)addr; 731 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE; 732 cbp->bio_ma_offset %= PAGE_SIZE; 733 cbp 768 struct bio *cbp; local 891 struct bio *cbp; local [all...] |
H A D | tr_raid5.c | 215 struct bio *cbp; local 276 cbp = g_clone_bio(bp); 277 if (cbp == NULL) 279 cbp->bio_offset = offset + start; 280 cbp->bio_data = addr; 281 cbp->bio_length = length; 282 cbp->bio_caller1 = &vol->v_subdisks[no]; 283 bioq_insert_tail(&queue, cbp); 327 while ((cbp = bioq_takefirst(&queue)) != NULL) { 328 sd = cbp [all...] |
H A D | tr_raid1.c | 535 struct bio *cbp; local 541 cbp = g_clone_bio(bp); 542 if (cbp == NULL) { 547 g_raid_subdisk_iostart(sd, cbp); 556 struct bio *cbp; local 592 cbp = g_clone_bio(bp); 593 if (cbp == NULL) 595 cbp->bio_caller1 = sd; 596 bioq_insert_tail(&queue, cbp); 598 while ((cbp 663 struct bio *cbp; local [all...] |
/freebsd-10.1-release/sys/geom/eli/ |
H A D | g_eli_integrity.c | 259 struct bio *bp, *cbp, *cbp2; local 289 cbp = bp->bio_driver1; 291 g_destroy_bio(cbp); 297 cbp = bp->bio_driver1; 299 cbp->bio_to = cp->provider; 300 cbp->bio_done = g_eli_write_done; 307 cbp->bio_length = cp->provider->sectorsize * nsec; 308 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; 309 cbp->bio_data = bp->bio_driver2; 316 if (cbp 343 struct bio *cbp, *cbp2; local [all...] |
H A D | g_eli_privacy.c | 123 struct bio *bp, *cbp; local 150 cbp = bp->bio_driver1; 157 g_destroy_bio(cbp); 162 cbp->bio_data = bp->bio_driver2; 163 cbp->bio_done = g_eli_write_done; 165 cbp->bio_to = cp->provider; 166 G_ELI_LOGREQ(2, cbp, "Sending request."); 170 g_io_request(cbp, cp); 183 struct bio *cbp; local 207 cbp [all...] |
/freebsd-10.1-release/sys/geom/concat/ |
H A D | g_concat.c | 213 struct bio *cbp; local 230 cbp = g_clone_bio(bp); 231 if (cbp == NULL) { 235 cbp->bio_done = g_std_done; 236 g_io_request(cbp, disk->d_consumer); 267 struct bio *cbp; local 272 cbp = g_clone_bio(bp); 273 if (cbp == NULL) { 274 while ((cbp = bioq_takefirst(&queue)) != NULL) 275 g_destroy_bio(cbp); 302 struct bio *cbp; local [all...] |
/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_util.c | 881 zprop_print_headers(zprop_get_cbdata_t *cbp, zfs_type_t type) argument 883 zprop_list_t *pl = cbp->cb_proplist; 888 cbp->cb_first = B_FALSE; 889 if (cbp->cb_scripted) 895 cbp->cb_colwidths[GET_COL_NAME] = strlen(dgettext(TEXT_DOMAIN, "NAME")); 896 cbp->cb_colwidths[GET_COL_PROPERTY] = strlen(dgettext(TEXT_DOMAIN, 898 cbp->cb_colwidths[GET_COL_VALUE] = strlen(dgettext(TEXT_DOMAIN, 900 cbp->cb_colwidths[GET_COL_RECVD] = strlen(dgettext(TEXT_DOMAIN, 902 cbp->cb_colwidths[GET_COL_SOURCE] = strlen(dgettext(TEXT_DOMAIN, 906 assert(cbp 1005 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...] |
/freebsd-10.1-release/sys/geom/journal/ |
H A D | g_journal.c | 802 struct bio *nbp, *cbp, *pbp; local 811 GJQ_FOREACH(*head, cbp) { 812 cstart = cbp->bio_offset; 813 cend = cbp->bio_offset + cbp->bio_length; 844 nbp->bio_next = cbp; 869 g_journal_stats_bytes_skipped += cbp->bio_length; 870 cbp->bio_offset = nstart; 871 cbp->bio_joffset = joffset; 872 cbp 1018 struct bio *cbp, *pbp; local 1089 struct bio *cbp; local [all...] |
/freebsd-10.1-release/sys/geom/raid3/ |
H A D | g_raid3.c | 926 #define G_RAID3_NEXT_BIO(cbp) (cbp)->bio_caller1 945 g_raid3_remove_bio(struct bio *cbp) argument 949 pbp = cbp->bio_parent; 950 if (G_RAID3_HEAD_BIO(pbp) == cbp) 951 G_RAID3_HEAD_BIO(pbp) = G_RAID3_NEXT_BIO(cbp); 954 if (G_RAID3_NEXT_BIO(bp) == cbp) { 955 G_RAID3_NEXT_BIO(bp) = G_RAID3_NEXT_BIO(cbp); 960 G_RAID3_NEXT_BIO(cbp) = NULL; 985 g_raid3_destroy_bio(struct g_raid3_softc *sc, struct bio *cbp) argument 1017 struct bio *bp, *cbp; local 1054 struct bio *bp, *cbp, *tmpbp; local 1124 struct bio *xbp, *fbp, *cbp; local 1284 g_raid3_regular_request(struct bio *cbp) argument 1397 struct bio *cbp; local 1782 struct bio *cbp, *tmpbp; local [all...] |
/freebsd-10.1-release/sys/dev/fxp/ |
H A D | if_fxp.c | 1407 struct fxp_cb_tx *cbp; local 1592 cbp = txp->tx_cb; 1608 cbp->tbd[i + 1].tb_addr = htole32(segs[i].ds_addr); 1609 cbp->tbd[i + 1].tb_size = htole32(segs[i].ds_len); 1611 cbp->tbd[i].tb_addr = htole32(segs[i].ds_addr); 1612 cbp->tbd[i].tb_size = htole32(segs[i].ds_len); 1617 cbp->tbd_number = 0xFF; 1618 cbp->tbd[nseg].tb_size |= htole32(0x8000); 1620 cbp->tbd_number = nseg; 1623 cbp 2274 struct fxp_cb_config *cbp; local 3092 struct fxp_cb_ucode *cbp; local [all...] |
/freebsd-10.1-release/sys/geom/shsec/ |
H A D | g_shsec.c | 303 struct bio *cbp; local 344 cbp = g_clone_bio(bp); 345 if (cbp == NULL) { 349 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue); 354 cbp->bio_done = g_shsec_done; 355 cbp->bio_data = uma_zalloc(g_shsec_zone, M_NOWAIT); 356 if (cbp->bio_data == NULL) { 361 cbp->bio_caller2 = sc->sc_disks[no]; 364 dst = (uint32_t *)cbp->bio_data; 367 g_shsec_xor2((uint32_t *)cbp [all...] |
/freebsd-10.1-release/sys/geom/mirror/ |
H A D | g_mirror.c | 1034 struct bio *cbp; local 1050 cbp = g_clone_bio(bp); 1051 if (cbp == NULL) { 1055 cbp->bio_done = g_std_done; 1056 g_io_request(cbp, disk->d_consumer); 1067 struct bio *cbp; local 1073 cbp = g_clone_bio(bp); 1074 if (cbp == NULL) { 1075 while ((cbp = bioq_takefirst(&queue)) != NULL) 1076 g_destroy_bio(cbp); 1411 struct bio *cbp; local 1449 struct bio *cbp; local 1488 struct bio *cbp; local 1545 struct bio *cbp; local 1635 struct bio *cbp; local [all...] |