Lines Matching refs:sonypi_compat

4036 static struct sonypi_compat_s sonypi_compat = {  variable
4042 return fasync_helper(fd, filp, on, &sonypi_compat.fifo_async); in sonypi_misc_fasync()
4047 atomic_dec(&sonypi_compat.open_count); in sonypi_misc_release()
4056 spin_lock_irqsave(&sonypi_compat.fifo_lock, flags); in sonypi_misc_open()
4058 if (atomic_inc_return(&sonypi_compat.open_count) == 1) in sonypi_misc_open()
4059 kfifo_reset(&sonypi_compat.fifo); in sonypi_misc_open()
4061 spin_unlock_irqrestore(&sonypi_compat.fifo_lock, flags); in sonypi_misc_open()
4072 if ((kfifo_len(&sonypi_compat.fifo) == 0) && in sonypi_misc_read()
4076 ret = wait_event_interruptible(sonypi_compat.fifo_proc_list, in sonypi_misc_read()
4077 kfifo_len(&sonypi_compat.fifo) != 0); in sonypi_misc_read()
4082 (kfifo_out_locked(&sonypi_compat.fifo, &c, sizeof(c), in sonypi_misc_read()
4083 &sonypi_compat.fifo_lock) == sizeof(c))) { in sonypi_misc_read()
4099 poll_wait(file, &sonypi_compat.fifo_proc_list, wait); in sonypi_misc_poll()
4100 if (kfifo_len(&sonypi_compat.fifo)) in sonypi_misc_poll()
4265 kfifo_in_locked(&sonypi_compat.fifo, (unsigned char *)&event, in sonypi_compat_report_event()
4266 sizeof(event), &sonypi_compat.fifo_lock); in sonypi_compat_report_event()
4267 kill_fasync(&sonypi_compat.fifo_async, SIGIO, POLL_IN); in sonypi_compat_report_event()
4268 wake_up_interruptible(&sonypi_compat.fifo_proc_list); in sonypi_compat_report_event()
4275 spin_lock_init(&sonypi_compat.fifo_lock); in sonypi_compat_init()
4277 kfifo_alloc(&sonypi_compat.fifo, SONY_LAPTOP_BUF_SIZE, GFP_KERNEL); in sonypi_compat_init()
4283 init_waitqueue_head(&sonypi_compat.fifo_proc_list); in sonypi_compat_init()
4299 kfifo_free(&sonypi_compat.fifo); in sonypi_compat_init()
4306 kfifo_free(&sonypi_compat.fifo); in sonypi_compat_exit()