Lines Matching refs:offset

168     pub fn add_page(&self, offset: usize, page: &Arc<Page>) {  in add_page()
170 let mut cursor = guard.cursor_mut(offset as u64); in add_page()
174 pub fn get_page(&self, offset: usize) -> Option<Arc<Page>> { in get_page()
176 let mut cursor = guard.cursor_mut(offset as u64); in get_page()
181 pub fn remove_page(&self, offset: usize) { in remove_page()
183 let mut cursor = guard.cursor_mut(offset as u64); in remove_page()
201 offset: AtomicUsize, field
229 offset: AtomicUsize::new(0), in new()
250 self.offset.load(core::sync::atomic::Ordering::SeqCst), in read()
266 self.offset.load(core::sync::atomic::Ordering::SeqCst), in write()
282 pub fn pread(&self, offset: usize, len: usize, buf: &mut [u8]) -> Result<usize, SystemError> { in pread()
283 self.do_read(offset, len, buf, false) in pread()
295 pub fn pwrite(&self, offset: usize, len: usize, buf: &[u8]) -> Result<usize, SystemError> { in pwrite()
296 self.do_write(offset, len, buf, false) in pwrite()
301 offset: usize, in do_read()
314 .read_at(offset, len, buf, self.private_data.lock()) in do_read()
324 self.offset in do_read()
333 offset: usize, in do_write()
345 if offset > self.inode.metadata()?.size as usize { in do_write()
346 self.inode.resize(offset).map_err(|e| { in do_write()
356 .write_at(offset, len, buf, self.private_data.lock()) in do_write()
366 self.offset in do_write()
397 SeekFrom::SeekSet(offset) => offset, in lseek()
398 SeekFrom::SeekCurrent(offset) => self.offset.load(Ordering::SeqCst) as i64 + offset, in lseek()
399 SeekFrom::SeekEnd(offset) => { in lseek()
401 metadata.size + offset in lseek()
412 self.offset.store(pos as usize, Ordering::SeqCst); in lseek()
443 let offset = self.offset.load(Ordering::SeqCst); in readdir() localVariable
445 if offset == 0 { in readdir()
453 if offset == readdir_subdirs_name.len() { in readdir()
454 self.offset.store(0, Ordering::SeqCst); in readdir()
457 let name = &readdir_subdirs_name[offset]; in readdir()
480 self.offset.fetch_add(1, Ordering::SeqCst); in readdir()
504 offset: AtomicUsize::new(self.offset.load(Ordering::SeqCst)), in try_clone()