Home
last modified time | relevance | path

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

/DragonOS-0.1.3/kernel/src/driver/keyboard/
Dps2_keyboard.c13 static struct kfifo_t kb_buf; variable
51 filp->private_data = &kb_buf; in ps2_keyboard_open()
52 ps2_keyboard_reset_buffer(&kb_buf); in ps2_keyboard_open()
66 ps2_keyboard_reset_buffer(&kb_buf); in ps2_keyboard_close()
84 ps2_keyboard_reset_buffer(&kb_buf); in ps2_keyboard_ioctl()
105 if (kfifo_empty(&kb_buf)) in ps2_keyboard_read()
108 count = (count > kb_buf.size) ? kb_buf.size : count; in ps2_keyboard_read()
109 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()
[all …]