Lines Matching defs:usize

46     pub fn new(lba_start: usize, lba_end: usize) -> Option<Self> {  in new()
54 pub fn len(&self) -> usize { in len()
97 pub fn new(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new()
105 pub fn new_multiblock(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new_multiblock()
190 pub fn len(&self) -> usize { in len()
203 pub fn origin_begin(&self) -> usize { in origin_begin()
207 pub fn origin_end(&self) -> usize { in origin_end()
214 pub fn __bytes_to_lba(addr: usize, blk_size: usize) -> BlockId { in __bytes_to_lba()
220 pub fn __lba_to_bytes(lba_id: usize, blk_size: usize) -> BlockId { in __lba_to_bytes()
239 pub fn id(&self) -> usize { in id()
309 count: usize, in read_at_sync()
311 ) -> Result<usize, SystemError>; in read_at_sync()
323 count: usize, in write_at_sync()
325 ) -> Result<usize, SystemError>; in write_at_sync()
346 fn block_size(&self) -> usize; in block_size()
356 count: usize, in read_at()
358 ) -> Result<usize, SystemError> { in read_at()
367 count: usize, in write_at()
369 ) -> Result<usize, SystemError> { in write_at()
378 count: usize, in cache_read()
380 ) -> Result<usize, SystemError> { in cache_read()
409 count: usize, in cache_write()
411 ) -> Result<usize, SystemError> { in cache_write()
416 fn write_at_bytes(&self, offset: usize, len: usize, buf: &[u8]) -> Result<usize, SystemError> { in write_at_bytes()
451 offset: usize, in read_at_bytes()
452 len: usize, in read_at_bytes()
454 ) -> Result<usize, SystemError> { in read_at_bytes()
504 fn major_to_index(major: Major) -> usize { in major_to_index()
673 pub fn bdev_del(_devnum: DeviceNumber, _range: usize) { in bdev_del()