Home
last modified time | relevance | path

Searched refs:ctx (Results 51 – 75 of 3711) sorted by relevance

12345678910>>...149

/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos5433_drm_decon.c105 struct decon_context *ctx = crtc->ctx; in decon_enable_vblank() local
125 struct decon_context *ctx = crtc->ctx; in decon_disable_vblank() local
198 struct decon_context *ctx = crtc->ctx; in decon_commit() local
391 struct decon_context *ctx = crtc->ctx; in decon_atomic_begin() local
405 struct decon_context *ctx = crtc->ctx; in decon_update_plane() local
460 struct decon_context *ctx = crtc->ctx; in decon_disable_plane() local
468 struct decon_context *ctx = crtc->ctx; in decon_atomic_flush() local
517 struct decon_context *ctx = crtc->ctx; in decon_atomic_enable() local
535 struct decon_context *ctx = crtc->ctx; in decon_atomic_disable() local
597 ctx->irq = crtc->i80_mode ? ctx->irq_lcd_sys : ctx->irq_vsync; in decon_mode_valid()
[all …]
H A Dexynos_drm_fimd.c263 struct fimd_context *ctx = crtc->ctx; in fimd_enable_vblank() local
295 struct fimd_context *ctx = crtc->ctx; in fimd_disable_vblank() local
319 struct fimd_context *ctx = crtc->ctx; in fimd_wait_for_vblank() local
365 struct fimd_context *ctx = crtc->ctx; in fimd_clear_channels() local
418 struct fimd_context *ctx = crtc->ctx; in fimd_atomic_check() local
480 struct fimd_context *ctx = crtc->ctx; in fimd_commit() local
805 struct fimd_context *ctx = crtc->ctx; in fimd_atomic_begin() local
817 struct fimd_context *ctx = crtc->ctx; in fimd_atomic_flush() local
834 struct fimd_context *ctx = crtc->ctx; in fimd_update_plane() local
1135 ctx->crtc->pipe_clk = &ctx->dp_clk; in fimd_bind()
[all …]
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_opr_v5.c48 memset(ctx->dsc.virt, 0, ctx->dsc.size); in s5p_mfc_alloc_dec_temp_buffers_v5()
71 ctx->luma_size, ctx->chroma_size, ctx->mv_size); in s5p_mfc_alloc_codec_buffers_v5()
105 ctx->bank2.size = ctx->total_dpb_count * ctx->mv_size; in s5p_mfc_alloc_codec_buffers_v5()
208 ctx->ctx.size = buf_size->h264_ctx; in s5p_mfc_alloc_instance_buffer_v5()
217 ctx->ctx.ofs = OFFSETA(ctx->ctx.dma); in s5p_mfc_alloc_instance_buffer_v5()
220 memset(ctx->ctx.virt, 0, ctx->ctx.size); in s5p_mfc_alloc_instance_buffer_v5()
244 s5p_mfc_release_priv_buf(ctx->dev, &ctx->ctx); in s5p_mfc_release_instance_buffer_v5()
282 ctx->img_width, ctx->img_height, ctx->buf_width, in s5p_mfc_dec_calc_dpb_size_v5()
286 ctx->luma_size = ALIGN(ctx->buf_width * ctx->buf_height, in s5p_mfc_dec_calc_dpb_size_v5()
292 ctx->mv_size = ALIGN(ctx->buf_width * in s5p_mfc_dec_calc_dpb_size_v5()
[all …]
/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A Dfile.c222 local_store = ctx->ops->get_ls(ctx); in spufs_mem_write()
402 *val = ctx->ops->status_read(ctx); in spufs_cntl_get()
1483 *status = ctx->ops->read_mfc_tagstatus(ctx) & ctx->tagwait; in spufs_read_mfc_tagstatus()
1490 ctx->ops->set_mfc_query(ctx, ctx->tagwait, 1); in spufs_read_mfc_tagstatus()
1610 ctx->ops->set_mfc_query(ctx, ctx->tagwait, 1); in spu_send_mfc_command()
1683 ctx->ops->set_mfc_query(ctx, ctx->tagwait, 2); in spufs_mfc_poll()
1711 ctx->ops->set_mfc_query(ctx, ctx->tagwait, 2)); in spufs_mfc_flush()
1715 ctx->ops->read_mfc_tagstatus(ctx) == ctx->tagwait); in spufs_mfc_flush()
1758 ctx->ops->npc_write(ctx, val); in spufs_npc_set()
2520 ctx->ops->runcntl_read(ctx), in spufs_show_ctx()
[all …]
H A Dsched.c88 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE * 4, ctx->prio); in spu_set_timeslice()
90 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE, ctx->prio); in spu_set_timeslice()
191 struct spu_context *ctx = spu->ctx; in do_notify_spus_active() local
222 spu->ctx = ctx; in spu_bind_context()
318 if (spu->ctx && spu->ctx->gang && !spu->ctx->aff_offset in aff_ref_location()
491 list_add_tail(&ctx->rq, &spu_prio->runq[ctx->prio]); in __spu_add_to_rq()
778 if (ctx->spu) in spu_activate()
795 runcntl = ctx->ops->runcntl_read(ctx); in spu_activate()
838 ctx = NULL; in grab_runnable_context()
841 return ctx; in grab_runnable_context()
[all …]
/openbmc/linux/drivers/soc/aspeed/
H A Daspeed-xdma.c283 aspeed_xdma_writel(ctx, ctx->chip->regs.control, ctx->chip->control); in aspeed_xdma_init_eng()
284 aspeed_xdma_writel(ctx, ctx->chip->regs.bmc_cmdq_addr, ctx->cmdq_phys); in aspeed_xdma_init_eng()
578 struct aspeed_xdma *ctx = client->ctx; in aspeed_xdma_write() local
626 struct aspeed_xdma *ctx = client->ctx; in aspeed_xdma_poll() local
656 struct aspeed_xdma *ctx = client->ctx; in aspeed_xdma_ioctl() local
763 client->ctx = ctx; in aspeed_xdma_open()
873 free_irq(ctx->pcie_irq, ctx); in aspeed_xdma_kobject_release()
879 dma_free_coherent(ctx->dev, ctx->mem_size, ctx->mem_virt, in aspeed_xdma_kobject_release()
888 free_irq(ctx->irq, ctx); in aspeed_xdma_kobject_release()
1119 dma_free_coherent(ctx->dev, ctx->mem_size, ctx->mem_virt, in aspeed_xdma_probe()
[all …]
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp32.c415 pc = (uintptr_t) &ctx->insns[ctx->ninsns]; in emit_jump()
782 e = ctx->ninsns; in emit_branch_r64()
807 s = ctx->ninsns; in emit_bcc()
876 e = ctx->ninsns; in emit_branch_r32()
1538 addr = (uintptr_t) &ctx->insns[ctx->epilogue_offset]; in bpf_jit_build_prologue()
1549 if (REG_WAS_SEEN(ctx, lo(reg)) | REG_WAS_SEEN(ctx, hi(reg))) { in bpf_jit_build_prologue()
1559 if (REG_WAS_SEEN(ctx, lo(reg)) | REG_WAS_SEEN(ctx, hi(reg))) { in bpf_jit_build_prologue()
1569 if (REG_WAS_SEEN(ctx, lo(reg)) | REG_WAS_SEEN(ctx, hi(reg))) { in bpf_jit_build_prologue()
1579 if (REG_WAS_SEEN(ctx, lo(reg)) | REG_WAS_SEEN(ctx, hi(reg))) { in bpf_jit_build_prologue()
1589 if (REG_WAS_SEEN(ctx, lo(reg)) | REG_WAS_SEEN(ctx, hi(reg))) { in bpf_jit_build_prologue()
[all …]
H A Dbpf_jit_comp64.c72 REG_SET_SEEN(ctx, rd); in emit_hppa_copy()
75 REG_SET_SEEN(ctx, rs); in emit_hppa_copy()
195 pc = (uintptr_t) &ctx->insns[ctx->ninsns]; in emit_jump()
268 s = ctx->ninsns; in emit_branch()
320 e = ctx->ninsns; in emit_branch()
904 ctx); in bpf_jit_emit_insn()
932 s = ctx->ninsns; in bpf_jit_emit_insn()
945 e = ctx->ninsns; in bpf_jit_emit_insn()
954 s = ctx->ninsns; in bpf_jit_emit_insn()
963 e = ctx->ninsns; in bpf_jit_emit_insn()
[all …]
/openbmc/linux/drivers/gpu/drm/panel/
H A Dpanel-samsung-ld9040.c121 int ret = ctx->error; in ld9040_clear_error()
123 ctx->error = 0; in ld9040_clear_error()
160 ctx->error = ret; in ld9040_dcs_write()
174 ld9040_dcs_write(ctx, ld9040_gammas[ctx->brightness], in ld9040_brightness_set()
203 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ld9040_power_on()
218 return regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ld9040_power_off()
249 ld9040_init(ctx); in ld9040_prepare()
339 struct ld9040 *ctx; in ld9040_probe() local
343 if (!ctx) in ld9040_probe()
348 ctx->dev = dev; in ld9040_probe()
[all …]
H A Dpanel-truly-nt35597.c269 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in truly_35597_power_on()
316 if (!ctx->enabled) in truly_nt35597_disable()
334 if (!ctx->prepared) in truly_nt35597_unprepare()
370 if (ctx->prepared) in truly_nt35597_prepare()
427 if (ctx->enabled) in truly_nt35597_enable()
546 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); in truly_nt35597_probe()
548 if (!ctx) in truly_nt35597_probe()
587 ctx->dev = dev; in truly_nt35597_probe()
588 ctx->dsi[0] = dsi; in truly_nt35597_probe()
623 if (ctx->dsi[0]) in truly_nt35597_remove()
[all …]
/openbmc/linux/lib/crypto/mpi/
H A Dec.c866 ctx->pow2(B, B, ctx); in dup_point_edwards()
870 ctx->pow2(C, X1, ctx); in dup_point_edwards()
875 ctx->subm(E, ctx->p, C, ctx); in dup_point_edwards()
877 ctx->mulm(E, ctx->a, C, ctx); in dup_point_edwards()
886 ctx->mul2(J, H, ctx); in dup_point_edwards()
1102 ctx->pow2(B, A, ctx); in add_points_edwards()
1111 ctx->mulm(E, ctx->b, C, ctx); in add_points_edwards()
1133 ctx->mulm(Y3, ctx->a, C, ctx); in add_points_edwards()
1489 ctx->subm(w, ctx->p, x, ctx); in mpi_ec_curve_point()
1491 ctx->mulm(w, ctx->a, x, ctx); in mpi_ec_curve_point()
[all …]
/openbmc/libmctp/utils/
H A Dmctp-demux-daemon.c104 ctx->clients = realloc(ctx->clients, in client_remove_inactive()
113 struct ctx *ctx = data; in rx_message() local
289 static int socket_init(struct ctx *ctx) in socket_init() argument
324 static int socket_process(struct ctx *ctx) in socket_process() argument
439 rc = ctx->binding->init(ctx->mctp, ctx->binding, ctx->local_eid, argc, in binding_init()
447 ctx->binding->destroy(ctx->mctp, ctx->binding); in binding_destroy()
457 static int run_daemon(struct ctx *ctx) in run_daemon() argument
483 ctx->pollfds[FD_SOCKET].fd = ctx->sock; in run_daemon()
492 ctx->pollfds = realloc(ctx->pollfds, in run_daemon()
590 struct ctx *ctx, _ctx; in main() local
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_context.c20 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); in mock_context()
21 if (!ctx) in mock_context()
39 strncpy(ctx->name, name, sizeof(ctx->name) - 1); in mock_context()
57 return ctx; in mock_context()
60 if (ctx->vm) in mock_context()
63 kfree(ctx); in mock_context()
93 return ctx; in live_context()
103 return ctx; in live_context()
125 return ctx; in live_context_for_engine()
145 return ctx; in live_context_for_engine()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmapping.c64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
191 mapping_remove_and_free_list(ctx, &ctx->pending_list); in mapping_flush_work()
199 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); in mapping_create()
200 if (!ctx) in mapping_create()
219 return ctx; in mapping_create()
229 if (ctx->id == id && ctx->type == type) { in mapping_create_for_id()
237 if (IS_ERR(ctx)) in mapping_create_for_id()
240 ctx->id = id; in mapping_create_for_id()
241 ctx->type = type; in mapping_create_for_id()
246 return ctx; in mapping_create_for_id()
[all …]
/openbmc/linux/io_uring/
H A Dio_uring.c221 struct io_ring_ctx *ctx = head->ctx; in io_match_task_safe() local
363 struct io_ring_ctx *ctx = req->ctx; in req_need_defer() local
447 struct io_ring_ctx *ctx = req->ctx; in io_prep_async_work() local
483 struct io_ring_ctx *ctx = req->ctx; in io_prep_async_link() local
939 struct io_ring_ctx *ctx = req->ctx; in io_fill_cqe_req_aux() local
971 struct io_ring_ctx *ctx = req->ctx; in __io_req_complete_post() local
1054 req->ctx = ctx; in io_preinit_req()
1181 if (req->ctx != *ctx) { in handle_tw_list()
1183 *ctx = req->ctx; in handle_tw_list()
2565 iowq.ctx = ctx; in io_cqring_wait()
[all …]
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c237 ctx->target[ctx->idx] = inst; in _emit()
239 ctx->idx++; in _emit()
377 while ((i < ctx->imm_count) && ctx->imms[i]) { in imm_offset()
387 offset = ctx->offsets[ctx->prog->len - 1] * 4; in imm_offset()
1844 ctx->offsets[i] = ctx->idx; in build_body()
1849 ctx->offsets[i] = ctx->idx; in build_body()
1904 memset(&ctx, 0, sizeof(ctx)); in bpf_int_jit_compile()
1934 ctx.prologue_bytes = (ctx.idx - tmp_idx) * 4; in bpf_int_jit_compile()
1936 ctx.epilogue_offset = ctx.idx; in bpf_int_jit_compile()
1941 ctx.epilogue_bytes = (ctx.idx - tmp_idx) * 4; in bpf_int_jit_compile()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_context.h30 set_bit(CONTEXT_CLOSED, &ctx->flags); in i915_gem_context_set_closed()
114 return ctx->uses_protected_content; in i915_gem_context_uses_protected_content()
148 kref_get(&ctx->ref); in i915_gem_context_get()
149 return ctx; in i915_gem_context_get()
160 return rcu_dereference_protected(ctx->vm, lockdep_is_held(&ctx->mutex)); in i915_gem_context_vm()
165 GEM_BUG_ON(!!ctx->vm != HAS_FULL_PPGTT(ctx->i915)); in i915_gem_context_has_full_ppgtt()
167 return !!ctx->vm; in i915_gem_context_has_full_ppgtt()
175 vm = ctx->vm; in i915_gem_context_get_eb_vm()
192 __acquires(&ctx->engines_mutex) in i915_gem_context_lock_engines()
194 mutex_lock(&ctx->engines_mutex); in i915_gem_context_lock_engines()
[all …]
/openbmc/qemu/target/mips/tcg/
H A Dmips16e_translate.c.inc402 check_mips_64(ctx);
458 int extend = translator_lduw(env, &ctx->base, ctx->base.pc_next + 2);
462 ctx->opcode = (ctx->opcode << 16) | extend;
682 gen_addiupc(ctx, rx, ((uint8_t) ctx->opcode) << 2, 0, 0);
691 offset = translator_lduw(env, &ctx->base, ctx->base.pc_next + 2);
789 gen_st(ctx, OPC_SW, 31, 29, (ctx->opcode & 0xff) << 2);
864 gen_ld(ctx, OPC_LW, rx, 29, ((uint8_t)ctx->opcode) << 2);
876 gen_ld(ctx, OPC_LWPC, rx, 0, ((uint8_t)ctx->opcode) << 2);
892 gen_st(ctx, OPC_SW, rx, 29, ((uint8_t)ctx->opcode) << 2);
954 if (is_uhi(ctx, extract32(ctx->opcode, 5, 6))) {
[all …]
/openbmc/qemu/target/ppc/
H A Dtranslate.c296 gen_update_nip(ctx, ctx->cia); in gen_exception_err()
311 gen_update_nip(ctx, ctx->cia); in gen_exception()
1373 if (unlikely(ctx->pr || !ctx->hv || ctx->dr)) { \
2385 if (ctx->hv && !ctx->pr) { in gen_or()
4268 gen_update_cfar(ctx, ctx->cia); in gen_b()
4363 gen_update_cfar(ctx, ctx->cia); in gen_bcond()
4479 gen_update_cfar(ctx, ctx->cia); in gen_rfi()
4494 gen_update_cfar(ctx, ctx->cia); in gen_rfid()
4509 gen_update_cfar(ctx, ctx->cia); in gen_rfscv()
4556 gen_update_nip(ctx, ctx->cia); in gen_scv()
[all …]
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp64.c101 clobber_reg(ctx, dst); in emit_sext()
120 emit_zext(ctx, dst); in emit_zext_ver()
387 LLSC_sync(ctx); in emit_atomic_r64()
427 LLSC_sync(ctx); in emit_cmpxchg_r64()
454 push_regs(ctx, ctx->clobbered & JIT_CALLER_REGS, 0, 0); in emit_call()
462 pop_regs(ctx, ctx->clobbered & JIT_CALLER_REGS, 0, 0); in emit_call()
602 push_regs(ctx, ctx->clobbered & JIT_CALLEE_REGS, 0, stack - saved); in build_prologue()
622 pop_regs(ctx, ctx->clobbered & JIT_CALLEE_REGS, 0, in build_epilogue()
623 ctx->stack_size - ctx->saved_size); in build_epilogue()
627 emit(ctx, daddiu, MIPS_R_SP, MIPS_R_SP, ctx->stack_size); in build_epilogue()
[all …]
/openbmc/linux/fs/nfs/
H A Dfs_context.c906 ctx->flags &= in nfs_fs_context_parse_param()
914 ctx->flags |= in nfs_fs_context_parse_param()
1400 if (ctx->minorversion && ctx->version != 4) in nfs_fs_context_validate()
1404 (ctx->version != 4 || ctx->minorversion != 0)) in nfs_fs_context_validate()
1411 ctx->protofamily != ctx->nfs_server.address.sa_family) in nfs_fs_context_validate()
1488 ctx->version, ctx->minorversion); in nfs_fs_context_validate()
1523 if (!ctx) in nfs_fs_context_dup()
1528 kfree(ctx); in nfs_fs_context_dup()
1548 if (ctx) { in nfs_fs_context_free()
1560 kfree(ctx); in nfs_fs_context_free()
[all …]
/openbmc/qemu/target/riscv/insn_trans/
H A Dtrans_rvk.c.inc65 REQUIRE_32BIT(ctx);
66 REQUIRE_ZKNE(ctx);
72 REQUIRE_32BIT(ctx);
73 REQUIRE_ZKNE(ctx);
80 REQUIRE_ZKND(ctx);
87 REQUIRE_ZKND(ctx);
94 REQUIRE_ZKNE(ctx);
101 REQUIRE_ZKNE(ctx);
108 REQUIRE_ZKND(ctx);
115 REQUIRE_ZKND(ctx);
[all …]
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c567 int e, s = ctx->ninsns; in emit_branch_r64()
645 e = ctx->ninsns; in emit_branch_r64()
654 int e, s = ctx->ninsns; in emit_bcc()
714 e = ctx->ninsns; in emit_bcc()
725 int e, s = ctx->ninsns; in emit_branch_r32()
732 e = ctx->ninsns; in emit_branch_r32()
785 tc_ninsn = insn ? ctx->offset[insn] - ctx->offset[insn - 1] : in emit_bpf_tail_call()
786 ctx->offset[0]; in emit_bpf_tail_call()
902 ctx); in emit_store_r64()
1211 s = ctx->ninsns; in bpf_jit_emit_insn()
[all …]
/openbmc/linux/drivers/net/netdevsim/
H A Dmacsec.c72 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_secy()
90 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_secy()
113 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_add_rxsc()
133 secy->nsim_rxsc[idx].sci = ctx->rx_sc->sci; in nsim_macsec_add_rxsc()
148 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_rxsc()
219 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_add_rxsa()
246 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_upd_rxsa()
273 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_del_rxsa()
291 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_add_txsa()
309 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_upd_txsa()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dsockopt_sk.c38 sk = ctx->sk; in _getsockopt()
50 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _getsockopt()
58 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _getsockopt()
66 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
90 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt()
128 ctx->optlen = 1; in _getsockopt()
148 sk = ctx->sk; in _setsockopt()
160 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt()
169 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _setsockopt()
181 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
[all …]

12345678910>>...149