Home
last modified time | relevance | path

Searched refs:try_new (Results 1 – 5 of 5) sorted by relevance

/linux/rust/kernel/
H A Ddma.rs141 let Ok(mask) = Self::try_new(N) else { in new()
172 pub const fn try_new(n: u32) -> Result<Self> { in try_new() method
H A Di2c.rs565 Devres::new(parent_dev, Self::try_new(i2c_adapter, i2c_board_info)) in new()
568 fn try_new(i2c_adapter: &I2cAdapter, i2c_board_info: &I2cBoardInfo) -> Result<Self> { in try_new() method
/linux/rust/kernel/num/
H A Dbounded.rs331 pub fn try_new(value: T) -> Option<Self> { in try_new() function
440 Bounded::<T, M>::try_new(self.get()) in try_shrink()
525 self.try_into().ok().and_then(Bounded::try_new) in try_into_bounded()
/linux/drivers/android/binder/range_alloc/
H A Dtree.rs437 pub(crate) fn try_new() -> Result<Self> { in try_new() method
473 pub(crate) fn try_new(len: usize) -> Result<Self> { in try_new() method
/linux/drivers/android/binder/
H A Dthread.rs293 reply_work: ThreadError::try_new()?, in new()
294 return_work: ThreadError::try_new()?, in new()
1575 fn try_new() -> Result<DArc<Self>> { in try_new() method