Lines Matching defs:usize
61 pub fn new(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new()
69 pub fn new_multiblock(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new_multiblock()
153 pub fn len(&self) -> usize { in len()
166 pub fn origin_begin(&self) -> usize { in origin_begin()
170 pub fn origin_end(&self) -> usize { in origin_end()
177 pub fn __bytes_to_lba(addr: usize, blk_size: usize) -> BlockId { in __bytes_to_lba()
183 pub fn __lba_to_bytes(lba_id: usize, blk_size: usize) -> BlockId { in __lba_to_bytes()
200 count: usize, in read_at()
202 ) -> Result<usize, SystemError>; in read_at()
214 count: usize, in write_at()
216 ) -> Result<usize, SystemError>; in write_at()
237 fn block_size(&self) -> usize; in block_size()
242 fn write_at_bytes(&self, offset: usize, len: usize, buf: &[u8]) -> Result<usize, SystemError> { in write_at_bytes()
280 offset: usize, in read_at_bytes()
281 len: usize, in read_at_bytes()
283 ) -> Result<usize, SystemError> { in read_at_bytes()
334 fn major_to_index(major: Major) -> usize { in major_to_index()
504 pub fn bdev_del(_devnum: DeviceNumber, _range: usize) { in bdev_del()