Home
last modified time | relevance | path

Searched refs:Bounded (Results 1 – 3 of 3) sorted by relevance

/linux/rust/kernel/num/
H A Dbounded.rs240 pub struct Bounded<T: Integer, const N: u32>(T); struct
248 impl<const N: u32> Bounded<$type, N> { impl
284 impl<T, const N: u32> Bounded<T, N> impl
417 pub const fn extend<const M: u32>(self) -> Bounded<T, M> { in extend()
425 unsafe { Bounded::__new(self.0) } in extend()
446 pub fn try_shrink<const M: u32>(self) -> Option<Bounded<T, M>> { in try_shrink()
447 Bounded::<T, M>::try_new(self.get()) in try_shrink()
469 pub fn cast<U>(self) -> Bounded<U, N> in cast()
481 unsafe { Bounded::__new(value) } in cast()
497 pub fn shr<const SHIFT: u32, const RES: u32>(self) -> Bounded<T, RES> { in shr()
[all …]
/linux/rust/kernel/
H A Dbitfield.rs390 ::kernel::num::Bounded<$storage, { $hi + 1 - $lo }> {
398 let val = ::kernel::num::Bounded::<$storage, { $storage::BITS }>::from(
407 value: ::kernel::num::Bounded<$storage, { $hi + 1 - $lo }>,
461 ::kernel::num::Bounded<$storage, { $hi + 1 - $lo }>
490 ::kernel::num::Bounded<$storage, { $hi + 1 - $lo }>
500 ::kernel::num::Bounded::<$storage, { $hi + 1 - $lo }>::new::<VALUE>()
511 where T: ::core::convert::Into<::kernel::num::Bounded<$storage, { $hi + 1 - $lo }>>,
558 use kernel::num::Bounded;
570 impl TryFrom<Bounded<u64, 4>> for MemoryType {
572 fn try_from(value: Bounded<u64, 4>) -> Result<Self, Self::Error> { in try_from()
[all …]
/linux/Documentation/admin-guide/media/
H A Dvivid.rst551 The receiver supports HW frequency seek, either in Bounded mode, Wrap Around
1059 can be one of "Bounded", "Wrap Around" or "Both". This