Home
last modified time | relevance | path

Searched refs:active_count (Results 1 – 20 of 20) sorted by relevance

/drivers/gpu/drm/i915/gt/
Dintel_gt_requests.c138 unsigned long active_count = 0; in intel_gt_retire_requests_timeout() local
145 active_count++; /* report busy to caller, try again? */ in intel_gt_retire_requests_timeout()
150 GEM_BUG_ON(!atomic_read(&tl->active_count)); in intel_gt_retire_requests_timeout()
151 atomic_inc(&tl->active_count); /* pin the list element */ in intel_gt_retire_requests_timeout()
168 active_count++; in intel_gt_retire_requests_timeout()
175 active_count++; in intel_gt_retire_requests_timeout()
182 if (atomic_dec_and_test(&tl->active_count)) in intel_gt_retire_requests_timeout()
187 GEM_BUG_ON(atomic_read(&tl->active_count)); in intel_gt_retire_requests_timeout()
197 active_count++; in intel_gt_retire_requests_timeout()
202 return active_count ? timeout ?: -ETIME : 0; in intel_gt_retire_requests_timeout()
Dintel_timeline.c255 if (atomic_add_unless(&tl->active_count, 1, 0)) in intel_timeline_enter()
259 if (!atomic_fetch_inc(&tl->active_count)) { in intel_timeline_enter()
279 GEM_BUG_ON(!atomic_read(&tl->active_count)); in intel_timeline_exit()
280 if (atomic_add_unless(&tl->active_count, -1, 1)) in intel_timeline_exit()
284 if (atomic_dec_and_test(&tl->active_count)) in intel_timeline_exit()
431 GEM_BUG_ON(!atomic_read(&tl->active_count)); in intel_gt_show_timelines()
432 atomic_inc(&tl->active_count); /* pin the list element */ in intel_gt_show_timelines()
472 if (atomic_dec_and_test(&tl->active_count)) in intel_gt_show_timelines()
477 GEM_BUG_ON(atomic_read(&tl->active_count)); in intel_gt_show_timelines()
Dintel_context.h160 if (!ce->active_count++) in intel_context_enter()
167 ++ce->active_count; in intel_context_mark_active()
173 GEM_BUG_ON(!ce->active_count); in intel_context_exit()
174 if (!--ce->active_count) in intel_context_exit()
Dintel_engine_pm.c146 if (!atomic_fetch_inc(&tl->active_count)) in __queue_and_release_pm()
205 GEM_BUG_ON(atomic_read(&ce->timeline->active_count) < 0); in switch_to_kernel_context()
Dintel_timeline_types.h44 atomic_t active_count; member
Dintel_context_types.h139 unsigned int active_count; /* protected by timeline->mutex */ member
Dintel_reset.c126 atomic_inc(&ctx->active_count); in mark_innocent()
/drivers/base/power/
Dwakeup.c138 deleted_ws.active_count += ws->active_count; in wakeup_source_record()
605 ws->active_count++; in wakeup_source_activate()
717 if (ws->relax_count != ws->active_count) { in wakeup_source_deactivate()
1140 unsigned long active_count; in print_wakeup_source_stats() local
1149 active_count = ws->active_count; in print_wakeup_source_stats()
1166 ws->name, active_count, ws->event_count, in print_wakeup_source_stats()
Dwakeup_stats.c33 wakeup_attr(active_count);
Dsysfs.c378 count = dev->power.wakeup->active_count; in wakeup_active_count_show()
/drivers/mtd/
Dmtdswap.c74 unsigned int active_count; member
506 unsigned int weight = eb->active_count; in mtdswap_store_eb()
596 d->curr_write->active_count++; in mtdswap_map_free_block()
634 eb->active_count--; in mtdswap_write_block()
646 eb->active_count--; in mtdswap_write_block()
669 eb->active_count--; in mtdswap_write_block()
723 eb->active_count--; in mtdswap_move_block()
1044 eb->active_count--; in mtdswap_writesect()
1155 eb->active_count--; in mtdswap_discard()
/drivers/gpu/drm/tegra/
Dsor.c464 u32 active_count; member
1076 unsigned int active_count; member
1086 u64 active_sym, active_count, frac, approx; in tegra_sor_compute_params() local
1092 active_count = div_u64(active_sym, f) * f; in tegra_sor_compute_params()
1093 frac = active_sym - active_count; in tegra_sor_compute_params()
1121 approx = active_count + (active_frac * (f - 1)) * f; in tegra_sor_compute_params()
1124 approx = active_count + f; in tegra_sor_compute_params()
1128 approx = active_count + div_u64(f, active_frac); in tegra_sor_compute_params()
1130 approx = active_count; in tegra_sor_compute_params()
1137 params->active_count = div_u64(active_count, f); in tegra_sor_compute_params()
[all …]
/drivers/gpu/drm/i915/gem/
Di915_gem_context_types.h324 atomic_t active_count; member
Di915_gem_context.c2263 args->batch_pending = atomic_read(&ctx->active_count); in i915_gem_context_reset_stats_ioctl()
/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp.h518 uint8_t active_count = 0; in get_active_display_count() local
523 active_count++; in get_active_display_count()
524 return active_count; in get_active_display_count()
/drivers/gpu/drm/msm/
Dmsm_gem.h104 int active_count; member
202 return msm_obj->active_count; in is_active()
Dmsm_gem.c702 if (msm_obj->active_count == 0) in msm_gem_madvise()
756 GEM_WARN_ON(msm_obj->active_count); in msm_gem_evict()
791 if (msm_obj->active_count++ == 0) { in msm_gem_active_get()
807 if (--msm_obj->active_count == 0) { in msm_gem_active_put()
818 if (msm_obj->active_count != 0) in update_inactive()
/drivers/net/ethernet/netronome/nfp/flower/
Dlag_conf.c281 int active_count = 0, slaves = 0; in nfp_fl_lag_do_work() local
347 acti_netdevs[active_count++] = iter_netdev; in nfp_fl_lag_do_work()
357 active_count, &batch); in nfp_fl_lag_do_work()
/drivers/dma/
Dbcm-sba-raid.c462 u32 pending_count = 0, active_count = 0, aborted_count = 0; in sba_write_stats_in_seqfile() local
477 active_count++; in sba_write_stats_in_seqfile()
488 seq_printf(file, "active requests = %d\n", active_count); in sba_write_stats_in_seqfile()
/drivers/gpu/drm/i915/
Di915_gpu_error.c1289 e->active = atomic_read(&ctx->active_count); in record_context()