Searched refs:bp (Results 201 - 225 of 870) sorted by relevance

1234567891011>>

/freebsd-10.1-release/crypto/openssl/crypto/
H A Dppccap.c18 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, argument
22 const BN_ULONG *bp, const BN_ULONG *np,
24 int bn_mul_mont_int(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
30 return bn_mul_mont_fpu64(rp, ap, bp, np, n0, num);
41 ret = bn_mul_mont_fpu64(rp, ap, bp, np, n0, num);
52 return bn_mul_mont_fpu64(rp, ap, bp, np, n0, num);
54 return bn_mul_mont_int(rp, ap, bp, np, n0, num);
/freebsd-10.1-release/crypto/openssl/crypto/asn1/
H A Df_string.c64 int i2a_ASN1_STRING(BIO *bp, ASN1_STRING *a, int type) argument
74 if (BIO_write(bp, "0", 1) != 1)
80 if (BIO_write(bp, "\\\n", 2) != 2)
86 if (BIO_write(bp, buf, 2) != 2)
96 int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size) argument
104 bufsize = BIO_gets(bp, buf, size);
196 bufsize = BIO_gets(bp, buf, size);
H A Df_enum.c66 int i2a_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *a) argument
76 if (BIO_write(bp, "00", 2) != 2)
82 if (BIO_write(bp, "\\\n", 2) != 2)
88 if (BIO_write(bp, buf, 2) != 2)
98 int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size) argument
108 bufsize = BIO_gets(bp, buf, size);
190 bufsize = BIO_gets(bp, buf, size);
/freebsd-10.1-release/sys/vm/
H A Dvnode_pager.c499 struct buf *bp; local
533 bp = getpbuf(&vnode_pbuf_freecnt);
536 bp->b_iocmd = BIO_READ;
537 bp->b_iodone = bdone;
538 KASSERT(bp->b_rcred == NOCRED, ("leaking read ucred"));
539 KASSERT(bp->b_wcred == NOCRED, ("leaking write ucred"));
540 bp->b_rcred = crhold(curthread->td_ucred);
541 bp->b_wcred = crhold(curthread->td_ucred);
542 bp->b_data = (caddr_t)sf_buf_kva(sf) + i * bsize;
543 bp
700 struct buf *bp; local
[all...]
/freebsd-10.1-release/usr.bin/tip/tip/
H A Dremote.c72 #define cgetflag(f) (cgetcap(bp, f, ':') != NULL)
79 char **p, ***q, *bp, *rempath; local
93 if ((stat = cgetent(&bp, db_array, host)) < 0) {
125 cgetstr(bp, *p, *q);
126 if (!BR && (cgetnum(bp, "br", &BR) == -1))
128 if (!LD && (cgetnum(bp, "ld", &LD) == -1))
130 if (cgetnum(bp, "fs", &FS) == -1)
203 if (cgetnum(bp, "dl", &DL) == -1)
205 if (cgetnum(bp, "cl", &CL) == -1)
207 if (cgetnum(bp, "e
[all...]
/freebsd-10.1-release/sys/fs/udf/
H A Dudf.h65 struct buf *bp; member in struct:udf_dirstream
92 #define RDSECTOR(devvp, sector, size, bp) \
93 bread(devvp, sector << (udfmp->bshift - DEV_BSHIFT), size, NOCRED, bp)
98 udf_readdevblks(struct udf_mnt *udfmp, int sector, int size, struct buf **bp) argument
101 (size + udfmp->bmask) & ~udfmp->bmask, bp));
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu_traverse.c72 traverse_zil_block(zilog_t *zilog, blkptr_t *bp, void *arg, uint64_t claim_txg) argument
77 if (BP_IS_HOLE(bp))
80 if (claim_txg == 0 && bp->blk_birth >= spa_first_txg(td->td_spa))
84 bp->blk_cksum.zc_word[ZIL_ZC_SEQ]);
86 (void) td->td_func(td->td_spa, zilog, bp, &zb, NULL, td->td_arg);
98 blkptr_t *bp = &lr->lr_blkptr; local
101 if (BP_IS_HOLE(bp))
104 if (claim_txg == 0 || bp->blk_birth < claim_txg)
108 ZB_ZIL_LEVEL, lr->lr_offset / BP_GET_LSIZE(bp));
110 (void) td->td_func(td->td_spa, zilog, bp,
177 traverse_prefetch_metadata(traverse_data_t *td, const blkptr_t *bp, const zbookmark_phys_t *zb) argument
201 prefetch_needed(prefetch_data_t *pfd, const blkptr_t *bp) argument
211 traverse_visitbp(traverse_data_t *td, const dnode_phys_t *dnp, const blkptr_t *bp, const zbookmark_phys_t *zb) argument
445 traverse_prefetcher(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
[all...]
/freebsd-10.1-release/usr.sbin/ppp/
H A Dnat_cmd.c498 nat_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, argument
502 return bp;
505 m_settype(bp, MB_NATOUT);
507 bp = m_pullup(m_append(bp, NULL, NAT_EXTRABUF));
508 LibAliasOut(la, MBUF_CTOP(bp), bp->m_len);
509 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len);
511 return bp;
515 nat_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, u_short *proto) argument
[all...]
/freebsd-10.1-release/libexec/tftpd/
H A Dtftp-io.c180 char *bp; local
195 bp = tp->th_stuff;
196 strcpy(bp, filename);
197 bp += strlen(filename);
198 *bp = 0;
199 bp++;
202 strcpy(bp, mode);
203 bp += strlen(mode);
204 *bp = 0;
205 bp
228 char *bp; local
278 char *bp; local
[all...]
/freebsd-10.1-release/sys/geom/
H A Dgeom_aes.c134 g_aes_read_done(struct bio *bp) argument
142 gp = bp->bio_from->geom;
145 b = bp->bio_data;
146 e = bp->bio_data;
147 e += bp->bio_length;
148 o = bp->bio_offset - sc->sectorsize;
158 g_std_done(bp);
162 g_aes_write_done(struct bio *bp) argument
165 bzero(bp->bio_data, bp
171 g_aes_start(struct bio *bp) argument
[all...]
H A Dgeom_fox.c79 struct bio *bp; local
115 bp = TAILQ_FIRST(&sc->queue);
116 if (bp == NULL)
118 TAILQ_REMOVE(&sc->queue, bp, bio_queue);
119 bp->bio_error = ENXIO;
120 g_std_done(bp);
152 bp = TAILQ_FIRST(&sc->queue);
153 if (bp == NULL)
155 TAILQ_REMOVE(&sc->queue, bp, bio_queue);
156 g_io_request(bp, s
202 g_fox_done(struct bio *bp) argument
233 g_fox_start(struct bio *bp) argument
[all...]
/freebsd-10.1-release/contrib/libpcap/
H A Dpcap-nit.c102 register u_char *bp, *cp, *ep; local
116 bp = p->buffer;
118 bp = p->bp;
126 ep = bp + cc;
127 while (bp < ep) {
142 p->cc = ep - bp;
143 p->bp = bp;
148 nh = (struct nit_hdr *)bp;
[all...]
/freebsd-10.1-release/lib/libc/net/
H A Drthdr.c70 inet6_rthdr_init(bp, type)
71 void *bp;
74 struct cmsghdr *ch = (struct cmsghdr *)bp;
304 inet6_rth_init(void *bp, socklen_t bp_len, int type, int segments) argument
306 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp;
318 memset(bp, 0, bp_len);
329 return (bp);
333 inet6_rth_add(void *bp, const struct in6_addr *addr) argument
335 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp;
399 inet6_rth_segments(const void *bp) argument
424 inet6_rth_getaddr(const void *bp, int idx) argument
[all...]
/freebsd-10.1-release/secure/lib/libcrypt/
H A Dcrypt-blowfish.c103 u_int8_t *bp = buffer; local
106 while (bp < buffer + len) {
114 *bp++ = (c1 << 2) | ((c2 & 0x30) >> 4);
115 if (bp >= buffer + len)
122 *bp++ = ((c2 & 0x0f) << 4) | ((c3 & 0x3c) >> 2);
123 if (bp >= buffer + len)
129 *bp++ = ((c3 & 0x03) << 6) | c4;
270 u_int8_t *bp = buffer; local
275 *bp++ = Base64Code[(c1 >> 2)];
278 *bp
[all...]
/freebsd-10.1-release/sys/dev/gxemul/disk/
H A Dgxemul_disk.c80 gxemul_disk_start(struct bio *bp) argument
88 sc = bp->bio_to->geom->softc;
91 if ((bp->bio_length % GXEMUL_DISK_DEV_BLOCKSIZE) != 0) {
92 g_io_deliver(bp, EINVAL);
96 buf = bp->bio_data;
97 offset = bp->bio_offset;
98 bp->bio_resid = bp->bio_length;
99 while (bp->bio_resid != 0) {
100 switch (bp
[all...]
/freebsd-10.1-release/sys/dev/mlx/
H A Dmlx_disk.c145 mlxd_strategy(struct bio *bp) argument
147 struct mlxd_softc *sc = bp->bio_disk->d_drv1;
153 bp->bio_error = EINVAL;
154 bp->bio_flags |= BIO_ERROR;
162 bp->bio_error = ENXIO;
163 bp->bio_flags |= BIO_ERROR;
167 mlx_submit_buf(sc->mlxd_controller, bp);
175 bp->bio_resid = bp->bio_bcount;
176 biodone(bp);
181 mlxd_intr(struct bio *bp) argument
[all...]
/freebsd-10.1-release/sys/fs/ext2fs/
H A Dext2_inode.c73 struct buf *bp; local
88 (int)fs->e2fs_bsize, NOCRED, &bp)) != 0) {
89 brelse(bp);
92 ext2_i2ei(ip, (struct ext2fs_dinode *)((char *)bp->b_data +
95 return (bwrite(bp));
97 bdwrite(bp);
120 struct buf *bp; local
163 error = ext2_balloc(oip, lbn, offset + 1, cred, &bp, flags);
169 if (bp->b_bufsize == fs->e2fs_bsize)
170 bp
362 struct buf *bp; local
[all...]
/freebsd-10.1-release/usr.sbin/makefs/ffs/
H A Dffs_balloc.c83 struct buf *bp, *nbp; local
191 bp = getblk(ip->i_fd, ip->i_fs, lbn, nsize);
192 bp->b_blkno = fsbtodb(fs, newb);
193 clrbuf(bp);
194 *bpp = bp;
229 bp = getblk(ip->i_fd, ip->i_fs, indirs[1].in_lbn, fs->fs_bsize);
230 bp->b_blkno = fsbtodb(fs, nb);
231 clrbuf(bp);
236 if ((error = bwrite(bp)) != 0)
248 fs->fs_bsize, &bp);
334 struct buf *bp, *nbp; local
[all...]
/freebsd-10.1-release/contrib/sendmail/src/
H A Dmime.c120 char *bp; local
499 bp = buf;
563 *bp = '\0';
567 bp = buf;
570 *bp++ = Base64Code[(c1 >> 2)];
575 *bp++ = Base64Code[c1];
576 *bp++ = '=';
577 *bp++ = '=';
581 *bp++ = Base64Code[c1];
586 *bp
751 static unsigned char *bp = NULL; local
[all...]
/freebsd-10.1-release/libexec/bootpd/tools/bootptest/
H A Dbootptest.c138 struct bootp *bp; local
307 bp = (struct bootp *) sndbuf;
308 bzero(bp, sizeof(*bp));
309 bp->bp_op = BOOTREQUEST;
311 bp->bp_xid = (u_int32) htonl(xid);
313 strncpy(bp->bp_file, bp_file, BP_FILE_LEN);
331 bp->bp_htype = 1;
332 bp->bp_hlen = 6;
333 bcopy(eaddr, bp
[all...]
/freebsd-10.1-release/sys/fs/nandfs/
H A Dnandfs_alloc.c93 struct buf *bp, *bp2; local
103 bp = bp2 = NULL;
108 if (bp)
109 brelse(bp);
111 error = nandfs_bread(node, desc_block, NOCRED, 0, &bp);
113 brelse(bp);
118 &bp);
122 init_desc_block(mdt, bp->b_data);
125 descriptors = (struct nandfs_block_group_desc *) bp->b_data;
138 brelse(bp);
331 struct buf *bp; local
[all...]
/freebsd-10.1-release/contrib/tcpdump/
H A Dprint-icmp6.c237 const u_char *bp, u_int length _U_)
239 struct nd_rpl_dio *dio = (struct nd_rpl_dio *)bp;
304 const u_char *bp, u_int length, const u_char *bp2, int fragmented)
314 dp = (struct icmp6_hdr *)bp;
325 if (TTEST2(bp[0], length)) {
391 print_unknown_data(bp,"\n\t",length);
531 icmp6_rrenum_print(bp, ep);
535 icmp6_nodeinfo_print(length, bp, ep);
584 print_unknown_data(bp,"\n\t", length);
595 get_upperlayer(u_char *bp, u_in argument
235 rpl_print(netdissect_options *ndo, const struct icmp6_hdr *hdr, const u_char *bp, u_int length _U_) argument
303 icmp6_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2, int fragmented) argument
669 icmp6_opt_print(const u_char *bp, int resid) argument
826 mld6_print(const u_char *bp) argument
842 mldv2_report_print(const u_char *bp, u_int len) argument
900 mldv2_query_print(const u_char *bp, u_int len) argument
1002 icmp6_nodeinfo_print(u_int icmp6len, const u_char *bp, const u_char *ep) argument
1251 icmp6_rrenum_print(const u_char *bp, const u_char *ep) argument
[all...]
/freebsd-10.1-release/sys/geom/mirror/
H A Dg_mirror.c112 static void g_mirror_register_request(struct bio *bp);
304 struct bio *bp; local
308 TAILQ_FOREACH(bp, &sc->sc_queue.queue, bio_queue) {
309 if (bp->bio_from == cp)
869 g_mirror_flush_done(struct bio *bp) argument
874 pbp = bp->bio_parent;
878 pbp->bio_error = bp->bio_error;
879 pbp->bio_completed += bp->bio_completed;
886 g_destroy_bio(bp);
890 g_mirror_done(struct bio *bp) argument
903 g_mirror_regular_request(struct bio *bp) argument
1016 g_mirror_sync_done(struct bio *bp) argument
1030 g_mirror_kernel_dump(struct bio *bp) argument
1062 g_mirror_flush(struct g_mirror_softc *sc, struct bio *bp) argument
1100 g_mirror_start(struct bio *bp) argument
1146 g_mirror_sync_collision(struct g_mirror_softc *sc, struct bio *bp) argument
1181 struct bio *bp; local
1200 g_mirror_regular_delay(struct g_mirror_softc *sc, struct bio *bp) argument
1211 g_mirror_sync_delay(struct g_mirror_softc *sc, struct bio *bp) argument
1225 struct bio *bp, *bp2; local
1252 struct bio *bp, *bp2; local
1272 g_mirror_sync_request(struct bio *bp) argument
1407 g_mirror_request_prefer(struct g_mirror_softc *sc, struct bio *bp) argument
1445 g_mirror_request_round_robin(struct g_mirror_softc *sc, struct bio *bp) argument
1484 g_mirror_request_load(struct g_mirror_softc *sc, struct bio *bp) argument
1540 g_mirror_request_split(struct g_mirror_softc *sc, struct bio *bp) argument
1606 g_mirror_register_request(struct bio *bp) argument
1785 struct bio *bp; local
1928 struct bio *bp; local
2100 struct bio *bp; local
[all...]
/freebsd-10.1-release/sys/ufs/ffs/
H A Dffs_vnops.c218 struct buf *bp; local
244 TAILQ_FOREACH(bp, &bo->bo_dirty.bv_hd, b_bobufs)
245 bp->b_vflags &= ~BV_SCANNED;
246 TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) {
253 if ((bp->b_vflags & BV_SCANNED) != 0)
255 bp->b_vflags |= BV_SCANNED;
257 if (waitfor == MNT_WAIT && bp->b_lblkno <= -NDADDR &&
258 lbn_level(bp->b_lblkno) >= passes)
260 if (bp->b_lblkno > lbn)
262 if (BUF_LOCK(bp, LK_EXCLUSIV
433 struct buf *bp; local
656 struct buf *bp; local
900 struct buf *bp; local
1055 struct buf *bp; local
[all...]
/freebsd-10.1-release/contrib/ncurses/form/
H A Dfty_enum.c203 unsigned char *bp = (unsigned char *)field_buffer(field, 0); local
209 if ((res = Compare((unsigned char *)s, bp, ccase)) != NOMATCH)
216 if ((res = Compare((unsigned char *)p, bp, ccase)) != NOMATCH)
260 unsigned char *bp = (unsigned char *)field_buffer(field, 0); local
266 if (Compare((unsigned char *)(*kwds++), bp, ccase) == EXACT)
271 if ((cnt >= 0) || (Compare((const unsigned char *)dummy, bp, ccase) == EXACT))
298 unsigned char *bp = (unsigned char *)field_buffer(field, 0); local
304 if (Compare((unsigned char *)(*kwds--), bp, ccase) == EXACT)
311 if ((cnt >= 0) || (Compare((const unsigned char *)dummy, bp, ccase) == EXACT))

Completed in 330 milliseconds

1234567891011>>