Searched refs:ctx (Results 401 - 425 of 3477) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/gpu/drm/vboxvideo/
H A Dhgsmi_base.c15 * @ctx: The context of the guest heap to use.
18 int hgsmi_report_flags_location(struct gen_pool *ctx, u32 location) argument
22 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_HGSMI,
30 hgsmi_buffer_submit(ctx, p);
31 hgsmi_buffer_free(ctx, p);
40 * @ctx: The context of the guest heap to use.
43 int hgsmi_send_caps_info(struct gen_pool *ctx, u32 caps) argument
47 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, VBVA_INFO_CAPS);
54 hgsmi_buffer_submit(ctx, p);
58 hgsmi_buffer_free(ctx,
63 hgsmi_test_query_conf(struct gen_pool *ctx) argument
83 hgsmi_query_conf(struct gen_pool *ctx, u32 index, u32 *value_ret) argument
117 hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags, u32 hot_x, u32 hot_y, u32 width, u32 height, u8 *pixels, u32 len) argument
190 hgsmi_cursor_position(struct gen_pool *ctx, bool report_position, u32 x, u32 y, u32 *x_host, u32 *y_host) argument
[all...]
/linux-master/arch/s390/crypto/
H A Dsha512_s390.c23 struct s390_sha_ctx *ctx = shash_desc_ctx(desc); local
25 *(__u64 *)&ctx->state[0] = SHA512_H0;
26 *(__u64 *)&ctx->state[2] = SHA512_H1;
27 *(__u64 *)&ctx->state[4] = SHA512_H2;
28 *(__u64 *)&ctx->state[6] = SHA512_H3;
29 *(__u64 *)&ctx->state[8] = SHA512_H4;
30 *(__u64 *)&ctx->state[10] = SHA512_H5;
31 *(__u64 *)&ctx->state[12] = SHA512_H6;
32 *(__u64 *)&ctx->state[14] = SHA512_H7;
33 ctx
88 struct s390_sha_ctx *ctx = shash_desc_ctx(desc); local
[all...]
/linux-master/drivers/gpu/host1x/
H A Dcontext.c25 struct host1x_memory_context *ctx; local
43 ctx = &cdl->devs[i];
45 ctx->host = host1x;
47 device_initialize(&ctx->dev);
53 ctx->dma_mask = DMA_BIT_MASK(38);
54 ctx->dev.dma_mask = &ctx->dma_mask;
55 ctx->dev.coherent_dma_mask = ctx->dma_mask;
56 dev_set_name(&ctx
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_check_mtu.c22 int xdp_use_helper_basic(struct xdp_md *ctx) argument
26 if (bpf_check_mtu(ctx, 0, &mtu_len, 0, 0))
33 int xdp_use_helper(struct xdp_md *ctx) argument
40 /* When ifindex is zero, save net_device lookup and use ctx netdev */
44 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) {
59 int xdp_exceed_mtu(struct xdp_md *ctx) argument
61 void *data_end = (void *)(long)ctx->data_end;
62 void *data = (void *)(long)ctx->data;
73 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0);
85 int xdp_minus_delta(struct xdp_md *ctx) argument
109 xdp_input_len(struct xdp_md *ctx) argument
133 xdp_input_len_exceed(struct xdp_md *ctx) argument
157 tc_use_helper(struct __sk_buff *ctx) argument
176 tc_exceed_mtu(struct __sk_buff *ctx) argument
200 tc_exceed_mtu_da(struct __sk_buff *ctx) argument
227 tc_minus_delta(struct __sk_buff *ctx) argument
249 tc_input_len(struct __sk_buff *ctx) argument
269 tc_input_len_exceed(struct __sk_buff *ctx) argument
[all...]
H A Dcgrp_ls_attach_cgroup.c24 int set_cookie(struct bpf_sock_addr *ctx) argument
30 if (ctx->family != AF_INET6 || ctx->user_family != AF_INET6)
33 sk = ctx->sk;
48 p->cookie_key = bpf_get_socket_cookie(ctx);
53 int update_cookie_sockops(struct bpf_sock_ops *ctx) argument
59 if (ctx->family != AF_INET6 || ctx->op != BPF_SOCK_OPS_TCP_CONNECT_CB)
62 sk = ctx->sk;
75 if (p->cookie_key != bpf_get_socket_cookie(ctx))
[all...]
/linux-master/drivers/hwmon/occ/
H A Dp9_sbe.c38 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); local
40 mutex_lock(&ctx->sbe_error_lock);
41 if (ctx->sbe_error) {
42 rc = memory_read_from_buffer(buf, count, &pos, ctx->ffdc,
43 ctx->ffdc_len);
44 if (pos >= ctx->ffdc_len)
45 ctx->sbe_error = false;
47 mutex_unlock(&ctx->sbe_error_lock);
53 static bool p9_sbe_occ_save_ffdc(struct p9_sbe_occ *ctx, const void *resp, argument
58 mutex_lock(&ctx
87 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); local
138 struct p9_sbe_occ *ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), local
173 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); local
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ctx.c139 static unsigned int amdgpu_ctx_get_hw_prio(struct amdgpu_ctx *ctx, u32 hw_ip) argument
141 struct amdgpu_device *adev = ctx->mgr->adev;
145 ctx_prio = (ctx->override_priority == AMDGPU_CTX_PRIORITY_UNSET) ?
146 ctx->init_priority : ctx->override_priority;
190 static ktime_t amdgpu_ctx_entity_time(struct amdgpu_ctx *ctx, argument
196 spin_lock(&ctx->ring_lock);
200 spin_unlock(&ctx->ring_lock);
204 static int amdgpu_ctx_init_entity(struct amdgpu_ctx *ctx, u32 hw_ip, argument
208 struct amdgpu_device *adev = ctx
292 amdgpu_ctx_get_stable_pstate(struct amdgpu_ctx *ctx, u32 *stable_pstate) argument
320 amdgpu_ctx_init(struct amdgpu_ctx_mgr *mgr, int32_t priority, struct drm_file *filp, struct amdgpu_ctx *ctx) argument
356 amdgpu_ctx_set_stable_pstate(struct amdgpu_ctx *ctx, u32 stable_pstate) argument
409 struct amdgpu_ctx *ctx = container_of(ref, struct amdgpu_ctx, refcount); local
434 amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance, u32 ring, struct drm_sched_entity **entity) argument
480 struct amdgpu_ctx *ctx; local
508 struct amdgpu_ctx *ctx; local
527 struct amdgpu_ctx *ctx; local
541 struct amdgpu_ctx *ctx; local
580 struct amdgpu_ctx *ctx; local
641 struct amdgpu_ctx *ctx; local
724 struct amdgpu_ctx *ctx; local
740 amdgpu_ctx_put(struct amdgpu_ctx *ctx) argument
749 amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, struct drm_sched_entity *entity, struct dma_fence *fence) argument
776 amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, struct drm_sched_entity *entity, uint64_t seq) argument
805 amdgpu_ctx_set_entity_priority(struct amdgpu_ctx *ctx, struct amdgpu_ctx_entity *aentity, int hw_ip, int32_t priority) argument
830 amdgpu_ctx_priority_override(struct amdgpu_ctx *ctx, int32_t priority) argument
851 amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, struct drm_sched_entity *entity) argument
890 struct amdgpu_ctx *ctx; local
916 struct amdgpu_ctx *ctx; local
944 struct amdgpu_ctx *ctx; local
964 struct amdgpu_ctx *ctx; local
[all...]
/linux-master/net/tls/
H A Dtls_main.c131 void update_sk_prot(struct sock *sk, struct tls_context *ctx) argument
136 &tls_prots[ip_ver][ctx->tx_conf][ctx->rx_conf]);
138 &tls_proto_ops[ip_ver][ctx->tx_conf][ctx->rx_conf]);
171 struct tls_context *ctx,
188 ctx->splicing_pages = true;
207 ctx->partially_sent_offset = offset;
208 ctx->partially_sent_record = (void *)sg;
209 ctx
170 tls_push_sg(struct sock *sk, struct tls_context *ctx, struct scatterlist *sg, u16 first_offset, int flags) argument
230 struct tls_context *ctx = tls_get_ctx(sk); local
273 tls_push_partial_record(struct sock *sk, struct tls_context *ctx, int flags) argument
286 tls_free_partial_record(struct sock *sk, struct tls_context *ctx) argument
299 struct tls_context *ctx = tls_get_ctx(sk); local
328 tls_ctx_free(struct sock *sk, struct tls_context *ctx) argument
343 tls_sk_proto_cleanup(struct sock *sk, struct tls_context *ctx, long timeo) argument
371 struct tls_context *ctx = tls_get_ctx(sk); local
407 struct tls_sw_context_rx *ctx; local
442 struct tls_context *ctx = tls_get_ctx(sk); local
501 struct tls_context *ctx = tls_get_ctx(sk); local
521 struct tls_context *ctx = tls_get_ctx(sk); local
578 struct tls_context *ctx = tls_get_ctx(sk); local
617 struct tls_context *ctx = tls_get_ctx(sk); local
720 struct tls_context *ctx = tls_get_ctx(sk); local
740 struct tls_context *ctx = tls_get_ctx(sk); local
800 struct tls_context *ctx = tls_get_ctx(sk); local
812 struct tls_context *ctx; local
936 struct tls_context *ctx; local
974 struct tls_context *ctx; local
989 tls_user_config(struct tls_context *ctx, bool tx) argument
1009 struct tls_context *ctx; local
[all...]
/linux-master/include/misc/
H A Dcxl.h82 int cxl_release_context(struct cxl_context *ctx);
88 int cxl_set_priv(struct cxl_context *ctx, void *priv);
89 void *cxl_get_priv(struct cxl_context *ctx);
115 int cxl_start_context(struct cxl_context *ctx, u64 wed,
120 int cxl_stop_context(struct cxl_context *ctx);
123 int cxl_afu_reset(struct cxl_context *ctx);
130 void cxl_set_master(struct cxl_context *ctx);
136 void __iomem *cxl_psa_map(struct cxl_context *ctx);
140 int cxl_process_element(struct cxl_context *ctx);
149 * ctx
[all...]
/linux-master/drivers/mtd/nand/
H A Decc-mxic.c138 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); local
140 if (section < 0 || section >= ctx->steps)
143 oobregion->offset = (section * ctx->oob_step_sz) + ctx->meta_sz;
144 oobregion->length = ctx->parity_sz;
153 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); local
155 if (section < 0 || section >= ctx->steps)
160 oobregion->length = ctx->meta_sz - 2;
162 oobregion->offset = section * ctx->oob_step_sz;
163 oobregion->length = ctx
229 struct mxic_ecc_ctx *ctx; local
383 struct mxic_ecc_ctx *ctx; local
414 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); local
480 mxic_ecc_extract_status_bytes(struct mxic_ecc_ctx *ctx) argument
495 mxic_ecc_reconstruct_oobbuf(struct mxic_ecc_ctx *ctx, u8 *dst, const u8 *src) argument
507 mxic_ecc_add_room_in_oobbuf(struct mxic_ecc_ctx *ctx, u8 *dst, const u8 *src) argument
522 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); local
556 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); local
616 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); local
672 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); local
704 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); local
[all...]
/linux-master/drivers/gpu/drm/sprd/
H A Dsprd_dpu.h61 * @ctx: DPU's implementation specific context object
66 struct dpu_context ctx; member in struct:sprd_dpu
75 dpu_reg_set(struct dpu_context *ctx, u32 offset, u32 set_bits) argument
77 u32 bits = readl_relaxed(ctx->base + offset);
79 writel(bits | set_bits, ctx->base + offset);
83 dpu_reg_clr(struct dpu_context *ctx, u32 offset, u32 clr_bits) argument
85 u32 bits = readl_relaxed(ctx->base + offset);
87 writel(bits & ~clr_bits, ctx->base + offset);
91 layer_reg_rd(struct dpu_context *ctx, u32 offset, int index) argument
95 return readl(ctx
99 layer_reg_wr(struct dpu_context *ctx, u32 offset, u32 cfg_bits, int index) argument
[all...]
/linux-master/drivers/media/platform/st/sti/delta/
H A Ddelta-mjpeg-dec.c31 #define to_ctx(ctx) ((struct delta_mjpeg_ctx *)(ctx)->priv)
206 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); local
221 ipc_open_param_str(params, ctx->str, sizeof(ctx->str)));
232 ipc_open_param_str(params, ctx->str, sizeof(ctx->str)));
236 ctx->ipc_buf = ipc_buf;
237 ctx->ipc_hdl = hdl;
245 struct delta_mjpeg_ctx *ctx local
325 struct delta_mjpeg_ctx *ctx; local
337 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); local
352 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); local
375 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); local
432 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dpreempted_bpf_ma_op.c24 struct alloc_ctx *ctx = data; local
32 for (i = 0; i < ALLOC_LOOP_NR && !*ctx->nomem_err; i++) {
36 err = bpf_prog_test_run_opts(ctx->fd, &topts);
37 ctx->run_err |= err | topts.retval;
45 struct alloc_ctx ctx[ALLOC_THREAD_NR]; local
58 for (i = 0; i < ARRAY_SIZE(ctx); i++) {
67 ctx[i].run_err = 0;
68 ctx[i].fd = bpf_program__fd(prog);
69 ctx[i].nomem_err = &skel->bss->nomem_err;
74 err = pthread_create(&tid[i], NULL, run_alloc_prog, &ctx[
[all...]
/linux-master/drivers/staging/media/rkvdec/
H A Drkvdec.c32 struct rkvdec_ctx *ctx = container_of(ctrl->handler, struct rkvdec_ctx, ctrl_hdl); local
33 const struct rkvdec_coded_fmt_desc *desc = ctx->coded_fmt_desc;
36 return desc->ops->try_ctrl(ctx, ctrl);
162 static void rkvdec_reset_fmt(struct rkvdec_ctx *ctx, struct v4l2_format *f, argument
174 static void rkvdec_reset_coded_fmt(struct rkvdec_ctx *ctx) argument
176 struct v4l2_format *f = &ctx->coded_fmt;
178 ctx->coded_fmt_desc = &rkvdec_coded_fmts[0];
179 rkvdec_reset_fmt(ctx, f, ctx->coded_fmt_desc->fourcc);
182 f->fmt.pix_mp.width = ctx
189 rkvdec_reset_decoded_fmt(struct rkvdec_ctx *ctx) argument
239 struct rkvdec_ctx *ctx = fh_to_rkvdec_ctx(priv); local
282 struct rkvdec_ctx *ctx = fh_to_rkvdec_ctx(priv); local
313 struct rkvdec_ctx *ctx = fh_to_rkvdec_ctx(priv); local
334 struct rkvdec_ctx *ctx = fh_to_rkvdec_ctx(priv); local
398 struct rkvdec_ctx *ctx = fh_to_rkvdec_ctx(priv); local
407 struct rkvdec_ctx *ctx = fh_to_rkvdec_ctx(priv); local
426 struct rkvdec_ctx *ctx = fh_to_rkvdec_ctx(priv); local
473 struct rkvdec_ctx *ctx = vb2_get_drv_priv(vq); local
502 struct rkvdec_ctx *ctx = vb2_get_drv_priv(vq); local
531 struct rkvdec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
547 struct rkvdec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
554 struct rkvdec_ctx *ctx = vb2_get_drv_priv(q); local
576 struct rkvdec_ctx *ctx = vb2_get_drv_priv(vq); local
597 struct rkvdec_ctx *ctx = vb2_get_drv_priv(q); local
642 rkvdec_job_finish_no_pm(struct rkvdec_ctx *ctx, enum vb2_buffer_state result) argument
657 rkvdec_job_finish(struct rkvdec_ctx *ctx, enum vb2_buffer_state result) argument
667 rkvdec_run_preamble(struct rkvdec_ctx *ctx, struct rkvdec_run *run) argument
684 rkvdec_run_postamble(struct rkvdec_ctx *ctx, struct rkvdec_run *run) argument
694 struct rkvdec_ctx *ctx = priv; local
721 struct rkvdec_ctx *ctx = priv; local
765 rkvdec_add_ctrls(struct rkvdec_ctx *ctx, const struct rkvdec_ctrls *ctrls) argument
781 rkvdec_init_ctrls(struct rkvdec_ctx *ctx) argument
812 struct rkvdec_ctx *ctx; local
850 struct rkvdec_ctx *ctx = fh_to_rkvdec_ctx(filp->private_data); local
965 struct rkvdec_ctx *ctx; local
977 struct rkvdec_ctx *ctx; local
[all...]
/linux-master/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-m2m.c39 void fimc_m2m_job_finish(struct fimc_ctx *ctx, int vb_state) argument
43 if (!ctx || !ctx->fh.m2m_ctx)
46 src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
47 dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
54 v4l2_m2m_job_finish(ctx->fimc_dev->m2m.m2m_dev,
55 ctx->fh.m2m_ctx);
59 static void fimc_m2m_shutdown(struct fimc_ctx *ctx) argument
61 struct fimc_dev *fimc = ctx->fimc_dev;
66 fimc_ctx_state_set(FIMC_CTX_SHUT, ctx);
75 struct fimc_ctx *ctx = q->drv_priv; local
82 struct fimc_ctx *ctx = q->drv_priv; local
92 struct fimc_ctx *ctx = priv; local
172 struct fimc_ctx *ctx = vb2_get_drv_priv(vq); local
194 struct fimc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
211 struct fimc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
254 struct fimc_ctx *ctx = fh_to_ctx(fh); local
264 fimc_try_fmt_mplane(struct fimc_ctx *ctx, struct v4l2_format *f) argument
313 struct fimc_ctx *ctx = fh_to_ctx(fh); local
342 struct fimc_ctx *ctx = fh_to_ctx(fh); local
381 struct fimc_ctx *ctx = fh_to_ctx(fh); local
428 fimc_m2m_try_selection(struct fimc_ctx *ctx, struct v4l2_selection *s) argument
489 struct fimc_ctx *ctx = fh_to_ctx(fh); local
551 struct fimc_ctx *ctx = priv; local
581 fimc_m2m_set_default_format(struct fimc_ctx *ctx) argument
607 struct fimc_ctx *ctx; local
680 struct fimc_ctx *ctx = fh_to_ctx(file->private_data); local
[all...]
/linux-master/drivers/misc/cxl/
H A Dnative.c404 static void slb_invalid(struct cxl_context *ctx) argument
406 struct cxl *adapter = ctx->afu->adapter;
409 WARN_ON(!mutex_is_locked(&ctx->afu->native->spa_mutex));
412 ((u64)be32_to_cpu(ctx->elem->common.pid) << 32) |
413 be32_to_cpu(ctx->elem->lpid));
426 static int do_process_element_cmd(struct cxl_context *ctx, argument
433 trace_cxl_llcmd(ctx, cmd);
435 WARN_ON(!ctx->afu->enabled);
437 ctx->elem->software_state = cpu_to_be32(pe_state);
439 *(ctx
477 add_process_element(struct cxl_context *ctx) argument
490 terminate_process_element(struct cxl_context *ctx) argument
513 remove_process_element(struct cxl_context *ctx) argument
536 cxl_assign_psn_space(struct cxl_context *ctx) argument
623 calculate_sr(struct cxl_context *ctx) argument
629 update_ivtes_directed(struct cxl_context *ctx) argument
658 process_element_entry_psl9(struct cxl_context *ctx, u64 wed, u64 amr) argument
713 cxl_attach_afu_directed_psl9(struct cxl_context *ctx, u64 wed, u64 amr) argument
732 cxl_attach_afu_directed_psl8(struct cxl_context *ctx, u64 wed, u64 amr) argument
874 cxl_update_dedicated_ivtes_psl9(struct cxl_context *ctx) argument
884 cxl_update_dedicated_ivtes_psl8(struct cxl_context *ctx) argument
900 cxl_attach_dedicated_process_psl9(struct cxl_context *ctx, u64 wed, u64 amr) argument
928 cxl_attach_dedicated_process_psl8(struct cxl_context *ctx, u64 wed, u64 amr) argument
1004 native_attach_process(struct cxl_context *ctx, bool kernel, u64 wed, u64 amr) argument
1024 detach_process_native_dedicated(struct cxl_context *ctx) argument
1048 native_update_ivtes(struct cxl_context *ctx) argument
1058 detach_process_native_afu_directed(struct cxl_context *ctx) argument
1070 native_detach_process(struct cxl_context *ctx) argument
1099 cxl_native_irq_dump_regs_psl9(struct cxl_context *ctx) argument
1112 cxl_native_irq_dump_regs_psl8(struct cxl_context *ctx) argument
1131 native_handle_psl_slice_error(struct cxl_context *ctx, u64 dsisr, u64 errstat) argument
1172 struct cxl_context *ctx; local
1212 native_irq_wait(struct cxl_context *ctx) argument
1447 native_ack_irq(struct cxl_context *ctx, u64 tfc, u64 psl_reset_mask) argument
[all...]
/linux-master/drivers/gpu/drm/panel/
H A Dpanel-samsung-ld9040.c119 static int ld9040_clear_error(struct ld9040 *ctx) argument
121 int ret = ctx->error;
123 ctx->error = 0;
127 static int ld9040_spi_write_word(struct ld9040 *ctx, u16 data) argument
129 struct spi_device *spi = to_spi_device(ctx->dev);
142 static void ld9040_dcs_write(struct ld9040 *ctx, const u8 *data, size_t len) argument
146 if (ctx->error < 0 || len == 0)
149 dev_dbg(ctx->dev, "writing dcs seq: %*ph\n", (int)len, data);
150 ret = ld9040_spi_write_word(ctx, *data);
154 ret = ld9040_spi_write_word(ctx, *dat
172 ld9040_brightness_set(struct ld9040 *ctx) argument
180 ld9040_init(struct ld9040 *ctx) argument
199 ld9040_power_on(struct ld9040 *ctx) argument
216 ld9040_power_off(struct ld9040 *ctx) argument
228 struct ld9040 *ctx = panel_to_ld9040(panel); local
242 struct ld9040 *ctx = panel_to_ld9040(panel); local
267 struct ld9040 *ctx = panel_to_ld9040(panel); local
296 ld9040_parse_dt(struct ld9040 *ctx) argument
316 struct ld9040 *ctx = bl_get_data(dev); local
339 struct ld9040 *ctx; local
392 struct ld9040 *ctx = spi_get_drvdata(spi); local
[all...]
H A Dpanel-asus-z00t-tm5p5-n35596.c26 static void tm5p5_nt35596_reset(struct tm5p5_nt35596 *ctx) argument
28 gpiod_set_value_cansleep(ctx->reset_gpio, 1);
30 gpiod_set_value_cansleep(ctx->reset_gpio, 0);
32 gpiod_set_value_cansleep(ctx->reset_gpio, 1);
36 static int tm5p5_nt35596_on(struct tm5p5_nt35596 *ctx) argument
38 struct mipi_dsi_device *dsi = ctx->dsi;
84 static int tm5p5_nt35596_off(struct tm5p5_nt35596 *ctx) argument
86 struct mipi_dsi_device *dsi = ctx->dsi;
110 struct tm5p5_nt35596 *ctx = to_tm5p5_nt35596(panel); local
111 struct device *dev = &ctx
136 struct tm5p5_nt35596 *ctx = to_tm5p5_nt35596(panel); local
246 struct tm5p5_nt35596 *ctx; local
301 struct tm5p5_nt35596 *ctx = mipi_dsi_get_drvdata(dsi); local
[all...]
/linux-master/sound/soc/intel/boards/
H A Dsof_rt5682.c186 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); local
188 struct snd_soc_jack *jack = &ctx->headset_jack;
203 switch (ctx->codec_type) {
228 ctx->codec_type);
244 ret = clk_prepare_enable(ctx->rt5682.mclk);
246 clk_disable_unprepare(ctx->rt5682.mclk);
248 ret = clk_set_rate(ctx->rt5682.mclk, 19200000);
276 if (ctx->codec_type == CODEC_RT5650) {
301 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); local
307 ret = clk_prepare_enable(ctx
428 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card); local
527 sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card, struct sof_card_private *ctx) argument
632 struct sof_card_private *ctx; local
[all...]
H A Dsof_nau8825.c62 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); local
64 struct snd_soc_jack *jack = &ctx->headset_jack;
143 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card); local
147 if (ctx->amp_type == CODEC_MAX98373) {
205 struct sof_card_private *ctx)
209 ret = sof_intel_board_set_dai_link(dev, card, ctx);
213 if (!ctx->codec_link) {
219 ctx->codec_link->codecs = nau8825_component;
220 ctx->codec_link->num_codecs = ARRAY_SIZE(nau8825_component);
221 ctx
204 sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card, struct sof_card_private *ctx) argument
264 struct sof_card_private *ctx; local
[all...]
/linux-master/drivers/accel/habanalabs/common/mmu/
H A Dmmu_v2_hr.c13 static struct pgt_info *hl_mmu_v2_hr_get_pgt_info(struct hl_ctx *ctx, u64 phys_hop_addr) argument
17 hash_for_each_possible(ctx->hr_mmu_phys_hash, pgt_info, node,
25 static void hl_mmu_v2_hr_add_pgt_info(struct hl_ctx *ctx, struct pgt_info *pgt_info, argument
28 hash_add(ctx->hr_mmu_phys_hash, &pgt_info->node, phys_addr);
31 static struct pgt_info *hl_mmu_v2_hr_get_hop0_pgt_info(struct hl_ctx *ctx) argument
33 return &ctx->hdev->mmu_priv.hr.mmu_asid_hop0[ctx->asid];
73 * @ctx: pointer to the context structure to initialize.
79 static int hl_mmu_v2_hr_ctx_init(struct hl_ctx *ctx) argument
81 hash_init(ctx
95 hl_mmu_v2_hr_ctx_fini(struct hl_ctx *ctx) argument
115 _hl_mmu_v2_hr_unmap(struct hl_ctx *ctx, u64 virt_addr, bool is_dram_addr) argument
205 _hl_mmu_v2_hr_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, u32 page_size, bool is_dram_addr) argument
317 hl_mmu_v2_hr_swap_out(struct hl_ctx *ctx) argument
328 hl_mmu_v2_hr_swap_in(struct hl_ctx *ctx) argument
370 hl_mmu_v2_hr_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops) argument
[all...]
/linux-master/drivers/media/platform/verisilicon/
H A Dhantro_g2_vp9_dec.c27 static int start_prepare_run(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame **dec_params) argument
30 struct hantro_vp9_dec_hw_ctx *vp9_ctx = &ctx->vp9_dec;
35 hantro_start_prepare_run(ctx);
37 ctrl = v4l2_ctrl_find(&ctx->ctrl_handler, V4L2_CID_STATELESS_VP9_FRAME);
42 ctrl = v4l2_ctrl_find(&ctx->ctrl_handler, V4L2_CID_STATELESS_VP9_COMPRESSED_HDR);
92 get_ref_buf(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *dst, u64 timestamp) argument
94 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx;
128 static void config_output(struct hantro_ctx *ctx, argument
134 hantro_reg_write(ctx->dev, &g2_out_dis, 0);
135 if (!ctx
159 config_ref(struct hantro_ctx *ctx, struct hantro_decoded_buffer *dst, const struct hantro_vp9_ref_reg *ref_reg, const struct v4l2_ctrl_vp9_frame *dec_params, u64 ref_ts) argument
186 config_ref_registers(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, struct hantro_decoded_buffer *dst, struct hantro_decoded_buffer *mv_ref) argument
252 recompute_tile_rc_info(struct hantro_ctx *ctx, unsigned int tile_r, unsigned int tile_c, unsigned int sbs_r, unsigned int sbs_c) argument
279 fill_tile_info(struct hantro_ctx *ctx, unsigned int tile_r, unsigned int tile_c, unsigned int sbs_r, unsigned int sbs_c, unsigned short *tile_mem) argument
306 config_tiles(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, struct hantro_decoded_buffer *dst) argument
387 config_segment(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) argument
470 config_loop_filter(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) argument
486 config_picture_dimensions(struct hantro_ctx *ctx, struct hantro_decoded_buffer *dst) argument
499 config_bit_depth(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) argument
518 config_quant(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) argument
546 config_others(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, bool intra_only, bool resolution_change) argument
577 config_compound_reference(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) argument
632 config_probs(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params) argument
740 config_counts(struct hantro_ctx *ctx) argument
749 config_seg_map(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, bool intra_only, bool update_map) argument
775 config_source(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, struct vb2_v4l2_buffer *vb2_src) argument
809 config_registers(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame *dec_params, struct vb2_v4l2_buffer *vb2_src, struct vb2_v4l2_buffer *vb2_dst) argument
889 hantro_g2_vp9_dec_run(struct hantro_ctx *ctx) argument
924 hantro_g2_vp9_dec_done(struct hantro_ctx *ctx) argument
[all...]
/linux-master/drivers/media/platform/nvidia/tegra-vde/
H A Dv4l2.c54 static void tegra_set_control_data(struct tegra_ctx *ctx, void *data, u32 id) argument
58 ctx->h264.decode_params = data;
61 ctx->h264.sps = data;
64 ctx->h264.pps = data;
69 void tegra_vde_prepare_control_data(struct tegra_ctx *ctx, u32 id) argument
74 if (ctx->ctrls[i]->id == id) {
75 tegra_set_control_data(ctx, ctx->ctrls[i]->p_cur.p, id);
80 tegra_set_control_data(ctx, NULL, id);
89 struct tegra_ctx *ctx local
127 struct tegra_ctx *ctx = vb2_get_drv_priv(vq); local
151 struct tegra_ctx *ctx = vb2_get_drv_priv(vq); local
220 struct tegra_ctx *ctx = vb2_get_drv_priv(vq); local
283 struct tegra_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
291 struct tegra_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
303 struct tegra_ctx *ctx = vb2_get_drv_priv(vq); local
339 struct tegra_ctx *ctx = priv; local
407 tegra_reset_fmt(struct tegra_ctx *ctx, struct v4l2_format *f, u32 fourcc) argument
419 tegra_reset_coded_fmt(struct tegra_ctx *ctx) argument
467 tegra_reset_decoded_fmt(struct tegra_ctx *ctx) argument
479 tegra_job_finish(struct tegra_ctx *ctx, enum vb2_buffer_state result) argument
488 struct tegra_ctx *ctx = container_of(work, struct tegra_ctx, work); local
511 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
527 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
537 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
576 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
598 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
612 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
619 tegra_find_coded_fmt_desc(struct tegra_ctx *ctx, u32 fourcc) argument
636 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
661 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
723 struct tegra_ctx *ctx = fh_to_tegra_ctx(priv); local
768 tegra_init_ctrls(struct tegra_ctx *ctx) argument
800 tegra_init_m2m(struct tegra_ctx *ctx) argument
813 struct tegra_ctx *ctx; local
859 struct tegra_ctx *ctx = fh_to_tegra_ctx(fh); local
884 struct tegra_ctx *ctx = priv; local
[all...]
/linux-master/drivers/misc/ocxl/
H A Dfile.c52 struct ocxl_context *ctx; local
61 rc = ocxl_context_alloc(&ctx, info->afu, inode->i_mapping);
67 file->private_data = ctx;
71 static long afu_ioctl_attach(struct ocxl_context *ctx, argument
77 pr_debug("%s for context %d\n", __func__, ctx->pasid);
87 return ocxl_context_attach(ctx, amr, current->mm);
90 static long afu_ioctl_get_metadata(struct ocxl_context *ctx, argument
99 arg.afu_version_major = ctx->afu->config.version_major;
100 arg.afu_version_minor = ctx->afu->config.version_minor;
101 arg.pasid = ctx
112 afu_ioctl_enable_p9_wait(struct ocxl_context *ctx, struct ocxl_ioctl_p9_wait __user *uarg) argument
156 afu_ioctl_get_features(struct ocxl_context *ctx, struct ocxl_ioctl_features __user *uarg) argument
201 struct ocxl_context *ctx = file->private_data; local
294 struct ocxl_context *ctx = file->private_data; local
300 has_xsl_error(struct ocxl_context *ctx) argument
316 afu_events_pending(struct ocxl_context *ctx) argument
325 struct ocxl_context *ctx = file->private_data; local
353 append_xsl_error(struct ocxl_context *ctx, struct ocxl_kernel_event_header *header, char __user *buf) argument
397 struct ocxl_context *ctx = file->private_data; local
458 struct ocxl_context *ctx = file->private_data; local
[all...]
/linux-master/drivers/media/platform/sunxi/sun8i-di/
H A Dsun8i-di.c63 struct deinterlace_ctx *ctx = priv; local
64 struct deinterlace_dev *dev = ctx->dev;
71 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
72 dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
79 if (ctx->field) {
81 ctx->flag1_buf_dma);
83 ctx->flag2_buf_dma);
86 ctx->flag2_buf_dma);
88 ctx->flag1_buf_dma);
92 width = ctx
203 struct deinterlace_ctx *ctx = priv; local
211 struct deinterlace_ctx *ctx = priv; local
222 struct deinterlace_ctx *ctx; local
396 struct deinterlace_ctx *ctx = deinterlace_file2ctx(file); local
406 struct deinterlace_ctx *ctx = deinterlace_file2ctx(file); local
446 struct deinterlace_ctx *ctx = deinterlace_file2ctx(file); local
466 struct deinterlace_ctx *ctx = deinterlace_file2ctx(file); local
520 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vq); local
542 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vq); local
561 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
568 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vq); local
587 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vq); local
640 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vq); local
669 struct deinterlace_ctx *ctx = priv; local
708 struct deinterlace_ctx *ctx = NULL; local
761 struct deinterlace_ctx *ctx = container_of(file->private_data, local
[all...]

Completed in 299 milliseconds

<<11121314151617181920>>