/linux/drivers/gpu/drm/i915/gt/ |
A D | intel_context.h | 76 return ce; in intel_context_to_parent() 82 return intel_context_is_child(ce) || intel_context_is_parent(ce); in intel_context_is_parallel() 128 return ce->ops->cancel_request(ce, rq); in intel_context_cancel_request() 195 ce->ops->sched_disable(ce); in intel_context_unpin() 209 ce->ops->enter(ce); in intel_context_enter() 215 ++ce->active_count; in intel_context_mark_active() 223 ce->ops->exit(ce); in intel_context_exit() 229 return ce; in intel_context_get() 234 kref_put(&ce->ref, ce->ops->destroy); in intel_context_put() 317 if (ce->ops->ban) in intel_context_ban() [all …]
|
A D | intel_context.c | 26 struct intel_context *ce = container_of(rcu, typeof(*ce), rcu); in rcu_context_free() local 43 if (!ce) in intel_context_create() 48 return ce; in intel_context_create() 64 err = ce->ops->alloc(ce); in intel_context_alloc_state() 195 if (ce->state) in intel_context_post_unpin() 235 err = ce->ops->pre_pin(ce, ww, &vaddr); in __intel_context_do_pin_ww() 255 err = ce->ops->pin(ce, vaddr); in __intel_context_do_pin_ww() 263 ce->ring->head, ce->ring->tail); in __intel_context_do_pin_ww() 278 ce->ops->post_unpin(ce); in __intel_context_do_pin_ww() 318 ce->ops->unpin(ce); in __intel_context_do_unpin() [all …]
|
A D | intel_engine_pm.c | 24 if (ce->state) { in dbg_poison_ce() 46 struct intel_context *ce; in __engine_unpark() local 53 ce = engine->kernel_context; in __engine_unpark() 54 if (ce) { in __engine_unpark() 62 dbg_poison_ce(ce); in __engine_unpark() 65 ce->ops->reset(ce); in __engine_unpark() 68 ce->timeline->seqno, in __engine_unpark() 70 ce->ring->emit); in __engine_unpark() 324 struct intel_context *ce; in intel_engine_reset_pinned_contexts() local 332 dbg_poison_ce(ce); in intel_engine_reset_pinned_contexts() [all …]
|
A D | intel_lrc.c | 869 __lrc_init_regs(ce->lrc_reg_state, ce, engine, inhibit); in lrc_init_regs() 1011 ce->ring = ring; in lrc_alloc() 1012 ce->state = vma; in lrc_alloc() 1027 intel_ring_reset(ce->ring, ce->ring->emit); in lrc_reset() 1030 lrc_init_regs(ce, ce->engine, true); in lrc_reset() 1031 ce->lrc.lrca = lrc_update_regs(ce, ce->engine, ce->ring->tail); in lrc_reset() 1062 ce->lrc.lrca = lrc_update_regs(ce, engine, ce->ring->tail); in lrc_pin() 1079 if (!ce->state) in lrc_fini() 1088 struct intel_context *ce = container_of(kref, typeof(*ce), ref); in lrc_destroy() local 1093 lrc_fini(ce); in lrc_destroy() [all …]
|
A D | intel_breadcrumbs.c | 80 struct intel_context *ce) in add_signaling_context() argument 94 if (!list_empty(&ce->signals)) in remove_signaling_context() 107 if (rq->context != ce) in check_signal_order() 169 struct intel_context *ce; in signal_irq_work() local 230 intel_context_put(ce); in signal_irq_work() 363 intel_context_get(ce); in insert_breadcrumb() 365 pos = &ce->signals; in insert_breadcrumb() 421 spin_lock(&ce->signal_lock); in i915_request_enable_breadcrumb() 445 intel_context_put(ce); in i915_request_cancel_breadcrumb() 480 intel_context_put(ce); in intel_context_remove_breadcrumbs() [all …]
|
A D | intel_lrc.h | 32 int lrc_alloc(struct intel_context *ce, 34 void lrc_reset(struct intel_context *ce); 35 void lrc_fini(struct intel_context *ce); 39 lrc_pre_pin(struct intel_context *ce, 44 lrc_pin(struct intel_context *ce, 47 void lrc_unpin(struct intel_context *ce); 48 void lrc_post_unpin(struct intel_context *ce); 50 void lrc_init_state(struct intel_context *ce, 54 void lrc_init_regs(const struct intel_context *ce, 63 void lrc_update_offsets(struct intel_context *ce, [all …]
|
A D | selftest_mocs.c | 25 struct intel_context *ce; in mocs_context_create() local 28 if (IS_ERR(ce)) in mocs_context_create() 29 return ce; in mocs_context_create() 32 ce->ring_size = SZ_16K; in mocs_context_create() 34 return ce; in mocs_context_create() 306 if (IS_ERR(ce)) { in live_mocs_clean() 307 err = PTR_ERR(ce); in live_mocs_clean() 312 intel_context_put(ce); in live_mocs_clean() 417 if (IS_ERR(ce)) { in live_mocs_reset() 418 err = PTR_ERR(ce); in live_mocs_reset() [all …]
|
/linux/drivers/crypto/gemini/ |
A D | sl3516-ce-core.c | 33 ce->tx = dma_alloc_coherent(ce->dev, sz, &ce->dtx, GFP_KERNEL); in sl3516_ce_desc_init() 36 ce->rx = dma_alloc_coherent(ce->dev, sz, &ce->drx, GFP_KERNEL); in sl3516_ce_desc_init() 59 dma_free_coherent(ce->dev, sz, ce->rx, ce->drx); in sl3516_ce_desc_init() 61 dma_free_coherent(ce->dev, sz, ce->tx, ce->dtx); in sl3516_ce_desc_init() 69 dma_free_coherent(ce->dev, sz, ce->tx, ce->dtx); in sl3516_ce_free_descs() 70 dma_free_coherent(ce->dev, sz, ce->rx, ce->drx); in sl3516_ce_free_descs() 101 dd = &ce->tx[ce->ctx]; in get_desc_tx() 112 rdd = &ce->rx[ce->crx]; in get_desc_rx() 285 ce_algs[i].ce = ce; in sl3516_ce_register_algs() 423 ce->clks = devm_clk_get(ce->dev, NULL); in sl3516_ce_probe() [all …]
|
A D | sl3516-ce-rng.c | 15 struct sl3516_ce_dev *ce; in sl3516_ce_rng_read() local 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() 39 pm_runtime_put(ce->dev); in sl3516_ce_rng_read() 48 ce->trng.name = "SL3516 Crypto Engine RNG"; in sl3516_ce_rng_register() 49 ce->trng.read = sl3516_ce_rng_read; in sl3516_ce_rng_register() 50 ce->trng.quality = 700; in sl3516_ce_rng_register() 52 ret = hwrng_register(&ce->trng); in sl3516_ce_rng_register() [all …]
|
A D | sl3516-ce-cipher.c | 25 struct sl3516_ce_dev *ce = op->ce; in sl3516_ce_need_fallback() local 31 ce->fallback_mod16++; in sl3516_ce_need_fallback() 52 ce->fallback_mod16++; in sl3516_ce_need_fallback() 56 ce->fallback_mod16++; in sl3516_ce_need_fallback() 60 ce->fallback_align16++; in sl3516_ce_need_fallback() 68 ce->fallback_mod16++; in sl3516_ce_need_fallback() 72 ce->fallback_mod16++; in sl3516_ce_need_fallback() 76 ce->fallback_align16++; in sl3516_ce_need_fallback() 127 struct sl3516_ce_dev *ce = op->ce; in sl3516_ce_cipher() local 320 op->ce = algt->ce; in sl3516_ce_cipher_init() [all …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
A D | intel_guc_submission.c | 483 return ce; in __get_context() 661 enabled = context_enabled(ce) || context_blocked(ce); in __guc_add_request() 1322 ce = list_next_entry(ce, parallel.child_link); in __guc_reset_context() 2005 ret = deregister_context(ce, ce->guc_id.id); in guc_lrc_desc_pin() 2055 int ret = __guc_context_pin(ce, ce->engine, vaddr); in guc_context_pin() 2201 !lrc_desc_registered(ce_to_guc(ce), ce->guc_id.id) || in context_cant_unblock() 2379 GEM_BUG_ON(ce != __get_context(guc, ce->guc_id.id)); in guc_lrc_desc_unpin() 2397 deregister_context(ce, ce->guc_id.id); in guc_lrc_desc_unpin() 2508 return lrc_alloc(ce, ce->engine); in guc_context_alloc() 2726 !lrc_desc_registered(ce_to_guc(ce), ce->guc_id.id)) && in context_needs_register() [all …]
|
/linux/drivers/crypto/allwinner/sun8i-ce/ |
A D | sun8i-ce-core.c | 153 writel(ce->chanlist[flow].t_phy, ce->base + CE_TDQ); in sun8i_ce_run_task() 600 ce->hwrng_stat_req, ce->hwrng_stat_bytes); in sun8i_ce_debugfs_show() 627 ce->chanlist = devm_kcalloc(ce->dev, MAXFLOW, in sun8i_ce_allocate_chanlist() 635 ce->chanlist[i].engine = crypto_engine_alloc_init(ce->dev, true); in sun8i_ce_allocate_chanlist() 647 ce->chanlist[i].tl = dma_alloc_coherent(ce->dev, in sun8i_ce_allocate_chanlist() 736 ce->ceclks[i] = devm_clk_get(ce->dev, ce->variant->ce_clks[i].name); in sun8i_ce_get_clks() 753 err = clk_set_rate(ce->ceclks[i], ce->variant->ce_clks[i].freq); in sun8i_ce_get_clks() 774 ce_algs[i].ce = ce; in sun8i_ce_register_algs() 882 ce = devm_kzalloc(&pdev->dev, sizeof(*ce), GFP_KERNEL); in sun8i_ce_probe() 883 if (!ce) in sun8i_ce_probe() [all …]
|
A D | sun8i-ce-trng.c | 25 struct sun8i_ce_dev *ce; in sun8i_ce_trng_read() local 46 ce->hwrng_stat_req++; in sun8i_ce_trng_read() 47 ce->hwrng_stat_bytes += todo; in sun8i_ce_trng_read() 59 pm_runtime_put_noidle(ce->dev); in sun8i_ce_trng_read() 63 mutex_lock(&ce->rnglock); in sun8i_ce_trng_read() 64 chan = &ce->chanlist[flow]; in sun8i_ce_trng_read() 87 mutex_unlock(&ce->rnglock); in sun8i_ce_trng_read() 89 pm_runtime_put(ce->dev); in sun8i_ce_trng_read() 113 ce->trng.quality = 1000; in sun8i_ce_hwrng_register() 115 ret = hwrng_register(&ce->trng); in sun8i_ce_hwrng_register() [all …]
|
A D | sun8i-ce-prng.c | 61 struct sun8i_ce_dev *ce; in sun8i_ce_prng_generate() local 72 ce = algt->ce; in sun8i_ce_prng_generate() 75 dev_err(ce->dev, "not seeded\n"); in sun8i_ce_prng_generate() 111 err = pm_runtime_get_sync(ce->dev); in sun8i_ce_prng_generate() 113 pm_runtime_put_noidle(ce->dev); in sun8i_ce_prng_generate() 117 mutex_lock(&ce->rnglock); in sun8i_ce_prng_generate() 118 chan = &ce->chanlist[flow]; in sun8i_ce_prng_generate() 128 if (ce->variant->prng_t_dlen_in_bytes) in sun8i_ce_prng_generate() 142 ce->chanlist[flow].timeout = 2000; in sun8i_ce_prng_generate() 145 mutex_unlock(&ce->rnglock); in sun8i_ce_prng_generate() [all …]
|
/linux/drivers/of/ |
A D | dynamic.c | 470 kref_read(&ce->np->kobj.kref), ce->np); in __of_changeset_entry_destroy() 478 kfree(ce); in __of_changeset_entry_destroy() 489 ce->np, ce->prop->name); in __of_changeset_entry_dump() 557 ret = of_property_notify(ce->action, ce->np, ce->prop, ce->old_prop); in __of_changeset_entry_notify() 596 ret = __of_add_property(ce->np, ce->prop); in __of_changeset_entry_apply() 605 ret = __of_remove_property(ce->np, ce->prop); in __of_changeset_entry_apply() 649 __of_add_property_sysfs(ce->np, ce->prop); in __of_changeset_entry_apply() 652 __of_remove_property_sysfs(ce->np, ce->prop); in __of_changeset_entry_apply() 655 __of_update_property_sysfs(ce->np, ce->prop, ce->old_prop); in __of_changeset_entry_apply() 920 ce = kzalloc(sizeof(*ce), GFP_KERNEL); in of_changeset_action() [all …]
|
/linux/arch/arm64/crypto/ |
A D | Makefile | 9 sha1-ce-y := sha1-ce-glue.o sha1-ce-core.o 12 sha2-ce-y := sha2-ce-glue.o sha2-ce-core.o 15 sha512-ce-y := sha512-ce-glue.o sha512-ce-core.o 18 sha3-ce-y := sha3-ce-glue.o sha3-ce-core.o 21 sm3-ce-y := sm3-ce-glue.o sm3-ce-core.o 24 sm4-ce-y := sm4-ce-glue.o sm4-ce-core.o 27 ghash-ce-y := ghash-ce-glue.o ghash-ce-core.o 30 crct10dif-ce-y := crct10dif-ce-core.o crct10dif-ce-glue.o 33 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o 36 aes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o [all …]
|
/linux/drivers/base/power/ |
A D | clock_ops.c | 175 if (!ce->clk) in pm_clk_acquire() 176 ce->clk = clk_get(dev, ce->con_id); in pm_clk_acquire() 192 ce->clk, ce->con_id); in pm_clk_acquire() 204 ce = kzalloc(sizeof(*ce), GFP_KERNEL); in __pm_clk_add() 205 if (!ce) in __pm_clk_add() 211 kfree(ce); in __pm_clk_add() 216 kfree(ce); in __pm_clk_add() 219 ce->clk = clk; in __pm_clk_add() 356 if (!ce) in __pm_clk_remove() 375 kfree(ce->con_id); in __pm_clk_remove() [all …]
|
/linux/drivers/clocksource/ |
A D | timer-sun5i.c | 86 sun5i_clkevt_sync(ce); in sun5i_clkevt_time_stop() 129 sun5i_clkevt_time_setup(ce, 0, ce->timer.ticks_per_jiffy); in sun5i_clkevt_set_periodic() 151 ce->clkevt.event_handler(&ce->clkevt); in sun5i_timer_interrupt() 272 ce = kzalloc(sizeof(*ce), GFP_KERNEL); in sun5i_setup_clockevent() 273 if (!ce) in sun5i_setup_clockevent() 289 ce->timer.base = base; in sun5i_setup_clockevent() 291 ce->timer.clk = clk; in sun5i_setup_clockevent() 308 ce->clkevt.rating = 340; in sun5i_setup_clockevent() 309 ce->clkevt.irq = irq; in sun5i_setup_clockevent() 320 "sun5i_timer0", ce); in sun5i_setup_clockevent() [all …]
|
A D | mps2-timer.c | 83 struct clockevent_mps2 *ce = dev_id; in mps2_timer_interrupt() local 91 writel_relaxed(1, ce->reg + TIMER_INT); in mps2_timer_interrupt() 93 ce->clkevt.event_handler(&ce->clkevt); in mps2_timer_interrupt() 102 struct clockevent_mps2 *ce; in mps2_clockevent_init() local 139 ce = kzalloc(sizeof(*ce), GFP_KERNEL); in mps2_clockevent_init() 140 if (!ce) { in mps2_clockevent_init() 145 ce->reg = base; in mps2_clockevent_init() 147 ce->clkevt.irq = irq; in mps2_clockevent_init() 148 ce->clkevt.name = name; in mps2_clockevent_init() 149 ce->clkevt.rating = 200; in mps2_clockevent_init() [all …]
|
A D | timer-digicolor.c | 61 struct clock_event_device ce; member 69 return container_of(ce, struct digicolor_timer, ce); in dc_timer() 93 dc_timer_disable(ce); in digicolor_clkevt_shutdown() 99 dc_timer_disable(ce); in digicolor_clkevt_set_oneshot() 108 dc_timer_disable(ce); in digicolor_clkevt_set_periodic() 115 struct clock_event_device *ce) in digicolor_clkevt_next_event() argument 117 dc_timer_disable(ce); in digicolor_clkevt_next_event() 118 dc_timer_set_count(ce, evt); in digicolor_clkevt_next_event() 125 .ce = { 193 &dc_timer_dev.ce); in digicolor_timer_init() [all …]
|
A D | timer-rockchip.c | 43 struct clock_event_device ce; member 52 return &container_of(ce, struct rk_clkevt, ce)->timer; in rk_timer() 114 if (clockevent_state_oneshot(ce)) in rk_timer_interrupt() 117 ce->event_handler(ce); in rk_timer_interrupt() 207 struct clock_event_device *ce; in rk_clkevt_init() local 220 ce = &rk_clkevt->ce; in rk_clkevt_init() 221 ce->name = TIMER_NAME; in rk_clkevt_init() 227 ce->irq = rk_clkevt->timer.irq; in rk_clkevt_init() 228 ce->cpumask = cpu_possible_mask; in rk_clkevt_init() 229 ce->rating = 250; in rk_clkevt_init() [all …]
|
/linux/fs/cifs/ |
A D | dfs_cache.c | 286 ce->ttl, ce->etime.tv_nsec, ce->hdr_flags, ce->ref_flags, in dfscache_proc_show() 352 ce->path, in dump_ce() 355 ce->hdr_flags, ce->ref_flags, in dump_ce() 497 ce->etime = get_expire_time(ce->ttl); in copy_ref_data() 520 ce->tgthint = list_first_entry_or_null(&ce->tlist, in copy_ref_data() 533 if (!ce) in alloc_cache_entry() 548 return ce; in alloc_cache_entry() 614 dump_ce(ce); in add_cache_entry_locked() 654 return ce; in __lookup_cache_entry() 970 rc = setup_referral(path, ce, ref, get_tgt_name(ce)); in dfs_cache_find() [all …]
|
/linux/arch/sparc/kernel/ |
A D | time_32.c | 125 ce->name = "timer_ce"; in setup_timer_ce() 126 ce->rating = 100; in setup_timer_ce() 131 ce->cpumask = cpu_possible_mask; in setup_timer_ce() 132 ce->shift = 32; in setup_timer_ce() 135 clockevents_register_device(ce); in setup_timer_ce() 221 ce->rating = 200; in register_percpu_ce() 222 ce->features = features; in register_percpu_ce() 228 ce->shift = 32; in register_percpu_ce() 231 ce->max_delta_ns = clockevent_delta2ns(sparc_config.clock_rate, ce); in register_percpu_ce() 233 ce->min_delta_ns = clockevent_delta2ns(100, ce); in register_percpu_ce() [all …]
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_request.c | 623 if (IS_ERR(ce)) { in __cancel_inactive() 624 err = PTR_ERR(ce); in __cancel_inactive() 676 if (IS_ERR(ce)) { in __cancel_active() 737 if (IS_ERR(ce)) { in __cancel_completed() 2193 ce, ce->engine->kernel_context in measure_context_switch() 2681 ps->ce[idx++] = ce; in perf_series_engines() 2697 struct intel_context *ce = ps->ce[idx]; in perf_series_engines() local 2716 struct intel_context *ce = ps->ce[idx]; in perf_series_engines() local 2777 if (IS_ERR(ce)) in p_sync0() 2848 if (IS_ERR(ce)) in p_sync1() [all …]
|
/linux/arch/arm/crypto/ |
A D | Makefile | 19 obj-$(CONFIG_CRYPTO_AES_ARM_CE) += aes-arm-ce.o 20 obj-$(CONFIG_CRYPTO_SHA1_ARM_CE) += sha1-arm-ce.o 21 obj-$(CONFIG_CRYPTO_SHA2_ARM_CE) += sha2-arm-ce.o 22 obj-$(CONFIG_CRYPTO_GHASH_ARM_CE) += ghash-arm-ce.o 24 obj-$(CONFIG_CRYPTO_CRC32_ARM_CE) += crc32-arm-ce.o 36 sha1-arm-ce-y := sha1-ce-core.o sha1-ce-glue.o 37 sha2-arm-ce-y := sha2-ce-core.o sha2-ce-glue.o 38 aes-arm-ce-y := aes-ce-core.o aes-ce-glue.o 39 ghash-arm-ce-y := ghash-ce-core.o ghash-ce-glue.o 40 crct10dif-arm-ce-y := crct10dif-ce-core.o crct10dif-ce-glue.o [all …]
|