Home
last modified time | relevance | path

Searched refs:bp (Results 126 – 150 of 1075) sorted by relevance

12345678910>>...43

/freebsd/sys/dev/ida/
H A Dida_disk.c91 drv = bp->bio_disk->d_drv1; in idad_strategy()
101 bp->bio_error = EROFS; in idad_strategy()
105 if ((bp->bio_cmd != BIO_READ) && (bp->bio_cmd != BIO_WRITE)) { in idad_strategy()
110 bp->bio_driver1 = drv; in idad_strategy()
115 bp->bio_flags |= BIO_ERROR; in idad_strategy()
120 bp->bio_resid = bp->bio_bcount; in idad_strategy()
121 biodone(bp); in idad_strategy()
149 idad_intr(struct bio *bp) in idad_intr() argument
153 bp->bio_error = EIO; in idad_intr()
155 bp->bio_resid = 0; in idad_intr()
[all …]
/freebsd/crypto/openssl/crypto/pem/
H A Dpem_pk8.c125 ret = ret && OSSL_ENCODER_to_bio(ctx, bp); in do_pk8pkey()
152 ret = i2d_PKCS8_bio(bp, p8); in do_pk8pkey()
154 ret = PEM_write_bio_PKCS8(bp, p8); in do_pk8pkey()
178 p8 = d2i_PKCS8_bio(bp, NULL); in d2i_PKCS8PrivateKey_bio()
240 BIO *bp; in do_pk8pkey_fp() local
243 if ((bp = BIO_new_fp(fp, BIO_NOCLOSE)) == NULL) { in do_pk8pkey_fp()
248 BIO_free(bp); in do_pk8pkey_fp()
255 BIO *bp; in d2i_PKCS8PrivateKey_fp() local
258 if ((bp = BIO_new_fp(fp, BIO_NOCLOSE)) == NULL) { in d2i_PKCS8PrivateKey_fp()
262 ret = d2i_PKCS8PrivateKey_bio(bp, x, cb, u); in d2i_PKCS8PrivateKey_fp()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-carp.c49 carp_print(netdissect_options *ndo, const u_char *bp, u_int len, u_int ttl) in carp_print() argument
55 version = (GET_U_1(bp) & 0xf0) >> 4; in carp_print()
56 type = GET_U_1(bp) & 0x0f; in carp_print()
67 GET_U_1(bp + 1), GET_U_1(bp + 5), GET_U_1(bp + 2), in carp_print()
68 GET_U_1(bp + 3)); in carp_print()
71 vec[0].ptr = (const uint8_t *)bp; in carp_print()
73 if (ND_TTEST_LEN(bp, len) && in_cksum(vec, 1)) in carp_print()
75 GET_BE_U_2(bp + 6)); in carp_print()
77 ND_PRINT("counter=%" PRIu64, GET_BE_U_8(bp + 8)); in carp_print()
H A Dprint-vxlan.c51 vxlan_print(netdissect_options *ndo, const u_char *bp, u_int len) in vxlan_print() argument
61 flags = GET_U_1(bp); in vxlan_print()
62 bp += 1; in vxlan_print()
67 bp += 3; in vxlan_print()
69 vni = GET_BE_U_3(bp); in vxlan_print()
70 bp += 3; in vxlan_print()
74 ND_TCHECK_1(bp); in vxlan_print()
75 bp += 1; in vxlan_print()
77 ether_print(ndo, bp, len - VXLAN_HDR_LEN, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL); in vxlan_print()
H A Dprint-bcm-li.c66 const u_char *bp, u_int length) in bcm_li_print() argument
75 shim = GET_BE_U_4(bp); in bcm_li_print()
83 bp += BCM_LI_SHIM_LEN; in bcm_li_print()
94 ND_TCHECK_LEN(bp, length); in bcm_li_print()
100 ether_print(ndo, bp, length, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL); in bcm_li_print()
103 ip_print(ndo, bp, length); in bcm_li_print()
106 ip6_print(ndo, bp, length); in bcm_li_print()
113 if ((GET_U_1(bp) >> 4) == 4) { in bcm_li_print()
114 ip_print(ndo, bp, length); in bcm_li_print()
115 } else if ((GET_U_1(bp) >> 4) == 6) { in bcm_li_print()
[all …]
H A Dprint-arista.c112 subTypeId = GET_BE_U_2(bp); in arista_ethertype_print()
113 bp += 2; in arista_ethertype_print()
124 uint8_t ts_timescale = GET_U_1(bp); in arista_ethertype_print()
125 bp += 1; in arista_ethertype_print()
131 uint8_t ts_format = GET_U_1(bp) >> 4; in arista_ethertype_print()
132 uint8_t hw_info = GET_U_1(bp) & 0x0f; in arista_ethertype_print()
133 bp += 1; in arista_ethertype_print()
144 seconds = GET_BE_U_4(bp); in arista_ethertype_print()
145 nanoseconds = GET_BE_U_4(bp + 4); in arista_ethertype_print()
150 seconds = GET_BE_U_2(bp); in arista_ethertype_print()
[all …]
/freebsd/crypto/openssl/apps/
H A Drehash.c126 BUCKET *bp; in add_entry() local
130 for (bp = hash_table[ndx]; bp; bp = bp->next) in add_entry()
131 if (bp->type == type && bp->hash == hash) in add_entry()
133 if (bp == NULL) { in add_entry()
134 bp = app_malloc(sizeof(*bp), "hash bucket"); in add_entry()
135 *bp = nilbucket; in add_entry()
137 bp->type = type; in add_entry()
138 bp->hash = hash; in add_entry()
185 bp->num_needed++; in add_entry()
350 BUCKET *bp, *nextbp; in do_dir() local
[all …]
/freebsd/sys/geom/gate/
H A Dg_gate.c108 struct bio *bp; in g_gate_destroy() local
369 struct bio *bp, *bp2; in g_gate_guard() local
752 struct bio *bp; in g_gate_ioctl() local
828 lbp = bp; in g_gate_ioctl()
854 if (bp != NULL) in g_gate_ioctl()
918 if (bp != NULL) { in g_gate_ioctl()
923 if (bp == NULL) { in g_gate_ioctl()
930 bp->bio_error = 0; in g_gate_ioctl()
940 bp->bio_completed = bp->bio_length; in g_gate_ioctl()
944 bp->bio_data, bp->bio_length); in g_gate_ioctl()
[all …]
/freebsd/sys/fs/ext2fs/
H A Dext2_bmap.c157 struct buf *bp; in readindir() local
175 bp->b_iooffset = dbtob(bp->b_blkno); in readindir()
176 bstrategy(bp); in readindir()
187 brelse(bp); in readindir()
191 *bpp = bp; in readindir()
281 if (bp) in ext2_bmaparray()
282 bqrelse(bp); in ext2_bmaparray()
305 if (bp) in ext2_bmaparray()
306 bqrelse(bp); in ext2_bmaparray()
339 bp = NULL; in ext2_bmap_seekdata()
[all …]
/freebsd/sys/ufs/ffs/
H A Dffs_vfsops.c181 *bpp = bp; in ffs_blkatoff()
806 brelse(bp); in ffs_reload()
841 brelse(bp); in ffs_reload()
899 brelse(bp); in ffs_reload()
1261 brelse(bp); in ffs_use_bread()
2369 CTR3(KTR_BUF, "bufwrite(%p) vp %p flags %X", bp, bp->b_vp, bp->b_flags); in ffs_bufwrite()
2419 memcpy(newbp->b_data, bp->b_data, bp->b_bufsize); in ffs_bufwrite()
2457 calculate_crc32c(~0L, bp->b_data, bp->b_bcount); in ffs_bufwrite()
2499 bp->b_vp != NULL && bp->b_vp->v_mount != NULL && in ffs_geom_strategy()
2520 bp->b_runningbufspace = bp->b_bufsize; in ffs_geom_strategy()
[all …]
/freebsd/usr.sbin/ppp/
H A Dnat_cmd.c502 return bp; in nat_LayerPush()
507 bp = m_pullup(m_append(bp, NULL, NAT_EXTRABUF)); in nat_LayerPush()
508 LibAliasOut(la, MBUF_CTOP(bp), bp->m_len); in nat_LayerPush()
509 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len); in nat_LayerPush()
511 return bp; in nat_LayerPush()
529 bp = m_pullup(m_append(bp, NULL, NAT_EXTRABUF)); in nat_LayerPull()
530 ret = LibAliasIn(la, MBUF_CTOP(bp), bp->m_len); in nat_LayerPull()
549 m_freem(bp); in nat_LayerPull()
550 bp = NULL; in nat_LayerPull()
552 bp = mbuf_Read(bp, fptr, bp->m_len); in nat_LayerPull()
[all …]
/freebsd/lib/libc/net/
H A Dgethostbydns.c179 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in gethostanswer()
196 bp += n; in gethostanswer()
210 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in gethostanswer()
253 bp += n; in gethostanswer()
262 bp += n; in gethostanswer()
284 bp += n; in gethostanswer()
307 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in gethostanswer()
330 bp += n; in gethostanswer()
341 bp += n; in gethostanswer()
382 bp += n; in gethostanswer()
[all …]
/freebsd/contrib/sendmail/src/
H A Dmime.c121 char *bp; local
500 bp = buf;
568 bp = buf;
595 *bp = '\0';
674 bp--;
762 c = *bp;
771 bp = buf;
776 *bp++ = c;
787 *bp++ = c;
801 bp = buf;
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddmu_traverse.c83 if (BP_IS_HOLE(bp)) in traverse_zil_block()
106 blkptr_t *bp = &lr->lr_blkptr; in traverse_zil_record() local
109 if (BP_IS_HOLE(bp)) in traverse_zil_record()
196 if (BP_IS_HOLE(bp) || BP_GET_LOGICAL_BIRTH(bp) <= td->td_min_txg) in traverse_prefetch_metadata()
198 if (BP_GET_LEVEL(bp) == 0 && BP_GET_TYPE(bp) != DMU_OT_DNODE) in traverse_prefetch_metadata()
200 ASSERT(!BP_IS_REDACTED(bp)); in traverse_prefetch_metadata()
214 if (BP_IS_HOLE(bp) || BP_IS_EMBEDDED(bp) || in prefetch_needed()
215 BP_GET_TYPE(bp) == DMU_OT_INTENT_LOG || BP_IS_REDACTED(bp)) in prefetch_needed()
282 if (BP_IS_HOLE(bp) || BP_IS_REDACTED(bp)) { in traverse_visitbp()
298 if (BP_GET_LEVEL(bp) > 0) { in traverse_visitbp()
[all …]
/freebsd/contrib/nvi/common/
H A Ddelete.c36 CHAR_T *bp, *p; in del() local
39 bp = NULL; in del()
78 MEMCPY(bp, p, fm->cno); in del()
90 GET_SPACE_RETW(sp, bp, blen, len); in del()
92 MEMCPY(bp, p, fm->cno); in del()
111 MEMCPY(bp, p, tlen); in del()
130 GET_SPACE_RETW(sp, bp, blen, nlen); in del()
132 ADD_SPACE_RETW(sp, bp, blen, nlen); in del()
139 if (db_set(sp, fm->lno, bp, tlen)) in del()
154 if (bp != NULL) in del()
[all …]
/freebsd/usr.sbin/makefs/ffs/
H A Dffs_balloc.c194 *bpp = bp; in ffs_balloc_ufs1()
232 clrbuf(bp); in ffs_balloc_ufs1()
251 brelse(bp); in ffs_balloc_ufs1()
260 brelse(bp); in ffs_balloc_ufs1()
287 bwrite(bp); in ffs_balloc_ufs1()
316 bwrite(bp); in ffs_balloc_ufs1()
319 brelse(bp); in ffs_balloc_ufs1()
489 clrbuf(bp); in ffs_balloc_ufs2()
544 bwrite(bp); in ffs_balloc_ufs2()
573 bwrite(bp); in ffs_balloc_ufs2()
[all …]
/freebsd/sys/geom/cache/
H A Dg_cache.c180 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >= in g_cache_deliver()
191 bp->bio_data + (off - bp->bio_offset), len); in g_cache_deliver()
194 KASSERT(bp->bio_completed <= bp->bio_length, ("extra data")); in g_cache_deliver()
195 if (bp->bio_completed == bp->bio_length) { in g_cache_deliver()
198 g_io_deliver(bp, bp->bio_error); in g_cache_deliver()
267 OFF2BNO(bp->bio_offset + bp->bio_completed, sc)); in g_cache_read()
295 dp->d_bno = OFF2BNO(bp->bio_offset + bp->bio_completed, sc); in g_cache_read()
321 lim = OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc); in g_cache_invalidate()
358 if (bp->bio_offset + bp->bio_length > sc->sc_tail) in g_cache_start()
361 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) { in g_cache_start()
[all …]
/freebsd/sys/powerpc/mambo/
H A Dmambo_disk.c181 mambodisk_strategy(struct bio *bp) in mambodisk_strategy() argument
187 bioq_disksort(&sc->bio_queue, bp); in mambodisk_strategy()
196 struct bio *bp; in mambodisk_task() local
210 if (bp == NULL) in mambodisk_task()
213 if (bp) in mambodisk_task()
219 end = bp->bio_pblkno + (bp->bio_bcount / sz); in mambodisk_task()
222 char *vaddr = bp->bio_data + in mambodisk_task()
229 if (bp->bio_cmd == BIO_READ) { in mambodisk_task()
245 bp->bio_error = EIO; in mambodisk_task()
247 bp->bio_flags |= BIO_ERROR; in mambodisk_task()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dt-qic.c56 char *obp, *bp; local
63 bp = str2prt(line_in);
75 bp = str2prt(line_back);
83 bp = str2prt(obp);
84 fprintf(stderr, "%s\n", bp);
179 char *bp; local
181 bp = str2prt(obp);
206 char *bp; local
208 bp = str2prt(obp);
235 char *bp; local
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_ameth.c211 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
227 if (BIO_puts(bp, "\n") <= 0) in rsa_pss_param_print()
231 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
243 if (BIO_puts(bp, "\n") <= 0) in rsa_pss_param_print()
246 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
266 BIO_puts(bp, "\n"); in rsa_pss_param_print()
268 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
278 BIO_puts(bp, "\n"); in rsa_pss_param_print()
280 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
290 BIO_puts(bp, "\n"); in rsa_pss_param_print()
[all …]
/freebsd/sbin/ipfw/
H A Dipfw2.c1301 bprintf(bp, " "); in print_ip()
1322 bprintf(bp, ")"); in print_ip()
1357 bprintf(bp, "}"); in print_ip()
1428 bprintf(bp, " "); in print_mac_lookup()
1434 bprintf(bp, ")"); in print_mac_lookup()
2806 bp_flush(bp); in list_static_range()
2838 bp_flush(bp); in list_dyn_state()
2923 struct buf_pr bp; in ipfw_show_config() local
2983 bp_free(&bp); in ipfw_show_config()
3027 bp_free(&bp); in ipfw_show_config()
[all …]
H A Dipv6.c76 bprintf(bp, "unreach6 %s", s); in print_unreach6_code()
94 bprintf(bp, " me6"); in print_ip6()
98 bprintf(bp, " ip6"); in print_ip6()
107 bprintf(bp, " "); in print_ip6()
121 bprintf(bp, "any"); in print_ip6()
126 bprintf(bp, "%s", trad ); in print_ip6()
131 bprintf(bp, "/%d", mb); in print_ip6()
134 bprintf(bp, ","); in print_ip6()
171 bprintf(bp, " icmp6types"); in print_icmp6types()
187 bprintf(bp, " flow-id "); in print_flow6id()
[all …]
/freebsd/sys/dev/fdc/
H A Dfdc.c713 bp = fdc->bp; in fdc_pio()
735 bp = fdc->bp; in fdc_biodone()
751 wakeup(bp); in fdc_biodone()
773 bp = fdc->bp; in fdc_worker()
831 bp = fdc->bp; in fdc_worker()
883 if (bp->bio_cmd == BIO_FMT || bp->bio_cmd == BIO_WRITE) { in fdc_worker()
903 (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE)) { in fdc_worker()
956 bp->bio_cmd, bp->bio_pblkno, fd->fd_iosize, in fdc_worker()
1297 bp->bio_offset = bp->bio_pblkno * fd->sectorsize; in fdmisccmd()
1481 bp->bio_pblkno = bp->bio_offset / fd->sectorsize; in fd_start()
[all …]
/freebsd/sys/geom/uzip/
H A Dg_uzip.c178 ofs = bp->bio_offset + bp->bio_completed; in g_uzip_cached()
186 memcpy(bp->bio_data + bp->bio_completed, sc->last_buf + blkofs, in g_uzip_cached()
238 ofs = bp->bio_offset + bp->bio_completed; in g_uzip_request()
251 bzero(bp->bio_data + bp->bio_completed, zsize); in g_uzip_request()
265 g_io_deliver(bp, 0); in g_uzip_request()
448 g_destroy_bio(bp); in g_uzip_do()
462 pp = bp->bio_to; in g_uzip_start()
466 "buffer=%p\n", __func__, gp->name, bp, bp->bio_cmd, in g_uzip_start()
467 (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length, bp->bio_data)); in g_uzip_start()
486 pp = bp->bio_to; in g_uzip_start()
[all …]
/freebsd/sys/fs/smbfs/
H A Dsmbfs_io.c354 bp->b_dirtyend = np->n_size - (bp->b_blkno * DEV_BSIZE); in smbfs_doio()
356 if (bp->b_dirtyend > bp->b_dirtyoff) { in smbfs_doio()
357 io.iov_len = uiop->uio_resid = bp->b_dirtyend - bp->b_dirtyoff; in smbfs_doio()
359 io.iov_base = (char *)bp->b_data + bp->b_dirtyoff; in smbfs_doio()
382 bdirty(bp); in smbfs_doio()
392 bp->b_dirtyoff = bp->b_dirtyend = 0; in smbfs_doio()
395 bp->b_resid = 0; in smbfs_doio()
396 bufdone(bp); in smbfs_doio()
403 bufdone(bp); in smbfs_doio()
423 struct buf *bp; in smbfs_getpages()
[all …]

12345678910>>...43