Searched refs:ctx (Results 326 - 350 of 3477) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/media/platform/verisilicon/
H A Dhantro_hw.h354 void (*enable)(struct hantro_ctx *ctx);
355 void (*disable)(struct hantro_ctx *ctx);
356 int (*enum_framesizes)(struct hantro_ctx *ctx, struct v4l2_frmsizeenum *fsize);
374 int (*init)(struct hantro_ctx *ctx);
375 void (*exit)(struct hantro_ctx *ctx);
376 int (*run)(struct hantro_ctx *ctx);
377 void (*done)(struct hantro_ctx *ctx);
378 void (*reset)(struct hantro_ctx *ctx);
421 void hantro_run(struct hantro_ctx *ctx);
424 void hantro_start_prepare_run(struct hantro_ctx *ctx);
[all...]
H A Dhantro_g2.c48 size_t hantro_g2_chroma_offset(struct hantro_ctx *ctx) argument
50 return ctx->dst_fmt.width * ctx->dst_fmt.height * ctx->bit_depth / 8;
53 size_t hantro_g2_motion_vectors_offset(struct hantro_ctx *ctx) argument
55 size_t cr_offset = hantro_g2_chroma_offset(ctx);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_sk_storage_map.c22 int rw_bpf_sk_storage_map(struct bpf_iter__bpf_sk_storage_map *ctx) argument
24 struct sock *sk = ctx->sk;
25 __u32 *val = ctx->value;
41 int oob_write_bpf_sk_storage_map(struct bpf_iter__bpf_sk_storage_map *ctx) argument
43 struct sock *sk = ctx->sk;
44 __u32 *val = ctx->value;
H A Dbpf_iter_task_file.c14 int dump_task_file(struct bpf_iter__task_file *ctx) argument
16 struct seq_file *seq = ctx->meta->seq;
17 struct task_struct *task = ctx->task;
18 struct file *file = ctx->file;
19 __u32 fd = ctx->fd;
24 if (ctx->meta->seq_num == 0) {
H A Dudp_limit.c17 int sock(struct bpf_sock *ctx) argument
21 if (ctx->type != SOCK_DGRAM)
24 sk_storage = bpf_sk_storage_get(&sk_map, ctx, 0,
45 int sock_release(struct bpf_sock *ctx) argument
49 if (ctx->type != SOCK_DGRAM)
52 sk_storage = bpf_sk_storage_get(&sk_map, ctx, 0, 0);
H A Dexceptions.c46 int exception_throw_always_1(struct __sk_buff *ctx) argument
57 int exception_throw_always_2(struct __sk_buff *ctx) argument
59 return global2static_simple(ctx->protocol);
63 int exception_throw_unwind_1(struct __sk_buff *ctx) argument
65 return static2global(bpf_ntohs(ctx->protocol));
69 int exception_throw_unwind_2(struct __sk_buff *ctx) argument
71 return static2global(bpf_ntohs(ctx->protocol) - 1);
75 int exception_throw_default(struct __sk_buff *ctx) argument
82 int exception_throw_default_value(struct __sk_buff *ctx) argument
89 int exception_tail_call_target(struct __sk_buff *ctx) argument
96 exception_tail_call_subprog(struct __sk_buff *ctx) argument
105 exception_tail_call(struct __sk_buff *ctx) argument
112 exception_ext_global(struct __sk_buff *ctx) argument
119 exception_ext_static(struct __sk_buff *ctx) argument
125 exception_ext(struct __sk_buff *ctx) argument
158 subprog(struct __sk_buff *ctx) argument
163 throwing_subprog(struct __sk_buff *ctx) argument
170 global_subprog(struct __sk_buff *ctx) argument
175 throwing_global_subprog(struct __sk_buff *ctx) argument
183 exception_throw_subprog(struct __sk_buff *ctx) argument
333 exception_assert_range(struct __sk_buff *ctx) argument
342 exception_assert_range_with(struct __sk_buff *ctx) argument
351 exception_bad_assert_range(struct __sk_buff *ctx) argument
360 exception_bad_assert_range_with(struct __sk_buff *ctx) argument
[all...]
H A Dconnect4_dropper.c17 int connect_v4_dropper(struct bpf_sock_addr *ctx) argument
19 if (ctx->type != SOCK_STREAM)
21 if (ctx->user_port == bpf_htons(60120))
H A Dtest_prog_array_init.c12 int tailcall_1(void *ctx) argument
30 int entry(void *ctx) argument
37 bpf_tail_call(ctx, &prog_array_init, 1);
H A Dtest_usdt.c16 int usdt0(struct pt_regs *ctx) argument
25 usdt0_cookie = bpf_usdt_cookie(ctx);
26 usdt0_arg_cnt = bpf_usdt_arg_cnt(ctx);
28 usdt0_arg_ret = bpf_usdt_arg(ctx, bpf_get_prandom_u32(), &tmp);
39 int usdt3(struct pt_regs *ctx) argument
48 usdt3_cookie = bpf_usdt_cookie(ctx);
49 usdt3_arg_cnt = bpf_usdt_arg_cnt(ctx);
51 usdt3_arg_rets[0] = bpf_usdt_arg(ctx, 0, &tmp);
54 usdt3_arg_rets[1] = bpf_usdt_arg(ctx, 1, &tmp);
57 usdt3_arg_rets[2] = bpf_usdt_arg(ctx,
[all...]
H A Duninit_stack.c9 __naked int read_uninit_stack_fixed_off(void *ctx) argument
36 __naked int read_uninit_stack_var_off(void *ctx) argument
65 __naked int helper_uninit_to_misc(void *ctx) argument
H A Dxdp_metadata2.c8 extern int bpf_xdp_metadata_rx_hash(const struct xdp_md *ctx, __u32 *hash,
14 int freplace_rx(struct xdp_md *ctx) argument
19 bpf_xdp_metadata_rx_hash(ctx, &hash, &type);
H A Dmap_percpu_stats.c13 int dump_bpf_map(struct bpf_iter__bpf_map *ctx) argument
15 struct seq_file *seq = ctx->meta->seq;
16 struct bpf_map *map = ctx->map;
/linux-master/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-prng.c22 struct sun8i_ss_rng_tfm_ctx *ctx = crypto_rng_ctx(tfm); local
24 if (ctx->seed && ctx->slen != slen) {
25 kfree_sensitive(ctx->seed);
26 ctx->slen = 0;
27 ctx->seed = NULL;
29 if (!ctx->seed)
30 ctx->seed = kmalloc(slen, GFP_KERNEL);
31 if (!ctx->seed)
34 memcpy(ctx
42 struct sun8i_ss_rng_tfm_ctx *ctx = crypto_tfm_ctx(tfm); local
50 struct sun8i_ss_rng_tfm_ctx *ctx = crypto_tfm_ctx(tfm); local
60 struct sun8i_ss_rng_tfm_ctx *ctx = crypto_rng_ctx(tfm); local
[all...]
/linux-master/drivers/reset/
H A Dreset-microchip-sparx5.c37 static int sparx5_switch_reset(struct mchp_reset_context *ctx) argument
42 regmap_update_bits(ctx->cpu_ctrl, ctx->props->protect_reg,
43 ctx->props->protect_bit, ctx->props->protect_bit);
46 regmap_write(ctx->gcb_ctrl, ctx->props->reset_reg,
47 ctx->props->reset_bit);
50 return regmap_read_poll_timeout(ctx->gcb_ctrl, ctx
109 struct mchp_reset_context *ctx; local
[all...]
/linux-master/drivers/fpga/tests/
H A Dfpga-bridge-test.c51 struct bridge_ctx *ctx; local
53 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL);
54 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ctx);
56 ctx->pdev = platform_device_register_simple("bridge_pdev", PLATFORM_DEVID_AUTO, NULL, 0);
57 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ctx->pdev);
59 ctx->bridge = fpga_bridge_register(&ctx->pdev->dev, "Fake FPGA bridge", &fake_bridge_ops,
60 &ctx->stats);
61 KUNIT_ASSERT_FALSE(test, IS_ERR_OR_NULL(ctx
66 unregister_test_bridge(struct bridge_ctx *ctx) argument
74 struct bridge_ctx *ctx = test->priv; local
88 struct bridge_ctx *ctx = test->priv; local
[all...]
/linux-master/arch/powerpc/include/asm/book3s/64/
H A Dmmu.h139 static inline u16 mm_ctx_user_psize(mm_context_t *ctx) argument
141 return ctx->hash_context->user_psize;
144 static inline void mm_ctx_set_user_psize(mm_context_t *ctx, u16 user_psize) argument
146 ctx->hash_context->user_psize = user_psize;
149 static inline unsigned char *mm_ctx_low_slices(mm_context_t *ctx) argument
151 return ctx->hash_context->low_slices_psize;
154 static inline unsigned char *mm_ctx_high_slices(mm_context_t *ctx) argument
156 return ctx->hash_context->high_slices_psize;
159 static inline unsigned long mm_ctx_slb_addr_limit(mm_context_t *ctx) argument
161 return ctx
164 mm_ctx_set_slb_addr_limit(mm_context_t *ctx, unsigned long limit) argument
169 slice_mask_for_size(mm_context_t *ctx, int psize) argument
187 mm_ctx_subpage_prot(mm_context_t *ctx) argument
270 get_user_context(mm_context_t *ctx, unsigned long ea) argument
282 get_user_vsid(mm_context_t *ctx, unsigned long ea, int ssize) argument
[all...]
/linux-master/sound/soc/intel/boards/
H A Dsof_sdw_hdmi.c20 struct mc_private *ctx = snd_soc_card_get_drvdata(rtd->card); local
23 ctx->hdmi.hdmi_comp = dai->component;
30 struct mc_private *ctx = snd_soc_card_get_drvdata(card); local
32 if (!ctx->hdmi.idisp_codec)
35 if (!ctx->hdmi.hdmi_comp)
38 return hda_dsp_hdmi_build_controls(card, ctx->hdmi.hdmi_comp);
/linux-master/arch/powerpc/net/
H A Dbpf_jit.h22 #define CTX_NIA(ctx) ((unsigned long)ctx->idx * 4)
26 #define EMIT(instr) PLANT_INSTR(image, ctx->idx, instr)
31 long offset = (long)(dest) - CTX_NIA(ctx); \
33 pr_err_ratelimited("Branch offset 0x%lx (@%u) out of range\n", offset, ctx->idx); \
42 long offset = (long)(dest) - CTX_NIA(ctx); \
44 pr_err_ratelimited("Conditional branch offset 0x%lx (@%u) out of range\n", offset, ctx->idx); \
94 if (is_offset_in_cond_branch_range((long)(dest) - CTX_NIA(ctx))) { \
99 PPC_BCC_SHORT(cond ^ COND_CMP_TRUE, CTX_NIA(ctx) + 2*4); \
139 #define bpf_to_ppc(r) (ctx
147 bpf_is_seen_register(struct codegen_context *ctx, int i) argument
152 bpf_set_seen_register(struct codegen_context *ctx, int i) argument
157 bpf_clear_seen_register(struct codegen_context *ctx, int i) argument
[all...]
/linux-master/drivers/media/platform/chips-media/coda/
H A Dcoda-common.c92 void coda_write_base(struct coda_ctx *ctx, struct coda_q_data *q_data, argument
117 coda_write(ctx->dev, base_y, reg_y);
118 coda_write(ctx->dev, base_cb, reg_y + 4);
119 coda_write(ctx->dev, base_cr, reg_y + 8);
425 struct coda_ctx *ctx = fh_to_ctx(priv); local
428 strscpy(cap->card, coda_product_name(ctx->dev->devtype->product),
445 struct coda_ctx *ctx = fh_to_ctx(priv); local
460 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT);
461 src_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx,
465 if (ctx
495 struct coda_ctx *ctx = fh_to_ctx(priv); local
516 coda_try_pixelformat(struct coda_ctx *ctx, struct v4l2_format *f) argument
548 coda_try_fmt_vdoa(struct coda_ctx *ctx, struct v4l2_format *f, bool *use_vdoa) argument
575 coda_estimate_sizeimage(struct coda_ctx *ctx, u32 sizeimage, u32 width, u32 height) argument
587 coda_try_fmt(struct coda_ctx *ctx, const struct coda_codec *codec, struct v4l2_format *f) argument
656 struct coda_ctx *ctx = fh_to_ctx(priv); local
762 struct coda_ctx *ctx = fh_to_ctx(priv); local
781 coda_s_fmt(struct coda_ctx *ctx, struct v4l2_format *f, struct v4l2_rect *r) argument
856 struct coda_ctx *ctx = fh_to_ctx(priv); local
908 struct coda_ctx *ctx = fh_to_ctx(priv); local
964 struct coda_ctx *ctx = fh_to_ctx(priv); local
984 struct coda_ctx *ctx = fh_to_ctx(priv); local
995 struct coda_ctx *ctx = fh_to_ctx(priv); local
1007 coda_m2m_buf_done(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf, enum vb2_buffer_state state) argument
1023 struct coda_ctx *ctx = fh_to_ctx(fh); local
1069 struct coda_ctx *ctx = fh_to_ctx(fh); local
1110 coda_wake_up_capture_queue(struct coda_ctx *ctx) argument
1124 struct coda_ctx *ctx = fh_to_ctx(fh); local
1157 coda_mark_last_meta(struct coda_ctx *ctx) argument
1177 coda_mark_last_dst_buf(struct coda_ctx *ctx) argument
1205 struct coda_ctx *ctx = fh_to_ctx(fh); local
1284 struct coda_ctx *ctx = fh_to_ctx(fh); local
1317 struct coda_ctx *ctx = fh_to_ctx(fh); local
1356 struct coda_ctx *ctx = fh_to_ctx(fh); local
1439 struct coda_ctx *ctx = fh_to_ctx(fh); local
1457 struct coda_ctx *ctx = fh_to_ctx(fh); local
1521 struct coda_ctx *ctx = m2m_priv; local
1529 struct coda_ctx *ctx = container_of(work, struct coda_ctx, pic_run_work); local
1569 struct coda_ctx *ctx = m2m_priv; local
1639 struct coda_ctx *ctx = priv; local
1652 set_default_params(struct coda_ctx *ctx) argument
1715 struct coda_ctx *ctx = vb2_get_drv_priv(vq); local
1737 struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
1788 coda_update_profile_level_ctrls(struct coda_ctx *ctx, u8 profile_idc, u8 level_idc) argument
1855 coda_queue_source_change_event(struct coda_ctx *ctx) argument
1868 struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
1969 struct coda_ctx *ctx = vb2_get_drv_priv(q); local
2113 struct coda_ctx *ctx = vb2_get_drv_priv(q); local
2181 struct coda_ctx *ctx = local
2311 coda_encode_ctrls(struct coda_ctx *ctx) argument
2418 coda_jpeg_encode_ctrls(struct coda_ctx *ctx) argument
2426 coda_decode_ctrls(struct coda_ctx *ctx) argument
2490 coda_ctrls_setup(struct coda_ctx *ctx) argument
2530 coda_queue_init(struct coda_ctx *ctx, struct vb2_queue *vq) argument
2604 struct coda_ctx *ctx; local
2738 struct coda_ctx *ctx = fh_to_ctx(file->private_data); local
[all...]
/linux-master/include/crypto/
H A Dserpent.h21 int __serpent_setkey(struct serpent_ctx *ctx, const u8 *key,
25 void __serpent_encrypt(const void *ctx, u8 *dst, const u8 *src);
26 void __serpent_decrypt(const void *ctx, u8 *dst, const u8 *src);
/linux-master/arch/microblaze/include/asm/
H A Dmmu_context_mm.h26 # define CTX_TO_VSID(ctx, va) (((ctx) * (897 * 16) + ((va) >> 28) * 0x111) \
79 mm_context_t ctx; local
85 ctx = next_mmu_context;
86 while (test_and_set_bit(ctx, context_map)) {
87 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx);
88 if (ctx > LAST_CONTEXT)
89 ctx = 0;
91 next_mmu_context = (ctx
[all...]
/linux-master/arch/x86/crypto/
H A Dserpent-avx.h13 asmlinkage void serpent_ecb_enc_8way_avx(const void *ctx, u8 *dst,
15 asmlinkage void serpent_ecb_dec_8way_avx(const void *ctx, u8 *dst,
18 asmlinkage void serpent_cbc_dec_8way_avx(const void *ctx, u8 *dst,
/linux-master/samples/hid/
H A Dhid_bpf_helpers.h9 extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
14 extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __ksym;
15 extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx,
/linux-master/net/sunrpc/auth_gss/
H A Dgss_krb5_seal.c75 setup_token_v2(struct krb5_ctx *ctx, struct xdr_netobj *token) argument
81 if ((ctx->flags & KRB5_CTX_FLAG_INITIATOR) == 0)
83 if (ctx->flags & KRB5_CTX_FLAG_ACCEPTOR_SUBKEY)
100 token->len = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength;
105 gss_krb5_get_mic_v2(struct krb5_ctx *ctx, struct xdr_buf *text, argument
108 struct crypto_ahash *tfm = ctx->initiate ?
109 ctx->initiator_sign : ctx->acceptor_sign;
111 .len = ctx->gk5e->cksumlength,
119 krb5_hdr = setup_token_v2(ctx, toke
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_hw_fence.h23 void xe_hw_fence_ctx_init(struct xe_hw_fence_ctx *ctx, struct xe_gt *gt,
25 void xe_hw_fence_ctx_finish(struct xe_hw_fence_ctx *ctx);
27 struct xe_hw_fence *xe_hw_fence_create(struct xe_hw_fence_ctx *ctx,

Completed in 250 milliseconds

<<11121314151617181920>>