/DragonOS-0.1.3/kernel/src/libs/ |
D | kfifo.c | 18 fifo->buffer = kmalloc(size, 0); in kfifo_alloc() 19 if (fifo->buffer == NULL) in kfifo_alloc() 35 void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size) in kfifo_init() argument 39 fifo->buffer = buffer; in kfifo_init() 63 memcpy(fifo->buffer + fifo->in_offset, from, tmp); in kfifo_in() 64 memcpy(fifo->buffer, from + tmp, size - tmp); in kfifo_in() 69 memcpy(fifo->buffer + fifo->in_offset, from, size); in kfifo_in() 97 memcpy(to, fifo->buffer + fifo->out_offset, tmp); in kfifo_out() 98 memcpy(to + tmp, fifo->buffer, size - tmp); in kfifo_out() 103 memcpy(to, fifo->buffer + fifo->out_offset, size); in kfifo_out() [all …]
|
D | stdlib.c | 12 static char buffer[21] = {0}; in ltoa() local 13 char *pos = buffer + sizeof(buffer) - 1; in ltoa() 22 if (pos < buffer) in ltoa()
|
D | crc7.c | 31 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len) in crc7() argument 35 crc = crc7_table[(crc << 1) ^ *buffer++]; in crc7()
|
D | crc8.c | 33 uint8_t crc8(uint8_t crc, uint8_t const *buffer, size_t len) in crc8() argument 38 crc = crc8_table[crc ^ *buffer++]; in crc8()
|
D | crc16.c | 34 uint16_t crc16(uint16_t crc, uint8_t const *buffer, size_t len) in crc16() argument 38 crc = (crc << 8) ^ crc16_table[((crc >> 8) ^ *buffer++) & 0xff]; in crc16()
|
D | crc32.c | 49 uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len) in crc32() argument 53 crc = (crc << 8) ^ (crc32_table[((crc >> 24) ^ *buffer++) & 0xff]); in crc32()
|
D | crc64.c | 50 uint64_t crc64(uint64_t crc, uint8_t const *buffer, size_t len) in crc64() argument 54 crc = (crc << 8) ^ (crc64_table[((crc >> 56) ^ *buffer++) & 0xff]); in crc64()
|
/DragonOS-0.1.3/kernel/src/driver/mouse/ |
D | ps2_mouse.c | 20 ps2_mouse_buf_ptr->ptr_head = ps2_mouse_buf_ptr->buffer; in ps2_mouse_clear_buf() 21 ps2_mouse_buf_ptr->ptr_tail = ps2_mouse_buf_ptr->buffer; in ps2_mouse_clear_buf() 23 memset(ps2_mouse_buf_ptr->buffer, 0, ps2_mouse_buffer_size); in ps2_mouse_clear_buf() 38 if (ps2_mouse_buf_ptr->ptr_tail == ps2_mouse_buf_ptr->buffer + ps2_mouse_buffer_size) in ps2_mouse_get_scancode() 39 ps2_mouse_buf_ptr->ptr_tail = ps2_mouse_buf_ptr->buffer; in ps2_mouse_get_scancode() 62 if (ps2_mouse_buf_ptr->ptr_head == ps2_mouse_buf_ptr->buffer + ps2_mouse_buffer_size) in ps2_mouse_handler() 63 ps2_mouse_buf_ptr->ptr_head = ps2_mouse_buf_ptr->buffer; in ps2_mouse_handler() 205 ps2_mouse_buf_ptr->ptr_head = ps2_mouse_buf_ptr->buffer; in ps2_mouse_init() 206 ps2_mouse_buf_ptr->ptr_tail = ps2_mouse_buf_ptr->buffer; in ps2_mouse_init() 208 memset(ps2_mouse_buf_ptr->buffer, 0, ps2_mouse_buffer_size); in ps2_mouse_init()
|
D | ps2_mouse.h | 79 unsigned char buffer[ps2_mouse_buffer_size]; member
|
/DragonOS-0.1.3/kernel/src/common/ |
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 | glib.h | 180 #define io_insw(port, buffer, nr) \ argument 181 __asm__ __volatile__("cld;rep;insw;mfence;" ::"d"(port), "D"(buffer), "c"(nr) \ 188 #define io_outsw(port, buffer, nr) \ argument 189 __asm__ __volatile__("cld;rep;outsw;mfence;" ::"d"(port), "S"(buffer), "c"(nr) \
|
D | kfifo.h | 12 void *buffer; // 缓冲区 member 89 void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size);
|
D | lz4.h | 632 LZ4LIB_API LZ4_stream_t *LZ4_initStream(void *buffer, size_t size);
|
/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)`** 721 **buffer**
|
D | data_structures.md | 16   通过动态方式初始化kfifo缓冲队列。fifo缓冲区的buffer将由该函数进行申请。 38 `void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size)` 50 **buffer**
|
/DragonOS-0.1.3/kernel/src/ktest/ |
D | test-kfifo.c | 20 assert(fifo.buffer != NULL); in ktest_kfifo_case0_1() 147 assert(fifo.buffer == NULL); in ktest_kfifo_case0_1()
|
/DragonOS-0.1.3/kernel/src/filesystem/vfs/ |
D | dcache.c | 107 if (fifo.buffer != NULL) in vfs_dentry_put()
|
/DragonOS-0.1.3/kernel/src/filesystem/fat32/ |
D | fat32.h | 182 void *buffer; // 记得释放这个buffer!!! member
|
D | fat32.c | 300 sinfo->buffer = buf; in __fat32_search_long_short() 363 kfree(sinfo.buffer); in fat32_lookup() 1143 if (sinfo.buffer != NULL) in fat32_unlink() 1144 kfree(sinfo.buffer); in fat32_unlink()
|
/DragonOS-0.1.3/docs/userland/libc/apis/api-list/ |
D | errno.md | 12 #define E2BIG 1 /* 参数列表过长,或者在输出buffer中缺少空间 或者参数比系统内建的最大值要大 Argument list too long.*/ 99 #define ENOBUFS 42 /* 缓冲区空间不足 No buffer space available.*/
|
/DragonOS-0.1.3/kernel/src/driver/disk/ahci/ |
D | ahci.c | 548 …ahci_make_request(long cmd, uint64_t base_addr, uint64_t count, uint64_t buffer, uint8_t ahci_ctrl… in ahci_make_request() argument 574 pack->blk_pak.buffer_vaddr = buffer; in ahci_make_request()
|