/DragonOS-0.1.3/kernel/src/libs/ |
D | crc7.c | 31 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len) in crc7() argument 33 while (len--) in crc7()
|
D | crc8.c | 33 uint8_t crc8(uint8_t crc, uint8_t const *buffer, size_t len) in crc8() argument 35 while (len--) in crc8()
|
D | crc16.c | 34 uint16_t crc16(uint16_t crc, uint8_t const *buffer, size_t len) in crc16() argument 36 while (len--) in crc16()
|
D | crc32.c | 49 uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len) in crc32() argument 51 while (len--) in crc32()
|
D | crc64.c | 50 uint64_t crc64(uint64_t crc, uint8_t const *buffer, size_t len) in crc64() argument 52 while (len--) in crc64()
|
D | printk.c | 68 int len; in __do_vsprintf() local 215 len = strlen(s); in __do_vsprintf() 219 precision = len; in __do_vsprintf() 222 else if (len > precision) in __do_vsprintf() 224 len = precision; in __do_vsprintf() 229 while (len < field_width--) in __do_vsprintf() 235 for (int i = 0; i < len; i++) in __do_vsprintf() 242 while (len < field_width--) in __do_vsprintf() 601 int len = vsprintf(buf, fmt, args); in printk_color() local 607 for (i = 0; i < len; ++i) in printk_color()
|
D | printk.rs | 116 let mut ascii_str: Vec<u8> = Vec::with_capacity(s.len() + 1); in __utf8_to_ascii()
|
/DragonOS-0.1.3/user/libs/libc/src/ |
D | stdio.c | 18 int len = strlen(buf); in fprintf() local 19 if (len > bufsize - 1) in fprintf() 21 len = bufsize - 1; in fprintf() 24 write(stream->fd, buf, len); in fprintf()
|
D | dirent.c | 72 int len = getdents(dir->fd, (struct dirent *)dir->buf, DIR_BUF_SIZE); in readdir() local 74 if (len > 0) in readdir()
|
D | printf.c | 85 int len; in vsprintf() local 228 len = strlen(s); in vsprintf() 232 precision = len; in vsprintf() 235 else if (len > precision) in vsprintf() 237 len = precision; in vsprintf() 242 while (len < field_width--) in vsprintf() 248 for (int i = 0; i < len; i++) in vsprintf() 255 while (len < field_width--) in vsprintf()
|
/DragonOS-0.1.3/kernel/src/common/ |
D | string.h | 64 static inline int memcmp(const void *s1, const void *s2, size_t len) in memcmp() argument 71 : "c"(len) in memcmp()
|
D | crc16.h | 12 uint16_t crc16(uint16_t crc, const uint8_t *buffer, size_t len);
|
D | crc32.h | 12 uint32_t crc32(uint32_t crc, const uint8_t *buffer, size_t len);
|
D | crc64.h | 12 uint64_t crc64(uint64_t crc, const uint8_t *buffer, size_t len);
|
D | crc7.h | 12 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len);
|
D | crc8.h | 12 uint8_t crc8(uint8_t crc, const uint8_t *buffer, size_t len);
|
D | hid.h | 164 int hid_parse_report(const void *report_data, const int len);
|
/DragonOS-0.1.3/kernel/src/driver/usb/ |
D | usb.h | 31 uint8_t len; // 整个描述符的大小(字节) member 41 uint8_t len; member 65 uint8_t len; // 当前描述符的大小(字节) member 101 uint8_t len; member 120 uint8_t len; member 294 uint8_t len; member
|
/DragonOS-0.1.3/kernel/src/filesystem/procfs/ |
D | procfs.c | 95 int len = strlen(s); in data_puts() local 96 if(fdata->readlen+len > FDATA_RBUF_SIZE) in data_puts() 101 strncpy(fdata->rbuffer + fdata->readlen, s, len); in data_puts() 102 fdata->readlen += len; in data_puts() 123 int len = 0; in procfs_open() local 452 int len = strlen(ltoa(pid)); in procfs_register_pid() local 461 strcpy(tmp + 6 + len, "/status"); in procfs_register_pid()
|
/DragonOS-0.1.3/docs/kernel/core_api/ |
D | kernel_api.md | 701 **`uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len)`** 703 **`uint8_t crc8(uint8_t crc, const uint8_t *buffer, size_t len)`** 705 **`uint16_t crc16(uint16_t crc, uint8_t const *buffer, size_t len)`** 707 **`uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len)`** 709 **`uint64_t crc64(uint64_t crc, uint8_t const *buffer, size_t len)`** 725 **len**
|
/DragonOS-0.1.3/tools/ |
D | list_contributors.py | 29 print("指定时间范围内总共有", len(logs), "次提交")
|
/DragonOS-0.1.3/kernel/src/filesystem/fat32/ |
D | fat32.c | 19 static unsigned int vfat_striptail_len(unsigned int len, const char *name); 1361 static unsigned int vfat_striptail_len(unsigned int len, const char *name) in vfat_striptail_len() argument 1363 while (len && name[len - 1] == '.') in vfat_striptail_len() 1364 --len; in vfat_striptail_len() 1365 return len; in vfat_striptail_len() 1377 static int fat_search_long(struct vfs_index_node_t *dir, const char *name, int len, struct fat32_sl… in fat_search_long() argument 1380 retval = __fat32_search_long_short(dir, name, len, slot_info); in fat_search_long() 1393 uint32_t len = vfat_striptail_len(strnlen(name, PAGE_4K_SIZE - 1), name); in vfat_find() local 1395 if (len == 0) in vfat_find() 1398 return fat_search_long(dir, name, len, slot_info); in vfat_find()
|
/DragonOS-0.1.3/kernel/src/process/ |
D | kthread.c | 90 int len = vsnprintf(pcb_name, name_fmt, PCB_NAME_LEN, get_args); in __kthread_create_on_node() local 91 if (len >= PCB_NAME_LEN) in __kthread_create_on_node()
|
/DragonOS-0.1.3/kernel/src/sched/ |
D | cfs.rs | 88 if self.queue.len() > 0 { in dequeue()
|
/DragonOS-0.1.3/kernel/src/mm/ |
D | mm.c | 67 mm_Total_Memory += mb2_mem_info->len; in mm_init() 72 memory_management_struct.e820[i].Length = mb2_mem_info[i].len; in mm_init() 77 if (mb2_mem_info[i].type > 4 || mb2_mem_info[i].len == 0 || mb2_mem_info[i].type < 1) in mm_init()
|