Home
last modified time | relevance | path

Searched refs:read_buf (Results 1 – 25 of 30) sorted by relevance

12

/src/contrib/libarchive/libarchive/
H A Darchive_read_support_filter_lz4.c385 const char *read_buf; in lz4_filter_read() local
388 read_buf = __archive_read_filter_ahead(self->upstream, 4, in lz4_filter_read()
390 if (read_buf == NULL) { in lz4_filter_read()
395 uint32_t number = archive_le32dec(read_buf); in lz4_filter_read()
402 read_buf = __archive_read_filter_ahead( in lz4_filter_read()
404 if (read_buf == NULL) { in lz4_filter_read()
411 uint32_t skip_bytes = archive_le32dec(read_buf); in lz4_filter_read()
430 const char *read_buf; in lz4_filter_read_descriptor() local
437 read_buf = __archive_read_filter_ahead(self->upstream, 2, in lz4_filter_read_descriptor()
439 if (read_buf == NULL) { in lz4_filter_read_descriptor()
[all …]
H A Darchive_read_support_filter_bzip2.c219 const char *read_buf; in bzip2_filter_read() local
280 read_buf = in bzip2_filter_read()
282 if (read_buf == NULL) { in bzip2_filter_read()
288 state->stream.next_in = (char *)(uintptr_t)read_buf; in bzip2_filter_read()
302 state->stream.next_in - read_buf); in bzip2_filter_read()
H A Darchive_read.c819 const void *read_buf; in archive_read_data() local
830 read_buf = a->read_data_block; in archive_read_data()
833 r = archive_read_data_block(a, &read_buf, in archive_read_data()
835 a->read_data_block = read_buf; in archive_read_data()
/src/crypto/openssl/test/
H A Dquic_stream_test.c478 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()
/src/usr.sbin/fstyp/
H A Dhammer2.c52 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 Dmsdosfs.c75 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 Dntfs.c148 bf = (struct ntfs_bootfile *)read_buf(fp, 0, 512); in fstyp_ntfs()
162 filerecp = read_buf(fp, voloff, recsize); in fstyp_ntfs()
H A Dbefs.c52 volume = read_buf(fp, BEFS_BLOCK_OFFSET, sizeof(*volume)); in fstyp_befs()
H A Dcd9660.c49 sector = read_buf(fp, ISO9660_OFFSET, 512); in fstyp_cd9660()
H A Dzfs.c57 vdev_label = (vdev_label_t *)read_buf(fp, 0, sizeof(*vdev_label)); in fstyp_zfs()
H A Dext2fs.c60 fs = (e2sb_t *)read_buf(fp, EXT2FS_SB_OFFSET, 512); in fstyp_ext2fs()
H A Dgeli.c55 buf = (u_char *)read_buf(fp, mediasize - sectorsize, sectorsize); in fstyp_geli()
H A Dapfs.c90 csb = read_buf(fp, 0, sizeof(*csb)); in fstyp_apfs()
H A Dexfat.c141 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 Dfstyp.h48 void *read_buf(FILE *fp, off_t off, size_t len);
H A Dhfsplus.c108 hdr = read_buf(fp, VOL_HDR_OFF, sizeof(*hdr)); in fstyp_hfsp()
H A Dhammer.c54 ondisk = read_buf(fp, 0, sizeof(*ondisk)); in read_ondisk()
H A Dfstyp.c114 read_buf(FILE *fp, off_t off, size_t len) in read_buf() function
/src/usr.sbin/camdd/
H A Dcamdd.c484 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 …]
/src/crypto/openssl/test/helpers/
H A Dhandshake.c742 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()
/src/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Didmap_util.c278 read_buf(int fd, char *buf, size_t buf_size) in read_buf() function
497 ret = read_buf(fds[1], &c, 1); in userns_fd_from_idmap()
512 ret = read_buf(fds[0], &c, 1); in userns_fd_from_idmap()
/src/contrib/bc/include/
H A Dvm.h543 BcVec read_buf; member
/src/contrib/bc/src/
H A Dprogram.c768 bc_vec_init(&vm->read_buf, sizeof(char), BC_DTOR_NONE); in bc_program_read()
778 bc_vec_empty(&vm->read_buf); in bc_program_read()
790 if (!BC_R) s = bc_read_line(&vm->read_buf, ""); in bc_program_read()
791 else s = bc_read_line(&vm->read_buf, BC_VM_READ_PROMPT); in bc_program_read()
797 bc_parse_text(&vm->read_prs, vm->read_buf.v, BC_MODE_FILE); in bc_program_read()
2601 bc_vec_init(&vm->read_buf, sizeof(char), BC_DTOR_NONE); in bc_program_execStr()
/src/sys/contrib/zlib/
H A Ddeflate.c219 local unsigned read_buf(z_streamp strm, Bytef *buf, unsigned size) { in read_buf() function
311 n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more); in fill_window()
1748 read_buf(s->strm, s->strm->next_out, len); in deflate_stored()
1818 read_buf(s->strm, s->window + s->strstart, have); in deflate_stored()
/src/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmt7915.h494 int mt7915_mcu_get_eeprom(struct mt7915_dev *dev, u32 offset, u8 *read_buf);

12