Searched refs:cbp (Results 1 - 25 of 52) sorted by relevance

123

/freebsd-9.3-release/contrib/nvi/common/
H A Dcut.c73 CB *cbp; local
113 namecb: CBNAME(sp, cbp, name);
120 cbp = &sp->gp->dcb_store;
127 if (cbp == NULL) {
128 CALLOC_RET(sp, cbp, CB *, 1, sizeof(CB));
129 cbp->name = name;
130 CIRCLEQ_INIT(&cbp->textq);
131 LIST_INSERT_HEAD(&sp->gp->cutq, cbp, q);
133 text_lfree(&cbp->textq);
134 cbp
197 CB *cbp, *del_cbp; local
290 CB *cbp; local
[all...]
H A Dcut.h65 #define CBNAME(sp, cbp, nch) { \
68 for (cbp = sp->gp->cutq.lh_first; \
69 cbp != NULL; cbp = cbp->q.le_next) \
70 if (cbp->name == L__name) \
H A Dput.c35 put(sp, cbp, namep, cp, rp, append)
37 CB *cbp;
49 if (cbp == NULL)
51 cbp = sp->gp->dcbp;
52 if (cbp == NULL) {
59 CBNAME(sp, cbp, name);
60 if (cbp == NULL) {
66 tp = cbp->textq.cqh_first;
87 for (; tp != (void *)&cbp->textq;
98 if (F_ISSET(cbp, CB_LMOD
[all...]
/freebsd-9.3-release/contrib/nvi/ex/
H A Dex_display.c86 CB *cbp; local
94 for (cbp = sp->gp->cutq.lh_first; cbp != NULL; cbp = cbp->q.le_next) {
95 if (isdigit(cbp->name))
97 if (cbp->textq.cqh_first != (void *)&cbp->textq)
98 db(sp, cbp, NULL);
103 for (cbp
[all...]
H A Dex_at.c41 CB *cbp; local
65 CBNAME(sp, cbp, name);
66 if (cbp == NULL) {
107 for (len = 0, tp = cbp->textq.cqh_last;
108 tp != (void *)&cbp->textq; tp = tp->q.cqe_prev)
117 for (p = ecp->cp + len, tp = cbp->textq.cqh_last;
118 tp != (void *)&cbp->textq; tp = tp->q.cqe_prev) {
/freebsd-9.3-release/sys/geom/vinum/
H A Dgeom_vinum_raid5.c56 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 Dgeom_vinum_plex.c56 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-9.3-release/contrib/nvi/vi/
H A Dv_at.c39 CB *cbp; local
65 CBNAME(sp, cbp, name);
66 if (cbp == NULL) {
90 for (tp = cbp->textq.cqh_last;
91 tp != (void *)&cbp->textq; tp = tp->q.cqe_prev)
92 if ((F_ISSET(cbp, CB_LMODE) ||
93 tp->q.cqe_next != (void *)&cbp->textq) &&
H A Dvs_line.c58 char *p, *cbp, *ecbp, cbuf[128]; local
339 ecbp = (cbp = cbuf) + sizeof(cbuf) - 1;
406 *cbp = '\0'; \
407 (void)gp->scr_addstr(sp, cbuf, cbp - cbuf); \
408 cbp = cbuf; \
419 if (cbp >= ecbp)
421 *cbp++ = TABCH;
424 if (cbp + chlen >= ecbp)
427 *cbp++ = *kp++;
445 if (cbp
[all...]
/freebsd-9.3-release/sys/geom/stripe/
H A Dg_stripe.c312 struct bio *cbp; local
320 cbp = g_clone_bio(bp);
321 if (cbp == NULL) {
325 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue);
330 cbp->bio_done = g_stripe_done;
331 cbp->bio_offset = offset;
332 cbp->bio_data = addr;
333 cbp->bio_caller1 = NULL;
334 cbp->bio_length = length;
335 cbp
439 struct bio *cbp; local
525 struct bio *cbp; local
[all...]
/freebsd-9.3-release/sys/geom/
H A Dgeom_ccd.c437 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-9.3-release/sys/geom/raid/
H A Dtr_concat.c213 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 Dtr_raid0.c193 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 Dtr_raid1e.c698 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 Dtr_raid5.c215 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 Dtr_raid1.c535 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-9.3-release/sys/geom/eli/
H A Dg_eli_integrity.c259 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 Dg_eli_privacy.c123 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-9.3-release/sys/geom/concat/
H A Dg_concat.c213 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);
246 struct bio *cbp; local
251 cbp = g_clone_bio(bp);
252 if (cbp == NULL) {
253 for (cbp = bioq_first(&queue); cbp !
285 struct bio *cbp; local
[all...]
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_util.c879 zprop_print_headers(zprop_get_cbdata_t *cbp, zfs_type_t type) argument
881 zprop_list_t *pl = cbp->cb_proplist;
886 cbp->cb_first = B_FALSE;
887 if (cbp->cb_scripted)
893 cbp->cb_colwidths[GET_COL_NAME] = strlen(dgettext(TEXT_DOMAIN, "NAME"));
894 cbp->cb_colwidths[GET_COL_PROPERTY] = strlen(dgettext(TEXT_DOMAIN,
896 cbp->cb_colwidths[GET_COL_VALUE] = strlen(dgettext(TEXT_DOMAIN,
898 cbp->cb_colwidths[GET_COL_RECVD] = strlen(dgettext(TEXT_DOMAIN,
900 cbp->cb_colwidths[GET_COL_SOURCE] = strlen(dgettext(TEXT_DOMAIN,
904 assert(cbp
1003 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-9.3-release/sys/geom/journal/
H A Dg_journal.c802 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-9.3-release/sys/geom/raid3/
H A Dg_raid3.c926 #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-9.3-release/sys/dev/fxp/
H A Dif_fxp.c1407 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-9.3-release/sys/geom/shsec/
H A Dg_shsec.c303 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-9.3-release/sys/geom/mirror/
H A Dg_mirror.c1001 struct bio *cbp; local
1017 cbp = g_clone_bio(bp);
1018 if (cbp == NULL) {
1022 cbp->bio_done = g_std_done;
1023 g_io_request(cbp, disk->d_consumer);
1034 struct bio *cbp; local
1040 cbp = g_clone_bio(bp);
1041 if (cbp == NULL) {
1042 for (cbp = bioq_first(&queue); cbp !
1382 struct bio *cbp; local
1420 struct bio *cbp; local
1459 struct bio *cbp; local
1516 struct bio *cbp; local
1610 struct bio *cbp; local
[all...]

Completed in 170 milliseconds

123