/DragonOS/docs/kernel/core_api/ |
H A D | atomic.md | 27 ### `inline void atomic_sub(atomic_t *ato, long val)` 29 #### 描述 33 #### 参数
|
/DragonOS/kernel/src/common/ |
H A D | atomic.h | 17 #define atomic_set(atomic, val) (((atomic)->value) = (val)) // 设置原子变量的初始值 argument 30 inline void atomic_add(atomic_t *ato, long val) in atomic_add() 44 inline void atomic_sub(atomic_t *ato, long val) in atomic_sub()
|
H A D | compiler.h | 136 #define WRITE_ONCE(x, val) \ argument
|
/DragonOS/kernel/src/include/bindings/ |
H A D | linux_bpf.rs | 53 let mut val = 0; in get() localVariable 205 let val: u8 = ::core::mem::transmute(val); in set_dst_reg() localVariable 216 let val: u8 = ::core::mem::transmute(val); in set_src_reg() localVariable 1022 let val: u32 = ::core::mem::transmute(val); in set_gpl_compatible() localVariable 1345 pub val: __s32, field 1570 let val: u64 = ::core::mem::transmute(val); in set_disabled() localVariable 1581 let val: u64 = ::core::mem::transmute(val); in set_inherit() localVariable 1592 let val: u64 = ::core::mem::transmute(val); in set_pinned() localVariable 1603 let val: u64 = ::core::mem::transmute(val); in set_exclusive() localVariable 1614 let val: u64 = ::core::mem::transmute(val); in set_exclude_user() localVariable [all …]
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | x2apic.rs | 35 let val = if self.support_eoi_broadcast_suppression() { in init_current_cpu() localVariable
|
H A D | xapic.rs | 221 let val = x86::msr::rdmsr(x86::msr::APIC_BASE); in init_current_cpu() localVariable 227 let val = self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR); in init_current_cpu() localVariable 231 let val = self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR); in init_current_cpu() localVariable
|
H A D | ioapic.rs | 172 let mut val = unsafe { self.read(REG_TABLE + 2 * rte_index) }; in enable() localVariable 179 let mut val = unsafe { self.read(reg) }; in disable() localVariable
|
/DragonOS/kernel/src/filesystem/ |
H A D | eventfd.rs | 135 let mut val = lock_efd.count; in read_at() localVariable 172 let val = u64::from_ne_bytes(buf[..8].try_into().unwrap()); in write_at() localVariable
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | dd.rs | 610 let val = dev.state_synced(); in show() localVariable 611 let val = if val { 1 } else { 0 }; in show() localVariable
|
H A D | bus.rs | 673 let val = if bus.subsystem().drivers_autoprobe() { in show() localVariable
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | fdt.rs | 163 let val = if prop.value.len() == 4 { in do_get_fdt_prop() localVariable
|
H A D | tables.rs | 61 let val = slice[i]; in report_systable_header() localVariable
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | bitmap_core.rs | 47 let val = if value { T::max() } else { T::zero() }; in set_all() localVariable
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 988 let val = if (cluster & 0x1) > 0 { in get_free_cluster() localVariable 1031 let val = cursor.read_u16()?; in get_free_cluster() localVariable 1060 let val = cursor.read_u32()? & 0x0fffffff; in get_free_cluster() localVariable
|
/DragonOS/kernel/src/bpf/map/ |
H A D | array_map.rs | 91 let val = self.data.index(index); in lookup_elem() localVariable
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | hba.rs | 152 let val: u32 = volatile_read!(self.cmd) | HBA_PORT_CMD_FRE | HBA_PORT_CMD_ST; in start() localVariable
|
/DragonOS/kernel/src/libs/lib_ui/ |
H A D | textui.rs | 252 let val = ((r as u32) << 16) | ((g as u32) << 8) | (b as u32); in new() localVariable
|
/DragonOS/kernel/src/syscall/ |
H A D | mod.rs | 733 let val = args[2] as u32; in handle() localVariable
|