Lines Matching refs:sonypi_compat
4050 static struct sonypi_compat_s sonypi_compat = { variable
4056 return fasync_helper(fd, filp, on, &sonypi_compat.fifo_async); in sonypi_misc_fasync()
4061 atomic_dec(&sonypi_compat.open_count); in sonypi_misc_release()
4070 spin_lock_irqsave(&sonypi_compat.fifo_lock, flags); in sonypi_misc_open()
4072 if (atomic_inc_return(&sonypi_compat.open_count) == 1) in sonypi_misc_open()
4073 kfifo_reset(&sonypi_compat.fifo); in sonypi_misc_open()
4075 spin_unlock_irqrestore(&sonypi_compat.fifo_lock, flags); in sonypi_misc_open()
4086 if ((kfifo_len(&sonypi_compat.fifo) == 0) && in sonypi_misc_read()
4090 ret = wait_event_interruptible(sonypi_compat.fifo_proc_list, in sonypi_misc_read()
4091 kfifo_len(&sonypi_compat.fifo) != 0); in sonypi_misc_read()
4096 (kfifo_out_locked(&sonypi_compat.fifo, &c, sizeof(c), in sonypi_misc_read()
4097 &sonypi_compat.fifo_lock) == sizeof(c))) { in sonypi_misc_read()
4113 poll_wait(file, &sonypi_compat.fifo_proc_list, wait); in sonypi_misc_poll()
4114 if (kfifo_len(&sonypi_compat.fifo)) in sonypi_misc_poll()
4279 kfifo_in_locked(&sonypi_compat.fifo, (unsigned char *)&event, in sonypi_compat_report_event()
4280 sizeof(event), &sonypi_compat.fifo_lock); in sonypi_compat_report_event()
4281 kill_fasync(&sonypi_compat.fifo_async, SIGIO, POLL_IN); in sonypi_compat_report_event()
4282 wake_up_interruptible(&sonypi_compat.fifo_proc_list); in sonypi_compat_report_event()
4289 spin_lock_init(&sonypi_compat.fifo_lock); in sonypi_compat_init()
4291 kfifo_alloc(&sonypi_compat.fifo, SONY_LAPTOP_BUF_SIZE, GFP_KERNEL); in sonypi_compat_init()
4297 init_waitqueue_head(&sonypi_compat.fifo_proc_list); in sonypi_compat_init()
4313 kfifo_free(&sonypi_compat.fifo); in sonypi_compat_init()
4320 kfifo_free(&sonypi_compat.fifo); in sonypi_compat_exit()