/DragonOS-0.1.8/kernel/src/arch/x86_64/include/asm/ |
D | asm.h | 50 uint64_t *tmp; in get_rsp() local 53 : "=r"(tmp)::"memory"); in get_rsp() 54 return tmp; in get_rsp() 64 uint64_t *tmp; in get_rbp() local 67 : "=r"(tmp)::"memory"); in get_rbp() 68 return tmp; in get_rbp() 78 uint64_t *tmp; in get_ds() local 81 : "=r"(tmp)::"memory"); in get_ds() 82 return tmp; in get_ds() 92 uint64_t *tmp; in get_rax() local [all …]
|
/DragonOS-0.1.8/kernel/src/ktest/ |
D | test-kfifo.c | 33 uint64_t tmp = i; in ktest_kfifo_case0_1() local 34 assert(kfifo_in(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1() 44 uint64_t tmp = 0; in ktest_kfifo_case0_1() local 45 assert(kfifo_out(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1() 46 assert(tmp == i); in ktest_kfifo_case0_1() 66 uint64_t tmp = i; in ktest_kfifo_case0_1() local 67 assert(kfifo_in(&fifo, &tmp, sizeof(uint64_t)) == sizeof(uint64_t)); in ktest_kfifo_case0_1() 76 __int128_t tmp = 100; in ktest_kfifo_case0_1() local 77 assert(kfifo_in(&fifo, &tmp, sizeof(__int128_t)) == 0); in ktest_kfifo_case0_1() 84 uint64_t tmp = 32; in ktest_kfifo_case0_1() local [all …]
|
D | test-idr.c | 197 int tmp = 0; in ktest_idr_case2() local 201 assert(idr_alloc(&k_idr, &tmp, &tmp) == 0); in ktest_idr_case2() 203 assert(tmp == i); in ktest_idr_case2() 240 assert(idr_alloc(&k_idr, &tmp, &tmp) == 0); in ktest_idr_case2() 241 assert(tmp == i); in ktest_idr_case2() 275 int tmp; in ktest_idr_case3() local 280 assert(idr_alloc(&k_idr, &tmp, &tmp) == 0); in ktest_idr_case3() 281 assert(tmp == i); in ktest_idr_case3() 359 static uint32_t tmp; in ktest_idr_case4() local 366 assert(idr_alloc(&k_idr, &tmp, &tmp) == 0); in ktest_idr_case4() [all …]
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | kfifo.c | 62 uint32_t tmp = fifo->total_size - fifo->in_offset; in kfifo_in() local 63 memcpy(fifo->buffer + fifo->in_offset, from, tmp); in kfifo_in() 64 memcpy(fifo->buffer, from + tmp, size - tmp); in kfifo_in() 65 fifo->in_offset = size - tmp; in kfifo_in() 96 uint32_t tmp = fifo->total_size - fifo->out_offset; in kfifo_out() local 97 memcpy(to, fifo->buffer + fifo->out_offset, tmp); in kfifo_out() 98 memcpy(to + tmp, fifo->buffer, size - tmp); in kfifo_out() 99 fifo->out_offset = size - tmp; in kfifo_out() 130 uint32_t tmp = fifo->total_size - fifo->out_offset; in kfifo_out_peek() local 131 memcpy(to, fifo->buffer + fifo->out_offset, tmp); in kfifo_out_peek() [all …]
|
D | idr.c | 878 struct ida_bitmap *tmp = ida_p->free_list; in __get_ida_bitmap() local 880 return tmp; in __get_ida_bitmap()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | msi.c | 150 uint32_t tmp; in pci_enable_msi() local 190 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi() 191 tmp |= (1U << 31); in pci_enable_msi() 192 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_enable_msi() 197 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi() 198 message_control = (tmp >> 16) & 0xffff; in pci_enable_msi() 210 tmp = msi_desc->msg.data; in pci_enable_msi() 212 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0xc, tmp); in pci_enable_msi() 214 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0x8, tmp); in pci_enable_msi() 217 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi() [all …]
|
D | pci.c | 444 …uint32_t tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, ((struct pci_device_structure_gen… in pci_init() local 525 uint32_t tmp; in pci_enumerate_capability_list() local 528 tmp = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, cap_offset); in pci_enumerate_capability_list() 529 if ((tmp & 0xff) != cap_type) in pci_enumerate_capability_list() 531 if (((tmp & 0xff00) >> 8)) in pci_enumerate_capability_list() 533 cap_offset = (tmp & 0xff00)>>8; in pci_enumerate_capability_list()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/asm/ |
D | current.rs | 11 let mut tmp: u64 = !(32767u64); in current_pcb() localVariable 13 asm!("and {0}, rsp", inout(reg)(tmp),); in current_pcb() 15 ret = (tmp as *mut process_control_block).as_mut(); in current_pcb()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | mm.h | 135 ul tmp; \ 139 : "=r"(tmp)::"memory"); \ 162 ul *tmp; in get_CR3() local 164 : "=r"(tmp)::"memory"); in get_CR3() 165 return tmp; in get_CR3()
|
/DragonOS-0.1.8/user/ |
D | Makefile | 9 tmp_output_dir=$(ROOT_PATH)/bin/tmp/user 79 mkdir -p $(ROOT_PATH)/bin/tmp/user 95 mkdir -p $(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp 98 …ibc/target/x86_64-unknown-none/release/liblibc.a --output=$(ROOT_PATH)/bin/tmp/user/sys_api_lib_bu… 99 …ib/libc.a $(shell find ./libs/* -name "*.o") $(shell find $(ROOT_PATH)/bin/tmp/user/sys_api_lib_bu… 100 rm -rf $(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
|
/DragonOS-0.1.8/user/libs/libc/src/ |
D | string.c | 40 unsigned long tmp = C * 0x0101010101010101UL; in memset() local 55 : "a"(tmp), "q"(size), "0"(size / 8), "1"(dst) in memset()
|
/DragonOS-0.1.8/kernel/src/driver/timers/HPET/ |
D | HPET.c | 278 uint64_t tmp; in HPET_init() local 279 tmp = __read8b(HPET_REG_BASE + GCAP_ID); in HPET_init() 280 HPET_COUNTER_CLK_PERIOD = (tmp >> 32) & 0xffffffff; in HPET_init() 282 HPET_NUM_TIM_CAP = (tmp >> 8) & 0x1f; // 读取计时器数量 in HPET_init()
|
/DragonOS-0.1.8/ |
D | .gitignore | 6 /tmp/
|
/DragonOS-0.1.8/kernel/src/libs/libUI/ |
D | textui.c | 254 uint16_t tmp = window->vlines.chromatic[window->vline_operating].index; in textui_putchar_window() local 255 if (tmp >= 0) in textui_putchar_window() 257 window->vlines.chromatic[window->vline_operating].chars[tmp].c = ' '; in textui_putchar_window() 258 … window->vlines.chromatic[window->vline_operating].chars[tmp].BKcolor = BKcolor & 0xffffff; in textui_putchar_window() 259 textui_refresh_characters(window, window->vline_operating, tmp, 1); in textui_putchar_window()
|
/DragonOS-0.1.8/user/apps/test_relibc/ |
D | Makefile | 8 tmp_output_dir=$(ROOT_PATH)/bin/tmp/user
|
/DragonOS-0.1.8/user/apps/test_bind/ |
D | Makefile | 8 tmp_output_dir=$(ROOT_PATH)/bin/tmp/user
|
/DragonOS-0.1.8/user/apps/test_gettimeofday/ |
D | Makefile | 8 tmp_output_dir=$(ROOT_PATH)/bin/tmp/user
|
/DragonOS-0.1.8/user/apps/test_fstat/ |
D | Makefile | 8 tmp_output_dir=$(ROOT_PATH)/bin/tmp/user
|
/DragonOS-0.1.8/user/apps/http_server/ |
D | Makefile | 8 tmp_output_dir=$(ROOT_PATH)/bin/tmp/user
|
/DragonOS-0.1.8/kernel/src/common/ |
D | glib.h | 72 unsigned long tmp = C * 0x0101010101010101UL; in memset() local 87 : "a"(tmp), "q"(size), "0"(size / 8), "1"(dst) in memset()
|
/DragonOS-0.1.8/user/apps/test_sqlite3/ |
D | Makefile | 10 tmp_output_dir=$(ROOT_PATH)/bin/tmp/user
|
/DragonOS-0.1.8/docs/community/code_contribution/ |
D | c-coding-style.md | 147   DragonOS中的命名规范不使用诸如`TempValue`这样的驼峰命名法的函数名,而是使用`tmp`这样言简意赅的命名。
|
/DragonOS-0.1.8/kernel/src/process/ |
D | fork.c | 208 uint64_t *tmp = rbp; in process_rewrite_rbp() local
|