Home
last modified time | relevance | path

Searched refs:file_offset (Results 1 – 25 of 144) sorted by relevance

123456

/external/crosvm/cros_async/src/sys/windows/
Dtokio_source.rs147 pub async fn punch_hole(&self, file_offset: u64, len: u64) -> AsyncResult<()> { in punch_hole()
156 .punch_hole(file_offset, len) in punch_hole()
164 file_offset: Option<u64>, in read_to_mem()
176 match file_offset { in read_to_mem()
177 Some(file_offset) => file in read_to_mem()
178 .read_vectored_at_volatile(memory_slices.as_slice(), file_offset) in read_to_mem()
190 file_offset: Option<u64>, in read_to_vec()
199 if let Some(file_offset) = file_offset { in read_to_vec()
200 file.seek(SeekFrom::Start(file_offset)) in read_to_vec()
220 file_offset: Option<u64>, in write_from_mem()
[all …]
Dhandle_source.rs180 file_offset: Option<u64>, in read_to_vec()
191 if let Some(file_offset) = file_offset { in read_to_vec()
192 file.seek(SeekFrom::Start(file_offset)) in read_to_vec()
208 file_offset: Option<u64>, in read_to_mem()
223 match file_offset { in read_to_mem()
224 Some(file_offset) => file in read_to_mem()
225 .read_vectored_at_volatile(memory_slices.as_slice(), file_offset) in read_to_mem()
250 file_offset: Option<u64>, in write_from_vec()
261 if let Some(file_offset) = file_offset { in write_from_vec()
262 file.seek(SeekFrom::Start(file_offset)) in write_from_vec()
[all …]
Doverlapped_source.rs148 file_offset: Option<u64>, in read_to_vec()
151 if self.seek_forbidden && file_offset.is_some() { in read_to_vec()
158 let mut overlapped_op = self.reg_source.register_overlapped_operation(file_offset)?; in read_to_vec()
178 file_offset: Option<u64>, in read_to_mem()
183 let mut offset = match file_offset { in read_to_mem()
237 file_offset: Option<u64>, in write_from_vec()
240 if self.seek_forbidden && file_offset.is_some() { in write_from_vec()
247 let mut overlapped_op = self.reg_source.register_overlapped_operation(file_offset)?; in write_from_vec()
267 file_offset: Option<u64>, in write_from_mem()
272 let mut offset = match file_offset { in write_from_mem()
[all …]
/external/crosvm/cros_async/src/sys/linux/
Dtokio_source.rs106 file_offset: Option<u64>, in do_read_vectored()
112 let res = match file_offset { in do_read_vectored()
123 fn do_read(raw: Arc<OwnedFd>, file_offset: Option<u64>, buf: &mut [u8]) -> io::Result<usize> { in do_read()
126 let res = match file_offset { in do_read()
138 fn do_write(raw: Arc<OwnedFd>, file_offset: Option<u64>, buf: &[u8]) -> io::Result<usize> { in do_write()
141 let res = match file_offset { in do_write()
155 file_offset: Option<u64>, in do_write_vectored()
161 let res = match file_offset { in do_write_vectored()
236 file_offset: Option<u64>, in read_to_vec()
243 do_read(fd.clone(), file_offset, &mut vec) in read_to_vec()
[all …]
Dpoll_source.rs103 file_offset: Option<u64>, in read_to_vec()
107 let res = if let Some(offset) = file_offset { in read_to_vec()
150 file_offset: Option<u64>, in read_to_mem()
160 let res = if let Some(offset) = file_offset { in read_to_mem()
217 file_offset: Option<u64>, in write_from_vec()
221 let res = if let Some(offset) = file_offset { in write_from_vec()
264 file_offset: Option<u64>, in write_from_mem()
275 let res = if let Some(offset) = file_offset { in write_from_mem()
333 pub async fn punch_hole(&self, file_offset: u64, len: u64) -> AsyncResult<()> { in punch_hole()
337 file_offset, in punch_hole()
[all …]
During_source.rs41 file_offset: Option<u64>, in read_to_vec()
46 file_offset, in read_to_vec()
73 file_offset: Option<u64>, in read_to_mem()
79 .start_read_to_mem(file_offset, mem, mem_offsets)?; in read_to_mem()
87 file_offset: Option<u64>, in write_from_vec()
92 file_offset, in write_from_vec()
112 file_offset: Option<u64>, in write_from_mem()
118 .start_write_from_mem(file_offset, mem, mem_offsets)?; in write_from_mem()
124 pub async fn punch_hole(&self, file_offset: u64, len: u64) -> AsyncResult<()> { in punch_hole()
126 file_offset, in punch_hole()
[all …]
/external/rust/android-crates-io/extra_versions/crates/vm-memory/src/
Dmmap_unix.rs59 file_offset: Option<FileOffset>, field
84 file_offset: None, in new_with_bitmap()
104 pub fn with_file_offset(mut self, file_offset: FileOffset) -> Self { in with_file_offset()
105 self.file_offset = Some(file_offset); in with_file_offset()
138 let (fd, offset) = if let Some(ref f_off) = self.file_offset { in build()
180 file_offset: self.file_offset, in build()
203 file_offset: self.file_offset, in build_raw()
226 file_offset: Option<FileOffset>, field
259 pub fn from_file(file_offset: FileOffset, size: usize) -> Result<Self> { in from_file()
261 .with_file_offset(file_offset) in from_file()
[all …]
Dmmap_windows.rs78 file_offset: Option<FileOffset>, field
107 file_offset: None, in new()
117 pub fn from_file(file_offset: FileOffset, size: usize) -> io::Result<Self> { in from_file()
118 let handle = file_offset.file().as_raw_handle(); in from_file()
137 let offset = file_offset.start(); in from_file()
162 file_offset: Some(file_offset), in from_file()
183 pub fn file_offset(&self) -> Option<&FileOffset> { in file_offset() method
184 self.file_offset.as_ref() in file_offset()
258 let file_offset = FileOffset::new(file, 0); in map_invalid_handle() localVariable
259 let e = MmapRegion::from_file(file_offset, 1024).unwrap_err(); in map_invalid_handle()
Dmmap_xen.rs76 file_offset: Option<FileOffset>, field
89 file_offset: Option<FileOffset>, in new()
96 file_offset, in new()
107 pub fn new_unix(size: usize, file_offset: Option<FileOffset>, addr: GuestAddress) -> Self { in new_unix()
108 let flags = Some(match file_offset { in new_unix()
115 file_offset, in new_unix()
156 file_offset: Option<FileOffset>, field
270 file_offset: range.file_offset, in from_range()
293 pub fn file_offset(&self) -> Option<&FileOffset> { in file_offset() method
294 self.file_offset.as_ref() in file_offset()
[all …]
/external/rust/android-crates-io/crates/vm-memory/src/
Dmmap_unix.rs60 file_offset: Option<FileOffset>, field
85 file_offset: None, in new_with_bitmap()
105 pub fn with_file_offset(mut self, file_offset: FileOffset) -> Self { in with_file_offset()
106 self.file_offset = Some(file_offset); in with_file_offset()
139 let (fd, offset) = if let Some(ref f_off) = self.file_offset { in build()
181 file_offset: self.file_offset, in build()
204 file_offset: self.file_offset, in build_raw()
227 file_offset: Option<FileOffset>, field
260 pub fn from_file(file_offset: FileOffset, size: usize) -> Result<Self> { in from_file()
262 .with_file_offset(file_offset) in from_file()
[all …]
Dmmap_windows.rs78 file_offset: Option<FileOffset>, field
107 file_offset: None, in new()
117 pub fn from_file(file_offset: FileOffset, size: usize) -> io::Result<Self> { in from_file()
118 let handle = file_offset.file().as_raw_handle(); in from_file()
137 let offset = file_offset.start(); in from_file()
162 file_offset: Some(file_offset), in from_file()
183 pub fn file_offset(&self) -> Option<&FileOffset> { in file_offset() method
184 self.file_offset.as_ref() in file_offset()
258 let file_offset = FileOffset::new(file, 0); in map_invalid_handle() localVariable
259 let e = MmapRegion::from_file(file_offset, 1024).unwrap_err(); in map_invalid_handle()
Dmmap_xen.rs76 file_offset: Option<FileOffset>, field
89 file_offset: Option<FileOffset>, in new()
96 file_offset, in new()
107 pub fn new_unix(size: usize, file_offset: Option<FileOffset>, addr: GuestAddress) -> Self { in new_unix()
108 let flags = Some(match file_offset { in new_unix()
115 file_offset, in new_unix()
156 file_offset: Option<FileOffset>, field
270 file_offset: range.file_offset, in from_range()
293 pub fn file_offset(&self) -> Option<&FileOffset> { in file_offset() method
294 self.file_offset.as_ref() in file_offset()
[all …]
/external/mesa3d/src/amd/common/
Dac_rgp.c591 struct sqtt_file_chunk_code_object_database *chunk, size_t file_offset, in ac_sqtt_fill_code_object() argument
599 chunk->offset = file_offset; in ac_sqtt_fill_code_object()
624 size_t file_offset) in ac_sqtt_fill_loader_events() argument
634 chunk->offset = file_offset; in ac_sqtt_fill_loader_events()
655 struct sqtt_file_chunk_pso_correlation *chunk, size_t file_offset) in ac_sqtt_fill_pso_correlation() argument
664 chunk->offset = file_offset; in ac_sqtt_fill_pso_correlation()
914 size_t file_offset, in ac_sqtt_dump_spm() argument
921 size_t file_spm_db_offset = file_offset; in ac_sqtt_dump_spm()
924 file_offset += sizeof(struct sqtt_file_chunk_spm_db); in ac_sqtt_dump_spm()
937 file_offset += sizeof(timestamp); in ac_sqtt_dump_spm()
[all …]
/external/crosvm/disk/src/
Dasynchronous.rs114 mut file_offset: u64, in read_to_mem()
126 .read_at_volatile(mem_slice, file_offset) in read_to_mem()
132 file_offset += bytes_read as u64; in read_to_mem()
141 mut file_offset: u64, in write_from_mem()
153 .write_at_volatile(mem_slice, file_offset) in write_from_mem()
159 file_offset += bytes_written as u64; in write_from_mem()
166 async fn punch_hole(&self, file_offset: u64, length: u64) -> Result<()> { in punch_hole()
171 .punch_hole(file_offset, length) in punch_hole()
177 async fn write_zeroes_at(&self, file_offset: u64, length: u64) -> Result<()> { in write_zeroes_at()
182 .write_zeroes_all_at(file_offset, length as usize) in write_zeroes_at()
Ddisk.rs360 file_offset: u64, in read_to_mem()
368 file_offset: u64, in write_from_mem()
374 async fn punch_hole(&self, file_offset: u64, length: u64) -> Result<()>; in punch_hole()
377 async fn write_zeroes_at(&self, file_offset: u64, length: u64) -> Result<()>; in write_zeroes_at()
382 async fn read_double_buffered(&self, file_offset: u64, buf: &mut [u8]) -> Result<usize> { in read_double_buffered()
390 file_offset, in read_double_buffered()
407 async fn write_double_buffered(&self, file_offset: u64, buf: &[u8]) -> Result<usize> { in write_double_buffered()
414 file_offset, in write_double_buffered()
465 file_offset: u64, in read_to_mem()
470 .read_to_mem(Some(file_offset), mem, mem_offsets) in read_to_mem()
[all …]
/external/icing/icing/file/
Dportable-file-backed-proto-log.h357 libtextclassifier3::StatusOr<ProtoT> ReadProto(int64_t file_offset) const;
365 libtextclassifier3::Status EraseProto(int64_t file_offset);
549 const Filesystem* const filesystem, int fd, int64_t file_offset,
975 PortableFileBackedProtoLog<ProtoT>::ReadProto(int64_t file_offset) const { in ReadProto() argument
978 ReadProtoMetadata(filesystem_, fd_.get(), file_offset, file_size_)); in ReadProto()
982 file_offset += sizeof(metadata); in ReadProto()
985 if (file_offset + stored_size > file_size_) { in ReadProto()
989 static_cast<long long>(file_offset), in ReadProto()
993 if (!filesystem_->PRead(fd_.get(), buf.get(), stored_size, file_offset)) { in ReadProto()
1017 int64_t file_offset) { in EraseProto() argument
[all …]
Dfile-backed-proto-log.h179 libtextclassifier3::StatusOr<ProtoT> ReadProto(int64_t file_offset) const;
278 MemoryMappedFile* mmapped_file, int64_t file_offset, int64_t file_size);
540 int64_t file_offset) const { in ReadProto() argument
546 if (file_offset >= file_size) { in ReadProto()
552 static_cast<long long>(file_offset), in ReadProto()
558 int metadata, ReadProtoMetadata(&mmapped_file, file_offset, file_size)); in ReadProto()
564 mmapped_file.Remap(file_offset + sizeof(metadata), stored_size)); in ReadProto()
641 MemoryMappedFile* mmapped_file, int64_t file_offset, int64_t file_size) { in ReadProtoMetadata() argument
643 if (file_offset >= file_size) { in ReadProtoMetadata()
646 static_cast<long long>(file_offset), in ReadProtoMetadata()
[all …]
Dmemory-mapped-file_test.cc68 EXPECT_THAT(mmapped_file.file_offset(), Eq(0)); in TEST_F()
95 EXPECT_THAT(mmapped_file.file_offset(), Eq(0)); in TEST_F()
143 EXPECT_THAT(mmapped_file.file_offset(), Eq(pre_mapping_file_offset)); in TEST_F()
237 int file_offset = 99; in TEST_F() local
238 int mmap_size = page_size * 2 - file_offset; in TEST_F()
239 ICING_ASSERT_OK(mmapped_file.Remap(file_offset, mmap_size)); in TEST_F()
244 ICING_EXPECT_OK(mmapped_file.Remap(file_offset, /*mmap_size=*/0)); in TEST_F()
276 EXPECT_THAT(mmapped_file.file_offset(), Eq(pre_mapping_file_offset)); in TEST_F()
289 EXPECT_THAT(mmapped_file.file_offset(), Eq(pre_mapping_file_offset)); in TEST_F()
334 EXPECT_THAT(mmapped_file.file_offset(), Eq(pre_mapping_file_offset)); in TEST_F()
[all …]
/external/perfetto/src/trace_processor/util/
Dtrace_blob_view_reader.h86 reader_->SliceOff(file_offset(), delta); in MaybeRead()
99 size_t begin = file_offset(); in MaybeFindAndRead()
104 reader_->SliceOff(begin, file_offset() - begin); in MaybeFindAndRead()
117 size_t file_offset() const { return file_offset_; } in file_offset() function
124 size_t file_offset, in Iterator() argument
128 file_offset_(file_offset), in Iterator()
Dtrace_blob_view_reader_unittest.cc113 for (size_t file_offset = 0; file_offset <= kExpectedSize; ++file_offset) { in TEST() local
114 EXPECT_TRUE(buffer.PopFrontUntil(file_offset)); in TEST()
115 for (size_t off = file_offset; off <= kExpectedSize; ++off) { in TEST()
/external/brotli/research/
Ddeorummolae.cc77 std::vector<TextIdx>* file_offset, TextChar* next_terminator) { in buildFullText() argument
79 file_offset->resize(0); in buildFullText()
82 file_offset->push_back(full_text->size()); in buildFullText()
127 std::vector<TextIdx>* file_offset, TextChar* next_terminator) { in poisonData() argument
129 pos -= file_offset->at(f); in poisonData()
150 std::vector<TextIdx>* file_map, std::vector<TextIdx>* file_offset) { in cutMatch() argument
156 sa->at(i), length, data, file_map, file_offset, next_terminator); in cutMatch()
160 sa->at(index), length, data, file_map, file_offset, next_terminator); in cutMatch()
213 std::vector<TextIdx> file_offset; in DM_generate() local
227 buildFullText(&data, &full_text, &file_map, &file_offset, &next_terminator); in DM_generate()
[all …]
/external/crosvm/cros_async/src/
Dio_source.rs84 file_offset: Option<u64>, in read_to_vec()
87 await_on_inner!(self, read_to_vec, file_offset, vec) in read_to_vec()
93 file_offset: Option<u64>, in read_to_mem()
97 await_on_inner!(self, read_to_mem, file_offset, mem, mem_offsets) in read_to_mem()
108 file_offset: Option<u64>, in write_from_vec()
111 await_on_inner!(self, write_from_vec, file_offset, vec) in write_from_vec()
117 file_offset: Option<u64>, in write_from_mem()
121 await_on_inner!(self, write_from_mem, file_offset, mem, mem_offsets) in write_from_mem()
125 pub async fn punch_hole(&self, file_offset: u64, len: u64) -> AsyncResult<()> { in punch_hole()
126 await_on_inner!(self, punch_hole, file_offset, len) in punch_hole()
[all …]
/external/mesa3d/src/panfrost/tools/
Dpanfrostdump.c62 uint32_t file_offset; member
109 pdoh->file_offset = le32toh(doh_le.file_offset); in read_header()
275 if (fseek(data_fp, doh.file_offset, SEEK_SET)) { in main()
311 uint32_t bomap_offset = doh.file_offset; in main()
350 if (fseek(data_fp, doh.file_offset, SEEK_SET)) { in main()
361 fseek(data_fp, doh.file_offset, SEEK_SET); in main()
/external/coreboot/src/commonlib/
Dfsp_relocate.c543 size_t file_offset; in relocate_fvh() local
585 file_offset = offset; in relocate_fvh()
586 while (file_offset + sizeof(*ffsfh) < size) { in relocate_fvh()
587 offset = file_offset; in relocate_fvh()
588 printk(FSP_DBG_LVL, "file offset: %zx\n", file_offset); in relocate_fvh()
592 *fih_offset = file_offset; in relocate_fvh()
594 ffsfh = relative_offset(fsp, file_offset); in relocate_fvh()
605 file_offset += ffs_file_size(ffsfh); in relocate_fvh()
606 file_offset = ALIGN_UP(file_offset, 8); in relocate_fvh()
614 while (offset + sizeof(*csh) < file_offset) { in relocate_fvh()
[all …]
/external/dynamic_depth/internal/dynamic_depth/
Ddynamic_depth.cc96 size_t file_offset = 0; in GetItemPayload() local
109 file_offset += item->GetLength(); in GetItemPayload()
122 if (file_offset == 0) { in GetItemPayload()
131 ParseFileAfterImageFromStream(file_offset, file_length, input_jpeg_stream, in GetItemPayload()

123456