Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/common/
Datomic.h15 #define atomic_set(atomic,val) (((atomic)->value) = (val)) // 设置原子变量的初始值 argument
28 inline void atomic_add(atomic_t *ato, long val) in atomic_add()
42 inline void atomic_sub(atomic_t *ato, long val) in atomic_sub()
Dcompiler.h136 #define WRITE_ONCE(x, val) \ argument
/DragonOS-0.1.8/docs/kernel/core_api/
Datomic.md27 ### `inline void atomic_sub(atomic_t *ato, long val)`
29 #### 描
33 #### 参
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic_timer.h51 register uint32_t val = (mode << 17) | vector | (mask ? (APIC_LVT_INT_MASKED) : 0); in apic_timer_set_LVT() local
Dapic_timer.c32 uint64_t val = apic_timer_get_LVT(); in apic_timer_enable() local
/DragonOS-0.1.8/kernel/src/driver/tty/
Dmod.rs107 let val = self.write_stdin(buf, block)?; in input() localVariable
159 let val: Result<mpsc::RecvRef<u8>, TryRecvError> = self.stdin_rx.try_recv_ref(); in read_stdin() localVariable
234 let val: Result<mpsc::RecvRef<u8>, TryRecvError> = self.output_rx.try_recv_ref(); in read_output() localVariable
/DragonOS-0.1.8/kernel/src/ktest/
Dtest-bitree.c38 int val; in ktest_bitree_case1() local
/DragonOS-0.1.8/kernel/src/process/
Dprocess.c179 int val = 0; in initial_kernel_thread() local
/DragonOS-0.1.8/kernel/src/libs/
Dspinlock.rs36 let val = unsafe { read_volatile(&lock.lock as *const i8) }; in spin_is_locked() localVariable
Dlz4.c374 U16 val; in LZ4_read16() local
381 U32 val; in LZ4_read32() local
388 reg_t val; in LZ4_read_ARCH() local
553 static unsigned LZ4_NbCommonBytes(reg_t val) in LZ4_NbCommonBytes()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs945 let val = if (cluster & 0x1) > 0 { in get_free_cluster() localVariable
991 let val = cursor.read_u16()?; in get_free_cluster() localVariable
1023 let val = cursor.read_u32()? & 0x0fffffff; in get_free_cluster() localVariable
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dhba.rs150 let val: u32 = volatile_read!(self.cmd) | HBA_PORT_CMD_FRE | HBA_PORT_CMD_ST; in start() localVariable