Home
last modified time | relevance | path

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

12345678910>>...80

/Linux-v5.4/fs/ocfs2/dlm/
Ddlmthread.c67 if (list_empty(&res->granted) && in __dlm_lockres_has_locks()
68 list_empty(&res->converting) && in __dlm_lockres_has_locks()
69 list_empty(&res->blocked)) in __dlm_lockres_has_locks()
91 if (!list_empty(&res->dirty) || res->state & DLM_LOCK_RES_DIRTY) in __dlm_lockres_unused()
117 if (list_empty(&res->purge)) { in __dlm_lockres_calc_usage()
126 } else if (!list_empty(&res->purge)) { in __dlm_lockres_calc_usage()
160 if (!list_empty(&res->purge)) { in __dlm_do_purge_lockres()
178 if (!list_empty(&res->tracking)) in __dlm_do_purge_lockres()
236 if (!list_empty(&res->purge)) { in dlm_purge_lockres()
261 if (!list_empty(&res->tracking)) in dlm_purge_lockres()
[all …]
Ddlmdebug.c70 (list_empty(&lock->ast_list) ? 'y' : 'n'), in __dlm_print_lock()
72 (list_empty(&lock->bast_list) ? 'y' : 'n'), in __dlm_print_lock()
95 list_empty(&res->purge) ? "no" : "yes"); in __dlm_print_one_lock_resource()
98 list_empty(&res->dirty) ? "no" : "yes", in __dlm_print_one_lock_resource()
99 list_empty(&res->recovering) ? "no" : "yes", in __dlm_print_one_lock_resource()
284 !list_empty(&mle->hb_events), in dump_mle()
477 !list_empty(&lock->ast_list), in dump_lock()
478 !list_empty(&lock->bast_list), in dump_lock()
504 !list_empty(&res->purge), in dump_lockres()
505 !list_empty(&res->dirty), in dump_lockres()
[all …]
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_ooo.c60 if (list_empty(&p_archipelago->isles_list)) in qed_ooo_seek_archipelago()
200 while (!list_empty(&p_archipelago->isles_list)) { in qed_ooo_release_connection_isles()
206 while (!list_empty(&p_isle->buffers_list)) { in qed_ooo_release_connection_isles()
233 while (!list_empty(&p_archipelago->isles_list)) { in qed_ooo_release_all_isles()
240 while (!list_empty(&p_isle->buffers_list)) { in qed_ooo_release_all_isles()
256 if (!list_empty(&p_ooo_info->ready_buffers_list)) in qed_ooo_release_all_isles()
279 while (!list_empty(&p_ooo_info->free_buffers_list)) { in qed_ooo_free()
313 if (!list_empty(&p_ooo_info->free_buffers_list)) { in qed_ooo_get_free_buffer()
340 if (!list_empty(&p_ooo_info->ready_buffers_list)) { in qed_ooo_get_ready_buffer()
365 if (list_empty(&p_isle->buffers_list)) in qed_ooo_delete_isles()
[all …]
/Linux-v5.4/fs/notify/
Dnotification.c54 return list_empty(&group->notification_list) ? true : false; in fsnotify_notify_queue_is_empty()
69 if (!list_empty(&event->list)) { in fsnotify_destroy_event()
71 WARN_ON(!list_empty(&event->list)); in fsnotify_destroy_event()
105 if (!list_empty(&group->overflow_event->list)) { in fsnotify_add_event()
113 if (!list_empty(list) && merge) { in fsnotify_add_event()
/Linux-v5.4/drivers/usb/host/
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()
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-v5.4/fs/
Dpnode.c77 if (list_empty(&mnt->mnt_share)) { in do_make_slave()
85 while (!list_empty(p)) { in do_make_slave()
153 if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list)) in propagation_next()
177 if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list)) in skip_propagation_subtree()
188 if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list)) in next_group()
383 if (!list_empty(&mnt->mnt_mounts) || do_refcount_check(mnt, refcnt)) in propagate_mount_busy()
399 else if (!list_empty(&child->mnt_mounts)) in propagate_mount_busy()
461 if (!list_empty(&child->mnt_umounting) && IS_MNT_MARKED(child)) in __propagate_umount()
500 while (!list_empty(to_restore)) { in restore_mounts()
522 while (!list_empty(visited)) { in cleanup_umount_visitations()
[all …]
/Linux-v5.4/kernel/sched/
Dswait.c26 if (list_empty(&q->task_list)) in swake_up_locked()
56 while (!list_empty(&tmp)) { in swake_up_all()
62 if (list_empty(&tmp)) in swake_up_all()
75 if (list_empty(&wait->task_list)) in __prepare_to_swait()
116 if (!list_empty(&wait->task_list)) in __finish_swait()
/Linux-v5.4/kernel/locking/
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-v5.4/include/net/
Dfq_impl.h74 if (list_empty(head)) { in fq_tin_dequeue()
76 if (list_empty(head)) in fq_tin_dequeue()
93 !list_empty(&tin->old_flows)) { in fq_tin_dequeue()
144 if (list_empty(&flow->backlogchain)) in fq_recalc_backlog()
178 if (list_empty(&flow->flowchain)) { in fq_tin_enqueue()
256 if (!list_empty(&flow->flowchain)) in fq_flow_reset()
259 if (!list_empty(&flow->backlogchain)) in fq_flow_reset()
276 if (list_empty(head)) { in fq_tin_reset()
278 if (list_empty(head)) in fq_tin_reset()
/Linux-v5.4/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c62 if (list_empty(list)) in ttm_eu_backoff_reservation()
72 if (list_empty(&bo->lru)) in ttm_eu_backoff_reservation()
103 if (list_empty(list)) in ttm_eu_reserve_buffers()
193 if (list_empty(list)) in ttm_eu_fence_buffer_objects()
207 if (list_empty(&bo->lru)) in ttm_eu_fence_buffer_objects()
/Linux-v5.4/drivers/usb/gadget/function/
Df_printer.c322 if (likely(list_empty(&dev->tx_reqs_active))) in tx_complete()
379 while (likely(!list_empty(&dev->rx_reqs))) { in setup_rx_reqs()
405 else if (list_empty(&req->list)) in setup_rx_reqs()
455 (likely(list_empty(&dev->rx_buffers)))) { in printer_read()
470 (likely(!list_empty(&dev->rx_buffers)))); in printer_read()
475 while ((current_rx_bytes || likely(!list_empty(&dev->rx_buffers))) in printer_read()
568 if (likely(list_empty(&dev->tx_reqs))) { in printer_write()
583 (likely(!list_empty(&dev->tx_reqs)))); in printer_write()
587 while (likely(!list_empty(&dev->tx_reqs)) && len) { in printer_write()
670 tx_list_empty = (likely(list_empty(&dev->tx_reqs))); in printer_fsync()
[all …]
/Linux-v5.4/fs/nfs_common/
Dgrace.c34 if (list_empty(&lm->list)) in locks_start_grace()
70 return !list_empty(grace_list); in __state_in_grace()
112 WARN_ONCE(!list_empty(grace_list), in grace_exit_net()
/Linux-v5.4/drivers/misc/mei/
Dinit.c333 list_empty(&dev->ctrl_wr_list) && in mei_write_is_idle()
334 list_empty(&dev->write_list) && in mei_write_is_idle()
335 list_empty(&dev->write_waiting_list)); in mei_write_is_idle()
340 list_empty(&dev->ctrl_wr_list), in mei_write_is_idle()
341 list_empty(&dev->write_list), in mei_write_is_idle()
342 list_empty(&dev->write_waiting_list)); in mei_write_is_idle()
/Linux-v5.4/fs/fscache/
Doperation.c65 ASSERT(list_empty(&op->pend_link)); in fscache_enqueue_operation()
135 if (!list_empty(&object->pending_ops)) { in fscache_report_unexpected_submission()
171 ASSERT(list_empty(&op->pend_link)); in fscache_submit_exclusive_op()
196 } else if (!list_empty(&object->pending_ops)) { in fscache_submit_exclusive_op()
258 ASSERT(list_empty(&op->pend_link)); in fscache_submit_op()
282 } else if (!list_empty(&object->pending_ops)) { in fscache_submit_op()
335 while (!list_empty(&object->pending_ops) && !stop) { in fscache_start_operations()
379 ASSERT(!list_empty(&op->pend_link)); in fscache_cancel_op()
427 while (!list_empty(&object->pending_ops)) { in fscache_cancel_all_ops()
573 if (list_empty(&cache->op_gc_list)) { in fscache_operation_gc()
[all …]
/Linux-v5.4/net/core/
Dlink_watch.c102 if (list_empty(&dev->link_watch_list)) { in linkwatch_add_event()
194 while (!list_empty(&wrk) && do_dev > 0) { in __linkwatch_run_queue()
212 if (!list_empty(&lweventlist)) in __linkwatch_run_queue()
223 if (!list_empty(&dev->link_watch_list)) { in linkwatch_forget_dev()
/Linux-v5.4/drivers/hid/intel-ish-hid/ishtp/
Dclient-buffers.c104 while (!list_empty(&cl->free_rb_list.list)) { in ishtp_cl_free_rx_ring()
114 while (!list_empty(&cl->in_process_list.list)) { in ishtp_cl_free_rx_ring()
137 while (!list_empty(&cl->tx_free_list.list)) { in ishtp_cl_free_tx_ring()
149 while (!list_empty(&cl->tx_list.list)) { in ishtp_cl_free_tx_ring()
268 tx_list_empty = list_empty(&cl->tx_list.list); in ishtp_cl_tx_empty()
/Linux-v5.4/net/sctp/
Dstream_sched_prio.c94 if (!list_empty(&soute->prio_list)) { in sctp_sched_prio_unsched()
107 if (list_empty(&prio_head->active)) { in sctp_sched_prio_unsched()
125 if (!list_empty(&soute->prio_list)) in sctp_sched_prio_sched()
224 if (prio && list_empty(&prio->prio_sched)) in sctp_sched_prio_free()
254 if (list_empty(&q->out_chunk_list)) in sctp_sched_prio_dequeue()
290 if (list_empty(&soute->outq)) in sctp_sched_prio_dequeue_done()
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()
118 if (list_empty(&q->out_chunk_list)) in sctp_sched_rr_dequeue()
146 if (list_empty(&soute->outq)) in sctp_sched_rr_dequeue_done()
/Linux-v5.4/drivers/isdn/mISDN/
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-v5.4/net/unix/
Dgarbage.c154 BUG_ON(!list_empty(&u->link)); in scan_children()
159 while (!list_empty(&embryos)) { in scan_children()
287 while (!list_empty(&not_cycle_list)) { in unix_gc()
301 BUG_ON(!list_empty(&gc_candidates)); in unix_gc()
/Linux-v5.4/tools/include/linux/
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)
/Linux-v5.4/drivers/gpu/drm/
Ddrm_flip_work.c129 if (list_empty(&tasks)) in flip_worker()
168 WARN_ON(!list_empty(&work->queued) || !list_empty(&work->commited)); in drm_flip_work_cleanup()
/Linux-v5.4/drivers/s390/char/
Dsclp_con.c63 if (!list_empty(&sclp_con_outqueue)) in sclp_conbuf_callback()
90 if (list_empty(&sclp_con_outqueue)) in sclp_conbuf_emit()
179 if (list_empty(&sclp_con_pages)) in sclp_console_write()
181 while (list_empty(&sclp_con_pages)) { in sclp_console_write()
/Linux-v5.4/sound/pci/ctxfi/
Dctimap.c26 if (list_empty(head)) { in input_mapper_add()
72 if (list_empty(head)) in input_mapper_delete()
101 while (!list_empty(head)) { in free_input_mapper_list()

12345678910>>...80