| /linux/fs/ocfs2/dlm/ |
| H A D | dlmthread.c | 63 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 …]
|
| /linux/kernel/sched/ |
| H A D | swait.c | 26 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 D | wait.c | 60 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/include/net/ |
| H A D | fq_impl.h | 102 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 D | fhci-q.c | 74 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 D | ehci-timer.c | 222 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/drivers/gpu/drm/ |
| H A D | drm_client_sysrq.c | 47 if (list_empty(&drm_client_sysrq_dev_list)) in drm_client_sysrq_register() 58 if (!drm_WARN_ON(dev, list_empty(&dev->client_sysrq_list))) in drm_client_sysrq_unregister() 62 if (list_empty(&drm_client_sysrq_dev_list)) in drm_client_sysrq_unregister()
|
| /linux/fs/notify/ |
| H A D | notification.c | 62 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/drivers/usb/gadget/function/ |
| H A D | f_printer.c | 336 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 D | list.h | 187 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/isdn/mISDN/ |
| H A D | timerdev.c | 74 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/drivers/gpu/drm/i915/ |
| H A D | i915_scheduler.c | 224 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/fs/nfs_common/ |
| H A D | grace.c | 35 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/mm/damon/ |
| H A D | ops-common.c | 319 if (list_empty(migrate_folios)) in __damon_migrate_folio_list() 339 while (!list_empty(folio_list)) { in damon_migrate_folio_list() 366 if (!list_empty(&migrate_folios)) in damon_migrate_folio_list() 373 while (!list_empty(folio_list)) { in damon_migrate_folio_list() 389 if (list_empty(folio_list)) in damon_migrate_pages() 411 } while (!list_empty(folio_list)); in damon_migrate_pages()
|
| /linux/net/sctp/ |
| H A D | stream_sched_rr.c | 47 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()
|
| H A D | stream_sched_prio.c | 107 if (!list_empty(&soute->prio_list)) { in sctp_sched_prio_unsched() 120 if (list_empty(&prio_head->active)) { in sctp_sched_prio_unsched() 138 if (!list_empty(&soute->prio_list)) in sctp_sched_prio_sched() 236 if (list_empty(&q->out_chunk_list)) in sctp_sched_prio_dequeue() 272 if (list_empty(&soute->outq)) in sctp_sched_prio_dequeue_done()
|
| /linux/drivers/s390/block/ |
| H A D | dasd_alias.c | 77 if (list_empty(&lcu->grouplist)) in _find_group() 278 if (list_empty(&lcu->grouplist) && in dasd_alias_disconnect_device_from_lcu() 279 list_empty(&lcu->active_devices) && in dasd_alias_disconnect_device_from_lcu() 280 list_empty(&lcu->inactive_devices)) { in dasd_alias_disconnect_device_from_lcu() 291 if (server && list_empty(&server->lculist)) { in dasd_alias_disconnect_device_from_lcu() 361 if (list_empty(&group->baselist) && list_empty(&group->aliaslist)) { in _remove_device_from_lcu() 579 if (device && !list_empty(&device->alias_list)) in _schedule_lcu_update() 582 if (!usedev && !list_empty(&lcu->grouplist)) { in _schedule_lcu_update() 585 if (!list_empty(&group->baselist)) in _schedule_lcu_update() 589 else if (!list_empty(&group->aliaslist)) in _schedule_lcu_update() [all …]
|
| /linux/kernel/ |
| H A D | kthread.c | 326 if (!list_empty(&kthread->hotplug_node)) { in kthread_exit() 394 WARN_ON_ONCE(!list_empty(&kthread->hotplug_node)); in kthread_affine_node() 831 if (list_empty(&kthread_create_list)) in kthreadd() 836 while (!list_empty(&kthread_create_list)) { in kthreadd() 878 WARN_ON_ONCE(!list_empty(&kthread->hotplug_node)); in kthread_affine_preferred() 908 if (list_empty(&kthreads_hotplug)) in kthreads_online_cpu() 993 if (!list_empty(&worker->work_list)) { in kthread_worker_fn() 1140 return !list_empty(&work->node) || work->canceling; in queuing_blocked() 1147 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check() 1223 WARN_ON_ONCE(list_empty(&work->node)); in kthread_delayed_work_timer_fn() [all …]
|
| /linux/Documentation/translations/zh_CN/scsi/ |
| H A D | scsi_eh.rst | 357 4. 如果!list_empty(&eh_work_q),则调用scsi_eh_ready_devs()。 381 2. 如果!list_empty(&eh_work_q),调用scsi_eh_bus_device_reset()。 390 3. 如果!list_empty(&eh_work_q),调用scsi_eh_bus_reset()。 398 4. 如果!list_empty(&eh_work_q),调用scsi_eh_host_reset()。 406 5. 如果!list_empty(&eh_work_q),调用scsi_eh_offline_sdevs()。
|
| /linux/lib/ |
| H A D | plist.c | 80 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 D | priority-table.c | 178 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()
|
| /linux/virt/kvm/ |
| H A D | async_pf.c | 81 first = list_empty(&vcpu->async_pf.done); in async_pf_execute() 123 while (!list_empty(&vcpu->async_pf.queue)) { in kvm_clear_async_pf_completion_queue() 138 while (!list_empty(&vcpu->async_pf.done)) { in kvm_clear_async_pf_completion_queue() 232 first = list_empty(&vcpu->async_pf.done); in kvm_async_pf_wakeup_all()
|
| /linux/drivers/s390/char/ |
| H A D | sclp_con.c | 62 if (!list_empty(&sclp_con_outqueue)) in sclp_conbuf_callback() 89 if (list_empty(&sclp_con_outqueue)) in sclp_conbuf_emit() 177 if (list_empty(&sclp_con_pages)) in sclp_console_write() 179 while (list_empty(&sclp_con_pages)) { in sclp_console_write()
|
| /linux/drivers/infiniband/hw/irdma/ |
| H A D | ws.c | 161 if (!list_empty(&vsi->qos[user_pri].qplist)) { in irdma_tc_in_use() 171 !list_empty(&vsi->qos[i].qplist)) { in irdma_tc_in_use() 217 if (list_empty(&vsi_node->child_list_head)) { in irdma_remove_leaf() 222 if (list_empty(&ws_tree_root->child_list_head)) { in irdma_remove_leaf() 359 if (list_empty(&vsi_node->child_list_head)) { in irdma_ws_add() 368 if (list_empty(&ws_tree_root->child_list_head)) { in irdma_ws_add()
|
| /linux/fs/ |
| H A D | fs-writeback.c | 96 if (wb_has_dirty_io(wb) && list_empty(&wb->b_dirty) && in wb_io_lists_depopulated() 97 list_empty(&wb->b_io) && list_empty(&wb->b_more_io)) { in wb_io_lists_depopulated() 461 if (!list_empty(&inode->i_io_list)) { in inode_do_switch_wbs() 1071 list_empty(&wb->b_dirty_time))) in bdi_split_work_to_wbs() 1389 if (list_empty(&inode->i_wb_list)) { in sb_mark_inode_writeback() 1391 if (list_empty(&inode->i_wb_list)) { in sb_mark_inode_writeback() 1407 if (!list_empty(&inode->i_wb_list)) { in sb_clear_inode_writeback() 1409 if (!list_empty(&inode->i_wb_list)) { in sb_clear_inode_writeback() 1441 if (!list_empty(&wb->b_dirty)) { in redirty_tail_locked() 1507 while (!list_empty(delaying_queue)) { in move_expired_inodes() [all …]
|