Home
last modified time | relevance | path

Searched refs:list_empty (Results 1 – 25 of 1220) sorted by relevance

12345678910>>...49

/linux-3.4.99/fs/btrfs/
Dasync-thread.c110 if (!list_empty(&worker->worker_list)) { in check_idle_worker()
130 if (!list_empty(&worker->worker_list)) { in check_busy_worker()
185 if (!list_empty(&workers->prio_order_list)) { in run_ordered_completions()
188 } else if (!list_empty(&workers->order_list)) { in run_ordered_completions()
240 !list_empty(&worker->worker_list) && in try_worker_shutdown()
241 list_empty(&worker->prio_pending) && in try_worker_shutdown()
242 list_empty(&worker->pending) && in try_worker_shutdown()
263 if(!list_empty(prio_head)) in get_next_work()
267 if (!list_empty(&worker->prio_pending)) in get_next_work()
270 if (!list_empty(head)) in get_next_work()
[all …]
/linux-3.4.99/drivers/gpu/drm/i915/
Di915_gem_evict.c117 while (!list_empty(&unwind_list)) { in i915_gem_evict_something()
138 while (!list_empty(&unwind_list)) { in i915_gem_evict_something()
151 while (!list_empty(&eviction_list)) { in i915_gem_evict_something()
172 lists_empty = (list_empty(&dev_priv->mm.inactive_list) && in i915_gem_evict_everything()
173 list_empty(&dev_priv->mm.flushing_list) && in i915_gem_evict_everything()
174 list_empty(&dev_priv->mm.active_list)); in i915_gem_evict_everything()
185 BUG_ON(!list_empty(&dev_priv->mm.flushing_list)); in i915_gem_evict_everything()
Di915_gem_debug.c58 } else if (obj->base.write_domain && list_empty(&obj->gpu_write_list)) { in i915_verify_lists()
62 !list_empty(&obj->gpu_write_list)); in i915_verify_lists()
75 list_empty(&obj->gpu_write_list)) { in i915_verify_lists()
80 !list_empty(&obj->gpu_write_list)); in i915_verify_lists()
/linux-3.4.99/lib/
Drwsem-spinlock.c106 if (list_empty(&sem->wait_list)) in __rwsem_do_wake()
150 if (sem->activity >= 0 && list_empty(&sem->wait_list)) { in __down_read()
194 if (sem->activity >= 0 && list_empty(&sem->wait_list)) { in __down_read_trylock()
217 if (sem->activity == 0 && list_empty(&sem->wait_list)) { in __down_write_nested()
265 if (sem->activity == 0 && list_empty(&sem->wait_list)) { in __down_write_trylock()
285 if (--sem->activity == 0 && !list_empty(&sem->wait_list)) in __up_read()
301 if (!list_empty(&sem->wait_list)) in __up_write()
318 if (!list_empty(&sem->wait_list)) in __downgrade_write()
Dplist.c82 WARN_ON(!list_empty(&node->prio_list)); in plist_add()
118 if (!list_empty(&node->prio_list)) { in plist_del()
126 if (list_empty(&next->prio_list)) in plist_del()
160 BUG_ON(!list_empty(&node_pos->prio_list)); in plist_test_check()
/linux-3.4.99/drivers/usb/host/
Dfhci-q.c78 if (!list_empty(&ed->td_list)) in peek_td_from_ed()
90 if (!list_empty(&frame->tds_list)) { in fhci_remove_td_from_frame()
103 if (!list_empty(&frame->tds_list)) in fhci_peek_td_from_frame()
115 if (!list_empty(&ed->td_list)) { in fhci_remove_td_from_ed()
120 if (!list_empty(&ed->td_list)) in fhci_remove_td_from_ed()
135 if (!list_empty(&p_list->done_list)) { in fhci_remove_td_from_done_list()
152 if (!list_empty(&ed->td_list)) in fhci_move_td_from_ed_to_done_list()
177 if (!list_empty(&ed->td_list)) in free_urb_priv()
/linux-3.4.99/fs/ocfs2/dlm/
Ddlmthread.c82 if (list_empty(&res->granted) && in __dlm_lockres_has_locks()
83 list_empty(&res->converting) && in __dlm_lockres_has_locks()
84 list_empty(&res->blocked)) in __dlm_lockres_has_locks()
106 if (!list_empty(&res->dirty) || res->state & DLM_LOCK_RES_DIRTY) in __dlm_lockres_unused()
131 if (list_empty(&res->purge)) { in __dlm_lockres_calc_usage()
140 } else if (!list_empty(&res->purge)) { in __dlm_lockres_calc_usage()
197 if (!list_empty(&res->purge)) { in dlm_purge_lockres()
234 while(run_max && !list_empty(&dlm->purge_list)) { in dlm_run_purge_list()
306 if (list_empty(&res->converting)) in dlm_shuffle_lists()
383 if (list_empty(&res->blocked)) in dlm_shuffle_lists()
[all …]
Ddlmdebug.c85 (list_empty(&lock->ast_list) ? 'y' : 'n'), in __dlm_print_lock()
87 (list_empty(&lock->bast_list) ? 'y' : 'n'), in __dlm_print_lock()
111 list_empty(&res->purge) ? "no" : "yes"); in __dlm_print_one_lock_resource()
114 list_empty(&res->dirty) ? "no" : "yes", in __dlm_print_one_lock_resource()
115 list_empty(&res->recovering) ? "no" : "yes", in __dlm_print_one_lock_resource()
303 !list_empty(&mle->hb_events), in dump_mle()
519 !list_empty(&lock->ast_list), in dump_lock()
520 !list_empty(&lock->bast_list), in dump_lock()
546 !list_empty(&res->purge), in dump_lockres()
547 !list_empty(&res->dirty), in dump_lockres()
[all …]
/linux-3.4.99/net/unix/
Dgarbage.c132 BUG_ON(!list_empty(&u->link)); in unix_inflight()
135 BUG_ON(list_empty(&u->link)); in unix_inflight()
148 BUG_ON(list_empty(&u->link)); in unix_notinflight()
226 BUG_ON(!list_empty(&u->link)); in scan_children()
231 while (!list_empty(&embryos)) { in scan_children()
357 while (!list_empty(&not_cycle_list)) { in unix_gc()
380 BUG_ON(!list_empty(&gc_candidates)); in unix_gc()
/linux-3.4.99/kernel/
Dmutex-debug.c40 DEBUG_LOCKS_WARN_ON(list_empty(&lock->wait_list)); in debug_mutex_wake_waiter()
42 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in debug_mutex_wake_waiter()
47 DEBUG_LOCKS_WARN_ON(!list_empty(&waiter->list)); in debug_mutex_free_waiter()
63 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in mutex_remove_waiter()
/linux-3.4.99/fs/fscache/
Doperation.c36 ASSERT(list_empty(&op->pend_link)); in fscache_enqueue_operation()
90 ASSERT(list_empty(&op->pend_link)); in fscache_submit_exclusive_op()
102 } else if (!list_empty(&object->pending_ops)) { in fscache_submit_exclusive_op()
158 if (!list_empty(&object->pending_ops)) { in fscache_report_unexpected_submission()
194 ASSERT(list_empty(&op->pend_link)); in fscache_submit_op()
207 } else if (!list_empty(&object->pending_ops)) { in fscache_submit_op()
261 while (!list_empty(&object->pending_ops) && !stop) { in fscache_start_operations()
296 if (!list_empty(&op->pend_link)) { in fscache_cancel_op()
399 if (list_empty(&cache->op_gc_list)) { in fscache_operation_gc()
437 if (!list_empty(&cache->op_gc_list)) in fscache_operation_gc()
/linux-3.4.99/drivers/staging/tidspbridge/core/
Dmsg_sm.c183 if (!list_empty(&hmsg_mgr->msg_free_list)) in bridge_msg_create_queue()
233 if (list_empty(&hmsg_mgr->msg_free_list)) in bridge_msg_delete_queue()
258 if (!list_empty(&msg_queue_obj->msg_used_list)) { in bridge_msg_get()
265 if (list_empty(&msg_queue_obj->msg_used_list)) in bridge_msg_get()
298 if (!status && !list_empty(&msg_queue_obj->msg_used_list)) { in bridge_msg_get()
310 if (!list_empty(&msg_queue_obj->msg_used_list)) in bridge_msg_get()
339 if (!list_empty(&hmsg_mgr->msg_free_list)) { in bridge_msg_put()
350 if (list_empty(&hmsg_mgr->msg_free_list)) in bridge_msg_put()
389 if (list_empty(&hmsg_mgr->msg_free_list)) { in bridge_msg_put()
414 if (!list_empty(&hmsg_mgr->msg_free_list)) in bridge_msg_put()
/linux-3.4.99/fs/afs/
Dcell.c330 if (cell && !list_empty(&cell->link))
362 ASSERT(list_empty(&cell->servers)); in afs_put_cell()
363 ASSERT(list_empty(&cell->vl_list)); in afs_put_cell()
382 ASSERT(list_empty(&cell->link)); in afs_cell_destroy()
403 ASSERT(list_empty(&cell->servers)); in afs_cell_destroy()
404 ASSERT(list_empty(&cell->vl_list)); in afs_cell_destroy()
435 while (!list_empty(&afs_cells)) { in afs_cell_purge()
441 if (!list_empty(&afs_cells)) { in afs_cell_purge()
Dflock.c139 if (!list_empty(&vnode->granted_locks)) { in afs_lock_work()
173 if (!list_empty(&vnode->pending_locks)) { in afs_lock_work()
217 if (!list_empty(&vnode->pending_locks)) in afs_lock_work()
300 ASSERT(!list_empty(&vnode->granted_locks)); in afs_do_setlk()
306 if (list_empty(&vnode->pending_locks) && in afs_do_setlk()
307 list_empty(&vnode->granted_locks)) { in afs_do_setlk()
326 ASSERT(list_empty(&vnode->granted_locks)); in afs_do_setlk()
381 if (list_empty(&vnode->granted_locks) && in afs_do_setlk()
432 if (list_empty(&vnode->granted_locks)) in afs_do_setlk()
465 if (list_empty(&vnode->granted_locks)) in afs_do_unlk()
/linux-3.4.99/fs/
Dpnode.c85 if (IS_MNT_SHARED(mnt) && list_empty(&mnt->mnt_share)) in do_make_slave()
102 while (!list_empty(p)) { in do_make_slave()
148 if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list)) in propagation_next()
261 while (!list_empty(&tmp_list)) { in propagate_mnt()
303 if (!list_empty(&mnt->mnt_mounts) || do_refcount_check(mnt, refcnt)) in propagate_mount_busy()
309 if (child && list_empty(&child->mnt_mounts) && in propagate_mount_busy()
336 if (child && list_empty(&child->mnt_mounts)) in __propagate_umount()
/linux-3.4.99/arch/arm/mach-msm/
Ddma.c65 if (list_empty(&ready_commands[id]) && in msm_dmov_enqueue_cmd()
68 if (list_empty(&active_commands[id])) { in msm_dmov_enqueue_cmd()
84 if (list_empty(&active_commands[id])) in msm_dmov_enqueue_cmd()
165 if (list_empty(&active_commands[id])) { in msm_datamover_irq_handler()
224 if ((ch_status & DMOV_STATUS_CMD_PTR_RDY) && !list_empty(&ready_commands[id])) { in msm_datamover_irq_handler()
234 if (list_empty(&active_commands[id]) && list_empty(&ready_commands[id])) in msm_datamover_irq_handler()
/linux-3.4.99/drivers/net/caif/
Dcaif_shmcore.c146 if (list_empty(&pshm_drv->rx_empty_list)) { in caif_shmdrv_rx_cb()
197 if (list_empty(&pshm_drv->tx_full_list)) { in caif_shmdrv_rx_cb()
279 if (list_empty(&pshm_drv->rx_full_list)) { in shm_rx_work_func()
403 if (!list_empty(&pshm_drv->rx_pend_list)) { in shm_tx_work_func()
441 if (list_empty(&pshm_drv->tx_empty_list)) in shm_tx_work_func()
695 while (!(list_empty(&pshm_drv->tx_pend_list))) { in caif_shmcore_remove()
704 while (!(list_empty(&pshm_drv->tx_full_list))) { in caif_shmcore_remove()
712 while (!(list_empty(&pshm_drv->tx_empty_list))) { in caif_shmcore_remove()
720 while (!(list_empty(&pshm_drv->rx_full_list))) { in caif_shmcore_remove()
728 while (!(list_empty(&pshm_drv->rx_pend_list))) { in caif_shmcore_remove()
[all …]
/linux-3.4.99/net/core/
Dlink_watch.c96 if (list_empty(&dev->link_watch_list)) { in linkwatch_add_event()
190 while (!list_empty(&wrk)) { in __linkwatch_run_queue()
204 if (!list_empty(&lweventlist)) in __linkwatch_run_queue()
215 if (!list_empty(&dev->link_watch_list)) { in linkwatch_forget_dev()
/linux-3.4.99/drivers/usb/gadget/
Dprinter.c454 if (likely(list_empty(&dev->tx_reqs_active))) in tx_complete()
513 while (likely(!list_empty(&dev->rx_reqs))) { in setup_rx_reqs()
585 (likely(list_empty(&dev->rx_buffers)))) { in printer_read()
600 (likely(!list_empty(&dev->rx_buffers)))); in printer_read()
605 while ((current_rx_bytes || likely(!list_empty(&dev->rx_buffers))) in printer_read()
697 if (likely(list_empty(&dev->tx_reqs))) { in printer_write()
712 (likely(!list_empty(&dev->tx_reqs)))); in printer_write()
716 while (likely(!list_empty(&dev->tx_reqs)) && len) { in printer_write()
796 tx_list_empty = (likely(list_empty(&dev->tx_reqs))); in printer_fsync()
802 (likely(list_empty(&dev->tx_reqs_active)))); in printer_fsync()
[all …]
/linux-3.4.99/drivers/media/video/
Dv4l2-mem2mem.c100 if (list_empty(&q_ctx->rdy_queue)) { in v4l2_m2m_next_buf()
121 if (list_empty(&q_ctx->rdy_queue)) { in v4l2_m2m_buf_remove()
172 if (list_empty(&m2m_dev->job_queue)) { in v4l2_m2m_try_run()
224 if (list_empty(&m2m_ctx->out_q_ctx.rdy_queue)) { in v4l2_m2m_try_schedule()
230 if (list_empty(&m2m_ctx->cap_q_ctx.rdy_queue)) { in v4l2_m2m_try_schedule()
423 if ((!src_q->streaming || list_empty(&src_q->queued_list)) in v4l2_m2m_poll()
424 && (!dst_q->streaming || list_empty(&dst_q->queued_list))) { in v4l2_m2m_poll()
439 if (!list_empty(&src_q->done_list)) in v4l2_m2m_poll()
448 if (!list_empty(&dst_q->done_list)) in v4l2_m2m_poll()
/linux-3.4.99/drivers/gpu/drm/radeon/
Dradeon_semaphore.c88 if (list_empty(&rdev->semaphore_drv.bo)) { in radeon_semaphore_shrink_locked()
93 if (list_empty(&bo->free)) { in radeon_semaphore_shrink_locked()
115 if (list_empty(&bo->free)) in radeon_semaphore_create()
172 if (!list_empty(&bo->free)) { in radeon_semaphore_driver_fini()
/linux-3.4.99/fs/notify/
Dnotification.c76 return list_empty(&group->notification_list) ? true : false; in fsnotify_notify_queue_is_empty()
95 BUG_ON(!list_empty(&event->private_data_list)); in fsnotify_put_event()
159 if (!list_empty(&event->holder.event_list)) { in fsnotify_add_notify_event()
182 if (!list_empty(list) && merge) { in fsnotify_add_notify_event()
199 if (list_empty(&event->holder.event_list)) { in fsnotify_add_notify_event()
336 BUG_ON(!list_empty(&new_holder->event_list)); in fsnotify_replace_event()
/linux-3.4.99/drivers/usb/core/
Durb.c146 if (list_empty(&anchor->urb_list)) in __usb_unanchor_urb()
719 while (!list_empty(&anchor->urb_list)) { in usb_kill_anchored_urbs()
752 while (!list_empty(&anchor->urb_list)) { in usb_poison_anchored_urbs()
821 return wait_event_timeout(anchor->wait, list_empty(&anchor->urb_list), in usb_wait_anchor_empty_timeout()
839 if (!list_empty(&anchor->urb_list)) { in usb_get_from_anchor()
866 while (!list_empty(&anchor->urb_list)) { in usb_scuttle_anchored_urbs()
884 return list_empty(&anchor->urb_list); in usb_anchor_empty()
/linux-3.4.99/net/rds/
Drecv.c62 BUG_ON(!list_empty(&inc->i_item)); in rds_inc_put()
255 if (!list_empty(&rs->rs_recv_queue)) { in rds_next_incoming()
275 if (!list_empty(&inc->i_item)) { in rds_still_queued()
320 while (!list_empty(&rs->rs_notify_queue) && count < max_messages) { in rds_notify_queue_get()
331 while (!list_empty(&copy)) { in rds_notify_queue_get()
351 if (!list_empty(&copy)) { in rds_notify_queue_get()
418 if (!list_empty(&rs->rs_notify_queue)) { in rds_recvmsg()
435 (!list_empty(&rs->rs_notify_queue) || in rds_recvmsg()
/linux-3.4.99/drivers/dma/
Dsirf-dma.c163 if (!list_empty(&schan->queued)) in sirfsoc_dma_irq()
194 if (!list_empty(&schan->completed)) { in sirfsoc_dma_process_completed()
376 BUG_ON(!list_empty(&schan->prepared)); in sirfsoc_dma_free_chan_resources()
377 BUG_ON(!list_empty(&schan->queued)); in sirfsoc_dma_free_chan_resources()
378 BUG_ON(!list_empty(&schan->active)); in sirfsoc_dma_free_chan_resources()
379 BUG_ON(!list_empty(&schan->completed)); in sirfsoc_dma_free_chan_resources()
399 if (list_empty(&schan->active) && !list_empty(&schan->queued)) in sirfsoc_dma_issue_pending()
438 if (!list_empty(&schan->free)) { in sirfsoc_dma_prep_interleaved()
514 if (!list_empty(&schan->free)) { in sirfsoc_dma_prep_cyclic()

12345678910>>...49