Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Ddma.rs123 let Ok(mask) = Self::try_new(N) else { in new()
154 pub const fn try_new(n: u32) -> Result<Self> { in try_new() method
H A Di2c.rs556 Devres::new(parent_dev, Self::try_new(i2c_adapter, i2c_board_info)) in new()
559 fn try_new(i2c_adapter: &I2cAdapter, i2c_board_info: &I2cBoardInfo) -> Result<Self> { in try_new() method
/linux/rust/kernel/num/
H A Dbounded.rs329 pub fn try_new(value: T) -> Option<Self> { in try_new() function
437 Bounded::<T, M>::try_new(self.get()) in try_shrink()
522 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.rs285 reply_work: ThreadError::try_new()?, in new()
286 return_work: ThreadError::try_new()?, in new()
1546 fn try_new() -> Result<DArc<Self>> { in try_new() method