/DragonOS-0.1.2/kernel/src/common/ |
D | atomic.h | 14 #define atomic_set(atomic,val) (((atomic)->value) = (val)) // 设置原子变量的初始值 argument 27 inline void atomic_add(atomic_t *ato, long val) in atomic_add() argument 31 : "m"(val) in atomic_add() 41 inline void atomic_sub(atomic_t *ato, long val) in atomic_sub() argument 45 : "m"(val) in atomic_sub()
|
D | compiler.h | 136 #define WRITE_ONCE(x, val) \ argument 142 } __u = {.val = (val)}; \
|
/DragonOS-0.1.2/kernel/src/driver/interrupt/apic/ |
D | apic_timer.h | 51 register uint32_t val = (mode << 17) | vector | (mask ? (APIC_LVT_INT_MASKED) : 0); in apic_timer_set_LVT() local 53 wrmsr(0x832, val); in apic_timer_set_LVT() 55 __write4b(APIC_LOCAL_APIC_VIRT_BASE_ADDR + LOCAL_APIC_OFFSET_Local_APIC_LVT_TIMER, val); in apic_timer_set_LVT() 97 uint32_t val = apic_timer_get_LVT(); \ 98 val |= APIC_LVT_INT_MASKED; \ 99 apic_timer_write_LVT(val); \
|
D | apic_timer.c | 15 uint64_t val = apic_timer_get_LVT(); in apic_timer_enable() local 17 val &= (~APIC_LVT_INT_MASKED); in apic_timer_enable() 19 apic_timer_write_LVT(val); in apic_timer_enable()
|
/DragonOS-0.1.2/docs/kernel/core_api/ |
D | atomic.md | 11 ### `inline void atomic_add(atomic_t *ato, long val)` 23 **val** 27 ### `inline void atomic_sub(atomic_t *ato, long val)` argument 39 **val**
|
/DragonOS-0.1.2/kernel/src/ktest/ |
D | test-bitree.c | 38 int val; in ktest_bitree_case1() local 61 val = bt_insert(tree, tv2); in ktest_bitree_case1() 62 assert(val == 0); in ktest_bitree_case1() 70 val = bt_insert(tree, tv3); in ktest_bitree_case1() 71 assert(val == 0); in ktest_bitree_case1() 92 val = bt_insert(tree, tv4); in ktest_bitree_case1() 93 assert(val == 0); in ktest_bitree_case1()
|
/DragonOS-0.1.2/kernel/src/libs/ |
D | spinlock.rs | 30 let val = unsafe { read_volatile(&lock.lock as *const i8) }; in spin_is_locked() localVariable 32 return if val == 0 { true } else { false }; in spin_is_locked()
|
D | lz4.c | 374 U16 val; in LZ4_read16() local 375 LZ4_memcpy(&val, memPtr, sizeof(val)); in LZ4_read16() 376 return val; in LZ4_read16() 381 U32 val; in LZ4_read32() local 382 LZ4_memcpy(&val, memPtr, sizeof(val)); in LZ4_read32() 383 return val; in LZ4_read32() 388 reg_t val; in LZ4_read_ARCH() local 389 LZ4_memcpy(&val, memPtr, sizeof(val)); in LZ4_read_ARCH() 390 return val; in LZ4_read_ARCH() 553 static unsigned LZ4_NbCommonBytes(reg_t val) in LZ4_NbCommonBytes() argument [all …]
|
/DragonOS-0.1.2/kernel/src/process/ |
D | process.c | 288 … 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 291 if (val == -EEXIST) in process_load_elf_file() 302 int64_t val = 0; in process_load_elf_file() local 306 … val = filp->file_ops->read(filp, (char *)(virt_base + beginning_offset), to_trans, &pos); in process_load_elf_file() 309 if (val < 0) in process_load_elf_file() 313 remain_file_size -= val; in process_load_elf_file() 325 …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 327 if (val == -EEXIST) in process_load_elf_file()
|
/DragonOS-0.1.2/kernel/src/driver/uart/ |
D | uart.rs | 28 pub fn from_u16(val: u16) -> Result<Self, &'static str> { in from_u16() 29 match val { in from_u16()
|
/DragonOS-0.1.2/kernel/src/libs/libELF/ |
D | elf.h | 571 #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
|
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/ |
D | xhci.c | 821 uint32_t val = xhci_read_op_reg32(id, port_status_offset + XHCI_PORT_PORTSC); in xhci_reset_port() local 823 if (val & (1 << 21)) in xhci_reset_port() 828 if (XHCI_PORT_IS_USB3(id, port) && (val & (1U << 31)) == 0) in xhci_reset_port() 830 else if (XHCI_PORT_IS_USB2(id, port) && (val & (1 << 4)) == 0) in xhci_reset_port() 842 uint32_t val = xhci_read_op_reg32(id, port_status_offset + XHCI_PORT_PORTSC); in xhci_reset_port() local 848 if (val & (1 << 1)) in xhci_reset_port()
|