Home
last modified time | relevance | path

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

/external/adhd/cras/src/common/
Dcras_shm.h55 uint32_t write_offset[CRAS_NUM_SHM_BUFFERS]; member
205 unsigned write_offset = shm->header->write_offset[buf_idx]; in cras_shm_get_checked_write_offset() local
212 write_offset = MIN(write_offset, shm->config.used_size); in cras_shm_get_checked_write_offset()
216 if (buffer_offset + write_offset > shm->samples_info.length) in cras_shm_get_checked_write_offset()
218 return write_offset; in cras_shm_get_checked_write_offset()
226 unsigned read_offset, write_offset; in cras_shm_get_curr_read_frames() local
229 write_offset = cras_shm_get_checked_write_offset(shm, buf_idx); in cras_shm_get_curr_read_frames()
231 if (read_offset > write_offset) in cras_shm_get_curr_read_frames()
234 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_curr_read_frames()
260 unsigned write_offset; in cras_shm_get_writeable_frames() local
[all …]
/external/adhd/cras/src/tests/
Dshm_unittest.cc51 shm_.header->write_offset[0] = 100 * shm_.header->config.frame_bytes; in TEST_F()
65 shm_.header->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F()
71 EXPECT_EQ(shm_.header->write_offset[0] - 10 * shm_.config.frame_bytes, in TEST_F()
79 shm_.header->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F()
92 shm_.header->write_offset[0] = (used_size / 2); in TEST_F()
94 shm_.header->write_offset[1] = (used_size / 2); in TEST_F()
113 shm_.header->write_offset[0] = (used_size / 2); in TEST_F()
115 shm_.header->write_offset[1] = (used_size / 2); in TEST_F()
136 shm_.header->write_offset[buf_idx] = (used_size / 2); in TEST_F()
138 shm_.header->write_offset[0] = (used_size / 2); in TEST_F()
[all …]
Daudio_thread_unittest_obsolete.cc271 EXPECT_EQ(0, shm_->area->write_offset[0]); in TEST_F()
701 shm_->area->write_offset[0] = cb_threshold_ * 4; in TEST_F()
730 shm_->area->write_offset[0] = 0; in TEST_F()
737 select_write_ptr = &shm_->area->write_offset[0]; in TEST_F()
765 shm_->area->write_offset[0] = cras_shm_used_size(shm_); in TEST_F()
782 shm_->area->write_offset[0] = cras_shm_used_size(shm_); in TEST_F()
798 EXPECT_EQ(cras_shm_used_size(shm_), shm_->area->write_offset[0]); in TEST_F()
799 EXPECT_EQ(0, shm_->area->write_offset[1]); in TEST_F()
812 shm_->area->write_offset[0] = 0; in TEST_F()
818 select_write_ptr = &shm_->area->write_offset[0]; in TEST_F()
[all …]
Dcras_client_unittest.cc136 shm->header->write_offset[0] = 480 * 4; in TEST_F()
147 EXPECT_EQ(0, shm->header->write_offset[0]); in TEST_F()
153 shm->header->write_offset[0] = 0; in TEST_F()
162 shm->header->write_offset[0] = 123; in TEST_F()
Daudio_thread_unittest.cc511 shm_header->write_offset[0] = 0; in TEST_F()
685 shm_header->write_offset[0] = 0; in TEST_F()
696 shm_header->write_offset[0] = cras_shm_used_size(rstream.shm); in TEST_F()
703 shm_header->write_offset[0] = 0; in TEST_F()
991 shm_header->write_offset[0] = 1 * 4; in TEST()
994 shm_header->write_offset[0] = 479 * 4; in TEST()
997 shm_header->write_offset[0] = 0; in TEST()
1001 shm_header->write_offset[0] = 479 * 4; in TEST()
/external/adhd/cras/client/libcras/src/
Dcras_shm.rs58 write_offset: [VolatileRef<'a, u32>; CRAS_NUM_SHM_BUFFERS as usize], field
122 write_offset: [ in new()
123 vref_from_addr!(addr, write_offset[0]), in new()
124 vref_from_addr!(addr, write_offset[1]), in new()
297 let write_offset = self.write_offset.get(idx).ok_or_else(index_out_of_range)?; in set_write_offset() localVariable
298 write_offset.store(offset); in set_write_offset()
419 let write_offset = self.write_offset.get(idx).ok_or_else(index_out_of_range)?; in get_readable_frames() localVariable
421 (write_offset.load() as i32 - read_offset.load() as i32) / self.get_frame_size() as i32; in get_readable_frames()
444 let write_offset = self.write_offset.get(idx).ok_or_else(index_out_of_range)?; in commit_read_frames() localVariable
446 if read_offset.load() >= write_offset.load() { in commit_read_frames()
[all …]
/external/perfetto/src/ipc/
Dbuffered_frame_deserializer_fuzzer.cc27 size_t write_offset = 0; in LLVMFuzzerTestOneInput() local
28 while (write_offset < size) { in LLVMFuzzerTestOneInput()
29 size_t available_size = size - write_offset; in LLVMFuzzerTestOneInput()
35 write_offset += chunk_size; in LLVMFuzzerTestOneInput()
/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/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/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.c638 GLintptr read_offset, GLintptr write_offset, in brw_copy_buffer_subdata() argument
649 dst_bo = intel_bufferobj_buffer(brw, intel_dst, write_offset, size, true); in brw_copy_buffer_subdata()
654 dst_bo, write_offset, size); in brw_copy_buffer_subdata()
/external/perfetto/src/profiling/perf/
Devent_reader.cc136 uint64_t write_offset = in ReadRecordNonconsuming() local
140 PERFETTO_DCHECK(read_offset <= write_offset); in ReadRecordNonconsuming()
141 if (write_offset == read_offset) in ReadRecordNonconsuming()
/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.cpp587 ir_variable *write_offset = in write_to_memory() local
592 base_ir->insert_before(write_offset); in write_to_memory()
593 base_ir->insert_before(assign(write_offset, offset)); in write_to_memory()
596 emit_access(mem_ctx, true, deref, write_offset, const_offset, in write_to_memory()
/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']
/external/adhd/cras/src/server/
Ddev_io.c186 shm->header->write_offset[0], in fetch_streams()
187 shm->header->write_offset[1]); in fetch_streams()
/external/adhd/cras/client/cras-sys/src/
Dgen.rs4453 pub write_offset: [u32; 2usize], field
4522 &(*(::std::ptr::null::<cras_audio_shm_header>())).write_offset as *const _ as usize in bindgen_test_layout_cras_audio_shm_header()
4529 stringify!(write_offset) in bindgen_test_layout_cras_audio_shm_header()