/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | intel_context.h | 22 #define CE_TRACE(ce, fmt, ...) do { \ 23 const struct intel_context *ce__ = (ce); \ 33 void intel_context_init(struct intel_context *ce, 35 void intel_context_fini(struct intel_context *ce); 43 int intel_context_alloc_state(struct intel_context *ce); 45 void intel_context_free(struct intel_context *ce); 47 int intel_context_reconfigure_sseu(struct intel_context *ce, 52 static inline bool intel_context_is_child(struct intel_context *ce) in intel_context_is_child() argument 54 return !!ce->parallel.parent; in intel_context_is_child() 57 static inline bool intel_context_is_parent(struct intel_context *ce) in intel_context_is_parent() argument 65 intel_context_to_parent(struct intel_context *ce) intel_context_to_parent() argument 83 intel_context_is_parallel(struct intel_context *ce) intel_context_is_parallel() argument 122 intel_context_is_pinned(struct intel_context *ce) intel_context_is_pinned() argument 127 intel_context_cancel_request(struct intel_context *ce, struct i915_request *rq) intel_context_cancel_request() argument 150 intel_context_pin_if_active(struct intel_context *ce) intel_context_pin_if_active() argument 155 intel_context_pin(struct intel_context *ce) intel_context_pin() argument 163 intel_context_pin_ww(struct intel_context *ce, struct i915_gem_ww_ctx *ww) intel_context_pin_ww() argument 172 __intel_context_pin(struct intel_context *ce) __intel_context_pin() argument 180 intel_context_sched_disable_unpin(struct intel_context *ce) intel_context_sched_disable_unpin() argument 185 intel_context_unpin(struct intel_context *ce) intel_context_unpin() argument 208 intel_context_enter(struct intel_context *ce) intel_context_enter() argument 218 intel_context_mark_active(struct intel_context *ce) intel_context_mark_active() argument 225 intel_context_exit(struct intel_context *ce) intel_context_exit() argument 236 intel_context_get(struct intel_context *ce) intel_context_get() argument 242 intel_context_put(struct intel_context *ce) intel_context_put() argument 280 intel_context_is_barrier(const struct intel_context *ce) intel_context_is_barrier() argument 285 intel_context_close(struct intel_context *ce) intel_context_close() argument 293 intel_context_is_closed(const struct intel_context *ce) intel_context_is_closed() argument 298 intel_context_has_inflight(const struct intel_context *ce) intel_context_has_inflight() argument 303 intel_context_use_semaphores(const struct intel_context *ce) intel_context_use_semaphores() argument 308 intel_context_set_use_semaphores(struct intel_context *ce) intel_context_set_use_semaphores() argument 313 intel_context_clear_use_semaphores(struct intel_context *ce) intel_context_clear_use_semaphores() argument 318 intel_context_is_banned(const struct intel_context *ce) intel_context_is_banned() argument 323 intel_context_set_banned(struct intel_context *ce) intel_context_set_banned() argument 330 intel_context_is_schedulable(const struct intel_context *ce) intel_context_is_schedulable() argument 336 intel_context_is_exiting(const struct intel_context *ce) intel_context_is_exiting() argument 341 intel_context_set_exiting(struct intel_context *ce) intel_context_set_exiting() argument 349 intel_context_force_single_submission(const struct intel_context *ce) intel_context_force_single_submission() argument 355 intel_context_set_single_submission(struct intel_context *ce) intel_context_set_single_submission() argument 361 intel_context_nopreempt(const struct intel_context *ce) intel_context_nopreempt() argument 367 intel_context_set_nopreempt(struct intel_context *ce) intel_context_set_nopreempt() argument 373 intel_context_clear_nopreempt(struct intel_context *ce) intel_context_clear_nopreempt() argument [all...] |
H A D | intel_context.c | 26 struct intel_context *ce = container_of(rcu, typeof(*ce), rcu); in rcu_context_free() local 28 trace_intel_context_free(ce); in rcu_context_free() 29 kmem_cache_free(slab_ce, ce); in rcu_context_free() 32 void intel_context_free(struct intel_context *ce) in intel_context_free() argument 34 call_rcu(&ce->rcu, rcu_context_free); in intel_context_free() 40 struct intel_context *ce; in intel_context_create() local 42 ce = intel_context_alloc(); in intel_context_create() 43 if (!ce) in intel_context_create() 46 intel_context_init(ce, engin in intel_context_create() 51 intel_context_alloc_state(struct intel_context *ce) intel_context_alloc_state() argument 76 intel_context_active_acquire(struct intel_context *ce) intel_context_active_acquire() argument 95 intel_context_active_release(struct intel_context *ce) intel_context_active_release() argument 162 intel_context_pre_pin(struct intel_context *ce, struct i915_gem_ww_ctx *ww) intel_context_pre_pin() argument 194 intel_context_post_unpin(struct intel_context *ce) intel_context_post_unpin() argument 203 __intel_context_do_pin_ww(struct intel_context *ce, struct i915_gem_ww_ctx *ww) __intel_context_do_pin_ww() argument 296 __intel_context_do_pin(struct intel_context *ce) __intel_context_do_pin() argument 313 __intel_context_do_unpin(struct intel_context *ce, int sub) __intel_context_do_unpin() argument 336 struct intel_context *ce = container_of(active, typeof(*ce), active); __intel_context_retire() local 349 struct intel_context *ce = container_of(active, typeof(*ce), active); __intel_context_active() local 376 intel_context_init(struct intel_context *ce, struct intel_engine_cs *engine) intel_context_init() argument 422 intel_context_fini(struct intel_context *ce) intel_context_fini() argument 454 intel_context_enter_engine(struct intel_context *ce) intel_context_enter_engine() argument 460 intel_context_exit_engine(struct intel_context *ce) intel_context_exit_engine() argument 466 intel_context_prepare_remote_request(struct intel_context *ce, struct i915_request *rq) intel_context_prepare_remote_request() argument 493 intel_context_create_request(struct intel_context *ce) intel_context_create_request() argument 531 intel_context_get_active_request(struct intel_context *ce) intel_context_get_active_request() argument 581 intel_context_get_total_runtime_ns(struct intel_context *ce) intel_context_get_total_runtime_ns() argument 599 intel_context_get_avg_runtime_ns(struct intel_context *ce) intel_context_get_avg_runtime_ns() argument 609 intel_context_ban(struct intel_context *ce, struct i915_request *rq) intel_context_ban() argument 622 intel_context_revoke(struct intel_context *ce) intel_context_revoke() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | intel_context.h | 21 #define CE_TRACE(ce, fmt, ...) do { \ 22 const struct intel_context *ce__ = (ce); \ 30 void intel_context_init(struct intel_context *ce, 32 void intel_context_fini(struct intel_context *ce); 37 int intel_context_alloc_state(struct intel_context *ce); 39 void intel_context_free(struct intel_context *ce); 41 int intel_context_reconfigure_sseu(struct intel_context *ce, 46 * @ce - the context 52 static inline int intel_context_lock_pinned(struct intel_context *ce) 53 __acquires(ce 68 intel_context_is_pinned(struct intel_context *ce) intel_context_is_pinned() argument 89 intel_context_pin_if_active(struct intel_context *ce) intel_context_pin_if_active() argument 94 intel_context_pin(struct intel_context *ce) intel_context_pin() argument 102 intel_context_pin_ww(struct intel_context *ce, struct i915_gem_ww_ctx *ww) intel_context_pin_ww() argument 111 __intel_context_pin(struct intel_context *ce) __intel_context_pin() argument 122 intel_context_enter(struct intel_context *ce) intel_context_enter() argument 129 intel_context_mark_active(struct intel_context *ce) intel_context_mark_active() argument 135 intel_context_exit(struct intel_context *ce) intel_context_exit() argument 143 intel_context_get(struct intel_context *ce) intel_context_get() argument 149 intel_context_put(struct intel_context *ce) intel_context_put() argument 184 intel_context_is_barrier(const struct intel_context *ce) intel_context_is_barrier() argument 189 intel_context_is_closed(const struct intel_context *ce) intel_context_is_closed() argument 194 intel_context_use_semaphores(const struct intel_context *ce) intel_context_use_semaphores() argument 199 intel_context_set_use_semaphores(struct intel_context *ce) intel_context_set_use_semaphores() argument 204 intel_context_clear_use_semaphores(struct intel_context *ce) intel_context_clear_use_semaphores() argument 209 intel_context_is_banned(const struct intel_context *ce) intel_context_is_banned() argument 214 intel_context_set_banned(struct intel_context *ce) intel_context_set_banned() argument 220 intel_context_force_single_submission(const struct intel_context *ce) intel_context_force_single_submission() argument 226 intel_context_set_single_submission(struct intel_context *ce) intel_context_set_single_submission() argument 232 intel_context_nopreempt(const struct intel_context *ce) intel_context_nopreempt() argument 238 intel_context_set_nopreempt(struct intel_context *ce) intel_context_set_nopreempt() argument 244 intel_context_clear_nopreempt(struct intel_context *ce) intel_context_clear_nopreempt() argument 249 intel_context_get_total_runtime_ns(struct intel_context *ce) intel_context_get_total_runtime_ns() argument 257 intel_context_get_avg_runtime_ns(struct intel_context *ce) intel_context_get_avg_runtime_ns() argument [all...] |
H A D | intel_context.c | 30 struct intel_context *ce = container_of(rcu, typeof(*ce), rcu); in rcu_context_free() local 32 kmem_cache_free(global.slab_ce, ce); in rcu_context_free() 35 void intel_context_free(struct intel_context *ce) in intel_context_free() argument 37 call_rcu(&ce->rcu, rcu_context_free); in intel_context_free() 43 struct intel_context *ce; in intel_context_create() local 45 ce = intel_context_alloc(); in intel_context_create() 46 if (!ce) in intel_context_create() 49 intel_context_init(ce, engine); in intel_context_create() 50 return ce; in intel_context_create() 53 intel_context_alloc_state(struct intel_context *ce) intel_context_alloc_state() argument 78 intel_context_active_acquire(struct intel_context *ce) intel_context_active_acquire() argument 96 intel_context_active_release(struct intel_context *ce) intel_context_active_release() argument 163 intel_context_pre_pin(struct intel_context *ce, struct i915_gem_ww_ctx *ww) intel_context_pre_pin() argument 195 intel_context_post_unpin(struct intel_context *ce) intel_context_post_unpin() argument 204 __intel_context_do_pin_ww(struct intel_context *ce, struct i915_gem_ww_ctx *ww) __intel_context_do_pin_ww() argument 293 __intel_context_do_pin(struct intel_context *ce) __intel_context_do_pin() argument 310 intel_context_unpin(struct intel_context *ce) intel_context_unpin() argument 333 struct intel_context *ce = container_of(active, typeof(*ce), active); __intel_context_retire() local 346 struct intel_context *ce = container_of(active, typeof(*ce), active); __intel_context_active() local 366 intel_context_init(struct intel_context *ce, struct intel_engine_cs *engine) intel_context_init() argument 392 intel_context_fini(struct intel_context *ce) intel_context_fini() argument 427 intel_context_enter_engine(struct intel_context *ce) intel_context_enter_engine() argument 433 intel_context_exit_engine(struct intel_context *ce) intel_context_exit_engine() argument 439 intel_context_prepare_remote_request(struct intel_context *ce, struct i915_request *rq) intel_context_prepare_remote_request() argument 466 intel_context_create_request(struct intel_context *ce) intel_context_create_request() argument [all...] |
H A D | intel_context_param.c | 11 int intel_context_set_ring_size(struct intel_context *ce, long sz) in intel_context_set_ring_size() argument 15 if (intel_context_lock_pinned(ce)) in intel_context_set_ring_size() 18 err = i915_active_wait(&ce->active); in intel_context_set_ring_size() 22 if (intel_context_is_pinned(ce)) { in intel_context_set_ring_size() 27 if (test_bit(CONTEXT_ALLOC_BIT, &ce->flags)) { in intel_context_set_ring_size() 31 ring = intel_engine_create_ring(ce->engine, sz); in intel_context_set_ring_size() 37 intel_ring_put(ce->ring); in intel_context_set_ring_size() 38 ce->ring = ring; in intel_context_set_ring_size() 42 ce->ring = __intel_context_ring_size(sz); in intel_context_set_ring_size() 46 intel_context_unlock_pinned(ce); in intel_context_set_ring_size() 50 intel_context_get_ring_size(struct intel_context *ce) intel_context_get_ring_size() argument [all...] |
/kernel/linux/linux-6.6/drivers/crypto/gemini/ |
H A D | sl3516-ce-core.c | 3 * sl3516-ce-core.c - hardware cryptographic offloader for Storlink SL3516 SoC 28 #include "sl3516-ce.h" 30 static int sl3516_ce_desc_init(struct sl3516_ce_dev *ce) in sl3516_ce_desc_init() argument 35 ce->tx = dma_alloc_coherent(ce->dev, sz, &ce->dtx, GFP_KERNEL); in sl3516_ce_desc_init() 36 if (!ce->tx) in sl3516_ce_desc_init() 38 ce->rx = dma_alloc_coherent(ce->dev, sz, &ce in sl3516_ce_desc_init() 67 sl3516_ce_free_descs(struct sl3516_ce_dev *ce) sl3516_ce_free_descs() argument 77 start_dma_tx(struct sl3516_ce_dev *ce) start_dma_tx() argument 87 start_dma_rx(struct sl3516_ce_dev *ce) start_dma_rx() argument 99 get_desc_tx(struct sl3516_ce_dev *ce) get_desc_tx() argument 110 get_desc_rx(struct sl3516_ce_dev *ce) get_desc_rx() argument 121 sl3516_ce_run_task(struct sl3516_ce_dev *ce, struct sl3516_ce_cipher_req_ctx *rctx, const char *name) sl3516_ce_run_task() argument 189 struct sl3516_ce_dev *ce = (struct sl3516_ce_dev *)data; ce_irq_handler() local 250 struct sl3516_ce_dev *ce = seq->private; sl3516_ce_debugfs_show() local 282 sl3516_ce_register_algs(struct sl3516_ce_dev *ce) sl3516_ce_register_algs() argument 309 sl3516_ce_unregister_algs(struct sl3516_ce_dev *ce) sl3516_ce_unregister_algs() argument 326 sl3516_ce_start(struct sl3516_ce_dev *ce) sl3516_ce_start() argument 341 struct sl3516_ce_dev *ce = dev_get_drvdata(dev); sl3516_ce_pm_suspend() local 350 struct sl3516_ce_dev *ce = dev_get_drvdata(dev); sl3516_ce_pm_resume() local 376 sl3516_ce_pm_init(struct sl3516_ce_dev *ce) sl3516_ce_pm_init() argument 390 sl3516_ce_pm_exit(struct sl3516_ce_dev *ce) sl3516_ce_pm_exit() argument 397 struct sl3516_ce_dev *ce; sl3516_ce_probe() local 510 struct sl3516_ce_dev *ce = platform_get_drvdata(pdev); sl3516_ce_remove() local [all...] |
H A D | sl3516-ce-rng.c | 3 * sl3516-ce-rng.c - hardware cryptographic offloader for SL3516 SoC. 9 #include "sl3516-ce.h" 15 struct sl3516_ce_dev *ce; in sl3516_ce_rng_read() local 20 ce = container_of(rng, struct sl3516_ce_dev, trng); in sl3516_ce_rng_read() 23 ce->hwrng_stat_req++; in sl3516_ce_rng_read() 24 ce->hwrng_stat_bytes += max; in sl3516_ce_rng_read() 27 err = pm_runtime_get_sync(ce->dev); in sl3516_ce_rng_read() 29 pm_runtime_put_noidle(ce->dev); in sl3516_ce_rng_read() 34 *data = readl(ce->base + IPSEC_RAND_NUM_REG); in sl3516_ce_rng_read() 39 pm_runtime_put(ce in sl3516_ce_rng_read() 44 sl3516_ce_rng_register(struct sl3516_ce_dev *ce) sl3516_ce_rng_register() argument 58 sl3516_ce_rng_unregister(struct sl3516_ce_dev *ce) sl3516_ce_rng_unregister() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_submission.c | 111 * ce->guc_state.lock 112 * Protects everything under ce->guc_state. Ensures that a context is in the 120 * sched_engine->lock -> ce->guc_state.lock 121 * guc->submission_state.lock -> ce->guc_state.lock 180 static inline void init_sched_state(struct intel_context *ce) in init_sched_state() argument 182 lockdep_assert_held(&ce->guc_state.lock); in init_sched_state() 183 ce->guc_state.sched_state &= SCHED_STATE_BLOCKED_MASK; in init_sched_state() 197 static bool sched_state_is_init(struct intel_context *ce) in sched_state_is_init() argument 199 return !(ce->guc_state.sched_state & ~SCHED_STATE_VALID_INIT); in sched_state_is_init() 203 context_wait_for_deregister_to_register(struct intel_context *ce) in context_wait_for_deregister_to_register() argument 210 set_context_wait_for_deregister_to_register(struct intel_context *ce) set_context_wait_for_deregister_to_register() argument 218 clr_context_wait_for_deregister_to_register(struct intel_context *ce) clr_context_wait_for_deregister_to_register() argument 226 context_destroyed(struct intel_context *ce) context_destroyed() argument 232 set_context_destroyed(struct intel_context *ce) set_context_destroyed() argument 238 context_pending_disable(struct intel_context *ce) context_pending_disable() argument 243 set_context_pending_disable(struct intel_context *ce) set_context_pending_disable() argument 249 clr_context_pending_disable(struct intel_context *ce) clr_context_pending_disable() argument 255 context_banned(struct intel_context *ce) context_banned() argument 260 set_context_banned(struct intel_context *ce) set_context_banned() argument 266 clr_context_banned(struct intel_context *ce) clr_context_banned() argument 272 context_enabled(struct intel_context *ce) context_enabled() argument 277 set_context_enabled(struct intel_context *ce) set_context_enabled() argument 283 clr_context_enabled(struct intel_context *ce) clr_context_enabled() argument 289 context_pending_enable(struct intel_context *ce) context_pending_enable() argument 294 set_context_pending_enable(struct intel_context *ce) set_context_pending_enable() argument 300 clr_context_pending_enable(struct intel_context *ce) clr_context_pending_enable() argument 306 context_registered(struct intel_context *ce) context_registered() argument 311 set_context_registered(struct intel_context *ce) set_context_registered() argument 317 clr_context_registered(struct intel_context *ce) clr_context_registered() argument 323 context_policy_required(struct intel_context *ce) context_policy_required() argument 328 set_context_policy_required(struct intel_context *ce) set_context_policy_required() argument 334 clr_context_policy_required(struct intel_context *ce) clr_context_policy_required() argument 340 context_close_done(struct intel_context *ce) context_close_done() argument 345 set_context_close_done(struct intel_context *ce) set_context_close_done() argument 351 context_blocked(struct intel_context *ce) context_blocked() argument 357 incr_context_blocked(struct intel_context *ce) incr_context_blocked() argument 366 decr_context_blocked(struct intel_context *ce) decr_context_blocked() argument 381 context_guc_id_invalid(struct intel_context *ce) context_guc_id_invalid() argument 386 set_context_guc_id_invalid(struct intel_context *ce) set_context_guc_id_invalid() argument 391 ce_to_guc(struct intel_context *ce) ce_to_guc() argument 441 __get_parent_scratch_offset(struct intel_context *ce) __get_parent_scratch_offset() argument 448 __get_wq_offset(struct intel_context *ce) __get_wq_offset() argument 456 __get_parent_scratch(struct intel_context *ce) __get_parent_scratch() argument 473 __get_process_desc_v69(struct intel_context *ce) __get_process_desc_v69() argument 481 __get_wq_desc_v70(struct intel_context *ce) __get_wq_desc_v70() argument 488 get_wq_pointer(struct intel_context *ce, u32 wqi_size) get_wq_pointer() argument 510 struct intel_context *ce = xa_load(&guc->context_lookup, id); __get_context() local 571 set_ctx_id_mapping(struct intel_guc *guc, u32 id, struct intel_context *ce) set_ctx_id_mapping() argument 685 struct intel_context *ce = request_to_scheduling_context(rq); __guc_add_request() local 800 wq_space_until_wrap(struct intel_context *ce) wq_space_until_wrap() argument 805 write_wqi(struct intel_context *ce, u32 wqi_size) write_wqi() argument 819 guc_wq_noop_append(struct intel_context *ce) guc_wq_noop_append() argument 838 struct intel_context *ce = request_to_scheduling_context(rq); __guc_wq_item_append() local 882 struct intel_context *ce = request_to_scheduling_context(rq); guc_wq_item_append() local 899 struct intel_context *ce = request_to_scheduling_context(rq); multi_lrc_submit() local 976 struct intel_context *ce = request_to_scheduling_context(last); guc_dequeue_one_context() local 1065 struct intel_context *ce; scrub_guc_desc_for_outstanding_g2h() local 1405 __guc_context_update_stats(struct intel_context *ce) __guc_context_update_stats() argument 1415 guc_context_update_stats(struct intel_context *ce) guc_context_update_stats() argument 1430 struct intel_context *ce; guc_timestamp_ping() local 1653 __context_to_physical_engine(struct intel_context *ce) __context_to_physical_engine() argument 1663 guc_reset_state(struct intel_context *ce, u32 head, bool scrub) guc_reset_state() argument 1710 __unwind_incomplete_requests(struct intel_context *ce) __unwind_incomplete_requests() argument 1745 __guc_reset_context(struct intel_context *ce, intel_engine_mask_t stalled) __guc_reset_context() argument 1803 struct intel_context *ce; intel_guc_submission_reset() local 1833 guc_cancel_context_requests(struct intel_context *ce) guc_cancel_context_requests() argument 1901 struct intel_context *ce; intel_guc_submission_cancel_requests() local 2042 struct intel_context *ce = request_to_scheduling_context(rq); need_tasklet() local 2066 new_guc_id(struct intel_guc *guc, struct intel_context *ce) new_guc_id() argument 2093 __release_guc_id(struct intel_guc *guc, struct intel_context *ce) __release_guc_id() argument 2115 release_guc_id(struct intel_guc *guc, struct intel_context *ce) release_guc_id() argument 2124 steal_guc_id(struct intel_guc *guc, struct intel_context *ce) steal_guc_id() argument 2161 assign_guc_id(struct intel_guc *guc, struct intel_context *ce) assign_guc_id() argument 2190 pin_guc_id(struct intel_guc *guc, struct intel_context *ce) pin_guc_id() argument 2240 unpin_guc_id(struct intel_guc *guc, struct intel_context *ce) unpin_guc_id() argument 2259 __guc_action_register_multi_lrc_v69(struct intel_guc *guc, struct intel_context *ce, u32 guc_id, u32 offset, bool loop) __guc_action_register_multi_lrc_v69() argument 2283 __guc_action_register_multi_lrc_v70(struct intel_guc *guc, struct intel_context *ce, struct guc_ctxt_registration_info *info, bool loop) __guc_action_register_multi_lrc_v70() argument 2369 register_context_v69(struct intel_guc *guc, struct intel_context *ce, bool loop) register_context_v69() argument 2385 register_context_v70(struct intel_guc *guc, struct intel_context *ce, bool loop) register_context_v70() argument 2397 register_context(struct intel_context *ce, bool loop) register_context() argument 2437 deregister_context(struct intel_context *ce, u32 guc_id) deregister_context() argument 2447 clear_children_join_go_memory(struct intel_context *ce) clear_children_join_go_memory() argument 2457 get_children_go_value(struct intel_context *ce) get_children_go_value() argument 2462 get_children_join_value(struct intel_context *ce, u8 child_index) get_children_join_value() argument 2515 guc_context_policy_init_v70(struct intel_context *ce, bool loop) guc_context_policy_init_v70() argument 2591 prepare_context_registration_info_v69(struct intel_context *ce) prepare_context_registration_info_v69() argument 2659 prepare_context_registration_info_v70(struct intel_context *ce, struct guc_ctxt_registration_info *info) prepare_context_registration_info_v70() argument 2722 try_context_registration(struct intel_context *ce, bool loop) try_context_registration() argument 2789 __guc_context_pre_pin(struct intel_context *ce, struct intel_engine_cs *engine, struct i915_gem_ww_ctx *ww, void **vaddr) __guc_context_pre_pin() argument 2797 __guc_context_pin(struct intel_context *ce, struct intel_engine_cs *engine, void *vaddr) __guc_context_pin() argument 2813 guc_context_pre_pin(struct intel_context *ce, struct i915_gem_ww_ctx *ww, void **vaddr) guc_context_pre_pin() argument 2820 guc_context_pin(struct intel_context *ce, void *vaddr) guc_context_pin() argument 2830 guc_context_unpin(struct intel_context *ce) guc_context_unpin() argument 2842 guc_context_post_unpin(struct intel_context *ce) guc_context_post_unpin() argument 2847 __guc_context_sched_enable(struct intel_guc *guc, struct intel_context *ce) __guc_context_sched_enable() argument 2862 __guc_context_sched_disable(struct intel_guc *guc, struct intel_context *ce, u16 guc_id) __guc_context_sched_disable() argument 2881 guc_blocked_fence_complete(struct intel_context *ce) guc_blocked_fence_complete() argument 2889 guc_blocked_fence_reinit(struct intel_context *ce) guc_blocked_fence_reinit() argument 2905 prep_context_pending_disable(struct intel_context *ce) prep_context_pending_disable() argument 2917 guc_context_block(struct intel_context *ce) guc_context_block() argument 2963 context_cant_unblock(struct intel_context *ce) context_cant_unblock() argument 2973 guc_context_unblock(struct intel_context *ce) guc_context_unblock() argument 3006 guc_context_cancel_request(struct intel_context *ce, struct i915_request *rq) guc_context_cancel_request() argument 3051 guc_context_revoke(struct intel_context *ce, struct i915_request *rq, unsigned int preempt_timeout_ms) guc_context_revoke() argument 3122 bypass_sched_disable(struct intel_guc *guc, struct intel_context *ce) bypass_sched_disable() argument 3139 struct intel_context *ce = __delay_sched_disable() local 3154 guc_id_pressure(struct intel_guc *guc, struct intel_context *ce) guc_id_pressure() argument 3170 guc_context_sched_disable(struct intel_context *ce) guc_context_sched_disable() argument 3192 guc_context_close(struct intel_context *ce) guc_context_close() argument 3205 guc_lrc_desc_unpin(struct intel_context *ce) guc_lrc_desc_unpin() argument 3235 __guc_context_destroy(struct intel_context *ce) __guc_context_destroy() argument 3260 struct intel_context *ce; guc_flush_destroyed_contexts() local 3285 struct intel_context *ce; deregister_destroyed_contexts() local 3317 struct intel_context *ce = container_of(kref, typeof(*ce), ref); guc_context_destroy() local 3352 guc_context_alloc(struct intel_context *ce) guc_context_alloc() argument 3357 __guc_context_set_prio(struct intel_guc *guc, struct intel_context *ce) __guc_context_set_prio() argument 3377 guc_context_set_prio(struct intel_guc *guc, struct intel_context *ce, u8 prio) guc_context_set_prio() argument 3409 add_context_inflight_prio(struct intel_context *ce, u8 guc_prio) add_context_inflight_prio() argument 3421 sub_context_inflight_prio(struct intel_context *ce, u8 guc_prio) sub_context_inflight_prio() argument 3433 update_context_prio(struct intel_context *ce) update_context_prio() argument 3459 struct intel_context *ce = request_to_scheduling_context(rq); add_to_context() local 3481 guc_prio_fini(struct i915_request *rq, struct intel_context *ce) guc_prio_fini() argument 3495 struct intel_context *ce = request_to_scheduling_context(rq); remove_from_context() local 3552 __guc_signal_context_fence(struct intel_context *ce) __guc_signal_context_fence() argument 3574 guc_signal_context_fence(struct intel_context *ce) guc_signal_context_fence() argument 3586 context_needs_register(struct intel_context *ce, bool new_guc_id) context_needs_register() argument 3593 guc_context_init(struct intel_context *ce) guc_context_init() argument 3614 struct intel_context *ce = request_to_scheduling_context(rq); guc_request_alloc() local 3724 guc_virtual_context_pre_pin(struct intel_context *ce, struct i915_gem_ww_ctx *ww, void **vaddr) guc_virtual_context_pre_pin() argument 3733 guc_virtual_context_pin(struct intel_context *ce, void *vaddr) guc_virtual_context_pin() argument 3746 guc_virtual_context_unpin(struct intel_context *ce) guc_virtual_context_unpin() argument 3762 guc_virtual_context_enter(struct intel_context *ce) guc_virtual_context_enter() argument 3773 guc_virtual_context_exit(struct intel_context *ce) guc_virtual_context_exit() argument 3784 guc_virtual_context_alloc(struct intel_context *ce) guc_virtual_context_alloc() argument 3817 guc_parent_context_pin(struct intel_context *ce, void *vaddr) guc_parent_context_pin() argument 3833 guc_child_context_pin(struct intel_context *ce, void *vaddr) guc_child_context_pin() argument 3844 guc_parent_context_unpin(struct intel_context *ce) guc_parent_context_unpin() argument 3857 guc_child_context_unpin(struct intel_context *ce) guc_child_context_unpin() argument 3867 guc_child_context_post_unpin(struct intel_context *ce) guc_child_context_post_unpin() argument 3879 struct intel_context *ce = container_of(kref, typeof(*ce), ref); guc_child_context_destroy() local 3957 struct intel_context *parent = NULL, *ce, *err; guc_create_parallel() local 4071 struct intel_context *ce = request_to_scheduling_context(rq); guc_bump_inflight_request_prio() local 4094 struct intel_context *ce = request_to_scheduling_context(rq); guc_retire_inflight_request_prio() local 4182 guc_kernel_context_pin(struct intel_guc *guc, struct intel_context *ce) guc_kernel_context_pin() argument 4235 struct intel_context *ce; guc_init_submission() local 4608 struct intel_context *ce; g2h_context_lookup() local 4633 struct intel_context *ce; intel_guc_deregister_done_process_msg() local 4684 struct intel_context *ce; intel_guc_sched_done_process_msg() local 4758 capture_error_state(struct intel_guc *guc, struct intel_context *ce) capture_error_state() argument 4797 guc_context_replay(struct intel_context *ce) guc_context_replay() argument 4805 guc_handle_context_reset(struct intel_guc *guc, struct intel_context *ce) guc_handle_context_reset() argument 4827 struct intel_context *ce; intel_guc_context_reset_process_msg() local 4969 struct intel_context *ce; intel_guc_find_hung_context() local 5031 struct intel_context *ce; intel_guc_dump_active_requests() local 5102 guc_log_context_priority(struct drm_printer *p, struct intel_context *ce) guc_log_context_priority() argument 5117 guc_log_context(struct drm_printer *p, struct intel_context *ce) guc_log_context() argument 5139 struct intel_context *ce; intel_guc_submission_print_context_info() local 5183 get_children_go_addr(struct intel_context *ce) get_children_go_addr() argument 5192 get_children_join_addr(struct intel_context *ce, u8 child_index) get_children_join_addr() argument 5210 struct intel_context *ce = rq->context; emit_bb_start_parent_no_preempt_mid_batch() local 5257 struct intel_context *ce = rq->context; emit_bb_start_child_no_preempt_mid_batch() local 5301 struct intel_context *ce = rq->context; __emit_fini_breadcrumb_parent_no_preempt_mid_batch() local 5351 struct intel_context *ce = rq->context; emit_fini_breadcrumb_parent_no_preempt_mid_batch() local 5395 struct intel_context *ce = rq->context; __emit_fini_breadcrumb_child_no_preempt_mid_batch() local 5427 struct intel_context *ce = rq->context; emit_fini_breadcrumb_child_no_preempt_mid_batch() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-core.c | 3 * sun8i-ce-core.c - hardware cryptographic offloader for 28 #include "sun8i-ce.h" 131 int sun8i_ce_get_engine_number(struct sun8i_ce_dev *ce) in sun8i_ce_get_engine_number() argument 133 return atomic_inc_return(&ce->flow) % (MAXFLOW - 1); in sun8i_ce_get_engine_number() 136 int sun8i_ce_run_task(struct sun8i_ce_dev *ce, int flow, const char *name) in sun8i_ce_run_task() argument 140 struct ce_task *cet = ce->chanlist[flow].tl; in sun8i_ce_run_task() 143 ce->chanlist[flow].stat_req++; in sun8i_ce_run_task() 146 mutex_lock(&ce->mlock); in sun8i_ce_run_task() 148 v = readl(ce->base + CE_ICR); in sun8i_ce_run_task() 150 writel(v, ce in sun8i_ce_run_task() 239 struct sun8i_ce_dev *ce = (struct sun8i_ce_dev *)data; ce_irq_handler() local 568 struct sun8i_ce_dev *ce = seq->private; sun8i_ce_debugfs_show() local 608 sun8i_ce_free_chanlist(struct sun8i_ce_dev *ce, int i) sun8i_ce_free_chanlist() argument 623 sun8i_ce_allocate_chanlist(struct sun8i_ce_dev *ce) sun8i_ce_allocate_chanlist() argument 670 struct sun8i_ce_dev *ce = dev_get_drvdata(dev); sun8i_ce_pm_suspend() local 681 struct sun8i_ce_dev *ce = dev_get_drvdata(dev); sun8i_ce_pm_resume() local 709 sun8i_ce_pm_init(struct sun8i_ce_dev *ce) sun8i_ce_pm_init() argument 723 sun8i_ce_pm_exit(struct sun8i_ce_dev *ce) sun8i_ce_pm_exit() argument 728 sun8i_ce_get_clks(struct sun8i_ce_dev *ce) sun8i_ce_get_clks() argument 768 sun8i_ce_register_algs(struct sun8i_ce_dev *ce) sun8i_ce_register_algs() argument 849 sun8i_ce_unregister_algs(struct sun8i_ce_dev *ce) sun8i_ce_unregister_algs() argument 878 struct sun8i_ce_dev *ce; sun8i_ce_probe() local 970 struct sun8i_ce_dev *ce = platform_get_drvdata(pdev); sun8i_ce_remove() local [all...] |
H A D | sun8i-ce-trng.c | 3 * sun8i-ce-trng.c - hardware cryptographic offloader for 12 #include "sun8i-ce.h" 25 struct sun8i_ce_dev *ce; in sun8i_ce_trng_read() local 35 ce = container_of(rng, struct sun8i_ce_dev, trng); in sun8i_ce_trng_read() 46 ce->hwrng_stat_req++; in sun8i_ce_trng_read() 47 ce->hwrng_stat_bytes += todo; in sun8i_ce_trng_read() 50 dma_dst = dma_map_single(ce->dev, d, todo, DMA_FROM_DEVICE); in sun8i_ce_trng_read() 51 if (dma_mapping_error(ce->dev, dma_dst)) { in sun8i_ce_trng_read() 52 dev_err(ce->dev, "Cannot DMA MAP DST\n"); in sun8i_ce_trng_read() 57 err = pm_runtime_get_sync(ce in sun8i_ce_trng_read() 104 sun8i_ce_hwrng_register(struct sun8i_ce_dev *ce) sun8i_ce_hwrng_register() argument 122 sun8i_ce_hwrng_unregister(struct sun8i_ce_dev *ce) sun8i_ce_hwrng_unregister() argument [all...] |
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | Makefile | 8 obj-$(CONFIG_CRYPTO_SHA1_ARM64_CE) += sha1-ce.o 9 sha1-ce-y := sha1-ce-glue.o sha1-ce-core.o 11 obj-$(CONFIG_CRYPTO_SHA2_ARM64_CE) += sha2-ce.o 12 sha2-ce-y := sha2-ce-glue.o sha2-ce-core.o 14 obj-$(CONFIG_CRYPTO_SHA512_ARM64_CE) += sha512-ce.o 15 sha512-ce [all...] |
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-core.c | 3 * sun8i-ce-core.c - hardware cryptographic offloader for 31 #include "sun8i-ce.h" 153 int sun8i_ce_get_engine_number(struct sun8i_ce_dev *ce) in sun8i_ce_get_engine_number() argument 155 return atomic_inc_return(&ce->flow) % (MAXFLOW - 1); in sun8i_ce_get_engine_number() 158 int sun8i_ce_run_task(struct sun8i_ce_dev *ce, int flow, const char *name) in sun8i_ce_run_task() argument 162 struct ce_task *cet = ce->chanlist[flow].tl; in sun8i_ce_run_task() 165 ce->chanlist[flow].stat_req++; in sun8i_ce_run_task() 168 mutex_lock(&ce->mlock); in sun8i_ce_run_task() 170 v = readl(ce->base + CE_ICR); in sun8i_ce_run_task() 172 writel(v, ce in sun8i_ce_run_task() 262 struct sun8i_ce_dev *ce = (struct sun8i_ce_dev *)data; ce_irq_handler() local 694 sun8i_ce_free_chanlist(struct sun8i_ce_dev *ce, int i) sun8i_ce_free_chanlist() argument 709 sun8i_ce_allocate_chanlist(struct sun8i_ce_dev *ce) sun8i_ce_allocate_chanlist() argument 768 struct sun8i_ce_dev *ce = dev_get_drvdata(dev); sun8i_ce_pm_suspend() local 779 struct sun8i_ce_dev *ce = dev_get_drvdata(dev); sun8i_ce_pm_resume() local 807 sun8i_ce_pm_init(struct sun8i_ce_dev *ce) sun8i_ce_pm_init() argument 821 sun8i_ce_pm_exit(struct sun8i_ce_dev *ce) sun8i_ce_pm_exit() argument 826 sun8i_ce_get_clks(struct sun8i_ce_dev *ce) sun8i_ce_get_clks() argument 866 sun8i_ce_register_algs(struct sun8i_ce_dev *ce) sun8i_ce_register_algs() argument 947 sun8i_ce_unregister_algs(struct sun8i_ce_dev *ce) sun8i_ce_unregister_algs() argument 976 struct sun8i_ce_dev *ce; sun8i_ce_probe() local 1076 struct sun8i_ce_dev *ce = platform_get_drvdata(pdev); sun8i_ce_remove() local [all...] |
H A D | sun8i-ce-trng.c | 3 * sun8i-ce-trng.c - hardware cryptographic offloader for 12 #include "sun8i-ce.h" 25 struct sun8i_ce_dev *ce; in sun8i_ce_trng_read() local 35 ce = container_of(rng, struct sun8i_ce_dev, trng); in sun8i_ce_trng_read() 46 ce->hwrng_stat_req++; in sun8i_ce_trng_read() 47 ce->hwrng_stat_bytes += todo; in sun8i_ce_trng_read() 50 dma_dst = dma_map_single(ce->dev, d, todo, DMA_FROM_DEVICE); in sun8i_ce_trng_read() 51 if (dma_mapping_error(ce->dev, dma_dst)) { in sun8i_ce_trng_read() 52 dev_err(ce->dev, "Cannot DMA MAP DST\n"); in sun8i_ce_trng_read() 57 err = pm_runtime_resume_and_get(ce in sun8i_ce_trng_read() 101 sun8i_ce_hwrng_register(struct sun8i_ce_dev *ce) sun8i_ce_hwrng_register() argument 118 sun8i_ce_hwrng_unregister(struct sun8i_ce_dev *ce) sun8i_ce_hwrng_unregister() argument [all...] |
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
H A D | Makefile | 8 obj-$(CONFIG_CRYPTO_SHA1_ARM64_CE) += sha1-ce.o 9 sha1-ce-y := sha1-ce-glue.o sha1-ce-core.o 11 obj-$(CONFIG_CRYPTO_SHA2_ARM64_CE) += sha2-ce.o 12 sha2-ce-y := sha2-ce-glue.o sha2-ce-core.o 14 obj-$(CONFIG_CRYPTO_SHA512_ARM64_CE) += sha512-ce.o 15 sha512-ce [all...] |
/kernel/linux/linux-5.10/drivers/of/ |
H A D | dynamic.c | 461 static void __of_changeset_entry_destroy(struct of_changeset_entry *ce) in __of_changeset_entry_destroy() argument 463 if (ce->action == OF_RECONFIG_ATTACH_NODE && in __of_changeset_entry_destroy() 464 of_node_check_flag(ce->np, OF_OVERLAY)) { in __of_changeset_entry_destroy() 465 if (kref_read(&ce->np->kobj.kref) > 1) { in __of_changeset_entry_destroy() 467 kref_read(&ce->np->kobj.kref), ce->np); in __of_changeset_entry_destroy() 469 of_node_set_flag(ce->np, OF_OVERLAY_FREE_CSET); in __of_changeset_entry_destroy() 473 of_node_put(ce->np); in __of_changeset_entry_destroy() 474 list_del(&ce->node); in __of_changeset_entry_destroy() 475 kfree(ce); in __of_changeset_entry_destroy() 479 __of_changeset_entry_dump(struct of_changeset_entry *ce) __of_changeset_entry_dump() argument 496 __of_changeset_entry_dump(struct of_changeset_entry *ce) __of_changeset_entry_dump() argument 502 __of_changeset_entry_invert(struct of_changeset_entry *ce, struct of_changeset_entry *rce) __of_changeset_entry_invert() argument 532 __of_changeset_entry_notify(struct of_changeset_entry *ce, bool revert) __of_changeset_entry_notify() argument 567 __of_changeset_entry_apply(struct of_changeset_entry *ce) __of_changeset_entry_apply() argument 644 __of_changeset_entry_revert(struct of_changeset_entry *ce) __of_changeset_entry_revert() argument 676 struct of_changeset_entry *ce, *cen; of_changeset_destroy() local 695 struct of_changeset_entry *ce; __of_changeset_apply_entries() local 724 struct of_changeset_entry *ce; __of_changeset_apply_notify() local 799 struct of_changeset_entry *ce; __of_changeset_revert_entries() local 825 struct of_changeset_entry *ce; __of_changeset_revert_notify() local 900 struct of_changeset_entry *ce; of_changeset_action() local [all...] |
/kernel/linux/linux-6.6/drivers/base/power/ |
H A D | clock_ops.c | 145 * @ce: PM clock entry corresponding to the clock. 147 static inline void __pm_clk_enable(struct device *dev, struct pm_clock_entry *ce) in __pm_clk_enable() argument 151 switch (ce->status) { in __pm_clk_enable() 153 ret = clk_prepare_enable(ce->clk); in __pm_clk_enable() 156 ret = clk_enable(ce->clk); in __pm_clk_enable() 162 ce->status = PCE_STATUS_ENABLED; in __pm_clk_enable() 165 __func__, ce->clk, ret); in __pm_clk_enable() 171 * @ce: PM clock entry corresponding to the clock. 173 static void pm_clk_acquire(struct device *dev, struct pm_clock_entry *ce) in pm_clk_acquire() argument 175 if (!ce in pm_clk_acquire() 199 struct pm_clock_entry *ce; __pm_clk_add() local 354 __pm_clk_remove(struct pm_clock_entry *ce) __pm_clk_remove() argument 390 struct pm_clock_entry *ce; pm_clk_remove() local 430 struct pm_clock_entry *ce; pm_clk_remove_clk() local 497 struct pm_clock_entry *ce, *c; pm_clk_destroy() local 546 struct pm_clock_entry *ce; pm_clk_suspend() local 584 struct pm_clock_entry *ce; pm_clk_resume() local [all...] |
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | dfs_cache.c | 104 static inline bool cache_entry_expired(const struct cache_entry *ce) in cache_entry_expired() argument 109 return timespec64_compare(&ts, &ce->etime) >= 0; in cache_entry_expired() 112 static inline void free_tgts(struct cache_entry *ce) in free_tgts() argument 116 list_for_each_entry_safe(t, n, &ce->tlist, list) { in free_tgts() 123 static inline void flush_cache_ent(struct cache_entry *ce) in flush_cache_ent() argument 125 hlist_del_init(&ce->hlist); in flush_cache_ent() 126 kfree(ce->path); in flush_cache_ent() 127 free_tgts(ce); in flush_cache_ent() 129 kmem_cache_free(cache_slab, ce); in flush_cache_ent() 139 struct cache_entry *ce; in flush_cache_ents() local 154 struct cache_entry *ce; dfscache_proc_show() local 225 dump_tgts(const struct cache_entry *ce) dump_tgts() argument 236 dump_ce(const struct cache_entry *ce) dump_ce() argument 333 get_tgt_name(const struct cache_entry *ce) get_tgt_name() argument 375 copy_ref_data(const struct dfs_info3_param *refs, int numrefs, struct cache_entry *ce, const char *tgthint) copy_ref_data() argument 414 struct cache_entry *ce; alloc_cache_entry() local 442 struct cache_entry *ce; remove_oldest_entry() local 471 struct cache_entry *ce; add_cache_entry() local 497 struct cache_entry *ce; __lookup_cache_entry() local 526 struct cache_entry *ce = ERR_PTR(-ENOENT); lookup_cache_entry() local 634 struct cache_entry *ce; __update_cache_entry() local 707 struct cache_entry *ce; __dfs_cache_find() local 779 setup_referral(const char *path, struct cache_entry *ce, struct dfs_info3_param *ref, const char *target) setup_referral() argument 812 get_targets(struct cache_entry *ce, struct dfs_cache_tgt_list *tl) get_targets() argument 884 struct cache_entry *ce; dfs_cache_find() local 938 struct cache_entry *ce; dfs_cache_noreq_find() local 993 struct cache_entry *ce; dfs_cache_update_tgthint() local 1055 struct cache_entry *ce; dfs_cache_noreq_update_tgthint() local 1113 struct cache_entry *ce; dfs_cache_get_tgt_referral() local 1475 struct cache_entry *ce; find_root_ses() local 1544 struct cache_entry *ce; refresh_tcon() local [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | dfs_cache.c | 108 static inline bool cache_entry_expired(const struct cache_entry *ce) in cache_entry_expired() argument 113 return timespec64_compare(&ts, &ce->etime) >= 0; in cache_entry_expired() 116 static inline void free_tgts(struct cache_entry *ce) in free_tgts() argument 120 list_for_each_entry_safe(t, n, &ce->tlist, list) { in free_tgts() 127 static inline void flush_cache_ent(struct cache_entry *ce) in flush_cache_ent() argument 129 hlist_del_init(&ce->hlist); in flush_cache_ent() 130 kfree(ce->path); in flush_cache_ent() 131 free_tgts(ce); in flush_cache_ent() 133 kmem_cache_free(cache_slab, ce); in flush_cache_ent() 143 struct cache_entry *ce; in flush_cache_ents() local 158 struct cache_entry *ce; dfscache_proc_show() local 226 dump_tgts(const struct cache_entry *ce) dump_tgts() argument 237 dump_ce(const struct cache_entry *ce) dump_ce() argument 340 get_tgt_name(const struct cache_entry *ce) get_tgt_name() argument 382 copy_ref_data(const struct dfs_info3_param *refs, int numrefs, struct cache_entry *ce, const char *tgthint) copy_ref_data() argument 422 struct cache_entry *ce; alloc_cache_entry() local 447 struct cache_entry *ce; remove_oldest_entry_locked() local 479 struct cache_entry *ce; add_cache_entry_locked() local 537 struct cache_entry *ce; __lookup_cache_entry() local 559 struct cache_entry *ce; lookup_cache_entry() local 620 update_cache_entry_locked(struct cache_entry *ce, const struct dfs_info3_param *refs, int numrefs) update_cache_entry_locked() argument 689 struct cache_entry *ce; cache_refresh_path() local 756 setup_referral(const char *path, struct cache_entry *ce, struct dfs_info3_param *ref, const char *target) setup_referral() argument 790 get_targets(struct cache_entry *ce, struct dfs_cache_tgt_list *tl) get_targets() argument 862 struct cache_entry *ce; dfs_cache_find() local 908 struct cache_entry *ce; dfs_cache_noreq_find() local 949 struct cache_entry *ce; dfs_cache_noreq_update_tgthint() local 994 struct cache_entry *ce; dfs_cache_get_tgt_referral() local 1182 struct cache_entry *ce; __refresh_tcon() local [all...] |
/kernel/linux/linux-5.10/drivers/base/power/ |
H A D | clock_ops.c | 40 * @ce: PM clock entry corresponding to the clock. 42 static inline void __pm_clk_enable(struct device *dev, struct pm_clock_entry *ce) in __pm_clk_enable() argument 46 if (ce->status < PCE_STATUS_ERROR) { in __pm_clk_enable() 47 ret = clk_enable(ce->clk); in __pm_clk_enable() 49 ce->status = PCE_STATUS_ENABLED; in __pm_clk_enable() 52 __func__, ce->clk, ret); in __pm_clk_enable() 59 * @ce: PM clock entry corresponding to the clock. 61 static void pm_clk_acquire(struct device *dev, struct pm_clock_entry *ce) in pm_clk_acquire() argument 63 if (!ce->clk) in pm_clk_acquire() 64 ce in pm_clk_acquire() 84 struct pm_clock_entry *ce; __pm_clk_add() local 237 __pm_clk_remove(struct pm_clock_entry *ce) __pm_clk_remove() argument 267 struct pm_clock_entry *ce; pm_clk_remove() local 305 struct pm_clock_entry *ce; pm_clk_remove_clk() local 367 struct pm_clock_entry *ce, *c; pm_clk_destroy() local 398 struct pm_clock_entry *ce; pm_clk_suspend() local 429 struct pm_clock_entry *ce; pm_clk_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | timer-digicolor.c | 61 struct clock_event_device ce; member 67 static struct digicolor_timer *dc_timer(struct clock_event_device *ce) in dc_timer() argument 69 return container_of(ce, struct digicolor_timer, ce); in dc_timer() 72 static inline void dc_timer_disable(struct clock_event_device *ce) in dc_timer_disable() argument 74 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_disable() 78 static inline void dc_timer_enable(struct clock_event_device *ce, u32 mode) in dc_timer_enable() argument 80 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_enable() 84 static inline void dc_timer_set_count(struct clock_event_device *ce, in dc_timer_set_count() argument 87 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_set_count() 91 digicolor_clkevt_shutdown(struct clock_event_device *ce) digicolor_clkevt_shutdown() argument 97 digicolor_clkevt_set_oneshot(struct clock_event_device *ce) digicolor_clkevt_set_oneshot() argument 104 digicolor_clkevt_set_periodic(struct clock_event_device *ce) digicolor_clkevt_set_periodic() argument 114 digicolor_clkevt_next_event(unsigned long evt, struct clock_event_device *ce) digicolor_clkevt_next_event() argument [all...] |
H A D | mps2-timer.c | 54 static int mps2_timer_shutdown(struct clock_event_device *ce) in mps2_timer_shutdown() argument 56 clockevent_mps2_writel(0, ce, TIMER_RELOAD); in mps2_timer_shutdown() 57 clockevent_mps2_writel(0, ce, TIMER_CTRL); in mps2_timer_shutdown() 62 static int mps2_timer_set_next_event(unsigned long next, struct clock_event_device *ce) in mps2_timer_set_next_event() argument 64 clockevent_mps2_writel(next, ce, TIMER_VALUE); in mps2_timer_set_next_event() 65 clockevent_mps2_writel(TIMER_CTRL_IE | TIMER_CTRL_ENABLE, ce, TIMER_CTRL); in mps2_timer_set_next_event() 70 static int mps2_timer_set_periodic(struct clock_event_device *ce) in mps2_timer_set_periodic() argument 72 u32 clock_count_per_tick = to_mps2_clkevt(ce)->clock_count_per_tick; in mps2_timer_set_periodic() 74 clockevent_mps2_writel(clock_count_per_tick, ce, TIMER_RELOAD); in mps2_timer_set_periodic() 75 clockevent_mps2_writel(clock_count_per_tick, ce, TIMER_VALU in mps2_timer_set_periodic() 83 struct clockevent_mps2 *ce = dev_id; mps2_timer_interrupt() local 102 struct clockevent_mps2 *ce; mps2_clockevent_init() local [all...] |
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-digicolor.c | 58 struct clock_event_device ce; member 64 static struct digicolor_timer *dc_timer(struct clock_event_device *ce) in dc_timer() argument 66 return container_of(ce, struct digicolor_timer, ce); in dc_timer() 69 static inline void dc_timer_disable(struct clock_event_device *ce) in dc_timer_disable() argument 71 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_disable() 75 static inline void dc_timer_enable(struct clock_event_device *ce, u32 mode) in dc_timer_enable() argument 77 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_enable() 81 static inline void dc_timer_set_count(struct clock_event_device *ce, in dc_timer_set_count() argument 84 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_set_count() 88 digicolor_clkevt_shutdown(struct clock_event_device *ce) digicolor_clkevt_shutdown() argument 94 digicolor_clkevt_set_oneshot(struct clock_event_device *ce) digicolor_clkevt_set_oneshot() argument 101 digicolor_clkevt_set_periodic(struct clock_event_device *ce) digicolor_clkevt_set_periodic() argument 111 digicolor_clkevt_next_event(unsigned long evt, struct clock_event_device *ce) digicolor_clkevt_next_event() argument [all...] |
H A D | timer-sun5i.c | 58 static void sun5i_clkevt_sync(struct sun5i_timer *ce) in sun5i_clkevt_sync() argument 60 u32 old = readl(ce->base + TIMER_CNTVAL_LO_REG(1)); in sun5i_clkevt_sync() 62 while ((old - readl(ce->base + TIMER_CNTVAL_LO_REG(1))) < TIMER_SYNC_TICKS) in sun5i_clkevt_sync() 66 static void sun5i_clkevt_time_stop(struct sun5i_timer *ce, u8 timer) in sun5i_clkevt_time_stop() argument 68 u32 val = readl(ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop() 69 writel(val & ~TIMER_CTL_ENABLE, ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop() 71 sun5i_clkevt_sync(ce); in sun5i_clkevt_time_stop() 74 static void sun5i_clkevt_time_setup(struct sun5i_timer *ce, u8 timer, u32 delay) in sun5i_clkevt_time_setup() argument 76 writel(delay, ce->base + TIMER_INTVAL_LO_REG(timer)); in sun5i_clkevt_time_setup() 79 static void sun5i_clkevt_time_start(struct sun5i_timer *ce, u argument 94 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); sun5i_clkevt_shutdown() local 102 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); sun5i_clkevt_set_oneshot() local 111 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); sun5i_clkevt_set_periodic() local 122 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); sun5i_clkevt_next_event() local 133 struct sun5i_timer *ce = dev_id; sun5i_timer_interrupt() local 202 struct sun5i_timer *ce = platform_get_drvdata(pdev); sun5i_setup_clockevent() local [all...] |
H A D | mps2-timer.c | 54 static int mps2_timer_shutdown(struct clock_event_device *ce) in mps2_timer_shutdown() argument 56 clockevent_mps2_writel(0, ce, TIMER_RELOAD); in mps2_timer_shutdown() 57 clockevent_mps2_writel(0, ce, TIMER_CTRL); in mps2_timer_shutdown() 62 static int mps2_timer_set_next_event(unsigned long next, struct clock_event_device *ce) in mps2_timer_set_next_event() argument 64 clockevent_mps2_writel(next, ce, TIMER_VALUE); in mps2_timer_set_next_event() 65 clockevent_mps2_writel(TIMER_CTRL_IE | TIMER_CTRL_ENABLE, ce, TIMER_CTRL); in mps2_timer_set_next_event() 70 static int mps2_timer_set_periodic(struct clock_event_device *ce) in mps2_timer_set_periodic() argument 72 u32 clock_count_per_tick = to_mps2_clkevt(ce)->clock_count_per_tick; in mps2_timer_set_periodic() 74 clockevent_mps2_writel(clock_count_per_tick, ce, TIMER_RELOAD); in mps2_timer_set_periodic() 75 clockevent_mps2_writel(clock_count_per_tick, ce, TIMER_VALU in mps2_timer_set_periodic() 83 struct clockevent_mps2 *ce = dev_id; mps2_timer_interrupt() local 102 struct clockevent_mps2 *ce; mps2_clockevent_init() local [all...] |
/kernel/linux/linux-6.6/drivers/of/ |
H A D | dynamic.c | 519 static void __of_changeset_entry_destroy(struct of_changeset_entry *ce) in __of_changeset_entry_destroy() argument 521 if (ce->action == OF_RECONFIG_ATTACH_NODE && in __of_changeset_entry_destroy() 522 of_node_check_flag(ce->np, OF_OVERLAY)) { in __of_changeset_entry_destroy() 523 if (kref_read(&ce->np->kobj.kref) > 1) { in __of_changeset_entry_destroy() 525 kref_read(&ce->np->kobj.kref), ce->np); in __of_changeset_entry_destroy() 527 of_node_set_flag(ce->np, OF_OVERLAY_FREE_CSET); in __of_changeset_entry_destroy() 531 of_node_put(ce->np); in __of_changeset_entry_destroy() 532 list_del(&ce->node); in __of_changeset_entry_destroy() 533 kfree(ce); in __of_changeset_entry_destroy() 536 __of_changeset_entry_invert(struct of_changeset_entry *ce, struct of_changeset_entry *rce) __of_changeset_entry_invert() argument 566 __of_changeset_entry_notify(struct of_changeset_entry *ce, bool revert) __of_changeset_entry_notify() argument 601 __of_changeset_entry_apply(struct of_changeset_entry *ce) __of_changeset_entry_apply() argument 636 __of_changeset_entry_revert(struct of_changeset_entry *ce) __of_changeset_entry_revert() argument 668 struct of_changeset_entry *ce, *cen; of_changeset_destroy() local 687 struct of_changeset_entry *ce; __of_changeset_apply_entries() local 716 struct of_changeset_entry *ce; __of_changeset_apply_notify() local 791 struct of_changeset_entry *ce; __of_changeset_revert_entries() local 817 struct of_changeset_entry *ce; __of_changeset_revert_notify() local 892 struct of_changeset_entry *ce; of_changeset_action() local [all...] |