Lines Matching refs:len
55 pub fn new_init(start: usize, len: usize, phys_addr: PhysAddr) -> Self { in new_init()
56 Self::init(start as _, len, phys_addr) in new_init()
100 let sample_size = PerfSample::calculate_size(data.len()); in write_event()
160 let data_len = data.len(); in write_any()
180 size: size_of::<SampleHeader>() as u16 + data.len() as u16, in write_sample()
182 size: data.len() as u32, in write_sample()
233 pub fn do_mmap(&self, _start: usize, len: usize, offset: usize) -> Result<()> { in do_mmap()
237 unsafe { LockedFrameAllocator.allocate(PageFrameCount::new(len / PAGE_SIZE)) } in do_mmap()
250 let mmap_page = RingPage::new_init(virt_addr.data(), len, phy_addr); in do_mmap()
268 let len = data.mmap_page.size; in drop() localVariable
269 let page_count = PageFrameCount::new(len / PAGE_SIZE); in drop()
279 fn mmap(&self, start: usize, len: usize, offset: usize) -> Result<()> { in mmap()
280 self.do_mmap(start, len, offset) in mmap()