Home
last modified time | relevance | path

Searched defs:val (Results 1 – 18 of 18) sorted by relevance

/DragonOS/docs/kernel/core_api/
H A Datomic.md27 ### `inline void atomic_sub(atomic_t *ato, long val)`
29 #### 描
33 #### 参
/DragonOS/kernel/src/common/
H A Datomic.h17 #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 Dcompiler.h136 #define WRITE_ONCE(x, val) \ argument
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs53 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 Dx2apic.rs35 let val = if self.support_eoi_broadcast_suppression() { in init_current_cpu() localVariable
H A Dxapic.rs221 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 Dioapic.rs172 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 Deventfd.rs135 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 Ddd.rs610 let val = dev.state_synced(); in show() localVariable
611 let val = if val { 1 } else { 0 }; in show() localVariable
H A Dbus.rs673 let val = if bus.subsystem().drivers_autoprobe() { in show() localVariable
/DragonOS/kernel/src/driver/firmware/efi/
H A Dfdt.rs163 let val = if prop.value.len() == 4 { in do_get_fdt_prop() localVariable
H A Dtables.rs61 let val = slice[i]; in report_systable_header() localVariable
/DragonOS/kernel/crates/bitmap/src/
H A Dbitmap_core.rs47 let val = if value { T::max() } else { T::zero() }; in set_all() localVariable
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs988 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 Darray_map.rs91 let val = self.data.index(index); in lookup_elem() localVariable
/DragonOS/kernel/src/driver/disk/ahci/
H A Dhba.rs152 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 Dtextui.rs252 let val = ((r as u32) << 16) | ((g as u32) << 8) | (b as u32); in new() localVariable
/DragonOS/kernel/src/syscall/
H A Dmod.rs733 let val = args[2] as u32; in handle() localVariable