Home
last modified time | relevance | path

Searched refs:ans (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/driver/video/fbdev/base/
H A Drender_helper.rs36 let mut ans = Self { in new() localVariable
51 ans.current = *ans.src.next().unwrap(); in new()
52 return ans; in new()
57 let mut ans = 0; in reverse() localVariable
60 ans |= mask & num; in reverse()
61 ans <<= 8; in reverse()
64 ans |= mask & num; in reverse()
65 ans >>= (4 - byte_per_pixel) * 8; in reverse()
66 return ans; in reverse()
/DragonOS/kernel/src/driver/block/cache/
H A Dcache_iter.rs67 let ans = BlockData::new( in next() localVariable
73 Some(ans) in next()
H A Dcached_block_device.rs404 let ans = self.current; in index_append() localVariable
408 return ans; in index_append()
412 let ans = self.current; in index_replace() localVariable
415 return ans; in index_replace()
/DragonOS/kernel/src/libs/
H A Dprintk.c35 int ans = 0; in skip_and_atoi() local
38 ans = ans * 10 + (**s) - '0'; in skip_and_atoi()
41 return ans; in skip_and_atoi()
/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs386 let ans = self.read_at_sync(lba_id_start, count, buf)?; in cache_read() localVariable
387 return Ok(ans); in cache_read()
390 let ans = self.read_at_sync(lba_id_start, count, buf)?; in cache_read() localVariable
392 return Ok(ans); in cache_read()
395 let ans = self.read_at_sync(lba_id_start, count, buf)?; in cache_read() localVariable
396 return Ok(ans); in cache_read()