Lines Matching refs:sonypi_compat

4038 static struct sonypi_compat_s sonypi_compat = {  variable
4044 return fasync_helper(fd, filp, on, &sonypi_compat.fifo_async); in sonypi_misc_fasync()
4049 atomic_dec(&sonypi_compat.open_count); in sonypi_misc_release()
4058 spin_lock_irqsave(&sonypi_compat.fifo_lock, flags); in sonypi_misc_open()
4060 if (atomic_inc_return(&sonypi_compat.open_count) == 1) in sonypi_misc_open()
4061 kfifo_reset(&sonypi_compat.fifo); in sonypi_misc_open()
4063 spin_unlock_irqrestore(&sonypi_compat.fifo_lock, flags); in sonypi_misc_open()
4074 if ((kfifo_len(&sonypi_compat.fifo) == 0) && in sonypi_misc_read()
4078 ret = wait_event_interruptible(sonypi_compat.fifo_proc_list, in sonypi_misc_read()
4079 kfifo_len(&sonypi_compat.fifo) != 0); in sonypi_misc_read()
4084 (kfifo_out_locked(&sonypi_compat.fifo, &c, sizeof(c), in sonypi_misc_read()
4085 &sonypi_compat.fifo_lock) == sizeof(c))) { in sonypi_misc_read()
4101 poll_wait(file, &sonypi_compat.fifo_proc_list, wait); in sonypi_misc_poll()
4102 if (kfifo_len(&sonypi_compat.fifo)) in sonypi_misc_poll()
4267 kfifo_in_locked(&sonypi_compat.fifo, (unsigned char *)&event, in sonypi_compat_report_event()
4268 sizeof(event), &sonypi_compat.fifo_lock); in sonypi_compat_report_event()
4269 kill_fasync(&sonypi_compat.fifo_async, SIGIO, POLL_IN); in sonypi_compat_report_event()
4270 wake_up_interruptible(&sonypi_compat.fifo_proc_list); in sonypi_compat_report_event()
4277 spin_lock_init(&sonypi_compat.fifo_lock); in sonypi_compat_init()
4279 kfifo_alloc(&sonypi_compat.fifo, SONY_LAPTOP_BUF_SIZE, GFP_KERNEL); in sonypi_compat_init()
4285 init_waitqueue_head(&sonypi_compat.fifo_proc_list); in sonypi_compat_init()
4301 kfifo_free(&sonypi_compat.fifo); in sonypi_compat_init()
4308 kfifo_free(&sonypi_compat.fifo); in sonypi_compat_exit()