Home
last modified time | relevance | path

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

12

/DragonOS-0.1.3/kernel/src/libs/
Dkfifo.c18 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 …]
Dstdlib.c12 static char buffer[21] = {0}; in ltoa() local
13 char *pos = buffer + sizeof(buffer) - 1; in ltoa()
22 if (pos < buffer) in ltoa()
Dcrc7.c31 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()
Dcrc8.c33 uint8_t crc8(uint8_t crc, uint8_t const *buffer, size_t len) in crc8() argument
38 crc = crc8_table[crc ^ *buffer++]; in crc8()
Dcrc16.c34 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()
Dcrc32.c49 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()
Dcrc64.c50 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/
Dps2_mouse.c20 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()
Dps2_mouse.h79 unsigned char buffer[ps2_mouse_buffer_size]; member
/DragonOS-0.1.3/kernel/src/common/
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);
Dglib.h180 #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) \
Dkfifo.h12 void *buffer; // 缓冲区 member
89 void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size);
Dlz4.h632 LZ4LIB_API LZ4_stream_t *LZ4_initStream(void *buffer, size_t size);
/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)`**
721 **buffer**
Ddata_structures.md16 &emsp;&emsp;通过动态方式初始化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/
Dtest-kfifo.c20 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/
Ddcache.c107 if (fifo.buffer != NULL) in vfs_dentry_put()
/DragonOS-0.1.3/kernel/src/filesystem/fat32/
Dfat32.h182 void *buffer; // 记得释放这个buffer!!! member
Dfat32.c300 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/
Derrno.md12 #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/
Dahci.c548 …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()

12