Searched refs:bp (Results 126 - 150 of 910) sorted by relevance

1234567891011>>

/freebsd-11.0-release/bin/ls/
H A Dutil.c103 char *buf = alloca(slen + 1), *bp = buf; local
109 *bp++ = '?';
116 *bp++ = '?';
121 *bp++ = '?';
127 *bp++ = (unsigned char)s[i];
131 *bp = '\0';
189 char *buf = alloca(slen * 4 + 1), *bp = buf; local
197 *bp++ = (unsigned char)s[i];
205 *bp ++ = '\\';
206 *bp
[all...]
/freebsd-11.0-release/sys/fs/nandfs/
H A Dnandfs_bmap.c95 struct buf *bp)
110 nandfs_buf_set(bp, NANDFS_VBLK_ASSIGNED);
111 nandfs_vblk_set(bp, vblk);
123 nandfs_bmap_dirty_blocks(struct nandfs_node *node, struct buf *bp, int force) argument
127 error = bmap_dirty_meta(node, bp->b_lblkno, force);
130 __func__, bp);
152 nandfs_bmap_update_block(struct nandfs_node *node, struct buf *bp, argument
158 lblk = bp->b_lblkno;
159 nandfs_vblk_set(bp, blknr);
161 DPRINTF(BMAP, ("%s: node: %p ino: %#jx bp
94 nandfs_bmap_insert_block(struct nandfs_node *node, nandfs_lbn_t lblk, struct buf *bp) argument
177 nandfs_bmap_update_dat(struct nandfs_node *node, nandfs_daddr_t oldblk, struct buf *bp) argument
[all...]
H A Dnandfs_sufile.c56 #define SU_USAGE_OFF(bp, offset) \
57 ((struct nandfs_segment_usage *)((bp)->b_data + offset))
83 struct buf *bp_header, *bp; local
107 bp = NULL;
119 &bp);
122 &bp);
126 if (bp)
127 brelse(bp);
131 su_usage = SU_USAGE_OFF(bp, offset);
134 bp
217 struct buf *bp; local
244 struct buf *bp; local
281 struct buf *bp_header, *bp; local
343 struct buf *bp; local
374 struct buf *bp; local
437 struct buf *bp; local
508 struct buf *bp; local
[all...]
H A Dnandfs_dir.c65 struct buf *bp; local
69 bp = NULL;
71 error = nandfs_bread(dir_node, inode_blks - 1, NOCRED, 0, &bp);
73 brelse(bp);
77 pos = bp->b_data;
97 brelse(bp);
99 bp = NULL;
104 /* If no bp found create new */
105 if (!bp) {
106 error = nandfs_bcreate(dir_node, inode_blks, NOCRED, 0, &bp);
156 struct buf *bp; local
241 struct buf *bp; local
265 struct buf *bp; local
[all...]
/freebsd-11.0-release/contrib/one-true-awk/
H A Dlex.c106 char *bp = buf; local
116 *bp++ = c;
119 if (bp-buf >= sz)
120 if (!adjbuf(&buf, &sz, bp-buf+2, 100, &bp, "gettok"))
123 *bp++ = c;
125 *bp = 0;
130 *bp = 0;
136 if (bp-buf >= sz)
137 if (!adjbuf(&buf, &sz, bp
360 char *s, *bp; local
509 char *bp; local
[all...]
/freebsd-11.0-release/contrib/sendmail/libsm/
H A Dt-qic.c56 char *obp, *bp; local
63 bp = str2prt(line_in);
69 fprintf(stderr, "in: %s\n", bp);
70 bp = str2prt(line_back);
71 fprintf(stderr, "out:%s\n", bp);
77 fprintf(stderr, "%s -> ", bp);
78 bp = str2prt(obp);
79 fprintf(stderr, "%s\n", bp);
167 char *bp; local
169 bp
194 char *bp; local
223 char *bp; local
[all...]
/freebsd-11.0-release/sys/geom/cache/
H A Dg_cache.h52 #define G_CACHE_LOGREQ(bp, ...) do { \
57 g_print_bio(bp); \
106 #define G_CACHE_NEXT_BIO1(bp) (bp)->bio_driver1
107 #define G_CACHE_NEXT_BIO2(bp) (bp)->bio_driver2
108 #define G_CACHE_DESC1(bp) (bp)->bio_caller1
109 #define G_CACHE_DESC2(bp) (bp)
[all...]
/freebsd-11.0-release/contrib/nvi/ex/
H A Dex_join.c41 CHAR_T *bp, *tbp = NULL; local
55 GET_SPACE_RETW(sp, bp, blen, 256);
83 * tbp - bp is the length of the new line.
86 ADD_SPACE_RETW(sp, bp, blen, tlen);
87 tbp = bp + clen;
149 sp->cno = (tbp - bp) - (1 + extra);
152 sp->cno = (tbp - bp) - len - (1 + extra);
162 if (!first && db_set(sp, from, bp, tbp - bp)) {
163 err: FREE_SPACEW(sp, bp, ble
[all...]
H A Dex_abbrev.c66 if (!inword(cmdp->argv[0]->bp[cmdp->argv[0]->len - 1])) {
71 for (p = cmdp->argv[0]->bp; *p != '\0'; ++p)
78 for (p = cmdp->argv[0]->bp,
86 if (seq_set(sp, NULL, 0, cmdp->argv[0]->bp, cmdp->argv[0]->len,
87 cmdp->argv[1]->bp, cmdp->argv[1]->len, SEQ_ABBREV, SEQ_USERDEF))
107 seq_delete(sp, ap->bp, ap->len, SEQ_ABBREV)) {
108 msgq_wstr(sp, M_ERR, ap->bp,
H A Dex_cd.c73 INT2CHAR(sp, cmdp->argv[0]->bp, cmdp->argv[0]->len + 1,
93 (ap = cmdp->argv[0])->bp[0] == '/' ||
94 (ap->len == 1 && ap->bp[0] == '.') ||
95 (ap->len >= 2 && ap->bp[0] == '.' && ap->bp[1] == '.' &&
96 (ap->bp[2] == '/' || ap->bp[2] == '\0')))
/freebsd-11.0-release/usr.bin/mkuzip/
H A Dmkuz_blockcache.c98 mkuz_blkcache_regblock(int fd, const struct mkuz_blk *bp) argument
105 assert((unsigned)lseek(fd, 0, SEEK_CUR) == bp->info.offset);
107 h = digest_fold(bp->info.digest);
112 if (bcep->hit.len != bp->info.len)
114 if (memcmp(bp->info.digest, bcep->hit.digest,
115 sizeof(bp->info.digest)) == 0) {
120 rval = verify_match(fd, bp, bcep);
125 I2J(bp->info.offset), I2J(bp->info.len));
146 bcep->hit = bp
[all...]
/freebsd-11.0-release/sys/dev/altera/sdcard/
H A Daltera_sdcard_io.c294 altera_sdcard_io_start_internal(struct altera_sdcard_softc *sc, struct bio *bp) argument
297 switch (bp->bio_cmd) {
299 altera_sdcard_write_cmd_arg(sc, bp->bio_pblkno *
305 altera_sdcard_write_rxtx_buffer(sc, bp->bio_data,
306 bp->bio_bcount);
307 altera_sdcard_write_cmd_arg(sc, bp->bio_pblkno *
314 bp->bio_cmd);
319 altera_sdcard_io_start(struct altera_sdcard_softc *sc, struct bio *bp) argument
331 KASSERT(bp->bio_bcount == ALTERA_SDCARD_SECTORSIZE,
333 altera_sdcard_io_start_internal(sc, bp);
346 struct bio *bp; local
[all...]
/freebsd-11.0-release/sys/ufs/ufs/
H A Dufs_bmap.c115 struct buf *bp; local
197 for (bp = NULL, ++ap; --num; ++ap) {
211 if (bp)
212 bqrelse(bp);
214 bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0, 0);
215 if ((bp->b_flags & B_CACHE) == 0) {
220 bp->b_blkno = blkptrtodb(ump, daddr);
221 bp->b_iocmd = BIO_READ;
222 bp->b_flags &= ~B_INVAL;
223 bp
[all...]
/freebsd-11.0-release/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_sys.c643 bridge_port_getinfo_conf(struct ifbreq *k_info, struct bridge_port *bp) argument
645 bp->state = state2snmp_st(k_info->ifbr_state);
646 bp->priority = k_info->ifbr_priority;
659 bp->admin_path_cost = k_info->ifbr_path_cost;
661 bp->admin_path_cost = 0;
663 bp->path_cost = k_info->ifbr_path_cost;
666 bp->enable = dot1dStpPortEnable_enabled;
668 bp->enable = dot1dStpPortEnable_disabled;
672 bp->span_enable = begemotBridgeBaseSpanEnabled_enabled;
674 bp
711 bridge_port_getinfo_opstp(struct ifbpstpreq *bp_stp, struct bridge_port *bp) argument
726 bridge_port_clearinfo_opstp(struct bridge_port *bp) argument
743 bridge_port_set_priority(const char *bif_name, struct bridge_port *bp, int32_t priority) argument
771 bridge_port_set_stp_enable(const char *bif_name, struct bridge_port *bp, uint32_t enable) argument
813 bridge_port_set_path_cost(const char *bif_name, struct bridge_port *bp, int32_t path_cost) argument
846 bridge_port_set_admin_ptp(const char *bif_name, struct bridge_port *bp, uint32_t admin_ptp) argument
897 bridge_port_set_admin_edge(const char *bif_name, struct bridge_port *bp, uint32_t enable) argument
941 bridge_port_set_private(const char *bif_name, struct bridge_port *bp, uint32_t priv_set) argument
987 bridge_port_addm(struct bridge_port *bp, const char *b_name) argument
1020 bridge_port_delm(struct bridge_port *bp, const char *b_name) argument
1179 struct bridge_port *bp; local
1229 struct bridge_port *bp, *bp_next; local
[all...]
/freebsd-11.0-release/contrib/tcpdump/
H A Dprint-mpls.c59 mpls_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
66 p = bp;
178 ND_DEFAULTPRINT(p, length - (p - bp));
185 ip_print(ndo, p, length - (p - bp));
189 ip6_print(ndo, p, length - (p - bp));
193 isoclns_print(ndo, p, length - (p - bp), length - (p - bp));
/freebsd-11.0-release/contrib/compiler-rt/lib/asan/
H A Dasan_stack.h30 // Get the stack trace with the given pc and bp.
32 // The bp may refer to the current frame or to the caller's frame.
35 uptr pc, uptr bp, void *context,
38 stack->Unwind(max_depth, pc, bp, context, 0, 0, fast);
51 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, fast);
54 stack->Unwind(max_depth, pc, bp, context, 0, 0, false);
82 #define GET_STACK_TRACE_FATAL(pc, bp) \
84 GetStackTraceWithPcBpAndContext(&stack, kStackTraceMax, pc, bp, 0, \
90 (sig).pc, (sig).bp, (sig).context, \
34 GetStackTraceWithPcBpAndContext(BufferedStackTrace *stack, uptr max_depth, uptr pc, uptr bp, void *context, bool fast) argument
/freebsd-11.0-release/sys/dev/firewire/
H A Dfwmem.c326 struct bio *bp; local
328 bp = (struct bio *)xfer->sc;
329 bp->bio_error = xfer->resp;
331 if (bp->bio_error != 0) {
333 printf("%s: err=%d\n", __func__, bp->bio_error);
334 bp->bio_flags |= BIO_ERROR;
335 bp->bio_resid = bp->bio_bcount;
339 biodone(bp);
343 fwmem_strategy(struct bio *bp) argument
[all...]
/freebsd-11.0-release/sys/fs/msdosfs/
H A Dmsdosfs_fat.c74 static void updatefats(struct msdosfsmount *pmp, struct buf *bp,
132 struct buf *bp = NULL; local
196 if (bp)
197 brelse(bp);
198 error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp);
200 brelse(bp);
207 if (bp)
208 brelse(bp);
212 cn = getulong(&bp->b_data[bo]);
214 cn = getushort(&bp
305 updatefats(struct msdosfsmount *pmp, struct buf *bp, u_long fatbn) argument
457 struct buf *bp; local
563 struct buf *bp; local
808 struct buf *bp = NULL; local
869 struct buf *bp = NULL; local
942 struct buf *bp; local
1082 struct buf *bp; local
[all...]
/freebsd-11.0-release/lib/libstand/
H A Dbootp.c101 struct bootp *bp; local
127 bp = &wbuf.wbootp;
128 bzero(bp, sizeof(*bp));
130 bp->bp_op = BOOTREQUEST;
131 bp->bp_htype = 1; /* 10Mb Ethernet (48 bits) */
132 bp->bp_hlen = 6;
133 bp->bp_xid = htonl(d->xid);
134 MACPY(d->myea, bp->bp_chaddr);
135 strncpy(bp
273 struct bootp *bp; local
299 struct bootp *bp; local
[all...]
/freebsd-11.0-release/crypto/openssl/crypto/bio/
H A Dbss_log.c130 static void xopenlog(BIO *bp, char *name, int level);
131 static void xsyslog(BIO *bp, int priority, const char *string);
132 static void xcloselog(BIO *bp);
273 static int MS_CALLBACK slg_puts(BIO *bp, const char *str) argument
278 ret = slg_write(bp, str, n);
284 static void xopenlog(BIO *bp, char *name, int level) argument
287 bp->ptr = RegisterEventSourceA(NULL, name);
289 bp->ptr = NULL;
292 static void xsyslog(BIO *bp, int priority, const char *string) argument
298 if (bp
332 xcloselog(BIO *bp) argument
343 xopenlog(BIO *bp, char *name, int level) argument
348 xsyslog(BIO *bp, int priority, const char *string) argument
426 xcloselog(BIO *bp) argument
432 xopenlog(BIO *bp, char *name, int level) argument
441 xsyslog(BIO *bp, int priority, const char *string) argument
446 xcloselog(BIO *bp) argument
[all...]
/freebsd-11.0-release/sys/powerpc/mambo/
H A Dmambo_disk.c70 static void mambodisk_strategy(struct bio *bp);
182 mambodisk_strategy(struct bio *bp) argument
186 sc = (struct mambodisk_softc *)bp->bio_disk->d_drv1;
188 bioq_disksort(&sc->bio_queue, bp);
197 struct bio *bp; local
210 bp = bioq_first(&sc->bio_queue);
211 if (bp == NULL)
213 } while (bp == NULL && sc->running);
214 if (bp)
215 bioq_remove(&sc->bio_queue, bp);
[all...]
/freebsd-11.0-release/sys/geom/raid/
H A Dtr_raid1.c243 struct bio *bp; local
254 bp = &trs->trso_bio;
255 memset(bp, 0, sizeof(*bp));
256 bp->bio_offset = sd->sd_rebuild_pos;
257 bp->bio_length = MIN(g_raid1_rebuild_slab,
259 bp->bio_data = trs->trso_buffer;
260 bp->bio_cmd = BIO_READ;
261 bp->bio_cflags = G_RAID_BIO_FLAG_SYNC;
262 bp
487 g_raid_tr_raid1_select_read_disk(struct g_raid_volume *vol, struct bio *bp, u_int mask) argument
524 g_raid_tr_iostart_raid1_read(struct g_raid_tr_object *tr, struct bio *bp) argument
543 g_raid_tr_iostart_raid1_write(struct g_raid_tr_object *tr, struct bio *bp) argument
605 g_raid_tr_iostart_raid1(struct g_raid_tr_object *tr, struct bio *bp) argument
652 g_raid_tr_iodone_raid1(struct g_raid_tr_object *tr, struct g_raid_subdisk *sd, struct bio *bp) argument
947 struct bio *bp; local
[all...]
/freebsd-11.0-release/sys/dev/mmc/
H A Dmmcsd.c118 static void mmcsd_strategy(struct bio *bp);
122 static daddr_t mmcsd_delete(struct mmcsd_softc *sc, struct bio *bp);
123 static daddr_t mmcsd_rw(struct mmcsd_softc *sc, struct bio *bp);
294 mmcsd_strategy(struct bio *bp) argument
298 sc = (struct mmcsd_softc *)bp->bio_disk->d_drv1;
301 bioq_disksort(&sc->bio_queue, bp);
306 biofinish(bp, NULL, ENXIO);
319 mmcsd_rw(struct mmcsd_softc *sc, struct bio *bp) argument
330 block = bp->bio_pblkno;
331 end = bp
387 mmcsd_delete(struct mmcsd_softc *sc, struct bio *bp) argument
483 struct bio bp; local
508 struct bio *bp; local
[all...]
/freebsd-11.0-release/contrib/tcp_wrappers/
H A Dpercent_x.c38 char *bp = result; local
77 if (bp + expansion_len >= end) {
82 memcpy(bp, expansion, expansion_len);
83 bp += expansion_len;
85 *bp = 0;
/freebsd-11.0-release/libexec/bootpd/
H A Dbootpd.c187 struct bootp *bp;
223 bp = (struct bootp *) pktbuf;
565 switch (bp->bp_op) {
632 struct bootp *bp = (struct bootp *) pktbuf;
643 bp->bp_file[sizeof(bp->bp_file)-1] = '\0';
652 if (strlen(bp->bp_sname)) {
653 if (strcmp(bp->bp_sname, hostname)) {
657 bp->bp_sname, netname(bp
185 struct bootp *bp; local
628 struct bootp *bp = (struct bootp *) pktbuf; local
1019 struct bootp *bp = (struct bootp *) pktbuf; local
[all...]

Completed in 379 milliseconds

1234567891011>>