/DragonOS-0.1.3/kernel/src/common/ |
D | atomic.h | 13 #define atomic_read(atomic) ((atomic)->value) // 读取原子变量 14 #define atomic_set(atomic,val) (((atomic)->value) = (val)) // 设置原子变量的初始值 18 volatile long value; member 30 : "=m"(ato->value) in atomic_add() 44 : "=m"(ato->value) in atomic_sub() 57 : "=m"(ato->value) in atomic_inc() 58 : "m"(ato->value) in atomic_inc() 70 : "=m"(ato->value) in atomic_dec() 71 : "m"(ato->value) in atomic_dec() 83 : "=m"(ato->value) in atomic_set_mask() [all …]
|
D | bitree.h | 9 void *value; // 数据 member 22 int (*release)(void *value); 33 …*bt_create_tree(struct bt_node_t *node, int (*cmp)(void *a, void *b), int (*release)(void *value)); 43 …reate_node(struct bt_node_t *left, struct bt_node_t *right, struct bt_node_t *parent, void *value); 52 int bt_insert(struct bt_root_t *root, void *value); 62 int bt_query(struct bt_root_t *root, void *value, uint64_t *ret_addr); 71 int bt_delete(struct bt_root_t *root, void *value);
|
D | glib.h | 157 void io_out8(unsigned short port, unsigned char value) in io_out8() argument 162 : "a"(value), "d"(port) in io_out8() 167 void io_out32(unsigned short port, unsigned int value) in io_out32() argument 172 : "a"(value), "d"(port) in io_out32() 284 static __always_inline void __write8b(uint64_t vaddr, uint64_t value) in __write8b() argument 286 asm volatile("movq %%rdx, 0(%%rax)" ::"a"(vaddr), "d"(value) in __write8b() 298 static __always_inline void __write4b(uint64_t vaddr, uint32_t value) in __write4b() argument 300 asm volatile("movl %%edx, 0(%%rax)" ::"a"(vaddr), "d"(value) in __write4b()
|
D | hid.h | 101 int value; // hid对象的值 member 132 uint32_t value; // 暂存当前的值 member 153 int value; member 159 int value; member
|
/DragonOS-0.1.3/kernel/src/libs/ |
D | atomic.rs | 10 return read_volatile(&(*ato).value); in atomic_read() 16 pub fn atomic_set(ato: *mut atomic_t, value:i64) { in atomic_set() 18 write_volatile(&mut (*ato).value, value); in atomic_set() 24 Self { value: 0 } in default()
|
D | bitree.c | 8 #define smaller(root, a, b) (root->cmp((a)->value, (b)->value) == -1) 9 #define equal(root, a, b) (root->cmp((a)->value, (b)->value) == 0) 10 #define greater(root, a, b) (root->cmp((a)->value, (b)->value) == 1) 20 … *bt_create_tree(struct bt_node_t *node, int (*cmp)(void *a, void *b), int (*release)(void *value)) in bt_create_tree() argument 43 …create_node(struct bt_node_t *left, struct bt_node_t *right, struct bt_node_t *parent, void *value) in bt_create_node() argument 51 node->value = value; in bt_create_node() 65 int bt_insert(struct bt_root_t *root, void *value) in bt_insert() argument 72 struct bt_node_t *insert_node = bt_create_node(NULL, NULL, NULL, value); in bt_insert() 108 int bt_query(struct bt_root_t *root, void *value, uint64_t *ret_addr) in bt_query() argument 112 tmp_node.value = value; in bt_query() [all …]
|
D | refcount.rs | 12 Self { refs: atomic_t { value: 1 }} in default() 34 refs: $crate::include::bindings::bindings::atomic_t { value: $x },
|
D | spinlock.rs | 125 pub unsafe fn set_value(&mut self, value:bool){ in set_value() 126 self.0.store(value, Ordering::SeqCst); in set_value()
|
D | lz4.c | 172 #define expect(expr, value) (__builtin_expect((expr), (value))) argument 174 #define expect(expr, value) (expr) argument 349 static void LZ4_write16(void *memPtr, U16 value) { *(U16 *)memPtr = value; } in LZ4_write16() argument 350 static void LZ4_write32(void *memPtr, U32 value) { *(U32 *)memPtr = value; } in LZ4_write32() argument 367 static void LZ4_write16(void *memPtr, U16 value) { ((unalign *)memPtr)->u16 = value; } in LZ4_write16() argument 368 static void LZ4_write32(void *memPtr, U32 value) { ((unalign *)memPtr)->u32 = value; } in LZ4_write32() argument 393 static void LZ4_write16(void *memPtr, U16 value) in LZ4_write16() argument 395 LZ4_memcpy(memPtr, &value, sizeof(value)); in LZ4_write16() 398 static void LZ4_write32(void *memPtr, U32 value) in LZ4_write32() argument 400 LZ4_memcpy(memPtr, &value, sizeof(value)); in LZ4_write32() [all …]
|
/DragonOS-0.1.3/kernel/src/driver/hid/ |
D | hidparse.c | 21 static const char *hid_get_collection_str(const int value); 61 static __always_inline uint32_t __format_value(uint32_t value, uint8_t size) in __format_value() argument 66 value = (uint32_t)(uint8_t)value; in __format_value() 69 value = (uint32_t)(uint16_t)value; in __format_value() 72 return value; in __format_value() 131 parser->value = 0; in hid_parse() 133 …memcpy(&parser->value, &parser->report_desc[parser->pos], item_size[parser->item & HID_SIZE_MASK]); in hid_parse() 153 parser->u_page = (int)parser->value; in hid_parse() 163 parser->usage_table[parser->usage_size].u_page = (int)(parser->value >> 16); in hid_parse() 169 hid_get_usage_type_str(parser->u_page, parser->value & 0xffff)); in hid_parse() [all …]
|
/DragonOS-0.1.3/kernel/src/driver/usb/xhci/ |
D | internal.h | 15 #define xhci_write_cap_reg32(id, offset, value) (__write4b(xhci_hc[id].vbase + (offset), (value))) argument 19 #define xhci_write_cap_reg64(id, offset, value) (__write8b(xhci_hc[id].vbase + (offset), (value))) argument 23 #define xhci_write_op_reg8(id, offset, value) (*(uint8_t *)(xhci_hc[id].vbase_op + (offset)) = (uin… argument 27 #define xhci_write_op_reg32(id, offset, value) (__write4b(xhci_hc[id].vbase_op + (offset), (value))) argument 31 #define xhci_write_op_reg64(id, offset, value) (__write8b(xhci_hc[id].vbase_op + (offset), (value))) argument 46 …i_write_intr_reg32(id, num, intr_offset, value) (__write4b(xhci_calc_intr_vaddr(id, num) + (intr_o… argument 48 …i_write_intr_reg64(id, num, intr_offset, value) (__write8b(xhci_calc_intr_vaddr(id, num) + (intr_o… argument
|
D | xhci.h | 163 uint16_t value; member
|
/DragonOS-0.1.3/kernel/src/ktest/ |
D | test-bitree.c | 25 static int release(void *value) in release() argument 46 assert(rn->value == tv1); in ktest_bitree_case1() 76 assert(((struct test_value_t *)tree->bt_node->left->value)->tv == tv2->tv); in ktest_bitree_case1() 77 assert(((struct test_value_t *)tree->bt_node->right->value)->tv == tv3->tv); in ktest_bitree_case1() 84 assert(node2->value == tv2); in ktest_bitree_case1() 97 assert(((struct test_value_t *)node2->right->value)->tv == tv4->tv); in ktest_bitree_case1() 109 assert(bt_delete(tree, rn->value) == 0); in ktest_bitree_case1() 110 assert(((struct test_value_t *)tree->bt_node->value)->tv != 20); in ktest_bitree_case1()
|
/DragonOS-0.1.3/kernel/src/driver/interrupt/apic/ |
D | apic_timer.h | 58 static __always_inline void apic_timer_write_LVT(uint32_t value) in apic_timer_write_LVT() argument 61 wrmsr(0x832, value); in apic_timer_write_LVT() 63 __write4b(APIC_LOCAL_APIC_VIRT_BASE_ADDR + LOCAL_APIC_OFFSET_Local_APIC_LVT_TIMER, value); in apic_timer_write_LVT()
|
D | apic.c | 502 void apic_ioapic_write_rte(unsigned char index, ul value) in apic_ioapic_write_rte() argument 508 *apic_ioapic_map.virtual_data_addr = value & 0xffffffff; in apic_ioapic_write_rte() 511 value >>= 32; in apic_ioapic_write_rte() 515 *apic_ioapic_map.virtual_data_addr = value & 0xffffffff; in apic_ioapic_write_rte() 523 ul value = apic_ioapic_read_rte(index); in apic_ioapic_enable() local 524 value &= (~0x10000UL); in apic_ioapic_enable() 525 apic_ioapic_write_rte(index, value); in apic_ioapic_enable() 531 ul value = apic_ioapic_read_rte(index); in apic_ioapic_disable() local 532 value |= (0x10000UL); in apic_ioapic_disable() 533 apic_ioapic_write_rte(index, value); in apic_ioapic_disable()
|
D | apic.h | 281 void apic_ioapic_write_rte(unsigned char index, ul value);
|
/DragonOS-0.1.3/kernel/src/arch/x86_64/include/asm/ |
D | asm.h | 119 void wrmsr(uint64_t address, uint64_t value) in wrmsr() argument 121 __asm__ __volatile__("wrmsr \n\t" ::"d"(value >> 32), "a"(value & 0xffffffff), "c"(address) in wrmsr()
|
/DragonOS-0.1.3/docs/userland/libc/apis/api-list/ |
D | errno.md | 22 …#define EAGAIN 6 /* 资源不可用,请重试。 Resource unavailable, try again (may be the same value as… 81 #define EMFILE 33 /* 文件描述符的值过大 File descriptor value too large.*/ 141 #define ENOTSUP 61 /* 不被支持 Not supported (may be the same value as [EOPNOTSUPP]).*/ 147 …SUPP 64 /* 套接字不支持该操作 Operation not supported on socket (may be the same value as [ENOTSUP]).*/ 183 … #define EWOULDBLOCK 80 /* 操作将被禁止 Operation would block (may be the same value as [EAGAIN]).*/
|
/DragonOS-0.1.3/kernel/src/driver/usb/ |
D | usb.h | 75 uint8_t value; /* member 145 uint16_t value; member 253 …pak_name.value = (_trans_value); …
|
/DragonOS-0.1.3/kernel/src/filesystem/fat32/ |
D | fat_ent.h | 45 …rite_FAT_entry(struct block_device * blk, fat32_sb_info_t *fsbi, uint32_t cluster, uint32_t value);
|
D | fat_ent.c | 152 …_write_FAT_entry(struct block_device *blk, fat32_sb_info_t *fsbi, uint32_t cluster, uint32_t value) in fat32_write_FAT_entry() argument 162 …fat_ent_per_sec - 1)] = (buf[cluster & (fat_ent_per_sec - 1)] & 0xf0000000) | (value & 0x0fffffff); in fat32_write_FAT_entry()
|
/DragonOS-0.1.3/kernel/src/process/ |
D | initial_proc.rs | 15 sig_cnt: atomic_t { value: 0 },
|
/DragonOS-0.1.3/user/libs/libc/src/include/sys/ |
D | types.h | 70 uint32_t value; member
|
/DragonOS-0.1.3/kernel/src/common/sys/ |
D | types.h | 74 uint32_t value; member
|
/DragonOS-0.1.3/kernel/src/ipc/ |
D | signal_types.rs | 345 fn from(value: i32) -> Self { in from() 346 if Self::valid_signal_number(value) { in from() 347 let ret: SignalNumber = unsafe { core::mem::transmute(value) }; in from()
|