Home
last modified time | relevance | path

Searched refs:list_empty (Results 1 – 200 of 1678) sorted by relevance

123456789

/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
Dworkitem.c110 if (!list_empty(&sched->ws_runq)) { in cfs_wi_sched_cansleep()
132 LASSERT(!list_empty(&wi->wi_list)); in cfs_wi_exit()
139 LASSERT(list_empty(&wi->wi_list)); in cfs_wi_exit()
169 LASSERT(!list_empty(&wi->wi_list)); in cfs_wi_deschedule()
178 LASSERT (list_empty(&wi->wi_list)); in cfs_wi_deschedule()
201 LASSERT (list_empty(&wi->wi_list)); in cfs_wi_schedule()
213 LASSERT (!list_empty(&wi->wi_list)); in cfs_wi_schedule()
245 while (!list_empty(&sched->ws_runq) && in cfs_wi_scheduler()
269 if (list_empty(&wi->wi_list)) in cfs_wi_scheduler()
278 if (!list_empty(&sched->ws_runq)) { in cfs_wi_scheduler()
[all …]
Dtracefile.c144 __LASSERT(!list_empty(&tcd->tcd_pages)); in cfs_trace_get_tage_try()
609 __LASSERT(!list_empty(&tcd->tcd_daemon_pages)); in put_pages_on_tcd_daemon_list()
698 if (list_empty(&pc.pc_pages)) { in cfs_tracefile_dump_all_pages()
719 __LASSERT(list_empty(&pc.pc_pages)); in cfs_tracefile_dump_all_pages()
981 if (list_empty(&pc.pc_pages)) in tracefiled()
1000 __LASSERT(list_empty(&pc.pc_pages)); in tracefiled()
1026 __LASSERT(list_empty(&pc.pc_pages)); in tracefiled()
1034 if (!list_empty(&pc.pc_pages)) { in tracefiled()
1054 __LASSERT(list_empty(&pc.pc_pages)); in tracefiled()
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
Dosc_object.c109 LASSERT(list_empty(&osc->oo_inflight[i])); in osc_object_free()
111 LASSERT(list_empty(&osc->oo_ready_item)); in osc_object_free()
112 LASSERT(list_empty(&osc->oo_hp_ready_item)); in osc_object_free()
113 LASSERT(list_empty(&osc->oo_write_item)); in osc_object_free()
114 LASSERT(list_empty(&osc->oo_read_item)); in osc_object_free()
117 LASSERT(list_empty(&osc->oo_hp_exts)); in osc_object_free()
118 LASSERT(list_empty(&osc->oo_urgent_exts)); in osc_object_free()
119 LASSERT(list_empty(&osc->oo_rpc_exts)); in osc_object_free()
120 LASSERT(list_empty(&osc->oo_reading_exts)); in osc_object_free()
Dosc_cache.c97 return list_empty(list) ? '-' : '+'; in list_empty_marker()
203 if (ext->oe_nr_pages > 0 || !list_empty(&ext->oe_pages)) in osc_extent_sanity_check0()
382 LASSERT(list_empty(&ext->oe_link)); in osc_extent_put()
506 LASSERT(list_empty(&ext->oe_pages)); in __osc_extent_remove()
984 LASSERT(list_empty(&oap->oap_rpc_item)); in osc_extent_truncate()
1221 return !list_empty(&osc->oo_ready_item) || in osc_is_ready()
1222 !list_empty(&osc->oo_hp_ready_item); in osc_is_ready()
1312 LASSERT(!list_empty(&opg->ops_inflight)); in osc_completion()
1516 rc = list_empty(&ocw->ocw_entry); in ocw_granted()
1585 LASSERT(list_empty(&ocw.ocw_entry)); in osc_enter_cache()
[all …]
Dosc_page.c352 return list_empty(head) ? "-" : "+"; in osc_list()
428 LASSERT(!list_empty(&opg->ops_inflight)); in osc_page_delete()
677 while (!list_empty(&cli->cl_lru_list)) { in osc_lru_shrink()
764 if (list_empty(&opg->ops_lru)) { in osc_lru_add()
783 if (!list_empty(&opg->ops_lru)) { in osc_lru_del()
807 LASSERT(list_empty(&opg->ops_lru)); in osc_lru_del()
839 LASSERT(!list_empty(&cache->ccc_lru)); in osc_lru_reclaim()
845 while (--max_scans > 0 && !list_empty(&cache->ccc_lru)) { in osc_lru_reclaim()
/linux-4.4.14/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()
215 if (!list_empty(&res->tracking)) in dlm_purge_lockres()
244 while(run_max && !list_empty(&dlm->purge_list)) { in dlm_run_purge_list()
317 if (list_empty(&res->converting)) 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()
110 list_empty(&res->purge) ? "no" : "yes"); in __dlm_print_one_lock_resource()
113 list_empty(&res->dirty) ? "no" : "yes", in __dlm_print_one_lock_resource()
114 list_empty(&res->recovering) ? "no" : "yes", in __dlm_print_one_lock_resource()
299 !list_empty(&mle->hb_events), in dump_mle()
512 !list_empty(&lock->ast_list), in dump_lock()
513 !list_empty(&lock->bast_list), in dump_lock()
539 !list_empty(&res->purge), in dump_lockres()
540 !list_empty(&res->dirty), in dump_lockres()
[all …]
Ddlmmaster.c190 if (!list_empty(&mle->hb_events)) in __dlm_mle_detach_hb_events()
504 !list_empty(&res->granted) || in dlm_lockres_release()
505 !list_empty(&res->converting) || in dlm_lockres_release()
506 !list_empty(&res->blocked) || in dlm_lockres_release()
507 !list_empty(&res->dirty) || in dlm_lockres_release()
508 !list_empty(&res->recovering) || in dlm_lockres_release()
509 !list_empty(&res->purge)) { in dlm_lockres_release()
515 !list_empty(&res->granted) ? 'G' : ' ', in dlm_lockres_release()
516 !list_empty(&res->converting) ? 'C' : ' ', in dlm_lockres_release()
517 !list_empty(&res->blocked) ? 'B' : ' ', in dlm_lockres_release()
[all …]
/linux-4.4.14/fs/notify/
Dnotification.c67 return list_empty(&group->notification_list) ? true : false; in fsnotify_notify_queue_is_empty()
77 WARN_ON(!list_empty(&event->list)); in fsnotify_destroy_event()
102 if (!list_empty(&group->overflow_event->list)) { in fsnotify_add_event()
110 if (!list_empty(list) && merge) { in fsnotify_add_event()
136 if (!list_empty(&event->list)) { in fsnotify_remove_event()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_gem_evict.c42 if (WARN_ON(!list_empty(&vma->exec_list))) in mark_free()
135 while (!list_empty(&unwind_list)) { in i915_gem_evict_something()
172 while (!list_empty(&unwind_list)) { in i915_gem_evict_something()
185 while (!list_empty(&eviction_list)) { in i915_gem_evict_something()
231 WARN_ON(!list_empty(&vm->active_list)); in i915_gem_evict_vm()
/linux-4.4.14/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()
Dehci-timer.c231 while (!list_empty(&ehci->intr_unlink_wait)) { in ehci_handle_start_intr_unlinks()
244 if (!list_empty(&ehci->intr_unlink_wait)) { in ehci_handle_start_intr_unlinks()
263 while (!list_empty(&ehci->intr_unlink)) { in ehci_handle_intr_unlinks()
275 if (!list_empty(&ehci->intr_unlink)) { in ehci_handle_intr_unlinks()
321 if (!list_empty(&ehci->cached_itd_list) || in end_free_itds()
322 !list_empty(&ehci->cached_sitd_list)) in end_free_itds()
Duhci-q.c126 if (!list_empty(&td->list)) in uhci_free_td()
128 if (!list_empty(&td->fl_list)) in uhci_free_td()
187 WARN_ON(!list_empty(&td->fl_list)); in uhci_remove_td_from_frame_list()
192 if (list_empty(&td->fl_list)) { in uhci_remove_td_from_frame_list()
228 while (!list_empty(&ftd->fl_list)) in uhci_remove_tds_from_frame()
296 if (!list_empty(&qh->queue)) in uhci_free_qh()
340 WARN_ON(list_empty(&purbp->td_list)); in uhci_cleanup_queue()
360 WARN_ON(list_empty(&urbp->td_list)); in uhci_cleanup_queue()
483 WARN_ON(list_empty(&qh->queue)); in uhci_activate_qh()
571 if (list_empty(&uhci->skel_unlink_qh->node) || uhci->is_stopped) in uhci_unlink_qh()
[all …]
Dehci-q.c154 if (qh->qh_state == QH_STATE_IDLE && !list_empty(&qh->qtd_list) in ehci_clear_tt_buffer_complete()
967 WARN_ON(ehci->async->qh_next.qh || !list_empty(&ehci->async_unlink) || in disable_async()
968 !list_empty(&ehci->async_idle)); in disable_async()
1035 if (unlikely (list_empty (qtd_list))) in qh_append_tds()
1313 if (list_empty(&ehci->async_unlink)) in end_unlink_async()
1343 if (!list_empty(&ehci->async_unlink)) in end_unlink_async()
1355 while (!list_empty(&ehci->async_idle)) { in end_unlink_async()
1363 if (!list_empty(&qh->qtd_list)) in end_unlink_async()
1365 if (!list_empty(&qh->qtd_list) && in end_unlink_async()
1383 if (list_empty(&qh->qtd_list) && in unlink_empty_async()
[all …]
Dfhci-mem.c45 if (!list_empty(&fhci->empty_tds)) { in get_empty_td()
69 if (!list_empty(&fhci->empty_eds)) { in fhci_get_empty_ed()
Disp1362-hcd.c365 WARN_ON(list_empty(&ep->active)); in isp1362_read_ptd()
409 WARN_ON(!list_empty(&ep->remove_list)); in remove_ptd()
473 if (!list_empty(&ep->hep->urb_list)) in finish_request()
477 if (!list_empty(&ep->schedule)) { in finish_request()
667 if (!list_empty(&ep->hep->urb_list)) { in finish_unlinks()
674 WARN_ON(list_empty(&ep->active)); in finish_unlinks()
675 if (!list_empty(&ep->active)) { in finish_unlinks()
756 if (!list_empty(&ep->active)) { in start_atl_transfers()
808 if (!list_empty(&ep->active)) { in start_intl_transfers()
871 if (!list_empty(&epq->active)) in start_iso_transfers()
[all …]
/linux-4.4.14/net/unix/
Dgarbage.c129 BUG_ON(!list_empty(&u->link)); in unix_inflight()
132 BUG_ON(list_empty(&u->link)); in unix_inflight()
149 BUG_ON(list_empty(&u->link)); in unix_notinflight()
222 BUG_ON(!list_empty(&u->link)); in scan_children()
227 while (!list_empty(&embryos)) { in scan_children()
347 while (!list_empty(&not_cycle_list)) { in unix_gc()
369 BUG_ON(!list_empty(&gc_candidates)); in unix_gc()
/linux-4.4.14/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()
Drwsem-spinlock.c136 if (sem->count >= 0 && list_empty(&sem->wait_list)) { in __down_read()
180 if (sem->count >= 0 && list_empty(&sem->wait_list)) { in __down_read_trylock()
265 if (--sem->count == 0 && !list_empty(&sem->wait_list)) in __up_read()
281 if (!list_empty(&sem->wait_list)) in __up_write()
298 if (!list_empty(&sem->wait_list)) in __downgrade_write()
Drwsem-xadd.c226 if (list_empty(&sem->wait_list)) in rwsem_down_read_failed()
460 if (list_empty(&sem->wait_list)) in rwsem_down_write_failed()
547 if (!list_empty(&sem->wait_list)) in rwsem_wake()
569 if (!list_empty(&sem->wait_list)) in rwsem_downgrade_wake()
/linux-4.4.14/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()
301 ASSERT(!list_empty(&vnode->granted_locks)); in afs_do_setlk()
307 if (list_empty(&vnode->pending_locks) && in afs_do_setlk()
308 list_empty(&vnode->granted_locks)) { in afs_do_setlk()
327 ASSERT(list_empty(&vnode->granted_locks)); in afs_do_setlk()
382 if (list_empty(&vnode->granted_locks) && in afs_do_setlk()
433 if (list_empty(&vnode->granted_locks)) in afs_do_setlk()
466 if (list_empty(&vnode->granted_locks)) in afs_do_unlk()
Dvlocation.c347 if (!list_empty(&afs_vlocation_updates)) { in afs_vlocation_queue_for_updates()
437 if (!list_empty(&vl->grave)) { in afs_vlocation_lookup()
514 if (!list_empty(&vl->update)) { in afs_put_vlocation()
553 while (!list_empty(&afs_vlocation_graveyard)) { in afs_vlocation_reaper()
583 while (!list_empty(&corpses)) { in afs_vlocation_reaper()
636 if (list_empty(&afs_vlocation_updates)) { in afs_vlocation_updater()
691 if (!list_empty(&afs_vlocation_updates)) { in afs_vlocation_updater()
709 ASSERT(list_empty(&vl->update)); in afs_vlocation_updater()
Dserver.c152 if (!list_empty(&server->grave)) { in afs_lookup_server()
280 while (!list_empty(&afs_server_graveyard)) { in afs_reap_server()
308 while (!list_empty(&corpses)) { in afs_reap_server()
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dpeer.c93 LASSERT(list_empty(&ptable->pt_deathrow)); in lnet_peer_tables_destroy()
97 LASSERT(list_empty(&hash[j])); in lnet_peer_tables_destroy()
121 while (!list_empty(peers)) { in lnet_peer_tables_cleanup()
156 while (!list_empty(&deathrow)) { in lnet_peer_tables_cleanup()
172 LASSERT(list_empty(&lp->lp_txq)); in lnet_destroy_peer_locked()
173 LASSERT(list_empty(&lp->lp_hashlist)); in lnet_destroy_peer_locked()
228 if (!list_empty(&ptable->pt_deathrow)) { in lnet_nid2peer_locked()
Dapi-ni.c130 LASSERT(list_empty(&the_lnet.ln_remote_nets_hash[i])); in lnet_destroy_remote_nets_table()
391 while (!list_empty(&rec->rec_active)) { in lnet_res_container_cleanup()
620 LASSERT(list_empty(&the_lnet.ln_test_peers)); in lnet_unprepare()
621 LASSERT(list_empty(&the_lnet.ln_nis)); in lnet_unprepare()
622 LASSERT(list_empty(&the_lnet.ln_nis_cpt)); in lnet_unprepare()
623 LASSERT(list_empty(&the_lnet.ln_nis_zombie)); in lnet_unprepare()
714 if (!list_empty(&the_lnet.ln_nis_cpt)) { in lnet_cpt_of_nid_locked()
737 if (list_empty(&the_lnet.ln_nis_cpt)) in lnet_cpt_of_nid()
851 LASSERT(list_empty(&the_lnet.ln_nis_zombie)); in lnet_shutdown_lndnis()
857 while (!list_empty(&the_lnet.ln_nis)) { in lnet_shutdown_lndnis()
[all …]
Dlib-ptl.c383 if (!list_empty(&mtable->mt_mhash[LNET_MT_HASH_IGNORE])) in lnet_mt_match_md()
490 if (!list_empty(&msg->msg_list)) { /* on stealing list */ in lnet_ptl_match_delay()
507 if (!list_empty(&msg->msg_list) && /* not matched yet */ in lnet_ptl_match_delay()
641 if (list_empty(&ptl->ptl_msg_stealing) && in lnet_ptl_attach_md()
642 list_empty(&ptl->ptl_msg_delayed) && in lnet_ptl_attach_md()
723 LASSERT(list_empty(&ptl->ptl_msg_delayed)); in lnet_ptl_cleanup()
724 LASSERT(list_empty(&ptl->ptl_msg_stealing)); in lnet_ptl_cleanup()
736 while (!list_empty(&mhash[j])) { in lnet_ptl_cleanup()
Drouter.c201 LASSERT(list_empty(&lp->lp_routes)); in lnet_rtr_decref_locked()
504 if (list_empty(&rnet->lrn_routes)) in lnet_del_route()
830 LASSERT(list_empty(&rcd->rcd_list)); in lnet_destroy_rc_data()
1083 list_empty(&the_lnet.ln_rcd_deathrow) && in lnet_prune_rc_data()
1084 list_empty(&the_lnet.ln_rcd_zombie))) in lnet_prune_rc_data()
1098 LASSERT(list_empty(&lp->lp_rcd->rcd_list)); in lnet_prune_rc_data()
1108 if (!list_empty(&head)) { in lnet_prune_rc_data()
1120 while (!list_empty(&the_lnet.ln_rcd_zombie)) { in lnet_prune_rc_data()
1128 !list_empty(&the_lnet.ln_rcd_zombie); in lnet_prune_rc_data()
1132 while (!list_empty(&head)) { in lnet_prune_rc_data()
[all …]
Dconfig.c346 LASSERT(!list_empty(nilist)); in lnet_parse_networks()
352 while (!list_empty(nilist)) { in lnet_parse_networks()
409 while (!list_empty(tbs)) { in lnet_free_text_bufs()
732 LASSERT(!list_empty(&nets)); in lnet_parse_route()
733 LASSERT(!list_empty(&gateways)); in lnet_parse_route()
777 while (!list_empty(tbs)) { in lnet_parse_route_tbs()
919 LASSERT(!list_empty(nets)); in lnet_splitnets()
1020 while (!list_empty(&raw_entries)) { in lnet_match_networks()
Dlib-move.c93 while (!list_empty(&cull)) { in lnet_fail_nid()
150 while (!list_empty(&cull)) { in fail_peer()
827 !list_empty(&lp->lp_txq)); in lnet_post_send_locked()
845 !list_empty(&tq->tq_delayed)); in lnet_post_send_locked()
910 !list_empty(&lp->lp_rtrq)); in lnet_post_routed_recv_locked()
930 !list_empty(&rbp->rbp_msgs)); in lnet_post_routed_recv_locked()
946 LASSERT(!list_empty(&rbp->rbp_bufs)); in lnet_post_routed_recv_locked()
978 !list_empty(&tq->tq_delayed)); in lnet_return_tx_credits_locked()
998 !list_empty(&txpeer->lp_txq)); in lnet_return_tx_credits_locked()
1046 !list_empty(&rbp->rbp_msgs)); in lnet_return_rx_credits_locked()
[all …]
/linux-4.4.14/drivers/usb/gadget/function/
Df_printer.c335 if (likely(list_empty(&dev->tx_reqs_active))) in tx_complete()
392 while (likely(!list_empty(&dev->rx_reqs))) { in setup_rx_reqs()
418 else if (list_empty(&req->list)) in setup_rx_reqs()
468 (likely(list_empty(&dev->rx_buffers)))) { in printer_read()
483 (likely(!list_empty(&dev->rx_buffers)))); in printer_read()
488 while ((current_rx_bytes || likely(!list_empty(&dev->rx_buffers))) in printer_read()
580 if (likely(list_empty(&dev->tx_reqs))) { in printer_write()
595 (likely(!list_empty(&dev->tx_reqs)))); in printer_write()
599 while (likely(!list_empty(&dev->tx_reqs)) && len) { in printer_write()
678 tx_list_empty = (likely(list_empty(&dev->tx_reqs))); in printer_fsync()
[all …]
Duvc_queue.c242 while (!list_empty(&queue->irqqueue)) { in uvcg_queue_cancel()
324 if (!list_empty(&queue->irqqueue)) in uvcg_queue_next_buffer()
344 if (!list_empty(&queue->irqqueue)) in uvcg_queue_head()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dllite_close.c55 if (page != NULL && list_empty(&page->cpg_pending_linkage)) in vvp_write_pending()
68 if (page != NULL && !list_empty(&page->cpg_pending_linkage)) { in vvp_write_complete()
89 list_empty(&club->cob_pending_list)) { in ll_queue_done_writing()
99 LASSERT(list_empty(&lli->lli_close_list)); in ll_queue_done_writing()
145 if (!(list_empty(&club->cob_pending_list))) { in ll_ioepoch_close()
197 LASSERT(list_empty(&club->cob_pending_list)); in ll_ioepoch_close()
317 if (!list_empty(&lcq->lcq_head)) { in ll_close_next_lli()
Dllite_rmtacl.c94 if (!list_empty(&rce->rce_list)) in rce_free()
173 while (!list_empty(&rct->rct_entries[i])) { in rct_fini()
201 if (!list_empty(&ee->ee_list)) in ee_free()
291 while (!list_empty(&et->et_entries[i])) { in et_fini()
Dstatahead.c92 return list_empty(&entry->se_hash); in ll_sa_entry_unhashed()
162 return list_empty(&sai->sai_entries_received); in sa_received_empty()
167 return list_empty(&sai->sai_entries_agl); in agl_list_empty()
332 LASSERT(list_empty(&entry->se_link)); in ll_sa_entry_put()
333 LASSERT(list_empty(&entry->se_list)); in ll_sa_entry_put()
350 LASSERT(!list_empty(&entry->se_link)); in do_sa_entry_fini()
357 if (likely(!list_empty(&entry->se_list))) in do_sa_entry_fini()
393 if (!list_empty(&entry->se_list)) in do_sa_entry_to_stated()
446 LASSERT(list_empty(&child->lli_agl_list)); in ll_agl_add()
539 LASSERT(list_empty(&sai->sai_entries)); in ll_sai_put()
[all …]
/linux-4.4.14/net/core/
Dlink_watch.c107 if (list_empty(&dev->link_watch_list)) { in linkwatch_add_event()
192 while (!list_empty(&wrk)) { in __linkwatch_run_queue()
206 if (!list_empty(&lweventlist)) in __linkwatch_run_queue()
217 if (!list_empty(&dev->link_watch_list)) { in linkwatch_forget_dev()
/linux-4.4.14/drivers/isdn/mISDN/
Dtimerdev.c81 while (!list_empty(list)) { in mISDN_close()
115 while (list_empty(list) && (dev->work == 0)) { in mISDN_read()
120 !list_empty(list))); in mISDN_read()
127 if (!list_empty(list)) { in mISDN_read()
153 if (dev->work || !list_empty(&dev->expired)) in mISDN_poll()
157 dev->work, list_empty(&dev->expired)); in mISDN_poll()
/linux-4.4.14/drivers/staging/lustre/lnet/selftest/
Dconsole.c128 LASSERT(!list_empty(&ndl->ndl_link)); in lstcon_node_put()
129 LASSERT(!list_empty(&ndl->ndl_hlink)); in lstcon_node_put()
186 LASSERT(list_empty(&ndl->ndl_link)); in lstcon_ndlink_release()
187 LASSERT(!list_empty(&ndl->ndl_hlink)); in lstcon_ndlink_release()
250 if (!list_empty(&grp->grp_link)) in lstcon_group_decref()
256 LASSERT(list_empty(&grp->grp_ndl_hash[i])); in lstcon_group_decref()
296 if (!list_empty(&(*ndlpp)->ndl_link)) in lstcon_group_ndlink_find()
336 while (!list_empty(&old->grp_ndl_list)) { in lstcon_group_move()
645 if (list_empty(&grp->grp_ndl_list)) in lstcon_group_clean()
675 if (list_empty(&grp->grp_ndl_list)) in lstcon_nodes_remove()
[all …]
Dtimer.c79 LASSERT(list_empty(&timer->stt_list)); in stt_add_timer()
113 if (!list_empty(&timer->stt_list)) { in stt_del_timer()
129 while (!list_empty(slot)) { in stt_expire_list()
235 LASSERT(list_empty(&stt_data.stt_hash[i])); in stt_shutdown()
Dframework.c307 LASSERT(list_empty(&rpc->crpc_list)); in sfw_client_rpc_fini()
535 LASSERT(list_empty(&rpc->crpc_list)); in sfw_test_rpc_fini()
617 LASSERT(list_empty(&tsi->tsi_active_rpcs)); in sfw_destroy_test_instance()
620 while (!list_empty(&tsi->tsi_units)) { in sfw_destroy_test_instance()
627 while (!list_empty(&tsi->tsi_free_rpcs)) { in sfw_destroy_test_instance()
646 LASSERT(list_empty(&tsb->bat_list)); in sfw_destroy_batch()
648 while (!list_empty(&tsb->bat_tests)) { in sfw_destroy_batch()
664 LASSERT(list_empty(&sn->sn_list)); in sfw_destroy_session()
667 while (!list_empty(&sn->sn_batches)) { in sfw_destroy_session()
846 LASSERT(!list_empty(&sn->sn_list)); /* I'm a zombie! */ in sfw_test_unit_done()
[all …]
Dconrpc.c124 if (!list_empty(&console_session.ses_rpc_freelist)) { in lstcon_rpc_prep()
155 LASSERT(list_empty(&crpc->crp_link)); in lstcon_rpc_put()
329 !list_empty(&trans->tas_olink)) /* Not an end session RPC */ in lstcon_rpc_trans_check()
341 if (list_empty(&trans->tas_rpcs_list)) in lstcon_rpc_trans_postwait()
586 if (!list_empty(&trans->tas_olink)) in lstcon_rpc_trans_destroy()
1226 LASSERT(!list_empty(&crpc->crp_link)); in lstcon_rpc_pinger()
1291 LASSERT(list_empty(&console_session.ses_rpc_freelist)); in lstcon_rpc_pinger_start()
1337 while (!list_empty(&console_session.ses_trans_list)) { in lstcon_rpc_cleanup_wait()
1369 while (!list_empty(&zlist)) { in lstcon_rpc_cleanup_wait()
1396 LASSERT(list_empty(&console_session.ses_rpc_freelist)); in lstcon_rpc_module_fini()
/linux-4.4.14/fs/xfs/
Dxfs_log_cil.c166 if (list_empty(&tp->t_items)) { in xlog_cil_insert_format_items()
324 if (!list_empty(&tp->t_busy)) in xlog_cil_insert_items()
406 if (!list_empty(&ctx->busy_extents)) { in xlog_cil_committed()
466 if (list_empty(&cil->xc_cil)) { in xlog_cil_push()
514 while (!list_empty(&cil->xc_cil)) { in xlog_cil_push()
696 ASSERT(!list_empty(&cil->xc_cil)); in xlog_cil_push_background()
740 if (list_empty(&cil->xc_cil) || push_seq <= cil->xc_push_seq) { in xlog_cil_push_now()
758 if (list_empty(&cil->xc_cil)) in xlog_cil_empty()
897 !list_empty(&cil->xc_cil)) { in xlog_cil_force_lsn()
932 if (list_empty(&lip->li_cil)) in xfs_log_item_in_current_chkpt()
[all …]
Dxfs_trans_ail.c42 if (list_empty(&ailp->xa_ail)) in xfs_ail_check()
71 if (list_empty(&ailp->xa_ail)) in xfs_ail_max()
282 ASSERT(!list_empty(list)); in xfs_ail_splice()
672 if (!list_empty(&tmp)) in xfs_trans_ail_update_bulk()
746 if (list_empty(&ailp->xa_ail)) in xfs_trans_ail_delete_bulk()
/linux-4.4.14/fs/fscache/
Doperation.c65 ASSERT(list_empty(&op->pend_link)); in fscache_enqueue_operation()
130 if (!list_empty(&object->pending_ops)) { in fscache_report_unexpected_submission()
164 ASSERT(list_empty(&op->pend_link)); in fscache_submit_exclusive_op()
189 } else if (!list_empty(&object->pending_ops)) { in fscache_submit_exclusive_op()
249 ASSERT(list_empty(&op->pend_link)); in fscache_submit_op()
273 } else if (!list_empty(&object->pending_ops)) { in fscache_submit_op()
326 while (!list_empty(&object->pending_ops) && !stop) { in fscache_start_operations()
368 ASSERT(!list_empty(&op->pend_link)); in fscache_cancel_op()
416 while (!list_empty(&object->pending_ops)) { in fscache_cancel_all_ops()
555 if (list_empty(&cache->op_gc_list)) { in fscache_operation_gc()
[all …]
Dcache.c103 if (list_empty(&fscache_cache_list)) { in fscache_select_cache_for_object()
334 while (!list_empty(&cache->object_list)) { in fscache_withdraw_all_objects()
337 if (!list_empty(&cache->object_list)) { in fscache_withdraw_all_objects()
409 list_empty(&cache->object_list)); in fscache_withdraw_cache()
411 ASSERT(list_empty(&dying_objects)); in fscache_withdraw_cache()
Dobject.c369 ASSERT(list_empty(&object->dep_link)); in fscache_initialise_object()
579 ASSERT(list_empty(&object->pending_ops)); in fscache_object_available()
648 if (list_empty(&object->dependents) && in fscache_kill_object()
660 if (!list_empty(&object->dependents)) in fscache_kill_object()
847 if (list_empty(&object->dependents)) in fscache_enqueue_dependents()
852 while (!list_empty(&object->dependents)) { in fscache_enqueue_dependents()
860 if (!list_empty(&object->dependents) && need_resched()) { in fscache_enqueue_dependents()
877 if (!list_empty(&object->dep_link)) { in fscache_dequeue_object()
/linux-4.4.14/fs/
Dmbcache.c225 if (list_empty(&ce->e_lru_list)) in __mb_cache_entry_release()
232 mb_assert(list_empty(&ce->e_lru_list)); in __mb_cache_entry_release()
258 while ((nr_to_scan-- > 0) && !list_empty(&mb_cache_lru_list)) { in mb_cache_shrink_scan()
271 !list_empty(&ce->e_lru_list)) { in mb_cache_shrink_scan()
421 !list_empty(&ce->e_lru_list)) { in mb_cache_shrink()
484 if (list_empty(&mb_cache_list)) { in mb_cache_destroy()
529 !list_empty(&ce->e_lru_list)) { in mb_cache_entry_alloc()
536 mb_assert(list_empty(&ce->e_lru_list)); in mb_cache_entry_alloc()
641 mb_assert(list_empty(&ce->e_lru_list)); in mb_cache_entry_free()
700 if (!list_empty(&ce->e_lru_list)) { in mb_cache_entry_get()
[all …]
Dpnode.c87 list_empty(&mnt->mnt_share)) in do_make_slave()
104 while (!list_empty(p)) { in do_make_slave()
150 if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list)) in propagation_next()
172 if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list)) in next_group()
359 if (!list_empty(&mnt->mnt_mounts) || do_refcount_check(mnt, refcnt)) in propagate_mount_busy()
365 if (child && list_empty(&child->mnt_mounts) && in propagate_mount_busy()
435 if (list_empty(&child->mnt_mounts)) { in __propagate_umount()
Dfs-writeback.c117 if (wb_has_dirty_io(wb) && list_empty(&wb->b_dirty) && in wb_io_lists_depopulated()
118 list_empty(&wb->b_io) && list_empty(&wb->b_more_io)) { in wb_io_lists_depopulated()
393 if (!list_empty(&inode->i_io_list)) { in inode_switch_wbs_work_fn()
812 list_empty(&wb->b_dirty_time))) in bdi_split_work_to_wbs()
995 if (!list_empty(&wb->b_dirty)) { in redirty_tail()
1064 while (!list_empty(delaying_queue)) { in move_expired_inodes()
1087 while (!list_empty(&tmp)) { in move_expired_inodes()
1459 while (!list_empty(&wb->b_io)) { in writeback_sb_inodes()
1589 while (!list_empty(&wb->b_io)) { in __writeback_inodes_wb()
1630 if (list_empty(&wb->b_io)) in writeback_inodes_wb()
[all …]
/linux-4.4.14/drivers/misc/mei/
Dinit.c361 list_empty(&dev->ctrl_wr_list.list) && in mei_write_is_idle()
362 list_empty(&dev->write_list.list) && in mei_write_is_idle()
363 list_empty(&dev->write_waiting_list.list)); in mei_write_is_idle()
368 list_empty(&dev->ctrl_wr_list.list), in mei_write_is_idle()
369 list_empty(&dev->write_list.list), in mei_write_is_idle()
370 list_empty(&dev->write_waiting_list.list)); in mei_write_is_idle()
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd.c159 LASSERT(list_empty(&peer->ksnp_conns)); in ksocknal_destroy_peer()
160 LASSERT(list_empty(&peer->ksnp_routes)); in ksocknal_destroy_peer()
161 LASSERT(list_empty(&peer->ksnp_tx_queue)); in ksocknal_destroy_peer()
162 LASSERT(list_empty(&peer->ksnp_zc_req_list)); in ksocknal_destroy_peer()
238 LASSERT(list_empty(&peer->ksnp_conns)); in ksocknal_unlink_peer_locked()
239 LASSERT(list_empty(&peer->ksnp_routes)); in ksocknal_unlink_peer_locked()
271 list_empty(&peer->ksnp_routes)) { in ksocknal_get_peer_info()
439 if (list_empty(&peer->ksnp_routes) && in ksocknal_del_route_locked()
440 list_empty(&peer->ksnp_conns)) { in ksocknal_del_route_locked()
602 !list_empty(&peer->ksnp_tx_queue)) { in ksocknal_del_peer()
[all …]
Dsocklnd_cb.c40 if (!list_empty(&ksocknal_data.ksnd_idle_noop_txs)) { in ksocknal_alloc_tx()
412 while (!list_empty (txlist)) { in ksocknal_txlist_done()
728 if (list_empty(&conn->ksnc_tx_queue) && bufnob == 0) { in ksocknal_queue_tx_locked()
1376 list_empty(&sched->kss_rx_conns) && in ksocknal_sched_cansleep()
1377 list_empty(&sched->kss_tx_conns); in ksocknal_sched_cansleep()
1411 if (!list_empty (&sched->kss_rx_conns)) { in ksocknal_scheduler()
1455 if (!list_empty (&sched->kss_tx_conns)) { in ksocknal_scheduler()
1458 if (!list_empty(&sched->kss_zombie_noop_txs)) { in ksocknal_scheduler()
1470 LASSERT(!list_empty(&conn->ksnc_tx_queue)); in ksocknal_scheduler()
1488 if (!list_empty(&zlist)) { in ksocknal_scheduler()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_flip_work.c126 if (list_empty(&tasks)) in flip_worker()
165 WARN_ON(!list_empty(&work->queued) || !list_empty(&work->commited)); in drm_flip_work_cleanup()
Ddrm_fops.c487 WARN_ON(!list_empty(&file_priv->event_list)); in drm_release()
521 if (list_empty(&file_priv->event_list)) { in drm_read()
532 !list_empty(&file_priv->event_list)); in drm_read()
572 if (!list_empty(&file_priv->event_list)) in drm_poll()
/linux-4.4.14/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()
419 if (!list_empty(&rs->rs_notify_queue)) { in rds_recvmsg()
436 (!list_empty(&rs->rs_notify_queue) || in rds_recvmsg()
Diw_rdma.c203 BUG_ON(list_empty(&iw_nodev_conns));
204 BUG_ON(list_empty(&ic->iw_node));
223 BUG_ON(list_empty(&ic->iw_node));
370 if (!list_empty(&pool->clean_list)) {
490 if (!list_empty(&unmap_list)) {
510 if (!list_empty(&unmap_list)) {
812 while (!list_empty(unmap_list)) {
Dsend.c232 if (!list_empty(&conn->c_send_queue)) { in rds_send_xmit()
399 if (!list_empty(&to_be_dropped)) { in rds_send_xmit()
424 !list_empty(&conn->c_send_queue)) && in rds_send_xmit()
611 while (!list_empty(messages)) { in rds_send_remove_from_sock()
705 if (!list_empty(&list)) in rds_send_drop_acked()
740 if (list_empty(&list)) in rds_send_drop_to()
782 while (!list_empty(&list)) { in rds_send_drop_to()
/linux-4.4.14/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)
Dplist.h214 return list_empty(&head->node_list); in plist_head_empty()
223 return list_empty(&node->node_list); in plist_node_empty()
Deventpoll.h53 if (likely(list_empty(&file->f_ep_links))) in eventpoll_release()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-mem2mem.c105 if (list_empty(&q_ctx->rdy_queue)) { in v4l2_m2m_next_buf()
126 if (list_empty(&q_ctx->rdy_queue)) { in v4l2_m2m_buf_remove()
177 if (list_empty(&m2m_dev->job_queue)) { in v4l2_m2m_try_run()
241 if (list_empty(&m2m_ctx->out_q_ctx.rdy_queue) in v4l2_m2m_try_schedule()
250 if (list_empty(&m2m_ctx->cap_q_ctx.rdy_queue) in v4l2_m2m_try_schedule()
580 if ((!src_q->streaming || list_empty(&src_q->queued_list)) in v4l2_m2m_poll()
581 && (!dst_q->streaming || list_empty(&dst_q->queued_list))) { in v4l2_m2m_poll()
587 if (list_empty(&src_q->done_list)) in v4l2_m2m_poll()
592 if (list_empty(&dst_q->done_list)) { in v4l2_m2m_poll()
607 if (!list_empty(&src_q->done_list)) in v4l2_m2m_poll()
[all …]
/linux-4.4.14/fs/gfs2/
Dlog.c224 if (list_empty(&tr->tr_ail1_list) && oldest_tr) in gfs2_ail1_empty()
229 ret = list_empty(&sdp->sd_ail1_list); in gfs2_ail1_empty()
269 while (!list_empty(head)) { in gfs2_ail2_empty_one()
295 gfs2_assert_warn(sdp, list_empty(&tr->tr_ail1_list)); in ail2_empty()
296 gfs2_assert_warn(sdp, list_empty(&tr->tr_ail2_list)); in ail2_empty()
473 if (list_empty(&sdp->sd_ail1_list)) { in current_tail()
537 while (!list_empty(&sdp->sd_log_le_ordered)) { in gfs2_ordered_write()
555 while (!list_empty(&sdp->sd_log_le_ordered)) { in gfs2_ordered_wait()
605 if (list_empty(&bd->bd_list)) { in gfs2_write_revokes()
631 if (!list_empty(&bd->bd_list)) in gfs2_write_revokes()
[all …]
Dtrans.c186 if (list_empty(&bd->bd_list)) { in gfs2_trans_add_data()
205 if (!list_empty(&bd->bd_list)) in meta_lo_add()
257 BUG_ON(!list_empty(&bd->bd_list)); in gfs2_trans_add_revoke()
/linux-4.4.14/sound/pci/ctxfi/
Dctimap.c30 if (list_empty(head)) { in input_mapper_add()
76 if (list_empty(head)) in input_mapper_delete()
105 while (!list_empty(head)) { in free_input_mapper_list()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dnrs_fifo.c108 LASSERT(list_empty(&head->fh_list)); in nrs_fifo_stop()
168 nrq = unlikely(list_empty(&head->fh_list)) ? NULL : in nrs_fifo_req_get()
221 LASSERT(!list_empty(&nrq->nr_u.fifo.fr_list)); in nrs_fifo_req_del()
Dsec_gc.c68 LASSERT(list_empty(&sec->ps_gc_list)); in sptlrpc_gc_add_sec()
82 if (list_empty(&sec->ps_gc_list)) in sptlrpc_gc_del_sec()
110 while (!list_empty(&sec_gc_ctx_list)) { in sec_process_ctx_list()
Dpinger.c362 if (!list_empty(&imp->imp_pinger_chain)) in ptlrpc_pinger_add_import()
384 if (list_empty(&imp->imp_pinger_chain)) in ptlrpc_pinger_del_import()
478 if (list_empty(obd_list)) in ptlrpc_del_timeout_client()
493 if (list_empty(&ti->ti_obd_list)) { in ptlrpc_del_timeout_client()
508 LASSERT(list_empty(&item->ti_obd_list)); in ptlrpc_pinger_remove_timeouts()
Dservice.c111 LASSERT(list_empty(&rqbd->rqbd_reqs)); in ptlrpc_free_rqbd()
256 LASSERT(list_empty(&rs->rs_list)); in ptlrpc_dispatch_difficult_reply()
295 if (list_empty(&svcpt->scp_rqbd_idle)) { in ptlrpc_server_post_idle_rqbds()
696 LASSERT(list_empty(&req->rq_timed_list)); in ptlrpc_server_free_request()
737 LASSERT(list_empty(&req->rq_timed_list)); in ptlrpc_server_drop_request()
940 LASSERT(list_empty(&req->rq_timed_list)); in ptlrpc_at_add_timed()
958 if (list_empty(&req->rq_timed_list)) in ptlrpc_at_add_timed()
985 LASSERT(!list_empty(&req->rq_timed_list)); in ptlrpc_at_remove_timed()
1208 while (!list_empty(&work_list)) { in ptlrpc_at_check_timed()
1454 if (list_empty(&svcpt->scp_req_incoming)) { in ptlrpc_server_handle_req_in()
[all …]
/linux-4.4.14/block/
Ddeadline-iosched.c176 if (!list_empty(&req->queuelist) && !list_empty(&next->queuelist)) { in deadline_merged_requests()
246 const int reads = !list_empty(&dd->fifo_list[READ]); in deadline_dispatch_requests()
247 const int writes = !list_empty(&dd->fifo_list[WRITE]); in deadline_dispatch_requests()
331 BUG_ON(!list_empty(&dd->fifo_list[READ])); in deadline_exit_queue()
332 BUG_ON(!list_empty(&dd->fifo_list[WRITE])); in deadline_exit_queue()
Dblk-flush.c186 if (list_empty(pending)) in blk_flush_complete_seq()
203 BUG_ON(!list_empty(&rq->queuelist)); in blk_flush_complete_seq()
298 if (fq->flush_pending_idx != fq->flush_running_idx || list_empty(pending)) in blk_kick_flush()
302 if (!list_empty(&fq->flush_data_in_flight) && in blk_kick_flush()
/linux-4.4.14/drivers/s390/block/
Ddasd_alias.c84 if (list_empty(&lcu->grouplist)) in _find_group()
288 if (list_empty(&lcu->grouplist) && in dasd_alias_disconnect_device_from_lcu()
289 list_empty(&lcu->active_devices) && in dasd_alias_disconnect_device_from_lcu()
290 list_empty(&lcu->inactive_devices)) { in dasd_alias_disconnect_device_from_lcu()
301 if (server && list_empty(&server->lculist)) { in dasd_alias_disconnect_device_from_lcu()
382 if (list_empty(&group->baselist) && list_empty(&group->aliaslist)) { in _remove_device_from_lcu()
577 if (device && !list_empty(&device->alias_list)) in _schedule_lcu_update()
580 if (!usedev && !list_empty(&lcu->grouplist)) { in _schedule_lcu_update()
583 if (!list_empty(&group->baselist)) in _schedule_lcu_update()
587 else if (!list_empty(&group->aliaslist)) in _schedule_lcu_update()
[all …]
/linux-4.4.14/drivers/s390/char/
Dsclp_con.c62 if (!list_empty(&sclp_con_outqueue)) in sclp_conbuf_callback()
89 if (list_empty(&sclp_con_outqueue)) in sclp_conbuf_emit()
178 if (list_empty(&sclp_con_pages)) in sclp_console_write()
180 while (list_empty(&sclp_con_pages)) { in sclp_console_write()
Dcon3270.c172 if (!list_empty(&s->update)) in con3270_alloc_string()
267 if (list_empty(&cp->update)) in con3270_update()
434 if (!list_empty(&cp->cline->list)) in con3270_cline_add()
447 if (list_empty(&cp->cline->update)) { in con3270_cline_insert()
474 if (!list_empty(&cp->cline->update)) { in con3270_cline_end()
/linux-4.4.14/lib/
Dplist.c81 WARN_ON(!list_empty(&node->prio_list)); in plist_add()
117 if (!list_empty(&node->prio_list)) { in plist_del()
125 if (list_empty(&next->prio_list)) in plist_del()
199 BUG_ON(!list_empty(&node_pos->prio_list)); in plist_test_check()
/linux-4.4.14/drivers/dma/
Dtimb_dma.c235 if (list_empty(&td_chan->active_list)) in __td_finish()
292 BUG_ON(list_empty(&td_chan->queue)); in __td_start_next()
316 if (list_empty(&td_chan->active_list)) { in td_tx_submit()
424 BUG_ON(!list_empty(&td_chan->free_list)); in td_alloc_chan_resources()
457 BUG_ON(!list_empty(&td_chan->active_list)); in td_free_chan_resources()
458 BUG_ON(!list_empty(&td_chan->queue)); in td_free_chan_resources()
493 if (!list_empty(&td_chan->active_list)) in td_issue_pending()
498 if (list_empty(&td_chan->active_list) && !list_empty(&td_chan->queue)) in td_issue_pending()
600 if (!list_empty(&td_chan->queue)) in td_tasklet()
Dsirf-dma.c292 if (!list_empty(&schan->queued)) in sirfsoc_dma_irq()
318 if (!list_empty(&schan->queued)) in sirfsoc_dma_irq()
355 if (!list_empty(&schan->completed)) { in sirfsoc_dma_process_completed()
376 if (list_empty(&schan->active)) { in sirfsoc_dma_process_completed()
611 BUG_ON(!list_empty(&schan->prepared)); in sirfsoc_dma_free_chan_resources()
612 BUG_ON(!list_empty(&schan->queued)); in sirfsoc_dma_free_chan_resources()
613 BUG_ON(!list_empty(&schan->active)); in sirfsoc_dma_free_chan_resources()
614 BUG_ON(!list_empty(&schan->completed)); in sirfsoc_dma_free_chan_resources()
636 if (list_empty(&schan->active) && !list_empty(&schan->queued)) in sirfsoc_dma_issue_pending()
659 if (list_empty(&schan->active)) { in sirfsoc_dma_tx_status()
[all …]
Dmpc512x_dma.c269 while (!list_empty(&mchan->queued)) { in mpc_dma_execute()
279 if (list_empty(&mchan->active)) in mpc_dma_execute()
348 if (!list_empty(&mchan->queued)) in mpc_dma_irq_process()
398 if (!list_empty(&mchan->completed)) in mpc_dma_process_completed()
402 if (list_empty(&list)) in mpc_dma_process_completed()
488 if (list_empty(&mchan->active)) in mpc_dma_tx_submit()
570 BUG_ON(!list_empty(&mchan->prepared)); in mpc_dma_free_chan_resources()
571 BUG_ON(!list_empty(&mchan->queued)); in mpc_dma_free_chan_resources()
572 BUG_ON(!list_empty(&mchan->active)); in mpc_dma_free_chan_resources()
573 BUG_ON(!list_empty(&mchan->completed)); in mpc_dma_free_chan_resources()
[all …]
Dvirt-dma.h75 return !list_empty(&vc->desc_issued); in vchan_issue_pending()
118 if (list_empty(&vc->desc_issued)) in vchan_next_desc()
Dtegra20-apb-dma.c317 if (!list_empty(&dma_desc->tx_list)) in tegra_dma_desc_put()
330 if (!list_empty(&tdc->free_sg_req)) { in tegra_dma_sg_req_get()
350 if (!list_empty(&tdc->pending_sg_req)) { in tegra_dma_slave_config()
511 if (list_empty(&tdc->pending_sg_req)) in tdc_start_head_req()
526 if (list_empty(&tdc->pending_sg_req)) in tdc_configure_next_head_desc()
548 while (!list_empty(&tdc->pending_sg_req)) { in tegra_dma_abort_all()
572 if (list_empty(&tdc->pending_sg_req)) { in handle_continuous_head_request()
620 if (to_terminate || list_empty(&tdc->pending_sg_req)) in handle_once_dma_done()
662 while (!list_empty(&tdc->cb_desc)) { in tegra_dma_tasklet()
722 if (list_empty(&tdc->pending_sg_req)) { in tegra_dma_issue_pending()
[all …]
Dtxx9dmac.c185 if (!list_empty(&desc->tx_list)) in txx9dmac_last_child()
437 BUG_ON(!list_empty(list)); in txx9dmac_dequeue()
452 } while (!list_empty(&dc->queue)); in txx9dmac_dequeue()
465 if (!list_empty(&dc->queue)) { in txx9dmac_complete_all()
528 if (list_empty(&dc->active_list) && !list_empty(&dc->queue)) in txx9dmac_handle_error()
530 if (!list_empty(&dc->active_list)) in txx9dmac_handle_error()
605 if (!list_empty(&dc->queue)) { in txx9dmac_scan_descriptors()
974 if (!list_empty(&dc->active_list)) in txx9dmac_issue_pending()
976 if (!list_empty(&dc->queue)) { in txx9dmac_issue_pending()
977 if (list_empty(&dc->active_list)) { in txx9dmac_issue_pending()
[all …]
Dvirt-dma.c80 while (!list_empty(&head)) { in vchan_complete()
96 while (!list_empty(head)) { in vchan_dma_desc_free_list()
Dimx-dma.c247 if (!list_empty(&imxdmac->ld_active)) { in imxdma_chan_is_doing_cyclic()
438 if (list_empty(&imxdmac->ld_active)) { in dma_irq_handle_channel()
627 if (list_empty(&imxdmac->ld_active)) { in imxdma_tasklet()
651 if (!list_empty(&imxdmac->ld_queue)) { in imxdma_tasklet()
818 if (list_empty(&imxdmac->ld_free) || in imxdma_prep_slave_sg()
873 if (list_empty(&imxdmac->ld_free) || in imxdma_prep_dma_cyclic()
930 if (list_empty(&imxdmac->ld_free) || in imxdma_prep_dma_memcpy()
964 if (list_empty(&imxdmac->ld_free) || in imxdma_prep_dma_interleaved()
1001 if (list_empty(&imxdmac->ld_active) && in imxdma_issue_pending()
1002 !list_empty(&imxdmac->ld_queue)) { in imxdma_issue_pending()
Dpch_dma.c344 if (list_empty(&desc->tx_list)) { in pdc_dostart()
377 if (!list_empty(&pd_chan->queue)) in pdc_complete_all()
396 if (!list_empty(&pd_chan->active_list)) in pdc_handle_error()
408 if (list_empty(&pd_chan->active_list) || in pdc_advance_work()
426 if (list_empty(&pd_chan->active_list)) { in pd_tx_submit()
513 if (!list_empty(&pd_chan->free_list)) in pd_alloc_chan_resources()
547 BUG_ON(!list_empty(&pd_chan->active_list)); in pd_free_chan_resources()
548 BUG_ON(!list_empty(&pd_chan->queue)); in pd_free_chan_resources()
Dep93xx_dma.c239 BUG_ON(!list_empty(&edmac->active)); in ep93xx_dma_set_active()
244 while (!list_empty(&desc->tx_list)) { in ep93xx_dma_set_active()
265 if (list_empty(&edmac->active)) in ep93xx_dma_get_active()
720 if (!list_empty(&edmac->active) || list_empty(&edmac->queue)) { in ep93xx_dma_advance_work()
838 if (list_empty(&edmac->active)) { in ep93xx_dma_tx_submit()
948 BUG_ON(!list_empty(&edmac->active)); in ep93xx_dma_free_chan_resources()
949 BUG_ON(!list_empty(&edmac->queue)); in ep93xx_dma_free_chan_resources()
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c373 LASSERT(list_empty(&peer->ibp_conns)); in kiblnd_destroy_peer()
374 LASSERT(list_empty(&peer->ibp_tx_queue)); in kiblnd_destroy_peer()
399 !list_empty(&peer->ibp_conns)); /* active conn */ in kiblnd_find_peer_locked()
415 LASSERT(list_empty(&peer->ibp_conns)); in kiblnd_unlink_peer_locked()
440 !list_empty(&peer->ibp_conns)); in kiblnd_get_peer_info()
467 if (list_empty(&peer->ibp_conns)) { in kiblnd_del_peer_locked()
507 !list_empty(&peer->ibp_conns)); in kiblnd_del_peer()
515 if (!list_empty(&peer->ibp_tx_queue)) { in kiblnd_del_peer()
516 LASSERT(list_empty(&peer->ibp_conns)); in kiblnd_del_peer()
551 !list_empty(&peer->ibp_conns)); in kiblnd_get_conn_by_idx()
[all …]
Do2iblnd.h611 if (!list_empty(&dev->ibd_fail_list)) /* already scheduled */ in kiblnd_dev_can_failover()
677 return !list_empty(&peer->ibp_list); in kiblnd_peer_active()
683 LASSERT(!list_empty(&peer->ibp_conns)); in kiblnd_get_conn_locked()
708 if (!list_empty(&conn->ibc_tx_queue_nocred)) in kiblnd_need_noop()
712 return (list_empty(&conn->ibc_tx_queue) || in kiblnd_need_noop()
716 if (!list_empty(&conn->ibc_tx_noops) || /* NOOP already queued */ in kiblnd_need_noop()
717 !list_empty(&conn->ibc_tx_queue_nocred) || /* piggyback NOOP */ in kiblnd_need_noop()
726 return (list_empty(&conn->ibc_tx_queue) || conn->ibc_credits == 1); in kiblnd_need_noop()
Do2iblnd_cb.c93 while (!list_empty(txlist)) { in kiblnd_txlist_done()
906 !list_empty(&conn->ibc_tx_queue_rsrvd)) { in kiblnd_check_sends()
931 if (!list_empty(&conn->ibc_tx_queue_nocred)) { in kiblnd_check_sends()
935 } else if (!list_empty(&conn->ibc_tx_noops)) { in kiblnd_check_sends()
940 } else if (!list_empty(&conn->ibc_tx_queue)) { in kiblnd_check_sends()
1316 if (peer != NULL && !list_empty(&peer->ibp_conns)) { in kiblnd_launch_tx()
1335 if (list_empty(&peer->ibp_conns)) { in kiblnd_launch_tx()
1374 if (list_empty(&peer2->ibp_conns)) { in kiblnd_launch_tx()
1798 if (list_empty(&peer->ibp_conns) && in kiblnd_peer_notify()
1837 list_empty(&conn->ibc_tx_noops) && in kiblnd_close_conn_locked()
[all …]
/linux-4.4.14/drivers/block/zram/
Dzcomp.c107 if (!list_empty(&zs->idle_strm)) { in zcomp_strm_multi_find()
117 wait_event(zs->strm_wait, !list_empty(&zs->idle_strm)); in zcomp_strm_multi_find()
129 wait_event(zs->strm_wait, !list_empty(&zs->idle_strm)); in zcomp_strm_multi_find()
167 while (zs->avail_strm > num_strm && !list_empty(&zs->idle_strm)) { in zcomp_strm_multi_set_max_streams()
183 while (!list_empty(&zs->idle_strm)) { in zcomp_strm_multi_destroy()
/linux-4.4.14/net/mac80211/
Doffchannel.c218 if (list_empty(&local->roc_list)) in ieee80211_hw_roc_start()
263 if (list_empty(&local->roc_list)) { in ieee80211_start_next_roc()
348 if (WARN_ON(list_empty(&local->roc_list))) in ieee80211_sw_roc_work()
413 else if (list_empty(&local->roc_list)) in ieee80211_sw_roc_work()
429 if (list_empty(&local->roc_list)) in ieee80211_hw_roc_done()
501 WARN_ON_ONCE(!list_empty(&tmp_list)); in ieee80211_roc_purge()
/linux-4.4.14/drivers/dca/
Ddca-core.c107 if (list_empty(&dca_domains)) { in unregister_dca_providers()
148 if (dca_provider_ioat_ver_3_0(dev) && !list_empty(&dca_domains)) in dca_get_domain()
167 if (!list_empty(&dca_domains)) in dca_find_provider_by_dev()
423 if (list_empty(&dca_domains)) { in unregister_dca_provider()
432 if (list_empty(&domain->dca_providers)) in unregister_dca_provider()
/linux-4.4.14/drivers/scsi/
Dscsi_module.c35 if (list_empty(&sht->legacy_hosts)) in init_this_scsi_driver()
62 if (list_empty(&sht->legacy_hosts)) in exit_this_scsi_driver()
/linux-4.4.14/fs/squashfs/
Ddecompressor_multi.c114 while (!list_empty(&stream->strm_list)) { in squashfs_decompressor_destroy()
138 if (!list_empty(&stream->strm_list)) { in get_decomp_stream()
178 !list_empty(&stream->strm_list)); in get_decomp_stream()
/linux-4.4.14/fs/jffs2/
Dnodemgmt.c172 list_empty(&c->erase_pending_list) && in jffs2_reserve_space()
173 list_empty(&c->erase_complete_list)) { in jffs2_reserve_space()
286 if (list_empty(&c->free_list)) { in jffs2_find_nextblock()
289 !list_empty(&c->erasable_list)) { in jffs2_find_nextblock()
301 !list_empty(&c->erasable_pending_wbuf_list)) { in jffs2_find_nextblock()
317 list_empty(&c->erasable_list) ? "yes" : "no", in jffs2_find_nextblock()
318 list_empty(&c->erasing_list) ? "yes" : "no", in jffs2_find_nextblock()
319 list_empty(&c->erase_pending_list) ? "yes" : "no"); in jffs2_find_nextblock()
844 if (!list_empty(&c->erase_complete_list) || in jffs2_thread_should_wake()
845 !list_empty(&c->erase_pending_list)) in jffs2_thread_should_wake()
Ddebug.c498 if (list_empty(&c->clean_list)) { in __jffs2_dbg_dump_block_lists_nolock()
520 if (list_empty(&c->very_dirty_list)) { in __jffs2_dbg_dump_block_lists_nolock()
543 if (list_empty(&c->dirty_list)) { in __jffs2_dbg_dump_block_lists_nolock()
566 if (list_empty(&c->erasable_list)) { in __jffs2_dbg_dump_block_lists_nolock()
582 if (list_empty(&c->erasing_list)) { in __jffs2_dbg_dump_block_lists_nolock()
597 if (list_empty(&c->erase_checking_list)) { in __jffs2_dbg_dump_block_lists_nolock()
613 if (list_empty(&c->erase_pending_list)) { in __jffs2_dbg_dump_block_lists_nolock()
629 if (list_empty(&c->erasable_pending_wbuf_list)) { in __jffs2_dbg_dump_block_lists_nolock()
645 if (list_empty(&c->free_list)) { in __jffs2_dbg_dump_block_lists_nolock()
661 if (list_empty(&c->bad_list)) { in __jffs2_dbg_dump_block_lists_nolock()
[all …]
Dgc.c55 if (!list_empty(&c->bad_used_list) && c->nr_free_blocks > c->resv_blocks_gcbad) { in jffs2_find_gc_block()
58 } else if (n < 50 && !list_empty(&c->erasable_list)) { in jffs2_find_gc_block()
63 } else if (n < 110 && !list_empty(&c->very_dirty_list)) { in jffs2_find_gc_block()
67 } else if (n < 126 && !list_empty(&c->dirty_list)) { in jffs2_find_gc_block()
70 } else if (!list_empty(&c->clean_list)) { in jffs2_find_gc_block()
73 } else if (!list_empty(&c->dirty_list)) { in jffs2_find_gc_block()
77 } else if (!list_empty(&c->very_dirty_list)) { in jffs2_find_gc_block()
80 } else if (!list_empty(&c->erasable_list)) { in jffs2_find_gc_block()
84 } else if (!list_empty(&c->erasable_pending_wbuf_list)) { in jffs2_find_gc_block()
228 if (!list_empty(&c->erase_complete_list) || in jffs2_garbage_collect_pass()
[all …]
/linux-4.4.14/drivers/char/agp/
Dbackend.c246 if (list_empty(&agp_bridges)) in agp_alloc_bridge()
258 if (list_empty(&agp_bridges)) in agp_put_bridge()
293 if (list_empty(&agp_bridges)) { in agp_add_bridge()
324 if (list_empty(&agp_bridges)) in agp_remove_bridge()
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_sdio.c87 if (list_empty(&tx->free_list)) in get_tx_struct()
93 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_struct()
109 if (list_empty(&rx->free_list)) in get_rx_struct()
344 if (!list_empty(&tx->hci_list)) { in do_tx()
348 } else if (!tx->stop_sdu_tx && !list_empty(&tx->sdu_list)) { in do_tx()
463 if (list_empty(&tx->free_list)) in control_sdu_tx_flow()
510 if (!list_empty(&tx->sdu_list) || !list_empty(&tx->hci_list)) in gdm_sdio_irq()
555 if (!list_empty(&rx->req_list)) { in gdm_sdio_irq()
Dgdm_usb.c116 if (list_empty(&tx->free_list)) { in get_tx_struct()
124 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_struct()
140 if (list_empty(&rx->free_list)) { in get_rx_struct()
442 if (list_empty(&tx->free_list)) in gdm_usb_rcv_complete()
507 (!list_empty(&tx->hci_list) || !list_empty(&tx->sdu_list))) { in do_pm_control()
707 while (!list_empty(&k_list)) { in k_mode_thread()
745 !list_empty(&k_list) || in k_mode_thread()
/linux-4.4.14/net/ceph/
Dpagelist.c22 while (!list_empty(&pl->head)) { in ceph_pagelist_release()
102 while (!list_empty(&pl->free_list)) { in ceph_pagelist_free_reserve()
144 if (!list_empty(&pl->head)) { in ceph_pagelist_truncate()
/linux-4.4.14/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c63 if (list_empty(list)) in ttm_eu_backoff_reservation()
103 if (list_empty(list)) in ttm_eu_reserve_buffers()
191 if (list_empty(list)) in ttm_eu_fence_buffer_objects()
Dttm_bo.c147 BUG_ON(!list_empty(&bo->lru)); in ttm_bo_release_list()
148 BUG_ON(!list_empty(&bo->ddestroy)); in ttm_bo_release_list()
173 BUG_ON(!list_empty(&bo->lru)); in ttm_bo_add_to_lru()
191 if (!list_empty(&bo->swap)) { in ttm_bo_del_from_lru()
195 if (!list_empty(&bo->lru)) { in ttm_bo_del_from_lru()
531 if (ret || unlikely(list_empty(&bo->ddestroy))) { in ttm_bo_cleanup_refs_and_unlock()
561 if (list_empty(&bdev->ddestroy)) in ttm_bo_delayed_delete()
598 if (list_empty(&entry->ddestroy)) in ttm_bo_delayed_delete()
748 if (!list_empty(&bo->ddestroy)) { in ttm_mem_evict_first()
1252 while (!list_empty(&man->lru)) { in ttm_bo_force_list_clean()
[all …]
/linux-4.4.14/drivers/usb/core/
Durb.c142 list_empty(&anchor->urb_list); in usb_anchor_check_wakeup()
760 while (!list_empty(&anchor->urb_list)) { in usb_kill_anchored_urbs()
793 while (!list_empty(&anchor->urb_list)) { in usb_poison_anchored_urbs()
919 if (!list_empty(&anchor->urb_list)) { in usb_get_from_anchor()
946 while (!list_empty(&anchor->urb_list)) { in usb_scuttle_anchored_urbs()
964 return list_empty(&anchor->urb_list); in usb_anchor_empty()
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_lock.c189 LASSERT(list_empty(&lock->l_res_link)); in ldlm_lock_put()
190 LASSERT(list_empty(&lock->l_pending_chain)); in ldlm_lock_put()
218 if (!list_empty(&lock->l_lru)) { in ldlm_lock_remove_from_lru_nolock()
252 LASSERT(list_empty(&lock->l_lru)); in ldlm_lock_add_to_lru_nolock()
283 if (!list_empty(&lock->l_lru)) { in ldlm_lock_touch_in_lru()
316 if (!list_empty(&lock->l_res_link)) { in ldlm_lock_destroy_internal()
322 LASSERT(list_empty(&lock->l_lru)); in ldlm_lock_destroy_internal()
482 LASSERT(list_empty(&lock->l_res_link)); in ldlm_lock_change_resource()
617 LASSERT(list_empty(&lock->l_bl_ast)); in ldlm_add_bl_work_item()
634 LASSERT(list_empty(&lock->l_cp_ast)); in ldlm_add_cp_work_item()
[all …]
Dldlm_extent.c127 LASSERT(list_empty(&node->li_group)); in ldlm_interval_free()
140 LASSERT(!list_empty(&n->li_group)); in ldlm_interval_detach()
144 return list_empty(&n->li_group) ? n : NULL; in ldlm_interval_detach()
Dldlm_resource.c613 LASSERT(list_empty(&ns->ns_list_chain)); in ldlm_namespace_register()
943 LASSERT(!list_empty(&ns->ns_list_chain)); in ldlm_namespace_unregister()
975 LASSERT(list_empty(&ns->ns_list_chain)); in ldlm_namespace_free_post()
1005 LASSERT(!list_empty(&ns->ns_list_chain)); in ldlm_namespace_move_to_active_locked()
1014 LASSERT(!list_empty(&ns->ns_list_chain)); in ldlm_namespace_move_to_inactive_locked()
1023 LASSERT(!list_empty(ldlm_namespace_list(client))); in ldlm_namespace_first_locked()
1188 if (!list_empty(&res->lr_granted)) { in __ldlm_resource_putref_final()
1193 if (!list_empty(&res->lr_waiting)) { in __ldlm_resource_putref_final()
1274 LASSERT(list_empty(&lock->l_res_link)); in ldlm_resource_add_lock()
1375 if (!list_empty(&res->lr_granted)) { in ldlm_resource_dump()
[all …]
Dldlm_lib.c147 if (list_empty(&imp->imp_conn_list)) { in client_import_del_conn()
704 LASSERT(list_empty(&rs->rs_obd_list)); in target_send_reply()
705 LASSERT(list_empty(&rs->rs_exp_list)); in target_send_reply()
750 list_empty(&rs->rs_exp_list) || /* completed already */ in target_send_reply()
751 list_empty(&rs->rs_obd_list)) { in target_send_reply()
820 if (!list_empty(&exp->exp_locks_list)) { in ldlm_dump_export_locks()
/linux-4.4.14/fs/nfs_common/
Dgrace.c72 return !list_empty(grace_list); in __state_in_grace()
107 BUG_ON(!list_empty(grace_list)); in grace_exit_net()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dgang.c50 WARN_ON(gang->contexts || !list_empty(&gang->list)); in destroy_spu_gang()
78 if (!list_empty(&ctx->aff_list)) { in spu_gang_remove_ctx()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dhtc_pipe.c42 if (list_empty(queue_to_indicate)) { in do_send_completion()
73 } while (!list_empty(queue_to_indicate)); in do_send_completion()
106 if (list_empty(&ep->txq)) in get_htc_packet_credit_based()
183 if (list_empty(&ep->txq)) in get_htc_packet()
217 while (!list_empty(pkt_queue)) { in htc_issue_packets()
283 while (!list_empty(pkt_queue)) { in htc_issue_packets()
325 if (list_empty(txq)) { in htc_try_send()
404 if (list_empty(&send_queue)) { in htc_try_send()
420 if (!list_empty(&send_queue)) { in htc_try_send()
423 if (!list_empty(&send_queue)) { in htc_try_send()
[all …]
/linux-4.4.14/sound/hda/
Dhdac_bus.c54 WARN_ON(!list_empty(&bus->stream_list)); in snd_hdac_bus_exit()
55 WARN_ON(!list_empty(&bus->codec_list)); in snd_hdac_bus_exit()
209 if (list_empty(&codec->list)) in snd_hdac_bus_remove_device()
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-kthread-out.c71 if (!list_empty(&dev->vid_out_active) && in vivid_thread_vid_out_tick()
77 if (!list_empty(&dev->vbi_out_active) && in vivid_thread_vid_out_tick()
271 while (!list_empty(&dev->vid_out_active)) { in vivid_stop_generating_vid_out()
284 while (!list_empty(&dev->vbi_out_active)) { in vivid_stop_generating_vid_out()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dmkregtable.c202 static inline int list_empty(const struct list_head *head) in list_empty() function
232 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
266 if (list_empty(head)) in list_cut_position()
297 if (!list_empty(list)) in list_splice()
309 if (!list_empty(list)) in list_splice_tail()
323 if (!list_empty(list)) { in list_splice_init()
340 if (!list_empty(list)) { in list_splice_tail_init()
Dradeon_sa.c82 if (!list_empty(&sa_manager->olist)) { in radeon_sa_bo_manager_fini()
85 if (!list_empty(&sa_manager->olist)) { in radeon_sa_bo_manager_fini()
231 if (!list_empty(&sa_manager->flist[i])) { in radeon_sa_event()
270 if (list_empty(&sa_manager->flist[i])) { in radeon_sa_bo_next_hole()
/linux-4.4.14/kernel/
Dworkqueue.c786 return !list_empty(&pool->worklist) && __need_more_worker(pool); in need_more_worker()
798 return !list_empty(&pool->worklist) && in keep_working()
825 if (unlikely(list_empty(&pool->idle_list))) in first_idle_worker()
915 !list_empty(&pool->worklist)) in wq_worker_sleeping()
1158 if (!list_empty(&pwq->delayed_works)) { in pwq_dec_nr_in_flight()
1415 if (WARN_ON(!list_empty(&work->entry))) { in __queue_work()
1484 WARN_ON_ONCE(!list_empty(&work->entry)); in __queue_delayed_work()
1593 WARN_ON_ONCE(!list_empty(&worker->entry) && in worker_enter_idle()
1703 if (list_empty(&pool->workers)) in worker_detach_from_pool()
1795 WARN_ON(!list_empty(&worker->scheduled)) || in destroy_worker()
[all …]
Dkthread.c516 if (list_empty(&kthread_create_list)) in kthreadd()
521 while (!list_empty(&kthread_create_list)) { in kthreadd()
585 if (!list_empty(&worker->work_list)) { in kthread_worker_fn()
633 if (list_empty(&work->node)) { in queue_kthread_work()
680 if (!list_empty(&work->node)) in flush_kthread_work()
Dkprobes.c331 list_empty(&p->list); in kprobe_unused()
400 return kprobe_disabled(p) && list_empty(&op->list); in kprobe_disarmed()
410 if (!list_empty(&op->list)) in kprobe_queued()
456 list_empty(&optimizing_list)) in do_optimize_kprobes()
485 if (list_empty(&unoptimizing_list)) in do_unoptimize_kprobes()
561 if (!list_empty(&optimizing_list) || !list_empty(&unoptimizing_list)) in kprobe_optimizer()
570 while (!list_empty(&optimizing_list) || !list_empty(&unoptimizing_list)) { in wait_for_kprobe_optimizer()
609 if (!list_empty(&op->list)) in optimize_kprobe()
639 if (force && !list_empty(&op->list)) { in unoptimize_kprobe()
652 if (!list_empty(&op->list)) { in unoptimize_kprobe()
[all …]
Daudit_tree.c498 while (!list_empty(&victim->chunks)) { in prune_one()
529 while (!list_empty(&tree->chunks)) { in trim_marked()
563 if (list_empty(&tree->rules) && !tree->goner) { in audit_remove_tree_rule()
665 if (list_empty(&prune_list)) in prune_tree_thread()
672 while (!list_empty(&prune_list)) { in prune_tree_thread()
763 if (list_empty(&rule->rlist)) { in audit_add_tree_rule()
889 while (!list_empty(list)) { in audit_kill_trees()
924 while (!list_empty(&chunk->trees)) { in evict_chunk()
Daudit_watch.c71 WARN_ON(!list_empty(&parent->watches)); in audit_free_parent()
120 WARN_ON(!list_empty(&watch->rules)); in audit_put_watch()
458 if (list_empty(&watch->rules)) { in audit_remove_watch_rule()
461 if (list_empty(&parent->watches)) { in audit_remove_watch_rule()
/linux-4.4.14/net/sunrpc/
Dsched.c72 if (list_empty(&queue->timer_list.list)) in __rpc_disable_timer()
96 …if (list_empty(&queue->timer_list.list) || time_before(task->u.tk_wait.expires, queue->timer_list.… in __rpc_add_timer()
106 if (!list_empty(q)) { in rpc_rotate_queue_owner()
198 if (!list_empty(&task->u.tk_wait.links)) { in __rpc_remove_wait_queue_priority()
471 if (!list_empty(q)) { in __rpc_find_next_queued_priority()
492 if (!list_empty(q)) { in __rpc_find_next_queued_priority()
513 if (!list_empty(&queue->tasks[0])) in __rpc_find_next_queued()
569 while (!list_empty(head)) { in rpc_wake_up()
598 while (!list_empty(head)) { in rpc_wake_up_status()
633 if (!list_empty(&queue->timer_list.list)) in __rpc_queue_timer_fn()
Dbackchannel_rqst.c192 while (!list_empty(&tmp_list)) { in xprt_setup_bc()
242 list_empty(&xprt->bc_pa_list) ? "true" : "false"); in xprt_destroy_bc()
252 if (list_empty(&xprt->bc_pa_list)) { in xprt_alloc_bc_request()
/linux-4.4.14/drivers/pci/hotplug/
Drpaphp_pci.c118 if (list_empty(&bus->devices)) in rpaphp_enable_slot()
121 if (!list_empty(&bus->devices)) { in rpaphp_enable_slot()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_user_sdma.c583 if (!list_empty(&free_list)) { in ipath_user_sdma_queue_clean()
631 if (list_empty(&pq->sent)) { in ipath_user_sdma_queue_drain()
641 if (!list_empty(&pq->sent)) { in ipath_user_sdma_queue_drain()
714 if (list_empty(pktlist)) in ipath_user_sdma_push_pkts()
728 while (!list_empty(pktlist)) { in ipath_user_sdma_push_pkts()
820 if (!list_empty(&list)) { in ipath_user_sdma_writev()
838 if (!list_empty(&list)) in ipath_user_sdma_writev()
845 if (!list_empty(&list)) in ipath_user_sdma_writev()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dpci_dlpar.c108 if (!(list_empty(&b->children) && list_empty(&b->devices))) in remove_phb_dynamic()
Dhvcserver.c83 while (!list_empty(head)) { in hvcs_free_partner_info()
161 if (!list_empty(head)) in hvcs_get_partner_info()
/linux-4.4.14/drivers/usb/host/whci/
Dasl.c33 BUG_ON(list_empty(&whc->async_list)); in qset_get_next_prev()
79 if (list_empty(&whc->async_list)) in asl_qset_remove()
245 if (!list_empty(&qset->stds)) { in scan_async_work()
384 if (!list_empty(&whc->async_list)) { in asl_clean_up()
/linux-4.4.14/fs/dlm/
Dplock.c165 if (!list_empty(&op->list)) { in dlm_posix_lock()
198 if (!list_empty(&op->list)) { in dlm_plock_callback()
297 if (!list_empty(&op->list)) { in dlm_posix_unlock()
351 if (!list_empty(&op->list)) { in dlm_posix_get()
394 if (!list_empty(&send_list)) { in dev_read()
473 if (!list_empty(&send_list)) in dev_poll()
Drequestqueue.c74 if (list_empty(&ls->ls_requestqueue)) { in dlm_process_requestqueue()
122 if (list_empty(&ls->ls_requestqueue)) in dlm_wait_requestqueue()
/linux-4.4.14/drivers/md/
Ddm-region-hash.c240 BUG_ON(!list_empty(&rh->quiesced_regions)); in dm_region_hash_destroy()
418 BUG_ON(!list_empty(&reg->list)); in dm_rh_mark_nosync()
430 BUG_ON(!list_empty(&reg->list)); in dm_rh_mark_nosync()
451 if (!list_empty(&rh->clean_regions)) { in dm_rh_update_states()
458 if (!list_empty(&rh->recovered_regions)) { in dm_rh_update_states()
465 if (!list_empty(&rh->failed_recovered_regions)) { in dm_rh_update_states()
648 if (!list_empty(&rh->quiesced_regions)) { in dm_rh_recovery_start()
Ddm-stats.h39 return !list_empty(&st->list); in dm_stats_used()
/linux-4.4.14/net/sched/
Dsch_hhf.c186 if (list_empty(head)) in seek_list()
217 if (!list_empty(head)) { in alloc_new_hh()
393 if (list_empty(&bucket->bucketchain)) { in hhf_enqueue()
435 if (list_empty(head)) { in hhf_dequeue()
437 if (list_empty(head)) in hhf_dequeue()
459 if ((head == &q->new_buckets) && !list_empty(&q->old_buckets)) in hhf_dequeue()
508 if (list_empty(head)) in hhf_destroy()
/linux-4.4.14/fs/autofs4/
Dautofs_i.h246 if (list_empty(&ino->expiring)) in __autofs4_add_expiring()
258 if (list_empty(&ino->expiring)) in autofs4_add_expiring()
271 if (!list_empty(&ino->expiring)) in autofs4_del_expiring()
Droot.c81 if (list_empty(&ino->active)) in autofs4_add_active()
98 if (!list_empty(&ino->active)) in autofs4_del_active()
148 if (!list_empty(&ino->active)) in autofs4_dentry_release()
150 if (!list_empty(&ino->expiring)) in autofs4_dentry_release()
169 if (list_empty(head)) in autofs4_lookup_active()
224 if (list_empty(head)) in autofs4_lookup_expiring()
465 if (list_empty(&dentry->d_subdirs)) in autofs4_d_manage()
/linux-4.4.14/fs/btrfs/
Dordered-data.c237 BUG_ON(!list_empty(&root->ordered_root)); in __btrfs_add_ordered_extent()
466 while (!list_empty(logged_list)) { in btrfs_put_logged_extents()
492 while (!list_empty(&log->logged_list[index])) { in btrfs_wait_logged_extents()
543 while (!list_empty(&log->logged_list[index])) { in btrfs_free_logged_extents()
567 ASSERT(list_empty(&entry->log_list)); in btrfs_put_ordered_extent()
568 ASSERT(list_empty(&entry->trans_list)); in btrfs_put_ordered_extent()
569 ASSERT(list_empty(&entry->root_extent_list)); in btrfs_put_ordered_extent()
573 while (!list_empty(&entry->list)) { in btrfs_put_ordered_extent()
642 BUG_ON(list_empty(&root->ordered_root)); in btrfs_remove_ordered_extent()
675 while (!list_empty(&splice) && nr) { in btrfs_wait_ordered_extents()
[all …]
Drelocation.c223 while (!list_empty(&cache->detached)) { in backref_cache_cleanup()
229 while (!list_empty(&cache->leaves)) { in backref_cache_cleanup()
238 BUG_ON(!list_empty(&cache->pending[i])); in backref_cache_cleanup()
239 BUG_ON(!list_empty(&cache->changed)); in backref_cache_cleanup()
240 BUG_ON(!list_empty(&cache->detached)); in backref_cache_cleanup()
353 while (!list_empty(&node->upper)) { in walk_up_backref()
411 BUG_ON(!list_empty(&node->upper)); in drop_backref_node()
434 while (!list_empty(&node->upper)) { in remove_backref_node()
443 BUG_ON(!list_empty(&node->upper)); in remove_backref_node()
453 if (list_empty(&upper->lower)) { in remove_backref_node()
[all …]
Dtransaction.c65 BUG_ON(!list_empty(&transaction->list)); in btrfs_put_transaction()
70 while (!list_empty(&transaction->pending_chunks)) { in btrfs_put_transaction()
129 while (!list_empty(&trans->dropped_roots)) { in switch_commit_roots()
257 if (!list_empty(&fs_info->tree_mod_seq_list)) in join_transaction()
810 if (!list_empty(&trans->new_bgs)) in __btrfs_end_transaction()
831 if (!list_empty(&trans->new_bgs)) in __btrfs_end_transaction()
1146 while (!list_empty(&fs_info->dirty_cowonly_roots)) { in commit_cowonly_roots()
1163 while (!list_empty(dirty_bgs) || !list_empty(io_bgs)) { in commit_cowonly_roots()
1172 if (!list_empty(&fs_info->dirty_cowonly_roots)) in commit_cowonly_roots()
1190 if (list_empty(&root->root_list)) in btrfs_add_dead_root()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dgenops.c670 LASSERT(list_empty(&exp->exp_outstanding_replies)); in class_export_destroy()
671 LASSERT(list_empty(&exp->exp_uncommitted_replies)); in class_export_destroy()
672 LASSERT(list_empty(&exp->exp_req_replay_queue)); in class_export_destroy()
673 LASSERT(list_empty(&exp->exp_hp_rpcs)); in class_export_destroy()
707 LASSERT(!list_empty(&exp->exp_obd_chain)); in class_export_put()
843 while (!list_empty(&imp->imp_conn_list)) { in class_import_destroy()
880 LASSERT(list_empty(&imp->imp_zombie_chain)); in class_import_put()
1127 if (!list_empty(&obd_zombie_imports)) { in obd_zombie_impexp_cull()
1135 if (!list_empty(&obd_zombie_exports)) { in obd_zombie_impexp_cull()
1193 LASSERT(!list_empty(&exp->exp_obd_chain)); in obd_zombie_export_add()
[all …]
Dlu_object.c91 LASSERT(list_empty(&top->loh_lru)); in lu_object_put()
127 LASSERT(list_empty(&top->loh_lru)); in lu_object_put()
175 if (!list_empty(&top->loh_lru)) { in lu_object_unhash()
291 while (!list_empty(&splice)) { in lu_object_free()
370 while (!list_empty(&dispose)) { in lu_site_purge()
484 list_empty((struct list_head *)&hdr->loh_lru) ? \ in lu_object_header_print()
549 if (!list_empty(&h->loh_lru)) { in htable_lookup()
788 if (!list_empty(&h->loh_layers)) { in lu_site_obj_print()
931 if (list_empty(&d->ld_linkage)) in lu_dev_add_linkage()
1149 LASSERT(list_empty(&o->lo_linkage)); in lu_object_fini()
[all …]
Dlustre_peer.c168 if (uuid != NULL && list_empty(&deathrow)) { in class_del_uuid()
173 while (!list_empty(&deathrow)) { in class_del_uuid()
Dcl_io.c110 while (!list_empty(&io->ci_layers)) { in cl_io_fini()
889 LASSERT(ergo(result != 0, list_empty(&queue->c2_qout.pl_pages))); in cl_io_submit_rw()
929 LASSERT(list_empty(&queue->c2_qout.pl_pages)); in cl_io_submit_sync()
1034 list_empty(linkage)); in cl_io_slice_add()
1067 LASSERT(list_empty(&page->cp_batch)); in cl_page_list_add()
1306 LASSERT(list_empty(&req->crq_pages)); in cl_req_free()
1308 LINVRNT(list_empty(&req->crq_layers)); in cl_req_free()
1362 while (!list_empty(&req->crq_layers)) { in cl_req_completion()
1420 LASSERT(list_empty(&page->cp_flight)); in cl_req_page_add()
1452 LASSERT(!list_empty(&page->cp_flight)); in cl_req_page_done()
[all …]
Dlustre_handles.c69 LASSERT(list_empty(&h->h_link)); in class_handle_hash()
106 if (list_empty(&h->h_link)) { in class_handle_unhash_nolock()
/linux-4.4.14/arch/s390/kernel/
Dvtime.c57 if (list_empty(&virt_timer_list)) in virt_timer_forward()
249 if (!list_empty(&virt_timer_list)) { in virt_timer_expire()
281 return !list_empty(&timer->entry); in vtimer_pending()
286 if (list_empty(&virt_timer_list)) { in internal_add_vtimer()
/linux-4.4.14/tools/perf/util/
Dordered-events.c100 if (!list_empty(cache)) { in alloc_event()
218 if (list_empty(head)) in __ordered_events__flush()
256 if (WARN_ONCE(!last || list_empty(head), "empty queue")) in ordered_events__flush()
302 while (!list_empty(&oe->to_free)) { in ordered_events__free()
/linux-4.4.14/drivers/gpu/host1x/
Dintr.c81 !list_empty(dest)) { in remove_completed_waiters()
180 empty = list_empty(&syncpt->intr.wait_head); in process_wait_list()
239 queue_was_empty = list_empty(&syncpt->intr.wait_head); in host1x_intr_add_action()
342 if (!list_empty(&syncpt[id].intr.wait_head)) { in host1x_intr_stop()
Dcdma.c140 space = list_empty(&cdma->sync_queue) ? 1 : 0; in host1x_cdma_wait_locked()
260 list_empty(&cdma->sync_queue)) in update_cdma_locked()
318 if (!list_empty(&cdma->sync_queue)) in host1x_cdma_update_sync_queue()
466 bool idle = list_empty(&cdma->sync_queue); in host1x_cdma_end()
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-queue.c92 if (!list_empty(&q->list)) { in cx18_dequeue()
221 while (!list_empty(&q_src->list)) { in cx18_queue_flush()
260 while (!list_empty(&mdl->buf_list)) { in cx18_unload_queues()
299 if (list_empty(&s->buf_pool)) in cx18_load_queues()
434 while (!list_empty(&s->buf_pool)) { in cx18_stream_free()
/linux-4.4.14/drivers/base/
Ddd.c77 while (!list_empty(&deferred_probe_active_list)) { in deferred_probe_work_func()
115 if (list_empty(&dev->p->deferred_probe)) { in driver_deferred_probe_add()
125 if (!list_empty(&dev->p->deferred_probe)) { in driver_deferred_probe_del()
286 WARN_ON(!list_empty(&dev->devres_head)); in really_probe()
739 if (list_empty(&drv->p->klist_devices.k_list)) { in driver_detach()
Ddevres.c104 BUG_ON(!list_empty(&node->entry)); in add_dr()
201 BUG_ON(!list_empty(&dr->node.entry)); in devres_free()
458 BUG_ON(!grp || list_empty(&grp->node[0].entry)); in remove_nodes()
461 if (list_empty(&grp->node[1].entry)) in remove_nodes()
575 } else if (list_empty(&grp->node[1].entry)) in find_group()
662 if (!list_empty(&grp->node[1].entry)) in devres_release_group()
/linux-4.4.14/net/atm/
Dbr2684.c288 …return list_empty(&brdev->brvccs) ? NULL : list_entry_brvcc(brdev->brvccs.next); /* 1 vcc/dev righ… in pick_outgoing_vcc()
375 if (brdev == NULL || list_empty(&brdev->brvccs) || in br2684_setfilt()
434 if (list_empty(&brdev->brvccs)) { in br2684_push()
563 if (!list_empty(&brdev->brvccs)) { in br2684_regvcc()
578 if (list_empty(&brdev->brvccs) && !brdev->mac_was_set) { in br2684_regvcc()
705 if (list_empty(&br2684_devs)) { in br2684_create()
864 while (!list_empty(&br2684_devs)) { in br2684_exit()
867 while (!list_empty(&brdev->brvccs)) { in br2684_exit()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_scsi.h29 if (!list_empty(list)) { \
36 (list_empty(list)) ? NULL : \
/linux-4.4.14/drivers/base/power/
Dmain.c566 while (!list_empty(&dpm_noirq_list)) { in dpm_resume_noirq()
689 while (!list_empty(&dpm_late_early_list)) { in dpm_resume_early()
859 while (!list_empty(&dpm_suspended_list)) { in dpm_resume()
877 if (!list_empty(&dev->power.entry)) in dpm_resume()
949 while (!list_empty(&dpm_prepared_list)) { in dpm_complete()
1115 while (!list_empty(&dpm_late_early_list)) { in dpm_suspend_noirq()
1130 if (!list_empty(&dev->power.entry)) in dpm_suspend_noirq()
1256 while (!list_empty(&dpm_suspended_list)) { in dpm_suspend_late()
1265 if (!list_empty(&dev->power.entry)) in dpm_suspend_late()
1510 while (!list_empty(&dpm_prepared_list)) { in dpm_suspend()
[all …]
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fence.c217 if (!list_empty(&cb.base.node)) in vmw_fence_wait()
267 if (list_empty(&list)) in vmw_fence_work_func()
315 lists_empty = list_empty(&fman->fence_list) && in vmw_fence_manager_takedown()
316 list_empty(&fman->cleanup_list); in vmw_fence_manager_takedown()
402 if (!list_empty(&fence->seq_passed_actions)) { in vmw_fence_goal_new_locked()
487 if (!list_empty(&fman->cleanup_list)) in __vmw_fences_update()
669 while (!list_empty(&fman->fence_list)) { in vmw_fence_fifo_down()
688 BUG_ON(!list_empty(&fence->head)); in vmw_fence_fifo_down()
832 if (list_empty(event_list)) in vmw_event_fence_fpriv_gone()
Dvmwgfx_ldu.c103 if (!list_empty(&lds->active)) { in vmw_ldu_commit_list()
160 if (list_empty(&ldu->active)) in vmw_ldu_del_active()
192 if (!list_empty(&ldu->active)) in vmw_ldu_add_active()
248 !list_empty(&ldu->active)) && in vmw_ldu_crtc_set_config()
448 BUG_ON(!list_empty(&dev_priv->ldu_priv->active)); in vmw_kms_ldu_close_display()
Dvmwgfx_marker.c83 if (list_empty(&queue->head)) { in vmw_marker_pull()
137 if (list_empty(&queue->head)) in vmw_wait_lag()
/linux-4.4.14/fs/ubifs/
Dgc.c414 if (list_empty(&sleb->nodes) && list_empty(&nondata)) in move_nodes()
520 ubifs_assert(!list_empty(&sleb->nodes)); in ubifs_garbage_collect_leb()
681 if (i > SOFT_LEBS_LIMIT && !list_empty(&c->idx_gc)) { in ubifs_garbage_collect()
801 if (ret == -ENOSPC && !list_empty(&c->idx_gc)) { in ubifs_garbage_collect()
954 while (!list_empty(&c->idx_gc)) { in ubifs_destroy_idx_gc()
976 if (list_empty(&c->idx_gc)) in ubifs_get_idx_gc_leb()
/linux-4.4.14/drivers/usb/musb/
Dmusb_host.h73 if (list_empty(q)) in first_qh()
146 if (list_empty(queue)) in next_urb()
/linux-4.4.14/fs/ecryptfs/
Dmiscdev.c61 if (!list_empty(&daemon->msg_ctx_out_queue)) in ecryptfs_miscdev_poll()
252 if (list_empty(&daemon->msg_ctx_out_queue)) { in ecryptfs_miscdev_read()
255 daemon->wait, !list_empty(&daemon->msg_ctx_out_queue)); in ecryptfs_miscdev_read()
266 if (list_empty(&daemon->msg_ctx_out_queue)) { in ecryptfs_miscdev_read()
Dkthread.c65 (!list_empty(&ecryptfs_kthread_ctl.req_list) in ecryptfs_threadfn()
72 while (!list_empty(&ecryptfs_kthread_ctl.req_list)) { in ecryptfs_threadfn()
/linux-4.4.14/net/rxrpc/
Dar-local.c272 ASSERT(list_empty(&local->services)); in rxrpc_destroy_local()
289 if (list_empty(&rxrpc_locals)) in rxrpc_destroy_local()
306 if (!list_empty(&rxrpc_locals)) { in rxrpc_destroy_all_locals()
310 while (!list_empty(&rxrpc_locals)) { in rxrpc_destroy_all_locals()
Dar-peer.c273 if (list_empty(&rxrpc_peers)) in rxrpc_destroy_peer()
289 if (!list_empty(&rxrpc_peers)) { in rxrpc_destroy_all_peers()
293 while (!list_empty(&rxrpc_peers)) { in rxrpc_destroy_all_peers()
Dar-connection.c184 ASSERT(list_empty(&bundle->unused_conns)); in rxrpc_put_bundle()
185 ASSERT(list_empty(&bundle->avail_conns)); in rxrpc_put_bundle()
186 ASSERT(list_empty(&bundle->busy_conns)); in rxrpc_put_bundle()
449 if (!list_empty(&bundle->avail_conns)) { in rxrpc_connect_call()
471 if (!list_empty(&bundle->unused_conns)) { in rxrpc_connect_call()
512 !list_empty(&bundle->unused_conns) || in rxrpc_connect_call()
513 !list_empty(&bundle->avail_conns)) in rxrpc_connect_call()
903 while (!list_empty(&graveyard)) { in rxrpc_connection_reaper()
/linux-4.4.14/security/keys/
Dgc.c129 while (!list_empty(keys)) { in key_gc_unused_keys()
284 !list_empty(&graveyard)) { in key_garbage_collector()
294 if (!list_empty(&graveyard)) { in key_garbage_collector()
/linux-4.4.14/fs/nfs/filelayout/
Dfilelayoutdev.c168 if (list_empty(&dsaddrs)) { in nfs4_fl_alloc_deviceid_node()
179 while (!list_empty(&dsaddrs)) { in nfs4_fl_alloc_deviceid_node()
193 while (!list_empty(&dsaddrs)) { in nfs4_fl_alloc_deviceid_node()
/linux-4.4.14/drivers/scsi/arm/
Dqueue.c92 if (!list_empty(&queue->head)) in queue_free()
114 if (list_empty(&queue->free)) in __queue_add()
193 if (!list_empty(&queue->head)) in queue_remove()
/linux-4.4.14/drivers/infiniband/core/
Diwcm.c111 if (list_empty(&cm_id_priv->work_free_list)) in get_work()
136 BUG_ON(!list_empty(&cm_id_priv->work_free_list)); in alloc_work_entries()
181 BUG_ON(!list_empty(&cm_id_priv->work_list)); in iwcm_deref_id()
209 BUG_ON(!list_empty(&cm_id_priv->work_list)); in rem_ref()
881 empty = list_empty(&cm_id_priv->work_list); in cm_work_handler()
886 empty = list_empty(&cm_id_priv->work_list); in cm_work_handler()
900 BUG_ON(!list_empty(&cm_id_priv->work_list)); in cm_work_handler()
959 if (list_empty(&cm_id_priv->work_list)) { in cm_event_handler()
/linux-4.4.14/arch/frv/mm/
Dmmu-context.c50 if (!list_empty(&ctx->id_link)) { in get_cxn()
136 if (!list_empty(&ctx->id_link)) { in destroy_context()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dbase.c47 if (!list_empty(&tmr->alarms)) { in nvkm_timer_alarm_trigger()
73 if (!list_empty(&alarm->head)) in nvkm_timer_alarm()
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dpio.c473 B43legacy_WARN_ON(list_empty(&queue->txfree)); in b43legacy_pio_tx()
545 if (!list_empty(&queue->txqueue)) in b43legacy_pio_handle_txstatus()
687 if (!list_empty(&pio->queue0->txqueue)) in b43legacy_pio_thaw_txqueues()
689 if (!list_empty(&pio->queue1->txqueue)) in b43legacy_pio_thaw_txqueues()
691 if (!list_empty(&pio->queue2->txqueue)) in b43legacy_pio_thaw_txqueues()
693 if (!list_empty(&pio->queue3->txqueue)) in b43legacy_pio_thaw_txqueues()
/linux-4.4.14/drivers/usb/c67x00/
Dc67x00-sched.c282 if (list_empty(&ep_data->node)) { in c67x00_ep_data_alloc()
306 if (!list_empty(&ep_data->queue)) in c67x00_ep_data_free()
324 if (!list_empty(&ep->urb_list)) in c67x00_endpoint_disable()
415 if (list_empty(&urbp->ep_data->queue)) in c67x00_urb_enqueue()
798 if (!list_empty(&ep_data->queue)) { in c67x00_fill_from_list()
814 if (!list_empty(&c67x00->td_list)) { in c67x00_fill_frame()
1083 if (list_empty(&c67x00->td_list)) in c67x00_send_frame()
1116 if (!list_empty(&c67x00->td_list)) in c67x00_do_work()
1131 if (!list_empty(&c67x00->td_list)) in c67x00_do_work()
/linux-4.4.14/mm/
Dcompaction.c620 if (list_empty(&cc->migratepages)) in acct_isolated()
1049 if (list_empty(&cc->freepages)) { in compaction_alloc()
1053 if (list_empty(&cc->freepages)) in compaction_alloc()
1232 if (!list_empty(&area->free_list[migratetype])) in __compact_finished()
1238 !list_empty(&area->free_list[MIGRATE_CMA])) in __compact_finished()
1498 VM_BUG_ON(!list_empty(&cc.freepages)); in compact_zone_order()
1499 VM_BUG_ON(!list_empty(&cc.migratepages)); in compact_zone_order()
1659 VM_BUG_ON(!list_empty(&cc->freepages)); in __compact_pgdat()
1660 VM_BUG_ON(!list_empty(&cc->migratepages)); in __compact_pgdat()
/linux-4.4.14/drivers/xen/xenbus/
Dxenbus_dev_frontend.c132 while (list_empty(&u->read_buffers)) { in xenbus_file_read()
138 !list_empty(&u->read_buffers)); in xenbus_file_read()
164 if (list_empty(&u->read_buffers)) in xenbus_file_read()
213 while (!list_empty(list)) { in queue_cleanup()
594 if (!list_empty(&u->read_buffers)) in xenbus_file_poll()
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_rma_list.c36 if (!list_empty(head)) { in scif_insert_tcw()
98 if (!list_empty(head)) { in scif_query_tcw()
284 if (!list_empty(&ep->rma_info.mmn_list)) { in scif_unregister_all_windows()
/linux-4.4.14/fs/nfs/
Dpnfs_nfs.c129 if (list_empty(src)) { in pnfs_generic_scan_ds_commit_list()
192 if (list_empty(&bucket->committing)) in pnfs_generic_retry_commit()
218 if (list_empty(&bucket->committing)) in pnfs_generic_alloc_ds_commits()
260 if (!list_empty(mds_pages)) { in pnfs_generic_commit_pagelist()
427 while (!list_empty(&ds->ds_addrs)) { in destroy_ds()
510 if (list_empty(dsaddrs)) { in nfs4_pnfs_ds_add()
873 if (list_empty(list)) { in pnfs_layout_mark_request_commit()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_sched.c191 if (!list_empty(&scheduler->n_list)) { in register_ip_vs_scheduler()
235 if (list_empty(&scheduler->n_list)) { in unregister_ip_vs_scheduler()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sa.c82 if (!list_empty(&sa_manager->olist)) { in amdgpu_sa_bo_manager_fini()
85 if (!list_empty(&sa_manager->olist)) { in amdgpu_sa_bo_manager_fini()
232 if (!list_empty(&sa_manager->flist[i])) { in amdgpu_sa_event()
271 if (list_empty(&sa_manager->flist[i])) { in amdgpu_sa_bo_next_hole()
/linux-4.4.14/drivers/net/wireless/ath/
Ddfs_pri_detector.c139 if (!list_empty(&pseq_pool)) { in pool_get_pseq_elem()
152 if (!list_empty(&pulse_pool)) { in pool_get_pulse_elem()
164 if (list_empty(l)) in pulse_queue_get_tail()
341 if (list_empty(&pde->sequences)) in pseq_handler_check_detection()
Ddfs_pattern_detector.c256 if (!list_empty(&dpd->channel_detectors)) in dpd_reset()
264 if (!list_empty(&dpd->channel_detectors)) in dpd_exit()
331 if (!list_empty(&dpd->channel_detectors)) in dpd_set_domain()
/linux-4.4.14/drivers/usb/gadget/udc/
Dgoku_udc.c289 WARN_ON(!list_empty(&req->queue)); in goku_free_request()
487 if (dbuff && !list_empty(&ep->queue)) { in read_fifo()
521 if (unlikely(list_empty (&ep->queue))) in pio_advance()
594 if (unlikely(list_empty(&ep->queue))) { in dma_advance()
628 if (list_empty(&ep->queue)) in dma_advance()
718 || !_req->buf || !list_empty(&req->queue))) in goku_queue()
757 if (list_empty(&ep->queue) && likely(!ep->stopped)) { in goku_queue()
777 if (likely(!list_empty(&ep->queue)) in goku_queue()
795 if (list_empty(&ep->queue)) in nuke()
799 while (!list_empty(&ep->queue)) { in nuke()
[all …]
Ds3c-hsudc.c275 while (!list_empty(&hsep->queue)) { in s3c_hsudc_nuke_ep()
444 if (list_empty(&hsep->queue)) in s3c_hsudc_epin_intr()
481 if (list_empty(&hsep->queue)) in s3c_hsudc_epout_intr()
509 if (value && ep_is_in(hsep) && !list_empty(&hsep->queue)) in s3c_hsudc_set_halt()
528 if (ep_is_in(hsep) && !list_empty(&hsep->queue) && !value) { in s3c_hsudc_set_halt()
718 if (list_empty(&hsep->queue)) in s3c_hsudc_handle_ep0_intr()
732 if (list_empty(&hsep->queue)) in s3c_hsudc_handle_ep0_intr()
854 WARN_ON(!list_empty(&hsreq->queue)); in s3c_hsudc_free_request()
878 !list_empty(&hsreq->queue))) in s3c_hsudc_queue()
899 if (list_empty(&hsep->queue) && !hsep->stopped) { in s3c_hsudc_queue()
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-vbi.c98 if (list_empty(&q->active)) in cx8800_restart_vbi_queue()
176 if (list_empty(&q->active)) { in buffer_queue()
214 while (!list_empty(&dmaq->active)) { in stop_streaming()
Dcx88-mpeg.c212 if (list_empty(&q->active)) in cx8802_restart_queue()
258 if (list_empty(&cx88q->active)) { in cx8802_buf_queue()
284 while (!list_empty(&q->active)) { in do_cancel_buffers()
450 if (!list_empty(&dev->mpegq.active)) { in cx8802_suspend_common()
500 if (!list_empty(&dev->mpegq.active)) { in cx8802_resume_common()
774 if (!list_empty(&dev->drvlist)) { in cx8802_remove()
/linux-4.4.14/arch/x86/kernel/
Dnmi.c168 WARN_ON_ONCE(type == NMI_UNKNOWN && !list_empty(&desc->head)); in __register_nmi_handler()
169 WARN_ON_ONCE(type == NMI_SERR && !list_empty(&desc->head)); in __register_nmi_handler()
170 WARN_ON_ONCE(type == NMI_IO_CHECK && !list_empty(&desc->head)); in __register_nmi_handler()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dpd.c183 if (!list_empty(&priv->bf_list)) in mlx4_bf_alloc()
256 if (!list_empty(&bf->uar->bf_list)) in mlx4_bf_free()
263 } else if (list_empty(&bf->uar->bf_list)) in mlx4_bf_free()
/linux-4.4.14/drivers/acpi/
Ddevice_sysfs.c99 if (list_empty(list)) in acpi_expose_nondev_subnodes()
120 if (list_empty(list)) in acpi_hide_nondev_subnodes()
248 if (list_empty(&adev->pnp.ids)) in __acpi_device_uevent_modalias()
297 if (list_empty(&adev->pnp.ids)) in __acpi_device_modalias()
509 if (!list_empty(&dev->pnp.ids)) { in acpi_device_setup_files()
/linux-4.4.14/net/sunrpc/xprtrdma/
Dsvc_rdma_transport.c279 while (!list_empty(&dto_xprt_q)) { in dto_tasklet_func()
321 if (list_empty(&xprt->sc_dto_q)) { in rq_comp_handler()
503 if (list_empty(&xprt->sc_dto_q)) { in sq_comp_handler()
829 while (!list_empty(&xprt->sc_frmr_q)) { in rdma_dealloc_frmr_q()
844 if (!list_empty(&rdma->sc_frmr_q)) { in svc_rdma_get_frmr()
865 WARN_ON_ONCE(!list_empty(&frmr->frmr_list)); in svc_rdma_put_frmr()
899 if (!list_empty(&listen_rdma->sc_accept_q)) { in svc_rdma_accept()
904 if (!list_empty(&listen_rdma->sc_accept_q)) in svc_rdma_accept()
1176 while (!list_empty(&rdma->sc_read_complete_q)) { in __svc_rdma_free()
1186 while (!list_empty(&rdma->sc_rq_dto_q)) { in __svc_rdma_free()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dmcg.c458 if (!list_empty(&group->pending_list)) in release_group()
549 if (!list_empty(&group->pending_list)) { in mlx4_ib_mcg_timeout_handler()
673 if (!list_empty(&group->pending_list)) in mlx4_ib_mcg_work_handler()
709 while (!list_empty(&group->pending_list) && group->state == MCAST_IDLE) { in mlx4_ib_mcg_work_handler()
738 if (!list_empty(&group->pending_list) && group->state == MCAST_IDLE) in mlx4_ib_mcg_work_handler()
790 if (!list_empty(&group->pending_list) && group->state != MCAST_IDLE) in search_relocate_mgid0_group()
1010 if (list_empty(&group->pending_list)) { in sysfs_show_group()
1172 if (!list_empty(&group->pending_list)) in clear_pending_reqs()
1193 if (!pend && (!list_empty(&group->func[vf].pending) || group->func[vf].num_pend_reqs)) { in clear_pending_reqs()
1195 list_empty(&group->func[vf].pending), group->func[vf].num_pend_reqs); in clear_pending_reqs()
[all …]
/linux-4.4.14/fs/jfs/
Djfs_logmgr.c594 if (list_empty(&log->cqueue)) in lmNextPage()
698 if ((!(log->cflag & logGC_PAGEOUT)) && (!list_empty(&log->cqueue)) && in lmGroupCommit()
904 if ((!list_empty(&log->cqueue)) && in lmPostGC()
969 if (list_empty(&log->synclist)) in lmLogSync()
1491 if (!list_empty(&log->sb_list)) in lmLogClose()
1545 if (!list_empty(&log->cqueue)) { in jfs_flush_journal()
1602 if ((!list_empty(&log->cqueue)) || !list_empty(&log->synclist)) { in jfs_flush_journal()
1606 if (list_empty(&log->cqueue) && in jfs_flush_journal()
1607 list_empty(&log->synclist)) in jfs_flush_journal()
1611 assert(list_empty(&log->cqueue)); in jfs_flush_journal()
[all …]
/linux-4.4.14/fs/ocfs2/cluster/
Dheartbeat.c174 if (list_empty(&o2hb_all_regions)) in o2hb_dead_threshold_set()
186 if (list_empty(&o2hb_all_regions)) { in o2hb_global_heartbeat_mode_set()
643 while (!list_empty(&o2hb_node_events) in o2hb_run_event_list()
644 && !list_empty(&queued_event->hn_item)) { in o2hb_run_event_list()
702 if (!list_empty(&slot->ds_live_item)) { in o2hb_shutdown_slot()
708 if (list_empty(&o2hb_live_slots[slot->ds_node_num])) { in o2hb_shutdown_slot()
804 if (list_empty(&slot->ds_live_item)) in o2hb_check_slot()
856 if (list_empty(&slot->ds_live_item) && in o2hb_check_slot()
864 if (list_empty(&o2hb_live_slots[slot->ds_node_num])) { in o2hb_check_slot()
901 if (list_empty(&slot->ds_live_item)) in o2hb_check_slot()
[all …]
/linux-4.4.14/net/tipc/
Dname_table.c394 if (list_empty(&info->zone_list)) { in tipc_nameseq_remove_publ()
500 if (!seq->first_free && list_empty(&seq->subscriptions)) { in tipc_nametbl_remove_publ()
550 if (!list_empty(&info->node_list)) { in tipc_nametbl_translate()
556 } else if (!list_empty(&info->cluster_list)) { in tipc_nametbl_translate()
573 if (list_empty(&info->node_list)) in tipc_nametbl_translate()
579 if (list_empty(&info->cluster_list)) in tipc_nametbl_translate()
756 if (!seq->first_free && list_empty(&seq->subscriptions)) { in tipc_nametbl_unsubscribe()
1050 if (likely(list_empty(&pl->list))) { in tipc_plist_pop()
/linux-4.4.14/drivers/block/
Dnbd.c146 if (list_empty(&nbd->queue_head)) in nbd_xmit_timeout()
476 while (!list_empty(&nbd->queue_head)) { in nbd_clear_que()
484 while (!list_empty(&nbd->waiting_queue)) { in nbd_clear_que()
554 while (!kthread_should_stop() || !list_empty(&nbd->waiting_queue)) { in nbd_thread_send()
558 !list_empty(&nbd->waiting_queue)); in nbd_thread_send()
572 if (list_empty(&nbd->waiting_queue)) in nbd_thread_send()
675 BUG_ON(!list_empty(&nbd->queue_head)); in __nbd_ioctl()
676 BUG_ON(!list_empty(&nbd->waiting_queue)); in __nbd_ioctl()
/linux-4.4.14/drivers/staging/gdm724x/
Dgdm_usb.c162 if (list_empty(&tx->free_list)) in get_tx_sdu_struct()
170 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_sdu_struct()
228 if (list_empty(&rx->free_list)) { in get_rx_struct()
238 *no_spc = list_empty(&rx->free_list) ? 1 : 0; in get_rx_struct()
404 if (list_empty(&rx->to_host_list)) { in do_rx()
614 if (list_empty(&tx->sdu_list)) { in packet_aggregation()
671 if (!list_empty(&tx->hci_list)) { in do_tx()
677 } else if (!list_empty(&tx->sdu_list)) { in do_tx()
/linux-4.4.14/drivers/dma-buf/
Dfence.c179 BUG_ON(!list_empty(&fence->cb_list)); in fence_release()
306 ret = !list_empty(&cb->node); in fence_remove_callback()
390 if (!list_empty(&cb.base.node)) in fence_default_wait()
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
Dkfd_process_queue_manager.c195 if (list_empty(&pqm->queues)) { in pqm_create_queue()
267 if (list_empty(&pqm->queues)) in pqm_create_queue()
326 if (list_empty(&pqm->queues)) in pqm_destroy_queue()
/linux-4.4.14/drivers/staging/most/hdm-i2c/
Dhdm_i2c.c170 while (!list_empty(&dev->rx.list)) { in poison_channel()
227 !list_empty(&dev->rx.list))) { in do_rx_work()
238 if (!list_empty(&dev->rx.list)) in do_rx_work()
/linux-4.4.14/sound/soc/intel/common/
Dsst-ipc.c46 if (!list_empty(&ipc->empty_list)) { in msg_get_empty()
168 if (list_empty(&ipc->tx_list) || ipc->pending) { in ipc_tx_msgs()
215 if (list_empty(&ipc->rx_list)) { in sst_ipc_reply_find_msg()
/linux-4.4.14/fs/ext4/
Dpage-io.c128 BUG_ON(!list_empty(&io_end->list)); in ext4_release_io_end()
193 if (list_empty(head)) in dump_completed_IO()
223 if (list_empty(&ei->i_rsv_conversion_list)) in ext4_add_complete_io()
243 while (!list_empty(&unwritten)) { in ext4_do_flush_completed_IO()
/linux-4.4.14/arch/um/drivers/
Dmconsole_kern.c62 while (!list_empty(&mc_requests)) { in mc_work_proc()
96 if (!list_empty(&mc_requests)) in mconsole_interrupt()
256 BUG_ON(!list_empty(&new->list)); in mconsole_register_dev()
324 if (list_empty(&unplugged_pages)) in mem_config()
562 if (list_empty(&clients)) in console_write()
/linux-4.4.14/kernel/time/
Dclocksource.c162 if (list_empty(&cs->wd_list)) in clocksource_mark_unstable()
283 if (watchdog_running || !watchdog || list_empty(&watchdog_list)) in clocksource_start_watchdog()
294 if (!watchdog_running || (watchdog && !list_empty(&watchdog_list))) in clocksource_stop_watchdog()
532 if (!finished_booting || list_empty(&clocksource_list)) in clocksource_find_best()
797 if (!list_empty(&cs->list)) in clocksource_unregister()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_cqm.c190 if (list_empty(&cqm_rmid_free_lru)) in __get_rmid()
713 if (list_empty(&cache_groups) && list_empty(&cqm_rmid_limbo_lru)) in __intel_cqm_rmid_rotate()
728 if (!nr_needed && list_empty(&cqm_rmid_limbo_lru)) in __intel_cqm_rmid_rotate()
924 return !list_empty(&event->hw.cqm_groups_entry); in cqm_group_leader()
1055 if (!list_empty(&event->hw.cqm_group_entry)) { in intel_cqm_event_destroy()
/linux-4.4.14/tools/firewire/
Dnosy-dump.c203 while (!list_empty(&t->request_list)) { in link_transaction_destroy()
208 while (!list_empty(&t->response_list)) { in link_transaction_destroy()
267 while (!list_empty(&pending_transaction_list)) { in clear_pending_transaction_list()
506 if (!list_empty(&t->request_list)) { in handle_request_packet()
568 if (list_empty(&t->request_list)) { in handle_response_packet()
575 if (!list_empty(&t->response_list)) { in handle_response_packet()
/linux-4.4.14/fs/f2fs/
Dextent_cache.c143 if (!list_empty(&en->list)) in __free_extent_tree()
148 if (free_all || list_empty(&en->list)) { in __free_extent_tree()
233 if (!list_empty(&en->list)) in f2fs_lookup_extent_tree()
494 if (!parts && !list_empty(&en->list)) in f2fs_update_extent_tree_range()
528 if (list_empty(&en1->list)) in f2fs_update_extent_tree_range()
533 if (den && !list_empty(&den->list)) in f2fs_update_extent_tree_range()

123456789