Home
last modified time | relevance | path

Searched refs:queue_empty (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/drivers/char/
Dapm-emulation.c177 static inline int queue_empty(struct apm_queue *q) in queue_empty() function
223 if (queue_empty(&as->queue) && fp->f_flags & O_NONBLOCK) in apm_read()
226 wait_event_interruptible(apm_waitqueue, !queue_empty(&as->queue)); in apm_read()
228 while ((i >= sizeof(event)) && !queue_empty(&as->queue)) { in apm_read()
256 return queue_empty(&as->queue) ? 0 : POLLIN | POLLRDNORM; in apm_poll()
505 !queue_empty(&kapmd_queue) || kthread_should_stop()); in kapmd()
512 if (!queue_empty(&kapmd_queue)) in kapmd()
/linux-2.6.39/drivers/s390/crypto/
Dap_bus.h68 unsigned int queue_empty : 1; member
Dap_bus.c444 if (status.queue_empty) in ap_recv()
522 if (status.queue_empty) in ap_init_queue()
1281 if (status.queue_empty) { in ap_poll_read()
/linux-2.6.39/arch/x86/kernel/
Dapm_32.c1159 static int queue_empty(struct apm_user *as) in queue_empty() function
1473 if ((queue_empty(as)) && (fp->f_flags & O_NONBLOCK)) in do_read()
1475 wait_event_interruptible(apm_waitqueue, !queue_empty(as)); in do_read()
1477 while ((i >= sizeof(event)) && !queue_empty(as)) { in do_read()
1513 if (!queue_empty(as)) in do_poll()