Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 4 of 4) sorted by relevance

/rust/kernel/io/
A Dmem.rs77 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a { in iomap_sized() argument
153 iomem: IoMem<SIZE>,
162 impl<const SIZE: usize> ExclusiveIoMem<SIZE> {
197 impl<const SIZE: usize> Deref for ExclusiveIoMem<SIZE> {
198 type Target = Io<SIZE>;
214 pub struct IoMem<const SIZE: usize = 0> {
215 io: IoRaw<SIZE>,
218 impl<const SIZE: usize> IoMem<SIZE> {
265 impl<const SIZE: usize> Drop for IoMem<SIZE> {
272 impl<const SIZE: usize> Deref for IoMem<SIZE> {
[all …]
/rust/kernel/
A Dio.rs23 pub struct IoRaw<const SIZE: usize = 0> {
28 impl<const SIZE: usize> IoRaw<SIZE> {
31 if maxsize < SIZE { in new()
113 pub struct Io<const SIZE: usize = 0>(IoRaw<SIZE>);
174 impl<const SIZE: usize> Io<SIZE> {
181 pub unsafe fn from_raw(raw: &IoRaw<SIZE>) -> &Self { in from_raw()
221 build_assert!(Self::offset_valid::<U>(offset, SIZE)); in io_addr_assert()
A Dpci.rs284 pub struct Bar<const SIZE: usize = 0> {
286 io: IoRaw<SIZE>,
290 impl<const SIZE: usize> Bar<SIZE> {
368 impl<const SIZE: usize> Drop for Bar<SIZE> {
374 impl<const SIZE: usize> Deref for Bar<SIZE> {
375 type Target = Io<SIZE>;
418 pub fn iomap_region_sized<'a, const SIZE: usize>( in iomap_region_sized()
422 ) -> impl PinInit<Devres<Bar<SIZE>>, Error> + 'a { in iomap_region_sized() argument
423 Devres::new(self.as_ref(), Bar::<SIZE>::new(self, bar, name)) in iomap_region_sized()
/rust/kernel/drm/gem/
A Dmod.rs211 pub const SIZE: usize = mem::size_of::<Self>(); consts

Completed in 6 milliseconds