Home
last modified time | relevance | path

Searched refs:write_offset (Results 1 – 18 of 18) sorted by relevance

/external/adhd/cras/src/common/
Dcras_shm.h54 uint32_t write_offset[CRAS_NUM_SHM_BUFFERS]; member
114 unsigned read_offset, write_offset; in cras_shm_get_curr_read_frames() local
118 write_offset = in cras_shm_get_curr_read_frames()
119 cras_shm_check_write_offset(shm, shm->area->write_offset[i]); in cras_shm_get_curr_read_frames()
121 if (read_offset > write_offset) in cras_shm_get_curr_read_frames()
124 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_curr_read_frames()
151 unsigned write_offset; in cras_shm_get_writeable_frames() local
155 write_offset = cras_shm_check_write_offset(shm, in cras_shm_get_writeable_frames()
156 shm->area->write_offset[i]); in cras_shm_get_writeable_frames()
157 written = write_offset / frame_bytes; in cras_shm_get_writeable_frames()
[all …]
/external/adhd/cras/src/tests/
Dshm_unittest.cc48 shm_.area->write_offset[0] = 100 * shm_.area->config.frame_bytes; in TEST_F()
61 shm_.area->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F()
67 EXPECT_EQ(shm_.area->write_offset[0] - 10 * shm_.config.frame_bytes, in TEST_F()
75 shm_.area->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F()
87 shm_.area->write_offset[0] = 240 * shm_.config.frame_bytes; in TEST_F()
89 shm_.area->write_offset[1] = 240 * shm_.config.frame_bytes; in TEST_F()
104 shm_.area->write_offset[0] = 240 * shm_.config.frame_bytes; in TEST_F()
106 shm_.area->write_offset[1] = 240 * shm_.config.frame_bytes; in TEST_F()
123 shm_.area->write_offset[shm_.area->read_buf_idx] = in TEST_F()
127 shm_.area->write_offset[0] = 240 * shm_.config.frame_bytes; in TEST_F()
[all …]
Daudio_thread_unittest_obsolete.cc282 EXPECT_EQ(0, shm_->area->write_offset[0]); in TEST_F()
718 shm_->area->write_offset[0] = cb_threshold_ * 4; in TEST_F()
747 shm_->area->write_offset[0] = 0; in TEST_F()
754 select_write_ptr = &shm_->area->write_offset[0]; in TEST_F()
782 shm_->area->write_offset[0] = cras_shm_used_size(shm_); in TEST_F()
799 shm_->area->write_offset[0] = cras_shm_used_size(shm_); in TEST_F()
815 EXPECT_EQ(cras_shm_used_size(shm_), shm_->area->write_offset[0]); in TEST_F()
816 EXPECT_EQ(0, shm_->area->write_offset[1]); in TEST_F()
829 shm_->area->write_offset[0] = 0; in TEST_F()
835 select_write_ptr = &shm_->area->write_offset[0]; in TEST_F()
[all …]
Dcras_client_unittest.cc136 shm->area->write_offset[0] = 480 * 4; in TEST_F()
147 EXPECT_EQ(0, shm->area->write_offset[0]); in TEST_F()
153 shm->area->write_offset[0] = 0; in TEST_F()
162 shm->area->write_offset[0] = 123; in TEST_F()
Daudio_thread_unittest.cc715 shm_area.write_offset[0] = 1 * 4; in TEST()
718 shm_area.write_offset[0] = 479 * 4; in TEST()
721 shm_area.write_offset[0] = 0; in TEST()
725 shm_area.write_offset[0] = 479 * 4; in TEST()
Ddev_stream_unittest.cc687 rstream_.shm.area->write_offset[0] = 0; in TEST_F()
688 rstream_.shm.area->write_offset[1] = 0; in TEST_F()
693 rstream_.shm.area->write_offset[0] = kBufferFrames; in TEST_F()
694 rstream_.shm.area->write_offset[1] = kBufferFrames; in TEST_F()
/external/perfetto/src/ipc/
Dbuffered_frame_deserializer_fuzzer.cc28 size_t write_offset = 0; in LLVMFuzzerTestOneInput() local
29 while (write_offset < size) { in LLVMFuzzerTestOneInput()
30 size_t available_size = size - write_offset; in LLVMFuzzerTestOneInput()
36 write_offset += chunk_size; in LLVMFuzzerTestOneInput()
/external/boringssl/src/crypto/bio/
Dpair.c274 size_t write_offset; in bio_write() local
279 write_offset = b->offset + b->len; in bio_write()
280 if (write_offset >= b->size) { in bio_write()
281 write_offset -= b->size; in bio_write()
285 if (write_offset + rest <= b->size) { in bio_write()
289 chunk = b->size - write_offset; in bio_write()
292 OPENSSL_memcpy(b->buf + write_offset, buf, chunk); in bio_write()
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate01.c223 loff_t write_offset, lseek_offset; in runtest() local
254 write_offset = random() % len; in runtest()
255 lseek_offset = lseek(fd, write_offset, SEEK_CUR); in runtest()
256 if (lseek_offset != offset + write_offset) { in runtest()
/external/python/cpython2/Lib/
Dsocket.py303 write_offset = 0
306 while write_offset < data_size:
307 self._sock.sendall(view[write_offset:write_offset+buffer_size])
308 write_offset += buffer_size
310 if write_offset < data_size:
311 remainder = data[write_offset:]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_ff_gs_emit.c170 int write_offset = 0; in brw_ff_gs_emit_vue() local
175 int write_len = MIN2(c->nr_regs - write_offset, 14); in brw_ff_gs_emit_vue()
176 if (write_len == c->nr_regs - write_offset) in brw_ff_gs_emit_vue()
181 brw_copy8(p, brw_message_reg(1), offset(vert, write_offset), write_len); in brw_ff_gs_emit_vue()
204 write_offset, /* urb offset */ in brw_ff_gs_emit_vue()
206 write_offset += write_len; in brw_ff_gs_emit_vue()
Dintel_buffer_objects.c635 GLintptr read_offset, GLintptr write_offset, in brw_copy_buffer_subdata() argument
646 dst_bo = intel_bufferobj_buffer(brw, intel_dst, write_offset, size, true); in brw_copy_buffer_subdata()
651 dst_bo, write_offset, size); in brw_copy_buffer_subdata()
/external/libchrome/base/strings/
Dstring_util.cc842 size_t write_offset = first_match; in DoReplaceMatchesAfterOffset() local
846 CharTraits::copy(buffer + write_offset, replace_with.data(), in DoReplaceMatchesAfterOffset()
848 write_offset += replace_length; in DoReplaceMatchesAfterOffset()
857 CharTraits::move(buffer + write_offset, buffer + read_offset, length); in DoReplaceMatchesAfterOffset()
858 write_offset += length; in DoReplaceMatchesAfterOffset()
864 str->resize(write_offset); in DoReplaceMatchesAfterOffset()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_buffer_objects.c598 GLintptr read_offset, GLintptr write_offset, in intel_bufferobj_copy_subdata() argument
620 memmove(ptr + write_offset, ptr + read_offset, size); in intel_bufferobj_copy_subdata()
633 memcpy(dst_ptr + write_offset, src_ptr + read_offset, size); in intel_bufferobj_copy_subdata()
647 dst_bo, write_offset, in intel_bufferobj_copy_subdata()
/external/libchrome/mojo/core/
Ddata_pipe_producer_dispatcher.cc36 uint32_t write_offset; member
269 state->write_offset = write_offset_; in EndSerialize()
366 dispatcher->write_offset_ = state->write_offset; in Deserialize()
/external/mesa3d/src/compiler/glsl/
Dlower_ubo_reference.cpp584 ir_variable *write_offset = in write_to_memory() local
589 base_ir->insert_before(write_offset); in write_to_memory()
590 base_ir->insert_before(assign(write_offset, offset)); in write_to_memory()
593 emit_access(mem_ctx, true, deref, write_offset, const_offset, in write_to_memory()
/external/adhd/cras/src/server/
Ddev_io.c147 shm->area->write_offset[0], in fetch_streams()
148 shm->area->write_offset[1]); in fetch_streams()
/external/curl/tests/python_dependencies/impacket/
Dsmb.py2952 write_offset = offset
2958 smb = self.write_andx(tid,fid,data, write_offset)
2961 write_offset += writeResponseParameters['Count']
4015 write_offset = offset
4022 smb = self.write_andx(treeId,fileId,writeData, write_offset)
4025 write_offset += writeResponseParameters['Count']