Searched refs:page (Results 1 – 7 of 7) sorted by relevance
| /rust/helpers/ |
| A D | page.c | 6 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 D | page.rs | 39 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 D | configfs.rs | 115 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 D | lib.rs | 106 pub mod page; module
|
| /rust/kernel/mm/ |
| A D | virt.rs | 21 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 D | phy.rs | 194 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 D | CONTRIBUTING.md | 24 You can ask questions in the Discussions page of the GitHub repository. If you're encountering
|
Completed in 13 milliseconds