Home
last modified time | relevance | path

Searched refs:r (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.2/kernel/src/libs/
Drefcount.rs42 pub fn refcount_inc(r: &mut RefCount) { in refcount_inc()
43 if atomic_read(&r.refs) == 0{ in refcount_inc()
48 atomic_inc(&mut r.refs); in refcount_inc()
55 pub fn refcount_dec(r: &mut RefCount){ in refcount_dec()
57 atomic_dec(&mut r.refs); in refcount_dec()
Dlz4.c564 unsigned long r = 0; in LZ4_NbCommonBytes()
565 _BitScanForward64(&r, (U64)val); in LZ4_NbCommonBytes()
566 return (unsigned)r >> 3; in LZ4_NbCommonBytes()
580 unsigned long r; in LZ4_NbCommonBytes() local
581 _BitScanForward(&r, (U32)val); in LZ4_NbCommonBytes()
582 return (unsigned)r >> 3; in LZ4_NbCommonBytes()
745 unsigned r; in LZ4_NbCommonBytes()
748 r = 4; in LZ4_NbCommonBytes()
752 r = 0; in LZ4_NbCommonBytes()
757 r += 2; in LZ4_NbCommonBytes()
[all …]
/DragonOS-0.1.2/kernel/src/mm/
Dmmio-buddy.c99 …struct __mmio_buddy_addr_region *r = container_of(list_next(&__mmio_pool.free_regions[__exp2index(… in __buddy_pop_region() local
101 list_del(&r->list); in __buddy_pop_region()
104 return r; in __buddy_pop_region()
195 struct __mmio_buddy_addr_region *r = __buddy_pop_region(down_exp); in mmio_buddy_query_addr_region() local
196 __buddy_split(r, down_exp); in mmio_buddy_query_addr_region()
/DragonOS-0.1.2/kernel/src/libs/libUI/
Dtextui-render.c17 #define calculate_color(r, g, b) ((((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff)) & 0x00fffff… argument
/DragonOS-0.1.2/kernel/src/process/
Dfork.rs27 let r = RefCount::convert_mut(unsafe { &mut (*(current_pcb().sighand)).count }).unwrap(); in process_copy_sighand() localVariable
28 refcount_inc(r); in process_copy_sighand()
/DragonOS-0.1.2/kernel/src/driver/disk/ahci/
Dahci.h290 uint8_t r : 1; // Reset member