Lines Matching +full:wait +full:- +full:free +full:- +full:us
1 // SPDX-License-Identifier: GPL-2.0-only
3 * NetWinder Button Driver-
22 #include <asm/mach-types.h>
48 * do so and return -ENOMEM. If an attempt is made to register a null pointer,
49 * it will fail to do so and return -EINVAL.
52 * free entry.
61 return -ENOMEM; in button_add_callback()
64 return -EINVAL; in button_add_callback()
76 * with -EINVAL. If there is more than one entry with the same address,
78 * last one to be registered first (FILO- First In Last Out).
89 return -EINVAL; in button_del_callback()
95 callback_count--; in button_del_callback()
98 lp--; in button_del_callback()
100 return -EINVAL; in button_del_callback()
135 kill_cad_pid(SIGINT, 1); /* Ask init to reboot us */ in button_sequence_finished()
160 * /dev/nwbutton. It puts the device to sleep on the wait queue until
171 DEFINE_WAIT(wait); in button_read()
172 prepare_to_wait(&button_wait_queue, &wait, TASK_INTERRUPTIBLE); in button_read()
174 finish_wait(&button_wait_queue, &wait); in button_read()
176 ? -EFAULT : bcount; in button_read()
215 return -ENODEV; in nwbutton_init()
223 return -EBUSY; in nwbutton_init()
228 printk (KERN_WARNING "nwbutton: IRQ %d is not free.\n", in nwbutton_init()
231 return -EIO; in nwbutton_init()