Home
last modified time | relevance | path

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

12

/DragonOS-0.1.2/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.2/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.2/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.2/user/libs/libc/src/
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.2/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.2/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.2/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.2/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.2/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()
/DragonOS-0.1.2/kernel/src/driver/multiboot2/
Dmultiboot2.h205 uint64_t len; member
/DragonOS-0.1.2/kernel/src/driver/hid/
Dhidparse.c354 int hid_parse_report(const void *report_data, const int len) in hid_parse_report() argument
361 parser.report_desc_size = len; in hid_parse_report()
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dxhci.c1433 conf_desc->type, conf_desc->len, conf_desc->total_len, conf_desc->num_interfaces, in xhci_get_config_desc()
1479 pos += ptr->len; in xhci_get_interface_desc()
1490 pos += ptr->len; in xhci_get_interface_desc()
1614 … port_id, dev_desc->len, dev_desc->type, dev_desc->usb_version >> 8, dev_desc->usb_version & 0xFF, in xhci_get_descriptor()
2043 pos += ptr->len; in xhci_get_hid_descriptor()

12