Home
last modified time | relevance | path

Searched refs:buf_state (Results 1 – 9 of 9) sorted by relevance

/external/libpng/contrib/oss-fuzz/
Dlibpng_read_fuzzer.cc55 BufState* buf_state = nullptr; member
66 delete buf_state; in ~PngObjectHandler()
71 BufState* buf_state = static_cast<BufState*>(png_get_io_ptr(png_ptr)); in user_read_data() local
72 if (length > buf_state->bytes_left) { in user_read_data()
75 memcpy(data, buf_state->data, length); in user_read_data()
76 buf_state->bytes_left -= length; in user_read_data()
77 buf_state->data += length; in user_read_data()
126 png_handler.buf_state = new BufState(); in LLVMFuzzerTestOneInput()
127 png_handler.buf_state->data = data + kPngHeaderSize; in LLVMFuzzerTestOneInput()
128 png_handler.buf_state->bytes_left = size - kPngHeaderSize; in LLVMFuzzerTestOneInput()
[all …]
Dnewcc36 BufState* buf_state = nullptr;
47 delete buf_state;
52 BufState* buf_state = static_cast<BufState*>(png_get_io_ptr(png_ptr));
53 if (length > buf_state->bytes_left) {
56 memcpy(data, buf_state->data, length);
57 buf_state->bytes_left -= length;
58 buf_state->data += length;
131 png_handler.buf_state = new BufState();
132 png_handler.buf_state->data = data + kPngHeaderSize;
133 png_handler.buf_state->bytes_left = size - kPngHeaderSize;
[all …]
/external/adhd/cras/src/server/
Dcras_rstream.c252 stream->buf_state = buffer_share_create(stream->buffer_frames); in cras_rstream_create()
276 buffer_share_destroy(stream->buf_state); in cras_rstream_destroy()
374 if (buffer_share_add_id(rstream->buf_state, dev_id, dev_ptr) == 0) in cras_rstream_dev_attach()
388 if (buffer_share_rm_id(rstream->buf_state, dev_id) == 0) in cras_rstream_dev_detach()
398 for (i = 0; i < rstream->buf_state->id_sz; i++) { in cras_rstream_dev_detach()
399 o = &rstream->buf_state->wr_idx[i]; in cras_rstream_dev_detach()
413 buffer_share_offset_update(rstream->buf_state, dev_id, frames); in cras_rstream_dev_offset_update()
420 rstream->buf_state); in cras_rstream_update_input_write_pointer()
429 rstream->buf_state); in cras_rstream_update_output_read_pointer()
437 return buffer_share_id_offset(rstream->buf_state, dev_id); in cras_rstream_dev_offset()
Dcras_iodev.c798 if (!iodev->buf_state) in cras_iodev_add_stream()
799 iodev->buf_state = buffer_share_create(iodev->buffer_size); in cras_iodev_add_stream()
805 buffer_share_add_id(iodev->buf_state, stream->stream->stream_id, in cras_iodev_add_stream()
824 buffer_share_rm_id(iodev->buf_state, in cras_iodev_rm_stream()
836 buffer_share_destroy(iodev->buf_state); in cras_iodev_rm_stream()
837 iodev->buf_state = NULL; in cras_iodev_rm_stream()
852 return buffer_share_id_offset(iodev->buf_state, in cras_iodev_stream_offset()
860 buffer_share_offset_update(iodev->buf_state, in cras_iodev_stream_written()
866 if (!iodev->buf_state) in cras_iodev_all_streams_written()
868 return buffer_share_get_new_write_point(iodev->buf_state); in cras_iodev_all_streams_written()
[all …]
Dcras_rstream.h89 struct buffer_share *buf_state; member
Dcras_iodev.h248 struct buffer_share *buf_state; member
Ddev_io.c440 idev->buf_state, in capture_to_streams()
456 idev->buf_state, this_read); in capture_to_streams()
/external/u-boot/test/
Dcompression.c301 struct buf_state { struct
313 struct buf_state *buf) in run_test_internal() argument
377 struct buf_state sbuf, *buf = &sbuf; in run_test()
/external/mesa3d/src/mesa/drivers/dri/i965/
DgenX_state_upload.c317 struct GENX(VERTEX_BUFFER_STATE) buf_state = { in genX()
348 GENX(VERTEX_BUFFER_STATE_pack)(brw, dw, &buf_state); in genX()