Home
last modified time | relevance | path

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

12345678910>>...41

/drivers/staging/lustre/lustre/libcfs/
Dworkitem.c110 if (!list_empty(&sched->ws_runq)) { in cfs_wi_sched_cansleep()
133 LASSERT(!list_empty(&wi->wi_list)); in cfs_wi_exit()
140 LASSERT(list_empty(&wi->wi_list)); in cfs_wi_exit()
170 LASSERT(!list_empty(&wi->wi_list)); in cfs_wi_deschedule()
179 LASSERT (list_empty(&wi->wi_list)); in cfs_wi_deschedule()
202 LASSERT (list_empty(&wi->wi_list)); in cfs_wi_schedule()
214 LASSERT (!list_empty(&wi->wi_list)); in cfs_wi_schedule()
247 while (!list_empty(&sched->ws_runq) && in cfs_wi_scheduler()
272 if (list_empty(&wi->wi_list)) in cfs_wi_scheduler()
281 if (!list_empty(&sched->ws_runq)) { in cfs_wi_scheduler()
[all …]
/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()
195 if (ext->oe_nr_pages > 0 || !list_empty(&ext->oe_pages)) in osc_extent_sanity_check0()
345 LASSERT(list_empty(&ext->oe_link)); in osc_extent_put()
468 LASSERT(list_empty(&ext->oe_pages)); in __osc_extent_remove()
945 LASSERT(list_empty(&oap->oap_rpc_item)); in osc_extent_truncate()
1177 return !list_empty(&osc->oo_ready_item) || in osc_is_ready()
1178 !list_empty(&osc->oo_hp_ready_item); in osc_is_ready()
1268 LASSERT(!list_empty(&opg->ops_inflight)); in osc_completion()
1471 rc = list_empty(&ocw->ocw_entry); in ocw_granted()
1536 LASSERT(list_empty(&ocw.ocw_entry)); in osc_enter_cache()
[all …]
/drivers/gpu/drm/i915/
Di915_gem_evict.c42 if (WARN_ON(!list_empty(&vma->exec_list))) in mark_free()
130 while (!list_empty(&unwind_list)) { in i915_gem_evict_something()
167 while (!list_empty(&unwind_list)) { in i915_gem_evict_something()
180 while (!list_empty(&eviction_list)) { in i915_gem_evict_something()
251 lists_empty = (list_empty(&vm->inactive_list) && in i915_gem_evict_everything()
252 list_empty(&vm->active_list)); in i915_gem_evict_everything()
Di915_gem_debug.c57 } else if (obj->base.write_domain && list_empty(&obj->gpu_write_list)) { in i915_verify_lists()
61 !list_empty(&obj->gpu_write_list)); in i915_verify_lists()
74 list_empty(&obj->gpu_write_list)) { in i915_verify_lists()
79 !list_empty(&obj->gpu_write_list)); in i915_verify_lists()
/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 …]
/drivers/usb/gadget/legacy/
Dprinter.c355 if (likely(list_empty(&dev->tx_reqs_active))) in tx_complete()
414 while (likely(!list_empty(&dev->rx_reqs))) { in setup_rx_reqs()
440 else if (list_empty(&req->list)) { in setup_rx_reqs()
491 (likely(list_empty(&dev->rx_buffers)))) { in printer_read()
506 (likely(!list_empty(&dev->rx_buffers)))); in printer_read()
511 while ((current_rx_bytes || likely(!list_empty(&dev->rx_buffers))) in printer_read()
603 if (likely(list_empty(&dev->tx_reqs))) { in printer_write()
618 (likely(!list_empty(&dev->tx_reqs)))); in printer_write()
622 while (likely(!list_empty(&dev->tx_reqs)) && len) { in printer_write()
702 tx_list_empty = (likely(list_empty(&dev->tx_reqs))); in printer_fsync()
[all …]
/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()
/drivers/staging/lustre/lnet/selftest/
Dconsole.c129 LASSERT (!list_empty(&ndl->ndl_link)); in lstcon_node_put()
130 LASSERT (!list_empty(&ndl->ndl_hlink)); in lstcon_node_put()
187 LASSERT (list_empty(&ndl->ndl_link)); in lstcon_ndlink_release()
188 LASSERT (!list_empty(&ndl->ndl_hlink)); in lstcon_ndlink_release()
251 if (!list_empty(&grp->grp_link)) in lstcon_group_decref()
257 LASSERT (list_empty(&grp->grp_ndl_hash[i])); in lstcon_group_decref()
297 if (!list_empty(&(*ndlpp)->ndl_link)) in lstcon_group_ndlink_find()
337 while (!list_empty(&old->grp_ndl_list)) { in lstcon_group_move()
646 if (list_empty(&grp->grp_ndl_list)) in lstcon_group_clean()
676 if (list_empty(&grp->grp_ndl_list)) in lstcon_nodes_remove()
[all …]
Dtimer.c80 LASSERT(list_empty(&timer->stt_list)); in stt_add_timer()
114 if (!list_empty(&timer->stt_list)) { in stt_del_timer()
130 while (!list_empty(slot)) { in stt_expire_list()
238 LASSERT(list_empty(&stt_data.stt_hash[i])); in stt_shutdown()
/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()
100 LASSERT(list_empty(&lli->lli_close_list)); in ll_queue_done_writing()
146 if (!(list_empty(&club->cob_pending_list))) { in ll_ioepoch_close()
198 LASSERT(list_empty(&club->cob_pending_list)); in ll_ioepoch_close()
322 if (!list_empty(&lcq->lcq_head)) { in ll_close_next_lli()
/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()
440 if (list_empty (&peer->ksnp_routes) && in ksocknal_del_route_locked()
441 list_empty (&peer->ksnp_conns)) { in ksocknal_del_route_locked()
603 !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()
732 if (list_empty(&conn->ksnc_tx_queue) && bufnob == 0) { in ksocknal_queue_tx_locked()
1383 list_empty(&sched->kss_rx_conns) && in ksocknal_sched_cansleep()
1384 list_empty(&sched->kss_tx_conns)); in ksocknal_sched_cansleep()
1418 if (!list_empty (&sched->kss_rx_conns)) { in ksocknal_scheduler()
1462 if (!list_empty (&sched->kss_tx_conns)) { in ksocknal_scheduler()
1465 if (!list_empty(&sched->kss_zombie_noop_txs)) { in ksocknal_scheduler()
1477 LASSERT(!list_empty(&conn->ksnc_tx_queue)); in ksocknal_scheduler()
1495 if (!list_empty(&zlist)) { in ksocknal_scheduler()
[all …]
/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()
/drivers/staging/lustre/lustre/ptlrpc/
Dpinger.c390 if (!list_empty(&imp->imp_pinger_chain)) in ptlrpc_pinger_add_import()
412 if (list_empty(&imp->imp_pinger_chain)) in ptlrpc_pinger_del_import()
506 if (list_empty(obd_list)) in ptlrpc_del_timeout_client()
521 if (list_empty(&ti->ti_obd_list)) { in ptlrpc_del_timeout_client()
536 LASSERT(list_empty(&item->ti_obd_list)); in ptlrpc_pinger_remove_timeouts()
572 if (list_empty(&obd->obd_evict_list)) { in ping_evictor_wake()
594 l_wait_event(pet_waitq, (!list_empty(&pet_list)) || in ping_evictor_main()
598 if ((pet_state == PET_TERMINATE) && list_empty(&pet_list)) in ping_evictor_main()
619 while (!list_empty(&obd->obd_exports_timed)) { in ping_evictor_main()
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()
106 LASSERT(list_empty(&ctx->cc_gc_chain)); in sptlrpc_gc_add_ctx()
125 while (!list_empty(&sec_gc_ctx_list)) { in sec_process_ctx_list()
/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()
554 if ((!src_q->streaming || list_empty(&src_q->queued_list)) in v4l2_m2m_poll()
555 && (!dst_q->streaming || list_empty(&dst_q->queued_list))) { in v4l2_m2m_poll()
565 if (list_empty(&src_q->done_list)) in v4l2_m2m_poll()
567 if (list_empty(&dst_q->done_list)) in v4l2_m2m_poll()
580 if (!list_empty(&src_q->done_list)) in v4l2_m2m_poll()
[all …]
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c380 LASSERT (list_empty(&peer->ibp_conns)); in kiblnd_destroy_peer()
381 LASSERT (list_empty(&peer->ibp_tx_queue)); in kiblnd_destroy_peer()
407 !list_empty(&peer->ibp_conns)); /* active conn */ in kiblnd_find_peer_locked()
424 LASSERT (list_empty(&peer->ibp_conns)); in kiblnd_unlink_peer_locked()
450 !list_empty(&peer->ibp_conns)); in kiblnd_get_peer_info()
478 if (list_empty(&peer->ibp_conns)) { in kiblnd_del_peer_locked()
519 !list_empty(&peer->ibp_conns)); in kiblnd_del_peer()
527 if (!list_empty(&peer->ibp_tx_queue)) { in kiblnd_del_peer()
528 LASSERT (list_empty(&peer->ibp_conns)); in kiblnd_del_peer()
564 !list_empty(&peer->ibp_conns)); in kiblnd_get_conn_by_idx()
[all …]
/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 …]
/drivers/dma/
Dsirf-dma.c178 if (!list_empty(&schan->queued)) in sirfsoc_dma_irq()
209 if (!list_empty(&schan->completed)) { in sirfsoc_dma_process_completed()
448 BUG_ON(!list_empty(&schan->prepared)); in sirfsoc_dma_free_chan_resources()
449 BUG_ON(!list_empty(&schan->queued)); in sirfsoc_dma_free_chan_resources()
450 BUG_ON(!list_empty(&schan->active)); in sirfsoc_dma_free_chan_resources()
451 BUG_ON(!list_empty(&schan->completed)); in sirfsoc_dma_free_chan_resources()
473 if (list_empty(&schan->active) && !list_empty(&schan->queued)) in sirfsoc_dma_issue_pending()
529 if (!list_empty(&schan->free)) { in sirfsoc_dma_prep_interleaved()
605 if (!list_empty(&schan->free)) { in sirfsoc_dma_prep_cyclic()
863 if (list_empty(&schan->active)) in sirfsoc_dma_pm_suspend()
[all …]
Dtimb_dma.c239 if (list_empty(&td_chan->active_list)) in __td_finish()
296 BUG_ON(list_empty(&td_chan->queue)); in __td_start_next()
320 if (list_empty(&td_chan->active_list)) { in td_tx_submit()
428 BUG_ON(!list_empty(&td_chan->free_list)); in td_alloc_chan_resources()
461 BUG_ON(!list_empty(&td_chan->active_list)); in td_free_chan_resources()
462 BUG_ON(!list_empty(&td_chan->queue)); in td_free_chan_resources()
497 if (!list_empty(&td_chan->active_list)) in td_issue_pending()
502 if (list_empty(&td_chan->active_list) && !list_empty(&td_chan->queue)) in td_issue_pending()
608 if (!list_empty(&td_chan->queue)) in td_tasklet()
/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()
/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()

12345678910>>...41