Lines Matching defs:usize
29 #[repr(usize)]
42 pub const fn into_raw(self) -> usize {
44 // within `usize` without truncation or sign change.
45 self as usize
61 const SIZE: usize;
65 const SIZE: usize = 256;
69 const SIZE: usize = 4096;
89 unsafe fn io_read(&self, address: usize) -> $ty {
103 unsafe fn io_write(&self, value: $ty, address: usize) {
124 fn addr(&self) -> usize {
130 fn maxsize(&self) -> usize {
136 const MIN_SIZE: usize = S::SIZE;
148 pub struct Bar<'a, const SIZE: usize = 0> {
154 impl<'a, const SIZE: usize> Bar<'a, SIZE> {
181 let ioptr: usize = unsafe { bindings::pci_iomap(pdev.as_raw(), num, 0) } as usize;
190 let io = match MmioRaw::new(ioptr, len as usize) {
208 unsafe fn do_release(pdev: &Device, ioptr: usize, num: i32) {
246 impl<const SIZE: usize> Drop for Bar<'_, SIZE> {
252 impl<const SIZE: usize> Deref for Bar<'_, SIZE> {
264 pub fn iomap_region_sized<'a, const SIZE: usize>(