Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 30) sorted by relevance

12

/DragonOS-0.1.3/kernel/src/libs/
Dcrc7.c31 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len) in crc7() argument
33 while (len--) in crc7()
Dcrc8.c33 uint8_t crc8(uint8_t crc, uint8_t const *buffer, size_t len) in crc8() argument
35 while (len--) in crc8()
Dcrc16.c34 uint16_t crc16(uint16_t crc, uint8_t const *buffer, size_t len) in crc16() argument
36 while (len--) in crc16()
Dcrc32.c49 uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len) in crc32() argument
51 while (len--) in crc32()
Dcrc64.c50 uint64_t crc64(uint64_t crc, uint8_t const *buffer, size_t len) in crc64() argument
52 while (len--) in crc64()
Dprintk.c68 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()
Dprintk.rs116 let mut ascii_str: Vec<u8> = Vec::with_capacity(s.len() + 1); in __utf8_to_ascii()
/DragonOS-0.1.3/user/libs/libc/src/
Dstdio.c18 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()
Ddirent.c72 int len = getdents(dir->fd, (struct dirent *)dir->buf, DIR_BUF_SIZE); in readdir() local
74 if (len > 0) in readdir()
Dprintf.c85 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/
Dstring.h64 static inline int memcmp(const void *s1, const void *s2, size_t len) in memcmp() argument
71 : "c"(len) in memcmp()
Dcrc16.h12 uint16_t crc16(uint16_t crc, const uint8_t *buffer, size_t len);
Dcrc32.h12 uint32_t crc32(uint32_t crc, const uint8_t *buffer, size_t len);
Dcrc64.h12 uint64_t crc64(uint64_t crc, const uint8_t *buffer, size_t len);
Dcrc7.h12 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len);
Dcrc8.h12 uint8_t crc8(uint8_t crc, const uint8_t *buffer, size_t len);
Dhid.h164 int hid_parse_report(const void *report_data, const int len);
/DragonOS-0.1.3/kernel/src/driver/usb/
Dusb.h31 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/
Dprocfs.c95 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/
Dkernel_api.md701 **`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/
Dlist_contributors.py29 print("指定时间范围内总共有", len(logs), "次提交")
/DragonOS-0.1.3/kernel/src/filesystem/fat32/
Dfat32.c19 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/
Dkthread.c90 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/
Dcfs.rs88 if self.queue.len() > 0 { in dequeue()
/DragonOS-0.1.3/kernel/src/mm/
Dmm.c67 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()

12