| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read_support_filter_lz4.c | 414 const char *read_buf; in lz4_filter_read() local 417 read_buf = __archive_read_filter_ahead(f->upstream, 4, in lz4_filter_read() 419 if (read_buf == NULL) { in lz4_filter_read() 424 uint32_t number = archive_le32dec(read_buf); in lz4_filter_read() 431 read_buf = __archive_read_filter_ahead( in lz4_filter_read() 433 if (read_buf == NULL) { in lz4_filter_read() 440 int64_t skip_bytes = archive_le32dec(read_buf); in lz4_filter_read() 465 const char *read_buf; in lz4_filter_read_descriptor() local 472 read_buf = __archive_read_filter_ahead(f->upstream, 2, in lz4_filter_read_descriptor() 474 if (read_buf == NULL) { in lz4_filter_read_descriptor() [all …]
|
| H A D | archive_read_support_filter_bzip2.c | 220 const char *read_buf; in bzip2_filter_read() local 281 read_buf = in bzip2_filter_read() 283 if (read_buf == NULL) { in bzip2_filter_read() 289 bzip2->stream.next_in = (char *)(uintptr_t)read_buf; in bzip2_filter_read() 301 bzip2->stream.next_in - read_buf); in bzip2_filter_read()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | clone_after_trunc.c | 49 unsigned char *read_buf = malloc(FILE_SIZE); in run_test() local 79 if (read(dst, read_buf, FILE_SIZE) != FILE_SIZE) in run_test() 84 if (memcmp(write_buf, read_buf, FILE_SIZE) != 0) { in run_test() 90 if (read_buf[i] != 0) { in run_test() 104 free(read_buf); in run_test()
|
| H A D | idmap_util.c | 268 read_buf(int fd, char *buf, size_t buf_size) in read_buf() function 487 ret = read_buf(fds[1], &c, 1); in userns_fd_from_idmap() 502 ret = read_buf(fds[0], &c, 1); in userns_fd_from_idmap()
|
| /freebsd/crypto/openssl/test/ |
| H A D | quic_stream_test.c | 478 unsigned char *read_buf = NULL; in test_rstream_random() local 487 || !TEST_ptr(read_buf = OPENSSL_malloc(data_size)) in test_rstream_random() 537 if (!TEST_true(test_single_copy_read(rstream, read_buf, data_size, in test_rstream_random() 540 } else if (!TEST_true(ossl_quic_rstream_read(rstream, read_buf, in test_rstream_random() 548 && !TEST_mem_eq(read_buf, readbytes, bulk_data + read_off, in test_rstream_random() 577 if (!TEST_true(test_single_copy_read(rstream, read_buf, data_size, in test_rstream_random() 580 } else if (!TEST_true(ossl_quic_rstream_read(rstream, read_buf, in test_rstream_random() 594 OPENSSL_free(read_buf); in test_rstream_random()
|
| /freebsd/usr.sbin/fstyp/ |
| H A D | hammer2.c | 52 voldata = read_buf(fp, 0, sizeof(*voldata)); in read_voldata() 103 media = read_buf(fp, io_base, io_bytes); in read_media() 223 vols[i] = read_buf(fp, broot.data_off & ~HAMMER2_OFF_MASK_RADIX, in read_label()
|
| H A D | msdosfs.c | 75 sector0 = (uint8_t *)read_buf(fp, 0, 512); in fstyp_msdosfs() 145 sector = (uint8_t *)read_buf(fp, offset, fat_BytesPerSector); in fstyp_msdosfs()
|
| H A D | ntfs.c | 148 bf = (struct ntfs_bootfile *)read_buf(fp, 0, 512); in fstyp_ntfs() 162 filerecp = read_buf(fp, voloff, recsize); in fstyp_ntfs()
|
| H A D | befs.c | 52 volume = read_buf(fp, BEFS_BLOCK_OFFSET, sizeof(*volume)); in fstyp_befs()
|
| H A D | cd9660.c | 49 sector = read_buf(fp, ISO9660_OFFSET, 512); in fstyp_cd9660()
|
| H A D | zfs.c | 57 vdev_label = (vdev_label_t *)read_buf(fp, 0, sizeof(*vdev_label)); in fstyp_zfs()
|
| H A D | ext2fs.c | 60 fs = (e2sb_t *)read_buf(fp, EXT2FS_SB_OFFSET, 512); in fstyp_ext2fs()
|
| H A D | geli.c | 55 buf = (u_char *)read_buf(fp, mediasize - sectorsize, sectorsize); in fstyp_geli()
|
| H A D | apfs.c | 90 csb = read_buf(fp, 0, sizeof(*csb)); in fstyp_apfs()
|
| H A D | exfat.c | 141 return (read_buf(fp, sect * bytespersec, bytespersec * count)); in read_sectn() 334 ev = (struct exfat_vbr *)read_buf(fp, 0, 512); in fstyp_exfat()
|
| H A D | fstyp.h | 48 void *read_buf(FILE *fp, off_t off, size_t len);
|
| H A D | hfsplus.c | 108 hdr = read_buf(fp, VOL_HDR_OFF, sizeof(*hdr)); in fstyp_hfsp()
|
| H A D | fstyp.c | 114 read_buf(FILE *fp, off_t off, size_t len) in read_buf() function
|
| H A D | hammer.c | 54 ondisk = read_buf(fp, 0, sizeof(*ondisk)); in read_ondisk()
|
| /freebsd/sys/dev/firewire/ |
| H A D | fwdv.c | 466 sc->read_buf = malloc(sc->frame_size, M_FWDV, M_WAITOK | M_ZERO); in fwdv_iso_start() 500 free(sc->read_buf, M_FWDV); in fwdv_iso_start() 502 sc->read_buf = NULL; in fwdv_iso_start() 543 free(sc->read_buf, M_FWDV); in fwdv_iso_stop() 545 sc->read_buf = NULL; in fwdv_iso_stop() 629 tmp = sc->read_buf; in fwdv_iso_input() 630 sc->read_buf = in fwdv_iso_input() 766 err = uiomove(sc->read_buf, min(uio->uio_resid, sc->frame_size), in fwdv_cdev_read()
|
| H A D | fwdv.h | 174 uint8_t *read_buf; member
|
| /freebsd/usr.sbin/camdd/ |
| H A D | camdd.c | 484 int camdd_queue(struct camdd_dev *dev, struct camdd_buf *read_buf); 2792 camdd_queue(struct camdd_dev *dev, struct camdd_buf *read_buf) argument 2819 read_buf->status = CAMDD_STATUS_EOF; 2821 camdd_complete_peer_buf(dev, read_buf); 2863 if ((read_buf->status == CAMDD_STATUS_EOF) 2864 || (read_buf->status == CAMDD_STATUS_ERROR)) { 2867 && (read_buf->len == 0)) { 2868 camdd_complete_peer_buf(dev, read_buf); 2886 read_buf->status = CAMDD_STATUS_EOF; 2890 camdd_complete_peer_buf(dev, read_buf); [all …]
|
| /freebsd/crypto/openssl/test/helpers/ |
| H A D | handshake.c | 742 unsigned char *read_buf; member 753 unsigned char *read_buf = NULL, *write_buf = NULL; in create_peer() local 757 || !TEST_ptr(read_buf = OPENSSL_zalloc(peer_buffer_size))) in create_peer() 762 peer->read_buf = read_buf; in create_peer() 768 OPENSSL_free(read_buf); in create_peer() 776 OPENSSL_free(peer->read_buf); in peer_free_data() 825 ret = SSL_read(peer->ssl, peer->read_buf, peer->read_buf_len); in do_app_data_step()
|
| /freebsd/sys/dev/video/ |
| H A D | video_internal.h | 81 struct video_buf *read_buf; member
|
| H A D | video.c | 152 vd->owner->read_buf = NULL; in video_pool_detach() 748 vf->read_buf = NULL; in video_streamoff() 1096 while (vf->read_buf == NULL) { in video_read() 1098 vf->read_buf = STAILQ_FIRST(&vd->done); in video_read() 1120 vb = vf->read_buf; in video_read() 1141 if (vf->read_buf == vb) { in video_read() 1144 vf->read_buf = NULL; in video_read()
|