Home
last modified time | relevance | path

Searched refs:kb_buf (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.c12 static struct kfifo_t kb_buf; variable
52 ps2_keyboard_reset_buffer(&kb_buf); in ps2_keyboard_open()
65 ps2_keyboard_reset_buffer(&kb_buf); in ps2_keyboard_close()
83 ps2_keyboard_reset_buffer(&kb_buf); in ps2_keyboard_ioctl()
104 if (kfifo_empty(&kb_buf)) in ps2_keyboard_read()
107 count = (count > kb_buf.size) ? kb_buf.size : count; in ps2_keyboard_read()
108 return kfifo_out(&kb_buf, buf, count); in ps2_keyboard_read()
168 kfifo_alloc(&kb_buf, ps2_keyboard_buffer_size, 0); in ps2_keyboard_init()
203 …irq_register(PS2_KEYBOARD_INTR_VECTOR, &entry, &ps2_keyboard_handler, (ul)&kb_buf, &ps2_keyboard_i… in ps2_keyboard_init()
220 kfifo_free_alloc(&kb_buf); in ps2_keyboard_exit()