Home
last modified time | relevance | path

Searched refs:page (Results 1 – 7 of 7) sorted by relevance

/rust/helpers/
A Dpage.c6 struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsigned int order) in rust_helper_alloc_pages()
11 void *rust_helper_kmap_local_page(struct page *page) in rust_helper_kmap_local_page() argument
13 return kmap_local_page(page); in rust_helper_kmap_local_page()
/rust/kernel/
A Dpage.rs39 page: NonNull<bindings::page>, field
76 let page = unsafe { bindings::alloc_pages(flags.as_raw(), 0) }; in alloc_page()
77 let page = NonNull::new(page).ok_or(AllocError)?; in alloc_page()
80 Ok(Self { page }) in alloc_page()
84 pub fn as_ptr(&self) -> *mut bindings::page { in as_ptr() argument
85 self.page.as_ptr() in as_ptr()
258 unsafe { bindings::__free_pages(self.page.as_ptr(), 0) }; in drop()
A Dconfigfs.rs115 use crate::page::PAGE_SIZE;
552 page: *mut kernel::ffi::c_char, in show()
564 let ret = O::show(data, unsafe { &mut *(page.cast::<[u8; PAGE_SIZE]>()) }); in show()
585 page: *const kernel::ffi::c_char, in store()
601 unsafe { core::slice::from_raw_parts(page.cast(), size) }, in store()
655 fn show(data: &Self::Data, page: &mut [u8; PAGE_SIZE]) -> Result<usize>; in show()
A Dlib.rs106 pub mod page; module
/rust/kernel/mm/
A Dvirt.rs21 page::Page,
194 pub fn vm_insert_page(&self, address: usize, page: &Page) -> Result { in vm_insert_page()
197 to_result(unsafe { bindings::vm_insert_page(self.as_ptr(), address, page.as_ptr()) }) in vm_insert_page()
/rust/kernel/net/
A Dphy.rs194 pub fn read_paged(&mut self, page: u16, regnum: u16) -> Result<u16> { in read_paged()
198 let ret = unsafe { bindings::phy_read_paged(phydev, page.into(), regnum.into()) }; in read_paged()
/rust/pin-init/
A DCONTRIBUTING.md24 You can ask questions in the Discussions page of the GitHub repository. If you're encountering

Completed in 13 milliseconds