Lines Matching refs:kb_buf
13 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()
219 kfifo_free_alloc(&kb_buf); in ps2_keyboard_exit()