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

123

/freebsd-12-stable/contrib/nvi/common/
H A Dcut.c74 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 Dput.c38 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 Dcut.h68 #define CBNAME(sp, cbp, nch) { \
71 SLIST_FOREACH(cbp, sp->gp->cutq, q) \
72 if (cbp->name == L__name) \
/freebsd-12-stable/contrib/nvi/ex/
H A Dex_display.c88 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 Dex_at.c40 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-12-stable/sys/geom/vinum/
H A Dgeom_vinum_raid5.c58 struct bio *cbp; local
118 cbp = bioq_takefirst(p->bqueue);
119 while (cbp != NULL) {
120 if (cbp->bio_cflags & GV_BIO_MALLOC)
121 g_free(cbp->bio_data);
122 gv_drive_done(cbp->bio_caller1);
123 g_destroy_bio(cbp);
124 cbp = bioq_takefirst(p->bqueue);
183 struct bio *cbp; local
223 cbp
261 struct bio *cbp; local
350 struct bio *cbp; local
648 struct bio *cbp; local
[all...]
H A Dgeom_vinum_plex.c58 struct bio *cbp; local
106 * cbp->bio_caller1.
108 cbp = bioq_takefirst(p->bqueue);
109 while (cbp != NULL) {
113 * another sub-request. We abuse cbp->bio_caller2 to mark
116 if (cbp->bio_caller2 != NULL && gv_stripe_active(p, cbp)) {
118 cbp->bio_pflags |= GV_BIO_ONHOLD;
119 bioq_disksort(p->wqueue, cbp);
121 s = cbp
202 struct bio *cbp; local
333 struct bio *cbp, *pbp; local
510 struct bio *cbp, *pbp; local
788 struct bio *bp, *cbp; local
[all...]
/freebsd-12-stable/contrib/nvi/vi/
H A Dv_at.c38 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 Dvs_line.c52 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-12-stable/sys/geom/stripe/
H A Dg_stripe.c313 struct bio *cbp; local
321 cbp = g_clone_bio(bp);
322 if (cbp == NULL) {
326 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue);
331 cbp->bio_done = g_stripe_done;
332 cbp->bio_offset = offset;
333 cbp->bio_data = addr;
334 cbp->bio_caller1 = NULL;
335 cbp->bio_length = length;
336 cbp
440 struct bio *cbp; local
540 struct bio *cbp; local
[all...]
/freebsd-12-stable/sys/geom/
H A Dgeom_ccd.c467 struct bio *cbp[2]; local
495 err = ccdbuffer(cbp, cs, bp, bn, addr, bcount);
504 rcount = cbp[0]->bio_length;
516 if (cbp[0]->bio_cmd != BIO_READ) {
517 g_io_request(cbp[0], cbp[0]->bio_from);
518 g_io_request(cbp[1], cbp[1]->bio_from);
529 g_io_request(cbp[pick], cbp[pic
549 struct bio *cbp; local
686 ccdiodone(struct bio *cbp) argument
[all...]
/freebsd-12-stable/sys/geom/raid/
H A Dtr_concat.c215 struct bio *cbp; local
249 cbp = g_clone_bio(bp);
250 if (cbp == NULL)
252 cbp->bio_offset = offset;
253 cbp->bio_length = length;
256 cbp->bio_ma_offset += (uintptr_t)addr;
257 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
258 cbp->bio_ma_offset %= PAGE_SIZE;
259 cbp
[all...]
H A Dtr_raid0.c195 struct bio *cbp; local
230 cbp = g_clone_bio(bp);
231 if (cbp == NULL)
233 cbp->bio_offset = offset + start;
234 cbp->bio_length = length;
237 cbp->bio_ma_offset += (uintptr_t)addr;
238 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
239 cbp->bio_ma_offset %= PAGE_SIZE;
240 cbp
[all...]
H A Dtr_raid1e.c692 struct bio *cbp; local
718 cbp = g_clone_bio(bp);
719 if (cbp == NULL)
721 cbp->bio_offset = offset + start;
722 cbp->bio_length = length;
724 cbp->bio_ma_offset += (uintptr_t)addr;
725 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
726 cbp->bio_ma_offset %= PAGE_SIZE;
727 cbp
762 struct bio *cbp; local
885 struct bio *cbp; local
[all...]
H A Dtr_raid5.c217 struct bio *cbp; local
278 cbp = g_clone_bio(bp);
279 if (cbp == NULL)
281 cbp->bio_offset = offset + start;
282 cbp->bio_data = addr;
283 cbp->bio_length = length;
284 cbp->bio_caller1 = &vol->v_subdisks[no];
285 bioq_insert_tail(&queue, cbp);
329 while ((cbp = bioq_takefirst(&queue)) != NULL) {
330 sd = cbp
[all...]
H A Dtr_raid1.c529 struct bio *cbp; local
535 cbp = g_clone_bio(bp);
536 if (cbp == NULL) {
541 g_raid_subdisk_iostart(sd, cbp);
550 struct bio *cbp; local
586 cbp = g_clone_bio(bp);
587 if (cbp == NULL)
589 cbp->bio_caller1 = sd;
590 bioq_insert_tail(&queue, cbp);
592 while ((cbp
657 struct bio *cbp; local
[all...]
/freebsd-12-stable/lib/libc/tests/sys/
H A Dcpuset_test.c269 struct jail_test_cb_params cbp; local
274 memset(&cbp.info, '\0', sizeof(cbp.info));
276 skip_ltncpu(ncpu, &cbp.mask);
279 &cbp.rootid));
281 ATF_REQUIRE_EQ(0, cpuset(&cbp.setid));
284 -1, &cbp.setid));
286 if (cbp.rootid == 0)
287 cbp.rootid = 1;
291 (*prologue)(&cbp);
331 jail_attach_mutate_pro(struct jail_test_cb_params *cbp) argument
347 jail_attach_newbase_epi(struct jail_test_cb_params *cbp) argument
409 jail_attach_jset_epi(struct jail_test_cb_params *cbp) argument
436 jail_attach_plain_pro(struct jail_test_cb_params *cbp) argument
[all...]
/freebsd-12-stable/usr.bin/mkuzip/
H A Dmkuz_blockcache.c54 verify_match(int fd, const struct mkuz_blk *cbp, struct mkuz_blkcache_itm *bcep) argument
61 vbuf = malloc(cbp->info.len);
68 rlen = read(fd, vbuf, cbp->info.len);
69 if (rlen < 0 || (unsigned)rlen != cbp->info.len) {
72 rval = (memcmp(cbp->data, vbuf, cbp->info.len) == 0) ? 1 : 0;
74 lseek(fd, cbp->info.offset, SEEK_SET);
/freebsd-12-stable/sys/geom/eli/
H A Dg_eli_integrity.c260 struct bio *bp, *cbp, *cbp2; local
290 cbp = bp->bio_driver1;
292 g_destroy_bio(cbp);
298 cbp = bp->bio_driver1;
300 cbp->bio_to = cp->provider;
301 cbp->bio_done = g_eli_write_done;
308 cbp->bio_length = cp->provider->sectorsize * nsec;
309 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector;
310 cbp->bio_data = bp->bio_driver2;
317 if (cbp
344 struct bio *cbp, *cbp2; local
[all...]
H A Dg_eli_privacy.c126 struct bio *bp, *cbp; local
153 cbp = bp->bio_driver1;
160 g_destroy_bio(cbp);
165 cbp->bio_data = bp->bio_driver2;
166 cbp->bio_done = g_eli_write_done;
168 cbp->bio_to = cp->provider;
169 G_ELI_LOGREQ(2, cbp, "Sending request.");
173 g_io_request(cbp, cp);
186 struct bio *cbp; local
210 cbp
[all...]
/freebsd-12-stable/sys/geom/concat/
H A Dg_concat.c230 struct bio *cbp; local
249 cbp = g_clone_bio(bp);
250 if (cbp == NULL) {
254 cbp->bio_done = g_std_done;
255 g_io_request(cbp, disk->d_consumer);
286 struct bio *cbp; local
291 cbp = g_clone_bio(bp);
292 if (cbp == NULL) {
293 while ((cbp = bioq_takefirst(&queue)) != NULL)
294 g_destroy_bio(cbp);
321 struct bio *cbp; local
[all...]
/freebsd-12-stable/sys/geom/journal/
H A Dg_journal.c804 struct bio *nbp, *cbp, *pbp; local
813 GJQ_FOREACH(*head, cbp) {
814 cstart = cbp->bio_offset;
815 cend = cbp->bio_offset + cbp->bio_length;
846 nbp->bio_next = cbp;
871 g_journal_stats_bytes_skipped += cbp->bio_length;
872 cbp->bio_offset = nstart;
873 cbp->bio_joffset = joffset;
874 cbp
1020 struct bio *cbp, *pbp; local
1091 struct bio *cbp; local
[all...]
/freebsd-12-stable/sys/geom/raid3/
H A Dg_raid3.c918 #define G_RAID3_NEXT_BIO(cbp) (cbp)->bio_caller1
937 g_raid3_remove_bio(struct bio *cbp) argument
941 pbp = cbp->bio_parent;
942 if (G_RAID3_HEAD_BIO(pbp) == cbp)
943 G_RAID3_HEAD_BIO(pbp) = G_RAID3_NEXT_BIO(cbp);
946 if (G_RAID3_NEXT_BIO(bp) == cbp) {
947 G_RAID3_NEXT_BIO(bp) = G_RAID3_NEXT_BIO(cbp);
952 G_RAID3_NEXT_BIO(cbp) = NULL;
977 g_raid3_destroy_bio(struct g_raid3_softc *sc, struct bio *cbp) argument
1009 struct bio *bp, *cbp; local
1046 struct bio *bp, *cbp, *tmpbp; local
1116 struct bio *xbp, *fbp, *cbp; local
1276 g_raid3_regular_request(struct bio *cbp) argument
1389 struct bio *cbp; local
1774 struct bio *cbp, *tmpbp; local
[all...]
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_util.c913 zprop_print_headers(zprop_get_cbdata_t *cbp, zfs_type_t type) argument
915 zprop_list_t *pl = cbp->cb_proplist;
920 cbp->cb_first = B_FALSE;
921 if (cbp->cb_scripted)
927 cbp->cb_colwidths[GET_COL_NAME] = strlen(dgettext(TEXT_DOMAIN, "NAME"));
928 cbp->cb_colwidths[GET_COL_PROPERTY] = strlen(dgettext(TEXT_DOMAIN,
930 cbp->cb_colwidths[GET_COL_VALUE] = strlen(dgettext(TEXT_DOMAIN,
932 cbp->cb_colwidths[GET_COL_RECVD] = strlen(dgettext(TEXT_DOMAIN,
934 cbp->cb_colwidths[GET_COL_SOURCE] = strlen(dgettext(TEXT_DOMAIN,
938 assert(cbp
1037 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-12-stable/sys/dev/fxp/
H A Dif_fxp.c1414 struct fxp_cb_tx *cbp; local
1599 cbp = txp->tx_cb;
1615 cbp->tbd[i + 1].tb_addr = htole32(segs[i].ds_addr);
1616 cbp->tbd[i + 1].tb_size = htole32(segs[i].ds_len);
1618 cbp->tbd[i].tb_addr = htole32(segs[i].ds_addr);
1619 cbp->tbd[i].tb_size = htole32(segs[i].ds_len);
1624 cbp->tbd_number = 0xFF;
1625 cbp->tbd[nseg].tb_size |= htole32(0x8000);
1627 cbp->tbd_number = nseg;
1630 cbp
2282 struct fxp_cb_config *cbp; local
3091 struct fxp_cb_ucode *cbp; local
[all...]

Completed in 301 milliseconds

123