Searched refs:buf_state (Results 1 – 7 of 7) sorted by relevance
/external/libpng/contrib/oss-fuzz/ |
D | libpng_read_fuzzer.cc | 56 BufState* buf_state = nullptr; member 67 delete buf_state; in ~PngObjectHandler() 72 BufState* buf_state = static_cast<BufState*>(png_get_io_ptr(png_ptr)); in user_read_data() local 73 if (length > buf_state->bytes_left) { in user_read_data() 76 memcpy(data, buf_state->data, length); in user_read_data() 77 buf_state->bytes_left -= length; in user_read_data() 78 buf_state->data += length; in user_read_data() 127 png_handler.buf_state = new BufState(); in LLVMFuzzerTestOneInput() 128 png_handler.buf_state->data = data + kPngHeaderSize; in LLVMFuzzerTestOneInput() 129 png_handler.buf_state->bytes_left = size - kPngHeaderSize; in LLVMFuzzerTestOneInput() [all …]
|
/external/adhd/cras/src/server/ |
D | cras_rstream.c | 311 stream->buf_state = buffer_share_create(stream->buffer_frames); in cras_rstream_create() 338 buffer_share_destroy(stream->buf_state); in cras_rstream_destroy() 431 if (buffer_share_add_id(rstream->buf_state, dev_id, dev_ptr) == 0) in cras_rstream_dev_attach() 445 if (buffer_share_rm_id(rstream->buf_state, dev_id) == 0) in cras_rstream_dev_detach() 455 for (i = 0; i < rstream->buf_state->id_sz; i++) { in cras_rstream_dev_detach() 456 o = &rstream->buf_state->wr_idx[i]; in cras_rstream_dev_detach() 469 buffer_share_offset_update(rstream->buf_state, dev_id, frames); in cras_rstream_dev_offset_update() 475 buffer_share_get_new_write_point(rstream->buf_state); in cras_rstream_update_input_write_pointer() 485 buffer_share_get_new_write_point(rstream->buf_state); in cras_rstream_update_output_read_pointer() 498 return buffer_share_id_offset(rstream->buf_state, dev_id); in cras_rstream_dev_offset()
|
D | cras_iodev.c | 796 if (!iodev->buf_state) in cras_iodev_add_stream() 797 iodev->buf_state = buffer_share_create(iodev->buffer_size); in cras_iodev_add_stream() 815 buffer_share_add_id(iodev->buf_state, stream->stream->stream_id, in cras_iodev_start_stream() 836 buffer_share_rm_id(iodev->buf_state, in cras_iodev_rm_stream() 857 buffer_share_destroy(iodev->buf_state); in cras_iodev_rm_stream() 858 iodev->buf_state = NULL; in cras_iodev_rm_stream() 882 return buffer_share_id_offset(iodev->buf_state, in cras_iodev_stream_offset() 889 buffer_share_offset_update(iodev->buf_state, stream->stream->stream_id, in cras_iodev_stream_written() 895 if (!iodev->buf_state) in cras_iodev_all_streams_written() 897 return buffer_share_get_new_write_point(iodev->buf_state); in cras_iodev_all_streams_written() [all …]
|
D | cras_rstream.h | 88 struct buffer_share *buf_state; member 266 return buffer_share_get_data(rstream->buf_state, dev_id); in cras_rstream_dev_ptr()
|
D | cras_iodev.h | 305 struct buffer_share *buf_state; member
|
D | dev_io.c | 592 idev->buf_state, &area, in capture_to_streams() 614 idev->buf_state, this_read); in capture_to_streams()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | genX_state_upload.c | 236 struct GENX(VERTEX_BUFFER_STATE) buf_state = { in genX() 277 GENX(VERTEX_BUFFER_STATE_pack)(brw, dw, &buf_state); in genX()
|