Lines Matching refs:sonypi_compat
4057 static struct sonypi_compat_s sonypi_compat = { variable
4063 return fasync_helper(fd, filp, on, &sonypi_compat.fifo_async); in sonypi_misc_fasync()
4068 atomic_dec(&sonypi_compat.open_count); in sonypi_misc_release()
4077 spin_lock_irqsave(&sonypi_compat.fifo_lock, flags); in sonypi_misc_open()
4079 if (atomic_inc_return(&sonypi_compat.open_count) == 1) in sonypi_misc_open()
4080 kfifo_reset(&sonypi_compat.fifo); in sonypi_misc_open()
4082 spin_unlock_irqrestore(&sonypi_compat.fifo_lock, flags); in sonypi_misc_open()
4093 if ((kfifo_len(&sonypi_compat.fifo) == 0) && in sonypi_misc_read()
4097 ret = wait_event_interruptible(sonypi_compat.fifo_proc_list, in sonypi_misc_read()
4098 kfifo_len(&sonypi_compat.fifo) != 0); in sonypi_misc_read()
4103 (kfifo_out_locked(&sonypi_compat.fifo, &c, sizeof(c), in sonypi_misc_read()
4104 &sonypi_compat.fifo_lock) == sizeof(c))) { in sonypi_misc_read()
4120 poll_wait(file, &sonypi_compat.fifo_proc_list, wait); in sonypi_misc_poll()
4121 if (kfifo_len(&sonypi_compat.fifo)) in sonypi_misc_poll()
4286 kfifo_in_locked(&sonypi_compat.fifo, (unsigned char *)&event, in sonypi_compat_report_event()
4287 sizeof(event), &sonypi_compat.fifo_lock); in sonypi_compat_report_event()
4288 kill_fasync(&sonypi_compat.fifo_async, SIGIO, POLL_IN); in sonypi_compat_report_event()
4289 wake_up_interruptible(&sonypi_compat.fifo_proc_list); in sonypi_compat_report_event()
4296 spin_lock_init(&sonypi_compat.fifo_lock); in sonypi_compat_init()
4298 kfifo_alloc(&sonypi_compat.fifo, SONY_LAPTOP_BUF_SIZE, GFP_KERNEL); in sonypi_compat_init()
4304 init_waitqueue_head(&sonypi_compat.fifo_proc_list); in sonypi_compat_init()
4320 kfifo_free(&sonypi_compat.fifo); in sonypi_compat_init()
4327 kfifo_free(&sonypi_compat.fifo); in sonypi_compat_exit()