| /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/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_ooo.c | 34 if (unlikely(list_empty(&p_archipelago->isles_list))) in qed_ooo_seek_archipelago() 172 while (!list_empty(&p_archipelago->isles_list)) { in qed_ooo_release_connection_isles() 178 while (!list_empty(&p_isle->buffers_list)) { in qed_ooo_release_connection_isles() 202 while (!list_empty(&p_archipelago->isles_list)) { in qed_ooo_release_all_isles() 209 while (!list_empty(&p_isle->buffers_list)) { in qed_ooo_release_all_isles() 222 if (!list_empty(&p_ooo_info->ready_buffers_list)) in qed_ooo_release_all_isles() 245 while (!list_empty(&p_ooo_info->free_buffers_list)) { in qed_ooo_free() 276 if (!list_empty(&p_ooo_info->free_buffers_list)) { in qed_ooo_get_free_buffer() 303 if (!list_empty(&p_ooo_info->ready_buffers_list)) { in qed_ooo_get_ready_buffer() 328 if (list_empty(&p_isle->buffers_list)) in qed_ooo_delete_isles() [all …]
|
| /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()
|
| H A D | drm_flip_work.c | 117 if (list_empty(&tasks)) in flip_worker() 156 WARN_ON(!list_empty(&work->queued) || !list_empty(&work->commited)); in drm_flip_work_cleanup()
|
| /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 | 197 static inline int list_empty(const struct list_head *head) in list_empty() function 229 if (!list_empty(head)) { in list_rotate_left() 241 return !list_empty(head) && (head->next == head->prev); in list_is_singular() 273 if (list_empty(head)) in list_cut_position() 306 if (!list_empty(list)) in list_splice() 318 if (!list_empty(list)) in list_splice_tail() 332 if (!list_empty(list)) { in list_splice_init() 349 if (!list_empty(list)) { in list_splice_tail_init() 395 (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL) 406 (!list_empty(ptr) ? list_last_entry(ptr, type, member) : NULL)
|
| /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/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()
|
| /linux/drivers/s390/block/ |
| H A D | dasd_alias.c | 77 if (list_empty(&lcu->grouplist)) in _find_group() 277 if (list_empty(&lcu->grouplist) && in dasd_alias_disconnect_device_from_lcu() 278 list_empty(&lcu->active_devices) && in dasd_alias_disconnect_device_from_lcu() 279 list_empty(&lcu->inactive_devices)) { in dasd_alias_disconnect_device_from_lcu() 290 if (server && list_empty(&server->lculist)) { in dasd_alias_disconnect_device_from_lcu() 360 if (list_empty(&group->baselist) && list_empty(&group->aliaslist)) { in _remove_device_from_lcu() 578 if (device && !list_empty(&device->alias_list)) in _schedule_lcu_update() 581 if (!usedev && !list_empty(&lcu->grouplist)) { in _schedule_lcu_update() 584 if (!list_empty(&group->baselist)) in _schedule_lcu_update() 588 else if (!list_empty(&group->aliaslist)) in _schedule_lcu_update() [all …]
|
| /linux/kernel/ |
| H A D | kthread.c | 297 if (!list_empty(&kthread->affinity_node)) { in kthread_do_exit() 364 WARN_ON_ONCE(!list_empty(&kthread->affinity_node)); in kthread_affine_node() 804 if (list_empty(&kthread_create_list)) in kthreadd() 809 while (!list_empty(&kthread_create_list)) { in kthreadd() 863 WARN_ON_ONCE(!list_empty(&kthread->affinity_node)); in kthread_affine_preferred() 886 if (list_empty(&kthread_affinity_list)) in kthreads_update_affinity() 1013 if (!list_empty(&worker->work_list)) { in kthread_worker_fn() 1160 return !list_empty(&work->node) || work->canceling; in queuing_blocked() 1167 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check() 1243 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/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/drivers/misc/mei/ |
| H A D | init.c | 348 list_empty(&dev->ctrl_wr_list) && in mei_write_is_idle() 349 list_empty(&dev->write_list) && in mei_write_is_idle() 350 list_empty(&dev->write_waiting_list)); in mei_write_is_idle() 356 list_empty(&dev->ctrl_wr_list), in mei_write_is_idle() 357 list_empty(&dev->write_list), in mei_write_is_idle() 358 list_empty(&dev->write_waiting_list)); in mei_write_is_idle()
|
| /linux/drivers/dma/ |
| H A D | timb_dma.c | 226 if (list_empty(&td_chan->active_list)) in __td_finish() 281 BUG_ON(list_empty(&td_chan->queue)); in __td_start_next() 305 if (list_empty(&td_chan->active_list)) { in td_tx_submit() 409 BUG_ON(!list_empty(&td_chan->free_list)); in td_alloc_chan_resources() 442 BUG_ON(!list_empty(&td_chan->active_list)); in td_free_chan_resources() 443 BUG_ON(!list_empty(&td_chan->queue)); in td_free_chan_resources() 478 if (!list_empty(&td_chan->active_list)) in td_issue_pending() 483 if (list_empty(&td_chan->active_list) && !list_empty(&td_chan->queue)) in td_issue_pending() 585 if (!list_empty(&td_chan->queue)) in td_tasklet()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_irq.c | 463 if (!list_empty(lh)) { in amdgpu_dm_irq_fini() 498 if (!list_empty(hnd_list_l) || !list_empty(hnd_list_h)) in amdgpu_dm_irq_suspend() 503 if (!list_empty(hnd_list_l)) { in amdgpu_dm_irq_suspend() 535 if (!list_empty(hnd_list_l) || !list_empty(hnd_list_h)) in amdgpu_dm_irq_resume_early() 560 if (!list_empty(hnd_list_l) || !list_empty(hnd_list_h)) in amdgpu_dm_irq_resume_late() 581 if (list_empty(handler_list)) in amdgpu_dm_irq_schedule_work()
|