Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 9 of 9) sorted by relevance

/rust/helpers/
A Dio.c18 iounmap(addr); in rust_helper_iounmap()
23 return readb(addr); in rust_helper_readb()
28 return readw(addr); in rust_helper_readw()
33 return readl(addr); in rust_helper_readl()
39 return readq(addr); in rust_helper_readq()
45 writeb(value, addr); in rust_helper_writeb()
50 writew(value, addr); in rust_helper_writew()
55 writel(value, addr); in rust_helper_writel()
61 writeq(value, addr); in rust_helper_writeq()
67 return readb_relaxed(addr); in rust_helper_readb_relaxed()
[all …]
A Dpage.c16 void rust_helper_kunmap_local(const void *addr) in rust_helper_kunmap_local() argument
18 kunmap_local(addr); in rust_helper_kunmap_local()
A Dmm.c42 unsigned long addr) in rust_helper_vma_lookup() argument
44 return vma_lookup(mm, addr); in rust_helper_vma_lookup()
/rust/kernel/
A Dio.rs24 addr: usize, field
30 pub fn new(addr: usize, maxsize: usize) -> Result<Self> { in new()
35 Ok(Self { addr, maxsize }) in new()
40 pub fn addr(&self) -> usize { in addr() method
41 self.addr in addr()
136 let addr = self.io_addr::<$type_name>(offset)?;
165 let addr = self.io_addr::<$type_name>(offset)?;
188 pub fn addr(&self) -> usize { in addr() method
189 self.0.addr() in addr()
216 self.addr().checked_add(offset).ok_or(EINVAL) in io_addr()
[all …]
A Duaccess.rs27 pub fn from_addr(addr: usize) -> Self { in from_addr()
28 Self(addr as *mut c_void) in from_addr()
33 pub fn from_ptr(addr: *mut c_void) -> Self { in from_ptr()
34 Self(addr) in from_ptr()
A Dpage.rs27 pub const fn page_align(addr: usize) -> usize { in page_align()
30 (addr + (PAGE_SIZE - 1)) & PAGE_MASK in page_align()
A Dpci.rs357 unsafe { Self::do_release(&self.pdev, self.io.addr(), self.num) }; in release()
/rust/kernel/io/
A Dmem.rs231 let addr = if resource in ioremap()
246 if addr.is_null() { in ioremap()
250 let io = IoRaw::new(addr as usize, size)?; in ioremap()
268 unsafe { bindings::iounmap(self.io.addr() as *mut c_void) } in drop()
/rust/kernel/net/phy/
A Dreg.rs111 bindings::mdiobus_read((*phydev).mdio.bus, (*phydev).mdio.addr, self.0.into()) in read()
123 bindings::mdiobus_write((*phydev).mdio.bus, (*phydev).mdio.addr, self.0.into(), val) in write()

Completed in 14 milliseconds