Home
last modified time | relevance | path

Searched refs:num (Results 1 – 10 of 10) sorted by relevance

/DragonOS-0.1.2/user/libs/libc/src/
Dprintf.c9 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags…
10 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags…
350 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags) in write_num() argument
382 int64_t signed_num = (int64_t)num; in write_num()
386 num = -signed_num; in write_num()
389 num = signed_num; in write_num()
409 if (num == 0) in write_num()
413 num = llabs(num); in write_num()
415 while (num > 0) in write_num()
417 tmp_num[js_num++] = digits[num % base]; // 注意这里,输出的数字,是小端对齐的。低位存低位 in write_num()
[all …]
/DragonOS-0.1.2/kernel/src/libs/
Dprintk.c25 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags);
27 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags…
383 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags) in write_num() argument
415 int64_t signed_num = (int64_t)num; in write_num()
419 num = -signed_num; in write_num()
422 num = signed_num; in write_num()
442 if (num == 0) in write_num()
446 num = ABS(num); in write_num()
448 while (num > 0) in write_num()
450 tmp_num[js_num++] = digits[num % base]; // 注意这里,输出的数字,是小端对齐的。低位存低位 in write_num()
[all …]
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dinternal.h38 #define xhci_calc_intr_vaddr(id, num) (xhci_hc[id].vbase + xhci_hc[id].rts_offset + XHCI_RT_IR0 + ( argument
45 #define xhci_read_intr_reg32(id, num, intr_offset) (__read4b(xhci_calc_intr_vaddr(id, num) + (intr_… argument
46 #define xhci_write_intr_reg32(id, num, intr_offset, value) (__write4b(xhci_calc_intr_vaddr(id, num)… argument
47 #define xhci_read_intr_reg64(id, num, intr_offset) (__read8b(xhci_calc_intr_vaddr(id, num) + (intr_… argument
48 #define xhci_write_intr_reg64(id, num, intr_offset, value) (__write8b(xhci_calc_intr_vaddr(id, num)… argument
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat_ent.h58 …t *fat32_find_empty_dentry(struct vfs_index_node_t *parent_inode, uint32_t num, uint32_t mode, uin…
Dfat_ent.c185 …tory_t *fat32_find_empty_dentry(struct vfs_index_node_t *parent_inode, uint32_t num, uint32_t mode, in fat32_find_empty_dentry() argument
216 for (int i = 0; (i < fsbi->bytes_per_clus) && count_continuity < num; i += 32, ++tmp_dEntry) in fat32_find_empty_dentry()
231 if (count_continuity == num) in fat32_find_empty_dentry()
233 result_dEntry += (num - 1); in fat32_find_empty_dentry()
/DragonOS-0.1.2/kernel/src/common/
Dblk_types.h45 void (*end_handler)(ul num, ul arg);
/DragonOS-0.1.2/kernel/src/mm/
Dmm.c290 struct Page *alloc_pages(unsigned int zone_select, int num, ul flags) in alloc_pages() argument
293 if (num >= 64 && num <= 0) in alloc_pages()
328 if ((memory_management_struct.zones_struct + i)->count_pages_free < num) in alloc_pages()
344 ul tmp_num = ((1UL << num) - 1); in alloc_pages()
352 for (ul l = 0; l < num; ++l) in alloc_pages()
370 …kBUG("Cannot alloc page, ZONE=%d\tnums=%d, mm_total_2M_pages=%d", zone_select, num, mm_total_2M_pa… in alloc_pages()
Dmm.h246 struct Page *alloc_pages(unsigned int zone_select, int num, ul flags);
/DragonOS-0.1.2/docs/kernel/core_api/
Dmm-api.md64 ### `struct Page *alloc_pages(unsigned int zone_select, int num, ul flags)`
82 **num**
/DragonOS-0.1.2/kernel/src/driver/multiboot2/
Dmultiboot2.h318 unsigned int num; member