Home
last modified time | relevance | path

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

12345678910>>...90

/linux/kernel/sched/
H A Dswait.c26 if (list_empty(&q->task_list)) in swake_up_locked()
44 while (!list_empty(&q->task_list)) in swake_up_all_locked()
69 while (!list_empty(&tmp)) { in swake_up_all()
75 if (list_empty(&tmp)) in swake_up_all()
88 if (list_empty(&wait->task_list)) in __prepare_to_swait()
129 if (!list_empty(&wait->task_list)) in __finish_swait()
H A Dwait.c60 if (!list_empty(head) && in add_wait_queue_priority_exclusive()
254 if (list_empty(&wq_entry->entry)) in prepare_to_wait()
270 if (list_empty(&wq_entry->entry)) { in prepare_to_wait_exclusive()
271 was_empty = list_empty(&wq_head->head); in prepare_to_wait_exclusive()
311 if (list_empty(&wq_entry->entry)) { in prepare_to_wait_event()
334 if (likely(list_empty(&wait->entry))) in do_wait_intr()
351 if (likely(list_empty(&wait->entry))) in do_wait_intr_irq()
/linux/fs/ocfs2/dlm/
H A Ddlmthread.c63 if (list_empty(&res->granted) && in __dlm_lockres_has_locks()
64 list_empty(&res->converting) && in __dlm_lockres_has_locks()
65 list_empty(&res->blocked)) in __dlm_lockres_has_locks()
87 if (!list_empty(&res->dirty) || res->state & DLM_LOCK_RES_DIRTY) in __dlm_lockres_unused()
113 if (list_empty(&res->purge)) { in __dlm_lockres_calc_usage()
122 } else if (!list_empty(&res->purge)) { in __dlm_lockres_calc_usage()
156 if (!list_empty(&res->purge)) { in __dlm_do_purge_lockres()
174 if (!list_empty(&res->tracking)) in __dlm_do_purge_lockres()
232 if (!list_empty(&res->purge)) { in dlm_purge_lockres()
257 if (!list_empty(&res->tracking)) in dlm_purge_lockres()
[all …]
H A Ddlmdebug.c69 (list_empty(&lock->ast_list) ? 'y' : 'n'), in __dlm_print_lock()
71 (list_empty(&lock->bast_list) ? 'y' : 'n'), in __dlm_print_lock()
94 str_no_yes(list_empty(&res->purge))); in __dlm_print_one_lock_resource()
97 str_no_yes(list_empty(&res->dirty)), in __dlm_print_one_lock_resource()
98 str_no_yes(list_empty(&res->recovering)), in __dlm_print_one_lock_resource()
230 !list_empty(&mle->hb_events), in dump_mle()
423 !list_empty(&lock->ast_list), in dump_lock()
424 !list_empty(&lock->bast_list), in dump_lock()
450 !list_empty(&res->purge), in dump_lockres()
451 !list_empty(&res->dirty), in dump_lockres()
[all …]
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_pool_test.c251 KUNIT_ASSERT_FALSE(test, list_empty(&pt->pages)); in ttm_pool_alloc_order_caching_match()
259 KUNIT_ASSERT_TRUE(test, list_empty(&pt->pages)); in ttm_pool_alloc_order_caching_match()
285 KUNIT_ASSERT_FALSE(test, list_empty(&pt_pool->pages)); in ttm_pool_alloc_caching_mismatch()
286 KUNIT_ASSERT_TRUE(test, list_empty(&pt_tt->pages)); in ttm_pool_alloc_caching_mismatch()
294 KUNIT_ASSERT_FALSE(test, list_empty(&pt_pool->pages)); in ttm_pool_alloc_caching_mismatch()
295 KUNIT_ASSERT_FALSE(test, list_empty(&pt_tt->pages)); in ttm_pool_alloc_caching_mismatch()
319 KUNIT_ASSERT_FALSE(test, list_empty(&pt_pool->pages)); in ttm_pool_alloc_order_mismatch()
320 KUNIT_ASSERT_TRUE(test, list_empty(&pt_tt->pages)); in ttm_pool_alloc_order_mismatch()
328 KUNIT_ASSERT_FALSE(test, list_empty(&pt_pool->pages)); in ttm_pool_alloc_order_mismatch()
329 KUNIT_ASSERT_FALSE(test, list_empty(&pt_tt->pages)); in ttm_pool_alloc_order_mismatch()
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_ooo.c34 if (unlikely(list_empty(&p_archipelago->isles_list))) in qed_ooo_seek_archipelago()
175 while (!list_empty(&p_archipelago->isles_list)) { in qed_ooo_release_connection_isles()
181 while (!list_empty(&p_isle->buffers_list)) { in qed_ooo_release_connection_isles()
205 while (!list_empty(&p_archipelago->isles_list)) { in qed_ooo_release_all_isles()
212 while (!list_empty(&p_isle->buffers_list)) { in qed_ooo_release_all_isles()
225 if (!list_empty(&p_ooo_info->ready_buffers_list)) in qed_ooo_release_all_isles()
248 while (!list_empty(&p_ooo_info->free_buffers_list)) { in qed_ooo_free()
279 if (!list_empty(&p_ooo_info->free_buffers_list)) { in qed_ooo_get_free_buffer()
306 if (!list_empty(&p_ooo_info->ready_buffers_list)) { in qed_ooo_get_ready_buffer()
331 if (list_empty(&p_isle->buffers_list)) in qed_ooo_delete_isles()
[all …]
/linux/include/net/
H A Dfq_impl.h102 if (list_empty(head)) { in fq_tin_dequeue()
104 if (list_empty(head)) in fq_tin_dequeue()
121 !list_empty(&tin->old_flows)) { in fq_tin_dequeue()
213 else if (list_empty(&tin->tin_list)) in fq_tin_enqueue()
228 if (list_empty(&flow->flowchain)) { in fq_tin_enqueue()
299 if (!list_empty(&flow->flowchain)) { in fq_flow_reset()
301 if (list_empty(&tin->new_flows) && in fq_flow_reset()
302 list_empty(&tin->old_flows)) in fq_flow_reset()
320 if (list_empty(head)) { in fq_tin_reset()
322 if (list_empty(head)) in fq_tin_reset()
[all …]
/linux/drivers/usb/host/
H A Dfhci-q.c74 if (!list_empty(&ed->td_list)) in peek_td_from_ed()
86 if (!list_empty(&frame->tds_list)) { in fhci_remove_td_from_frame()
99 if (!list_empty(&frame->tds_list)) in fhci_peek_td_from_frame()
111 if (!list_empty(&ed->td_list)) { in fhci_remove_td_from_ed()
116 if (!list_empty(&ed->td_list)) in fhci_remove_td_from_ed()
131 if (!list_empty(&p_list->done_list)) { in fhci_remove_td_from_done_list()
148 if (!list_empty(&ed->td_list)) in fhci_move_td_from_ed_to_done_list()
173 if (!list_empty(&ed->td_list)) in free_urb_priv()
H A Dehci-timer.c222 while (!list_empty(&ehci->intr_unlink_wait)) { in ehci_handle_start_intr_unlinks()
236 if (!list_empty(&ehci->intr_unlink_wait)) { in ehci_handle_start_intr_unlinks()
255 while (!list_empty(&ehci->intr_unlink)) { in ehci_handle_intr_unlinks()
267 if (!list_empty(&ehci->intr_unlink)) { in ehci_handle_intr_unlinks()
313 if (!list_empty(&ehci->cached_itd_list) || in end_free_itds()
314 !list_empty(&ehci->cached_sitd_list)) in end_free_itds()
/linux/kernel/locking/
H A 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()
65 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in debug_mutex_remove_waiter()
/linux/net/devlink/
H A Dcore.c472 WARN_ON(!list_empty(&devlink->trap_policer_list)); in devlink_free()
473 WARN_ON(!list_empty(&devlink->trap_group_list)); in devlink_free()
474 WARN_ON(!list_empty(&devlink->trap_list)); in devlink_free()
475 WARN_ON(!list_empty(&devlink->reporter_list)); in devlink_free()
476 WARN_ON(!list_empty(&devlink->region_list)); in devlink_free()
477 WARN_ON(!list_empty(&devlink->resource_list)); in devlink_free()
478 WARN_ON(!list_empty(&devlink->dpipe_table_list)); in devlink_free()
479 WARN_ON(!list_empty(&devlink->sb_list)); in devlink_free()
480 WARN_ON(!list_empty(&devlink->rate_list)); in devlink_free()
481 WARN_ON(!list_empty(&devlink->linecard_list)); in devlink_free()
/linux/fs/notify/
H A Dnotification.c62 if (!list_empty(&event->list)) { in fsnotify_destroy_event()
64 WARN_ON(!list_empty(&event->list)); in fsnotify_destroy_event()
104 if (!list_empty(&group->overflow_event->list)) { in fsnotify_insert_event()
112 if (!list_empty(list) && merge) { in fsnotify_insert_event()
/linux/fs/gfs2/
H A Dlog.c259 if (!list_empty(&sdp->sd_ail1_list)) { in gfs2_log_update_flush_tail()
285 while (!list_empty(head)) { in gfs2_ail_empty_tr()
337 if (*max_revokes && list_empty(&bd->bd_list)) { in gfs2_ail1_empty_one()
370 empty = list_empty(&sdp->sd_ail1_list); in gfs2_ail1_empty()
402 gfs2_assert_warn(sdp, list_empty(&tr->tr_ail1_list)); in __ail2_empty()
403 gfs2_assert_warn(sdp, list_empty(&tr->tr_ail2_list)); in __ail2_empty()
714 if (!list_empty(&ip->i_ordered)) in __ordered_del_inode()
725 while (!list_empty(&sdp->sd_log_ordered)) { in gfs2_ordered_write()
745 while (!list_empty(&sdp->sd_log_ordered)) { in gfs2_ordered_wait()
862 if (!list_empty(&jd->extent_list)) in gfs2_write_log_header()
[all …]
H A Dtrans.c217 if (list_empty(&bd->bd_list)) { in gfs2_trans_add_data()
281 if (!list_empty(&bd->bd_list)) in gfs2_trans_add_meta()
319 BUG_ON(!list_empty(&bd->bd_list)); in gfs2_trans_add_revoke()
352 gfs2_assert_warn(sdp, list_empty(&tr->tr_ail1_list)); in gfs2_trans_free()
353 gfs2_assert_warn(sdp, list_empty(&tr->tr_ail2_list)); in gfs2_trans_free()
354 gfs2_assert_warn(sdp, list_empty(&tr->tr_databuf)); in gfs2_trans_free()
355 gfs2_assert_warn(sdp, list_empty(&tr->tr_buf)); in gfs2_trans_free()
/linux/drivers/usb/gadget/function/
H A Df_printer.c336 if (likely(list_empty(&dev->tx_reqs_active))) in tx_complete()
399 while (likely(!list_empty(&dev->rx_reqs))) { in setup_rx_reqs()
425 else if (list_empty(&req->list)) in setup_rx_reqs()
481 (likely(list_empty(&dev->rx_buffers)))) { in printer_read()
496 (likely(!list_empty(&dev->rx_buffers)))); in printer_read()
503 while ((current_rx_bytes || likely(!list_empty(&dev->rx_buffers))) in printer_read()
607 if (likely(list_empty(&dev->tx_reqs))) { in printer_write()
622 (likely(!list_empty(&dev->tx_reqs)))); in printer_write()
628 while (likely(!list_empty(&dev->tx_reqs)) && len) { in printer_write()
727 tx_list_empty = (likely(list_empty(&dev->tx_reqs))); in printer_fsync()
[all …]
/linux/tools/include/linux/
H A Dlist.h187 static inline int list_empty(const struct list_head *head) in list_empty() function
219 if (!list_empty(head)) { in list_rotate_left()
231 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
263 if (list_empty(head)) in list_cut_position()
296 if (!list_empty(list)) in list_splice()
308 if (!list_empty(list)) in list_splice_tail()
322 if (!list_empty(list)) { in list_splice_init()
339 if (!list_empty(list)) { in list_splice_tail_init()
385 (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL)
396 (!list_empty(ptr) ? list_last_entry(ptr, type, member) : NULL)
/linux/drivers/gpu/drm/
H A Ddrm_vblank_work.c78 drm_WARN_ONCE(vblank->dev, !list_empty(&vblank->pending_work), in drm_vblank_cancel_pending_works()
131 if (list_empty(&work->node)) { in drm_vblank_work_schedule()
194 if (!list_empty(&work->node)) { in drm_vblank_work_cancel_sync()
229 wait_event_lock_irq(vblank->work_wait_queue, list_empty(&work->node), in drm_vblank_work_flush()
251 list_empty(&vblank->pending_work), in drm_vblank_work_flush_all()
/linux/drivers/isdn/mISDN/
H A Dtimerdev.c74 while (!list_empty(list)) { in mISDN_close()
108 while (list_empty(list) && (dev->work == 0)) { in mISDN_read()
113 !list_empty(list))); in mISDN_read()
120 if (!list_empty(list)) { in mISDN_read()
146 if (dev->work || !list_empty(&dev->expired)) in mISDN_poll()
150 dev->work, list_empty(&dev->expired)); in mISDN_poll()
/linux/fs/nfs_common/
H A Dgrace.c35 if (list_empty(&lm->list)) in locks_start_grace()
70 return !list_empty(grace_list); in __state_in_grace()
117 WARN_ONCE(!list_empty(grace_list), in grace_exit_net()
/linux/drivers/gpu/drm/i915/
H A Di915_scheduler.c224 GEM_BUG_ON(!list_empty(&node->link)); in __i915_schedule()
270 if (list_empty(&node->link)) in __i915_schedule()
311 GEM_BUG_ON(!list_empty(&node->signalers_list)); in i915_sched_node_reinit()
312 GEM_BUG_ON(!list_empty(&node->waiters_list)); in i915_sched_node_reinit()
313 GEM_BUG_ON(!list_empty(&node->link)); in i915_sched_node_reinit()
387 GEM_BUG_ON(!list_empty(&dep->dfs_link)); in i915_sched_node_fini()
398 GEM_BUG_ON(!list_empty(&dep->dfs_link)); in i915_sched_node_fini()
/linux/drivers/misc/mei/
H A Dinit.c347 list_empty(&dev->ctrl_wr_list) && in mei_write_is_idle()
348 list_empty(&dev->write_list) && in mei_write_is_idle()
349 list_empty(&dev->write_waiting_list)); in mei_write_is_idle()
354 list_empty(&dev->ctrl_wr_list), in mei_write_is_idle()
355 list_empty(&dev->write_list), in mei_write_is_idle()
356 list_empty(&dev->write_waiting_list)); in mei_write_is_idle()
/linux/mm/damon/
H A Dops-common.c313 if (list_empty(migrate_folios)) in __damon_migrate_folio_list()
333 while (!list_empty(folio_list)) { in damon_migrate_folio_list()
360 if (!list_empty(&migrate_folios)) in damon_migrate_folio_list()
367 while (!list_empty(folio_list)) { in damon_migrate_folio_list()
383 if (list_empty(folio_list)) in damon_migrate_pages()
405 } while (!list_empty(folio_list)); in damon_migrate_pages()
/linux/net/sctp/
H A Dstream_sched_rr.c47 if (list_empty(&stream->rr_list)) in sctp_sched_rr_unsched()
54 if (!list_empty(&soute->rr_list)) in sctp_sched_rr_sched()
117 if (list_empty(&q->out_chunk_list)) in sctp_sched_rr_dequeue()
145 if (list_empty(&soute->outq)) in sctp_sched_rr_dequeue_done()
/linux/lib/
H A Dplist.c80 WARN_ON(!list_empty(&node->prio_list)); in plist_add()
126 if (!list_empty(&node->prio_list)) { in plist_del()
134 if (list_empty(&next->prio_list)) in plist_del()
178 if (!list_empty(&iter->prio_list)) { in plist_requeue()
221 BUG_ON(!list_empty(&node_pos->prio_list)); in plist_test_check()
/linux/drivers/md/dm-vdo/
H A Dpriority-table.c178 if (list_empty(&bucket->queue)) in vdo_priority_table_dequeue()
197 if (list_empty(entry)) in vdo_priority_table_remove()
211 if (list_empty(next_entry)) in vdo_priority_table_remove()

12345678910>>...90