Searched refs:bp (Results 176 - 200 of 910) sorted by relevance

1234567891011>>

/freebsd-11.0-release/contrib/tcpdump/
H A Dprint-msnlb.c50 msnlb_print(netdissect_options *ndo, const u_char *bp) argument
54 hb = (struct msnlb_heartbeat_pkt *)bp;
/freebsd-11.0-release/lib/libc/db/hash/
H A Dhash_page.c98 u_int16_t *bp, n, off; local
100 bp = (u_int16_t *)p;
103 n = bp[0];
105 off = OFFSET(bp) - key->size;
107 bp[++n] = off;
112 bp[++n] = off;
115 bp[0] = n;
116 bp[n + 1] = off - ((n + 3) * sizeof(u_int16_t));
117 bp[n + 2] = off;
128 u_int16_t *bp, newof local
400 u_int16_t *bp, *sop; local
522 u_int16_t *bp; local
921 short *bp, oaddr; local
[all...]
/freebsd-11.0-release/bin/rcp/
H A Dutil.c130 allocbuf(BUF *bp, int fd, int blksize) argument
142 if (bp->cnt >= size)
143 return (bp);
144 if ((bp->buf = realloc(bp->buf, size)) == NULL) {
145 bp->cnt = 0;
149 bp->cnt = size;
150 return (bp);
/freebsd-11.0-release/sys/cam/scsi/
H A Dscsi_pt.c192 ptstrategy(struct bio *bp) argument
197 periph = (struct cam_periph *)bp->bio_dev->si_drv1;
198 bp->bio_resid = bp->bio_bcount;
200 biofinish(bp, NULL, ENXIO);
211 biofinish(bp, NULL, ENXIO);
218 bioq_insert_tail(&softc->bio_queue, bp);
426 struct bio *bp; local
435 bp = bioq_first(&softc->bio_queue);
436 if (bp
490 struct bio *bp; local
[all...]
/freebsd-11.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dbplist.h45 typedef int bplist_itor_t(void *arg, const blkptr_t *bp, dmu_tx_t *tx);
49 void bplist_append(bplist_t *bpl, const blkptr_t *bp);
/freebsd-11.0-release/sys/dev/nvme/
H A Dnvme_ns_cmd.c52 nvme_ns_cmd_read_bio(struct nvme_namespace *ns, struct bio *bp, argument
59 req = nvme_allocate_request_bio(bp, cb_fn, cb_arg);
64 lba = bp->bio_offset / nvme_ns_get_sector_size(ns);
65 lba_count = bp->bio_bcount / nvme_ns_get_sector_size(ns);
93 nvme_ns_cmd_write_bio(struct nvme_namespace *ns, struct bio *bp, argument
100 req = nvme_allocate_request_bio(bp, cb_fn, cb_arg);
104 lba = bp->bio_offset / nvme_ns_get_sector_size(ns);
105 lba_count = bp->bio_bcount / nvme_ns_get_sector_size(ns);
/freebsd-11.0-release/sys/geom/sched/
H A Dg_sched.h56 #define G_SCHED_LOGREQ(bp, ...) do { \
61 g_print_bio(bp); \
/freebsd-11.0-release/sys/geom/zero/
H A Dg_zero.c76 g_zero_start(struct bio *bp) argument
80 switch (bp->bio_cmd) {
82 if (g_zero_clear && (bp->bio_flags & BIO_UNMAPPED) == 0)
83 memset(bp->bio_data, g_zero_byte, bp->bio_length);
87 bp->bio_completed = bp->bio_length;
95 g_io_deliver(bp, error);
/freebsd-11.0-release/crypto/openssl/crypto/lhash/
H A Dlh_stats.c143 BIO *bp; local
145 bp = BIO_new(BIO_s_file());
146 if (bp == NULL)
148 BIO_set_fp(bp, fp, BIO_NOCLOSE);
149 lh_stats_bio(lh, bp);
150 BIO_free(bp);
156 BIO *bp; local
158 bp = BIO_new(BIO_s_file());
159 if (bp == NULL)
161 BIO_set_fp(bp, f
169 BIO *bp; local
[all...]
/freebsd-11.0-release/sys/sys/
H A Dbio.h141 void biodone(struct bio *bp);
142 void biofinish(struct bio *bp, struct devstat *stat, int error);
143 int biowait(struct bio *bp, const char *wchan);
145 void bioq_disksort(struct bio_queue_head *ap, struct bio *bp);
150 void bioq_insert_head(struct bio_queue_head *head, struct bio *bp);
151 void bioq_insert_tail(struct bio_queue_head *head, struct bio *bp);
152 void bioq_remove(struct bio_queue_head *head, struct bio *bp);
154 void bio_taskqueue(struct bio *bp, bio_task_t *fund, void *arg);
/freebsd-11.0-release/sys/fs/smbfs/
H A Dsmbfs_io.c307 smbfs_doio(struct vnode *vp, struct buf *bp, struct ucred *cr, struct thread *td) argument
325 if (bp->b_iocmd == BIO_READ) {
326 io.iov_len = uiop->uio_resid = bp->b_bcount;
327 io.iov_base = bp->b_data;
331 uiop->uio_offset = ((off_t)bp->b_blkno) * DEV_BSIZE;
337 int nread = bp->b_bcount - left;
339 bzero((char *)bp->b_data + nread, left);
347 bp->b_error = error;
348 bp->b_ioflags |= BIO_ERROR;
351 if (((bp
[all...]
/freebsd-11.0-release/sys/fs/nandfs/
H A Dnandfs_subr.c66 void nandfs_bdflush(struct bufobj *bo, struct buf *bp);
95 nandfs_bdflush(bo, bp)
97 struct buf *bp;
105 vp = bp->b_vp;
109 if (NANDFS_IS_INDIRECT(bp))
424 struct buf *bp; local
445 error = nandfs_bread(dat_node, ldatblknr, NOCRED, 0, &bp);
449 brelse(bp);
455 entry = ((struct nandfs_dat_entry *) bp->b_data) + entry_in_block;
457 entry, bp
484 struct buf *bp; local
511 struct buf *bp; local
700 struct buf *bp; local
789 struct buf *bp; local
918 _nandfs_dirty_buf(struct buf *bp, int dirty_meta, int force) argument
975 nandfs_dirty_buf(struct buf *bp, int force) argument
982 nandfs_dirty_buf_meta(struct buf *bp, int force) argument
989 nandfs_undirty_buf_fsdev(struct nandfs_device *nffsdev, struct buf *bp) argument
1007 nandfs_undirty_buf(struct buf *bp) argument
1017 nandfs_vblk_set(struct buf *bp, nandfs_daddr_t blocknr) argument
1025 nandfs_vblk_get(struct buf *bp) argument
1033 nandfs_buf_set(struct buf *bp, uint32_t bits) argument
1043 nandfs_buf_clear(struct buf *bp, uint32_t bits) argument
1053 nandfs_buf_check(struct buf *bp, uint32_t bits) argument
[all...]
H A Dnandfs_buffer.c50 struct buf *bp; local
57 bp = geteblk(size, flags);
58 if (bp == NULL)
61 return (bp);
/freebsd-11.0-release/sys/geom/cache/
H A Dg_cache.c171 g_cache_deliver(struct g_cache_softc *sc, struct bio *bp, argument
177 KASSERT(OFF2BNO(bp->bio_offset, sc) <= dp->d_bno, ("wrong entry"));
178 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >=
182 off = MAX(bp->bio_offset, off1);
183 len = MIN(bp->bio_offset + bp->bio_length, off1 + sc->sc_bsize) - off;
185 if (bp->bio_error == 0)
186 bp->bio_error = error;
187 if (bp
211 g_cache_done(struct bio *bp) argument
258 g_cache_read(struct g_cache_softc *sc, struct bio *bp) argument
312 g_cache_invalidate(struct g_cache_softc *sc, struct bio *bp) argument
340 g_cache_start(struct bio *bp) argument
[all...]
/freebsd-11.0-release/sys/geom/gate/
H A Dg_gate.c96 struct bio *bp; local
117 while ((bp = bioq_takefirst(&sc->sc_inqueue)) != NULL) {
119 bioq_insert_tail(&queue, bp);
121 while ((bp = bioq_takefirst(&sc->sc_outqueue)) != NULL) {
123 bioq_insert_tail(&queue, bp);
127 while ((bp = bioq_takefirst(&queue)) != NULL) {
128 G_GATE_LOGREQ(1, bp, "Request canceled.");
129 g_io_deliver(bp, ENXIO);
177 g_gate_queue_io(struct bio *bp) argument
181 sc = bp
340 struct bio *bp, *bp2; local
705 struct bio *bp; local
[all...]
/freebsd-11.0-release/contrib/tcsh/
H A Dvms.termcap.c43 * in bp (which must be an array of 1024 chars). Returns 1 if
47 tgetent(char *bp, char *name) argument
51 capab = bp;
52 strcpy(bp,
77 capab = bp;
92 while (fgets(bp, 1024, fp) != NULL) {
94 if ((*bp == '#') || (*bp == '\n')) continue;
98 while (*(cp = &bp[strlen(bp)
[all...]
/freebsd-11.0-release/sys/dev/ida/
H A Dida_disk.c87 idad_strategy(struct bio *bp) argument
91 drv = bp->bio_disk->d_drv1;
93 bp->bio_error = EINVAL;
100 if (drv->flags & DRV_WRITEPROT && (bp->bio_cmd == BIO_WRITE)) {
101 bp->bio_error = EROFS;
105 bp->bio_driver1 = drv;
106 ida_submit_buf(drv->controller, bp);
110 bp->bio_flags |= BIO_ERROR;
115 bp->bio_resid = bp
144 idad_intr(struct bio *bp) argument
[all...]
/freebsd-11.0-release/sbin/ipfw/
H A Dipv6.c74 print_unreach6_code(struct buf_pr *bp, uint16_t code) argument
79 bprintf(bp, "unreach6 %s", s);
81 bprintf(bp, "unreach6 %u", code);
88 print_ip6(struct buf_pr *bp, ipfw_insn_ip6 *cmd, char const *s) argument
95 bprintf(bp, "%s%s ", cmd->o.len & F_NOT ? " not": "", s);
98 bprintf(bp, "me6");
102 bprintf(bp, " ip6");
120 bprintf(bp, "%s", he->h_name);
122 bprintf(bp, "any");
125 bprintf(bp, "Erro
168 print_icmp6types(struct buf_pr *bp, ipfw_insn_u32 *cmd) argument
184 print_flow6id(struct buf_pr *bp, ipfw_insn_u32 *cmd) argument
268 print_ext6hdr(struct buf_pr *bp, ipfw_insn *cmd ) argument
[all...]
/freebsd-11.0-release/sys/geom/journal/
H A Dg_journal.h60 #define GJ_LOGREQ(lvl, bp, ...) do { \
68 g_print_bio(bp); \
173 #define GJQ_INSERT_HEAD(head, bp) do { \
174 (bp)->bio_next = (head); \
175 (head) = (bp); \
177 #define GJQ_INSERT_AFTER(head, bp, pbp) do { \
179 GJQ_INSERT_HEAD(head, bp); \
181 (bp)->bio_next = (pbp)->bio_next; \
182 (pbp)->bio_next = (bp); \
186 #define GJQ_REMOVE(head, bp) d
[all...]
/freebsd-11.0-release/sys/geom/raid/
H A Dtr_raid0.c188 g_raid_tr_iostart_raid0(struct g_raid_tr_object *tr, struct bio *bp) argument
201 g_raid_iodone(bp, EIO);
204 if (bp->bio_cmd == BIO_FLUSH) {
205 g_raid_tr_flush_common(tr, bp);
208 if ((bp->bio_flags & BIO_UNMAPPED) != 0)
211 addr = bp->bio_data;
215 nstripe = bp->bio_offset / strip_size;
217 start = bp->bio_offset % strip_size;
223 remain = bp->bio_length;
228 cbp = g_clone_bio(bp);
312 g_raid_tr_iodone_raid0(struct g_raid_tr_object *tr, struct g_raid_subdisk *sd,struct bio *bp) argument
[all...]
/freebsd-11.0-release/sys/vm/
H A Dswap_pager.c397 static void swp_pager_async_iodone(struct buf *bp);
510 * Number of in-transit swap bp operations. Don't
515 * The nsw_cluster_max is constrained by the bp->b_pages[]
753 swp_pager_strategy(struct buf *bp) argument
759 if (bp->b_blkno >= sp->sw_first && bp->b_blkno < sp->sw_end) {
763 bp->b_data = unmapped_buf;
764 bp->b_offset = 0;
766 pmap_qenter((vm_offset_t)bp->b_data,
767 &bp
1102 struct buf *bp; local
1309 struct buf *bp; local
1432 swp_pager_async_iodone(struct buf *bp) argument
2454 struct buf *bp; local
2473 swapgeom_strategy(struct buf *bp, struct swdevt *sp) argument
2642 swapdev_strategy(struct buf *bp, struct swdevt *sp) argument
[all...]
/freebsd-11.0-release/libexec/bootpd/bootpgw/
H A Dbootpgw.c161 struct bootp *bp;
192 bp = (struct bootp *) pktbuf;
478 switch (bp->bp_op) {
523 struct bootp *bp = (struct bootp *) pktbuf;
534 secs = ntohs(bp->bp_secs);
539 hops = bp->bp_hops;
545 bp->bp_hops = hops;
554 if (bp->bp_giaddr.s_addr == 0) {
571 bp->bp_giaddr = sip->sin_addr;
584 bp
159 struct bootp *bp; local
519 struct bootp *bp = (struct bootp *) pktbuf; local
610 struct bootp *bp = (struct bootp *) pktbuf; local
[all...]
/freebsd-11.0-release/sys/fs/fuse/
H A Dfuse_io.h63 int fuse_io_strategy(struct vnode *vp, struct buf *bp);
/freebsd-11.0-release/sys/geom/
H A Dgeom_vfs.h38 void g_vfs_strategy(struct bufobj *bo, struct buf *bp);
/freebsd-11.0-release/sys/geom/uzip/
H A Dg_uzip_wrkthr.c48 struct bio *bp; local
62 bp = bioq_takefirst(&sc->bio_queue);
63 if (!bp) {
69 sc->uzip_do(sc, bp);

Completed in 306 milliseconds

1234567891011>>