Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/common/
Datomic.h14 #define atomic_set(atomic,val) (((atomic)->value) = (val)) // 设置原子变量的初始值 argument
27 inline void atomic_add(atomic_t *ato, long val) in atomic_add()
41 inline void atomic_sub(atomic_t *ato, long val) in atomic_sub()
Dcompiler.h136 #define WRITE_ONCE(x, val) \ argument
/DragonOS-0.1.5/docs/kernel/core_api/
Datomic.md27 ### `inline void atomic_sub(atomic_t *ato, long val)`
29 #### 描
33 #### 参
/DragonOS-0.1.5/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.5/kernel/src/process/
Dprocess.c314 … int val = mm_create_vma(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, VM_USER | VM_ACCESS_FLAGS, in process_load_elf_file() local
332 int64_t val = 0; in process_load_elf_file() local
377 …int val = mm_create_vma(current_pcb->mm, current_pcb->mm->stack_start - PAGE_2M_SIZE, PAGE_2M_SIZE, in process_load_elf_file() local
/DragonOS-0.1.5/kernel/src/ktest/
Dtest-bitree.c38 int val; in ktest_bitree_case1() local
/DragonOS-0.1.5/kernel/src/libs/
Dspinlock.rs35 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.5/kernel/src/filesystem/fat/
Dfs.rs935 let val = if (cluster & 0x1) > 0 { in get_free_cluster() localVariable
981 let val = cursor.read_u16()?; in get_free_cluster() localVariable
1013 let val = cursor.read_u32()? & 0x0fffffff; in get_free_cluster() localVariable
/DragonOS-0.1.5/kernel/src/driver/usb/xhci/
Dxhci.c823 uint32_t val = xhci_read_op_reg32(id, port_status_offset + XHCI_PORT_PORTSC); in xhci_reset_port() local
844 uint32_t val = xhci_read_op_reg32(id, port_status_offset + XHCI_PORT_PORTSC); in xhci_reset_port() local
/DragonOS-0.1.5/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
/DragonOS-0.1.5/kernel/src/libs/libELF/
Delf.h571 #define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4) argument
572 #define ELF32_ST_TYPE(val) ((val) & 0xf) argument
576 #define ELF64_ST_BIND(val) ELF32_ST_BIND (val) argument
577 #define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val) argument
667 #define ELF32_R_SYM(val) ((val) >> 8) argument
668 #define ELF32_R_TYPE(val) ((val) & 0xff) argument