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

123

/freebsd-current/contrib/nvi/common/
H A Dcut.c66 CB *cbp; local
106 namecb: CBNAME(sp, cbp, name);
113 cbp = &sp->gp->dcb_store;
120 if (cbp == NULL) {
121 CALLOC_RET(sp, cbp, 1, sizeof(CB));
122 cbp->name = name;
123 TAILQ_INIT(cbp->textq);
124 SLIST_INSERT_HEAD(sp->gp->cutq, cbp, q);
126 text_lfree(cbp->textq);
127 cbp
188 CB *cbp, *del_cbp = NULL, *pre_cbp = NULL; local
220 cut_line(SCR *sp, recno_t lno, size_t fcno, size_t clen, CB *cbp) argument
261 CB *cbp; local
[all...]
H A Dput.c32 put(SCR *sp, CB *cbp, CHAR_T *namep, MARK *cp, MARK *rp, int append) argument
42 if (cbp == NULL) {
44 cbp = sp->gp->dcbp;
45 if (cbp == NULL) {
52 CBNAME(sp, cbp, name);
53 if (cbp == NULL) {
60 tp = TAILQ_FIRST(cbp->textq);
92 if (F_ISSET(cbp, CB_LMODE)) {
180 ltp = TAILQ_LAST(cbp->textq, _texth);
H A Dcut.h66 #define CBNAME(sp, cbp, nch) do { \
69 SLIST_FOREACH(cbp, sp->gp->cutq, q) \
70 if (cbp->name == L__name) \
/freebsd-current/contrib/nvi/ex/
H A Dex_display.c84 CB *cbp; local
92 SLIST_FOREACH(cbp, sp->gp->cutq, q) {
93 if (isdigit(cbp->name))
95 if (!TAILQ_EMPTY(cbp->textq))
96 db(sp, cbp, NULL);
101 SLIST_FOREACH(cbp, sp->gp->cutq, q) {
102 if (!isdigit(cbp->name))
104 if (!TAILQ_EMPTY(cbp->textq))
105 db(sp, cbp, NULL);
110 if ((cbp
120 db(SCR *sp, CB *cbp, const char *name) argument
[all...]
H A Dex_at.c36 CB *cbp; local
60 CBNAME(sp, cbp, name);
61 if (cbp == NULL) {
102 TAILQ_FOREACH_REVERSE(tp, cbp->textq, _texth, q)
112 TAILQ_FOREACH_REVERSE(tp, cbp->textq, _texth, q) {
/freebsd-current/sys/geom/vinum/
H A Dgeom_vinum_raid5.c56 struct bio *cbp; local
116 cbp = bioq_takefirst(p->bqueue);
117 while (cbp != NULL) {
118 if (cbp->bio_cflags & GV_BIO_MALLOC)
119 g_free(cbp->bio_data);
120 gv_drive_done(cbp->bio_caller1);
121 g_destroy_bio(cbp);
122 cbp = bioq_takefirst(p->bqueue);
181 struct bio *cbp; local
221 cbp
259 struct bio *cbp; local
347 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
331 struct bio *cbp, *pbp; local
507 struct bio *cbp, *pbp; local
782 struct bio *bp, *cbp; local
[all...]
/freebsd-current/contrib/nvi/vi/
H A Dv_at.c34 CB *cbp; local
63 CBNAME(sp, cbp, name);
64 if (cbp == NULL) {
88 TAILQ_FOREACH_REVERSE(tp, cbp->textq, _texth, q) {
89 if (((F_ISSET(cbp, CB_LMODE) ||
H A Dvs_line.c48 CHAR_T *cbp, *ecbp, cbuf[128]; local
338 ecbp = (cbp = cbuf) + SIZE(cbuf) - 1;
408 *cbp = '\0'; \
409 (void)gp->scr_waddstr(sp, cbuf, cbp - cbuf); \
410 cbp = cbuf; \
421 if (cbp >= ecbp)
423 *cbp++ = TABCH;
426 if (cbp + chlen >= ecbp)
431 *cbp++ = ' ';
436 *cbp
[all...]
/freebsd-current/sys/geom/stripe/
H A Dg_stripe.c305 struct bio *cbp; local
315 cbp = g_clone_bio(bp);
316 if (cbp == NULL) {
320 TAILQ_INSERT_TAIL(&queue, cbp, bio_queue);
325 cbp->bio_done = g_stripe_done;
326 cbp->bio_offset = offset;
327 cbp->bio_data = addr;
328 cbp->bio_caller1 = NULL;
329 cbp->bio_length = length;
330 cbp
434 struct bio *cbp; local
534 struct bio *cbp; local
[all...]
/freebsd-current/sys/geom/
H A Dgeom_ccd.c458 struct bio *cbp[2]; local
486 err = ccdbuffer(cbp, cs, bp, bn, addr, bcount);
495 rcount = cbp[0]->bio_length;
507 if (cbp[0]->bio_cmd != BIO_READ) {
508 g_io_request(cbp[0], cbp[0]->bio_from);
509 g_io_request(cbp[1], cbp[1]->bio_from);
520 g_io_request(cbp[pick], cbp[pic
540 struct bio *cbp; local
677 ccdiodone(struct bio *cbp) argument
[all...]
/freebsd-current/sys/geom/raid/
H A Dtr_concat.c212 struct bio *cbp; local
248 cbp = g_clone_bio(bp);
249 if (cbp == NULL)
251 cbp->bio_offset = offset;
252 cbp->bio_length = length;
255 cbp->bio_ma_offset += (uintptr_t)addr;
256 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
257 cbp->bio_ma_offset %= PAGE_SIZE;
258 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.c690 struct bio *cbp; local
716 cbp = g_clone_bio(bp);
717 if (cbp == NULL)
719 cbp->bio_offset = offset + start;
720 cbp->bio_length = length;
722 cbp->bio_ma_offset += (uintptr_t)addr;
723 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
724 cbp->bio_ma_offset %= PAGE_SIZE;
725 cbp
760 struct bio *cbp; local
884 struct bio *cbp; local
[all...]
H A Dtr_raid5.c214 struct bio *cbp; local
275 cbp = g_clone_bio(bp);
276 if (cbp == NULL)
278 cbp->bio_offset = offset + start;
279 cbp->bio_data = addr;
280 cbp->bio_length = length;
281 cbp->bio_caller1 = &vol->v_subdisks[no];
282 bioq_insert_tail(&queue, cbp);
326 while ((cbp = bioq_takefirst(&queue)) != NULL) {
327 sd = cbp
[all...]
H A Dtr_raid1.c526 struct bio *cbp; local
532 cbp = g_clone_bio(bp);
533 if (cbp == NULL) {
538 g_raid_subdisk_iostart(sd, cbp);
547 struct bio *cbp; local
583 cbp = g_clone_bio(bp);
584 if (cbp == NULL)
586 cbp->bio_caller1 = sd;
587 bioq_insert_tail(&queue, cbp);
589 while ((cbp
655 struct bio *cbp; local
[all...]
/freebsd-current/usr.bin/mkuzip/
H A Dmkuz_blockcache.c52 verify_match(int fd, const struct mkuz_blk *cbp, struct mkuz_blkcache_itm *bcep) argument
59 vbuf = malloc(cbp->info.len);
66 rlen = read(fd, vbuf, cbp->info.len);
67 if (rlen < 0 || (unsigned)rlen != cbp->info.len) {
70 rval = (memcmp(cbp->data, vbuf, cbp->info.len) == 0) ? 1 : 0;
72 lseek(fd, cbp->info.offset, SEEK_SET);
/freebsd-current/sys/geom/eli/
H A Dg_eli_integrity.c292 struct bio *bp, *cbp, *cbp2; local
323 cbp = bp->bio_driver1;
325 g_destroy_bio(cbp);
331 cbp = bp->bio_driver1;
333 cbp->bio_to = cp->provider;
334 cbp->bio_done = g_eli_write_done;
341 cbp->bio_length = cp->provider->sectorsize * nsec;
342 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector;
343 cbp->bio_data = bp->bio_driver2;
350 if (cbp
377 struct bio *cbp, *cbp2; local
[all...]
H A Dg_eli_privacy.c143 struct bio *bp, *cbp; local
172 cbp = bp->bio_driver1;
178 g_destroy_bio(cbp);
183 cbp->bio_data = bp->bio_driver2;
188 cbp->bio_flags &= ~BIO_UNMAPPED;
189 cbp->bio_done = g_eli_write_done;
191 cbp->bio_to = cp->provider;
192 G_ELI_LOGREQ(2, cbp, "Sending request.");
196 g_io_request(cbp, cp);
209 struct bio *cbp; local
[all...]
/freebsd-current/lib/libc/tests/sys/
H A Dcpuset_test.c280 struct jail_test_cb_params cbp; local
285 memset(&cbp.info, '\0', sizeof(cbp.info));
287 skip_ltncpu(ncpu, &cbp.mask);
290 &cbp.rootid));
292 ATF_REQUIRE_EQ(0, cpuset(&cbp.setid));
295 -1, &cbp.setid));
297 if (cbp.rootid == 0)
298 cbp.rootid = 1;
302 (*prologue)(&cbp);
342 jail_attach_mutate_pro(struct jail_test_cb_params *cbp) argument
358 jail_attach_newbase_epi(struct jail_test_cb_params *cbp) argument
411 jail_attach_jset_epi(struct jail_test_cb_params *cbp) argument
438 jail_attach_plain_pro(struct jail_test_cb_params *cbp) argument
[all...]
/freebsd-current/sys/geom/union/
H A Dg_union.c801 struct bio *cbp; local
826 cbp = g_clone_bio(bp);
827 if (cbp == NULL) {
831 cbp->bio_offset = bp->bio_offset + sc->sc_offset;
832 cbp->bio_done = g_std_done;
834 switch (cbp->bio_cmd) {
836 G_UNION_LOGREQ(cbp, "Delete request received.");
840 G_UNION_LOGREQ(cbp, "Getattr request received.");
842 if (strcmp(cbp->bio_attribute, "GEOM::kerneldump") != 0)
848 G_UNION_LOGREQ(cbp, "Flus
884 struct bio *cbp, *firstbp; local
[all...]
/freebsd-current/sys/geom/journal/
H A Dg_journal.c810 struct bio *nbp, *cbp, *pbp; local
819 GJQ_FOREACH(*head, cbp) {
820 cstart = cbp->bio_offset;
821 cend = cbp->bio_offset + cbp->bio_length;
852 nbp->bio_next = cbp;
877 g_journal_stats_bytes_skipped += cbp->bio_length;
878 cbp->bio_offset = nstart;
879 cbp->bio_joffset = joffset;
880 cbp
1026 struct bio *cbp, *pbp; local
1097 struct bio *cbp; local
[all...]
/freebsd-current/sys/geom/concat/
H A Dg_concat.c236 struct bio *cbp; local
254 cbp = g_clone_bio(bp);
255 if (cbp == NULL) {
259 cbp->bio_done = g_std_done;
260 g_io_request(cbp, disk->d_consumer);
294 struct bio *cbp; local
301 cbp = g_clone_bio(bp);
302 if (cbp == NULL) {
303 while ((cbp = bioq_takefirst(&queue)) != NULL)
304 g_destroy_bio(cbp);
331 struct bio *cbp; local
[all...]
/freebsd-current/sys/geom/raid3/
H A Dg_raid3.c945 #define G_RAID3_NEXT_BIO(cbp) (cbp)->bio_caller1
964 g_raid3_remove_bio(struct bio *cbp) argument
968 pbp = cbp->bio_parent;
969 if (G_RAID3_HEAD_BIO(pbp) == cbp)
970 G_RAID3_HEAD_BIO(pbp) = G_RAID3_NEXT_BIO(cbp);
973 if (G_RAID3_NEXT_BIO(bp) == cbp) {
974 G_RAID3_NEXT_BIO(bp) = G_RAID3_NEXT_BIO(cbp);
979 G_RAID3_NEXT_BIO(cbp) = NULL;
1004 g_raid3_destroy_bio(struct g_raid3_softc *sc, struct bio *cbp) argument
1036 struct bio *bp, *cbp; local
1073 struct bio *bp, *cbp, *tmpbp; local
1143 struct bio *xbp, *fbp, *cbp; local
1303 g_raid3_regular_request(struct bio *cbp) argument
1416 struct bio *cbp; local
1802 struct bio *cbp, *tmpbp; local
[all...]
/freebsd-current/sys/dev/fxp/
H A Dif_fxp.c1405 struct fxp_cb_tx *cbp; local
1589 cbp = txp->tx_cb;
1605 cbp->tbd[i + 1].tb_addr = htole32(segs[i].ds_addr);
1606 cbp->tbd[i + 1].tb_size = htole32(segs[i].ds_len);
1608 cbp->tbd[i].tb_addr = htole32(segs[i].ds_addr);
1609 cbp->tbd[i].tb_size = htole32(segs[i].ds_len);
1614 cbp->tbd_number = 0xFF;
1615 cbp->tbd[nseg].tb_size |= htole32(0x8000);
1617 cbp->tbd_number = nseg;
1620 cbp
2272 struct fxp_cb_config *cbp; local
3091 struct fxp_cb_ucode *cbp; local
[all...]

Completed in 327 milliseconds

123