Searched refs:ctx (Results 251 - 275 of 3478) sorted by relevance

<<11121314151617181920>>

/linux-master/crypto/asymmetric_keys/
H A Dverify_pefile.c23 struct pefile_context *ctx)
60 ctx->image_checksum_offset =
62 ctx->header_size = pe32->header_size;
64 ctx->n_data_dirents = pe32->data_dirs;
69 ctx->image_checksum_offset =
71 ctx->header_size = pe64->header_size;
73 ctx->n_data_dirents = pe64->data_dirs;
81 pr_debug("checksum @ %x\n", ctx->image_checksum_offset);
82 pr_debug("header size = %x\n", ctx->header_size);
84 if (cursor >= ctx
22 pefile_parse_binary(const void *pebuf, unsigned int pelen, struct pefile_context *ctx) argument
122 pefile_strip_sig_wrapper(const void *pebuf, struct pefile_context *ctx) argument
245 pefile_digest_pe_contents(const void *pebuf, unsigned int pelen, struct pefile_context *ctx, struct shash_desc *desc) argument
322 pefile_digest_pe(const void *pebuf, unsigned int pelen, struct pefile_context *ctx) argument
424 struct pefile_context ctx; local
[all...]
H A Dmscode_parser.c23 struct pefile_context *ctx = _ctx; local
30 return asn1_ber_decoder(&mscode_decoder, ctx, content_data, data_len);
72 struct pefile_context *ctx = context; local
79 ctx->digest_algo = "sha1";
82 ctx->digest_algo = "sha256";
85 ctx->digest_algo = "sha384";
88 ctx->digest_algo = "sha512";
91 ctx->digest_algo = "sha3-256";
94 ctx->digest_algo = "sha3-384";
97 ctx
120 struct pefile_context *ctx = context; local
[all...]
/linux-master/arch/powerpc/platforms/cell/spufs/
H A Dsputrace.h12 TP_PROTO(struct spu_context *ctx, struct spu *spu, const char *name),
13 TP_ARGS(ctx, spu, name),
23 __entry->owner_tid = ctx->tid;
31 #define spu_context_trace(name, ctx, spu) \
32 trace_spufs_context(ctx, spu, __stringify(name))
33 #define spu_context_nospu_trace(name, ctx) \
34 trace_spufs_context(ctx, NULL, __stringify(name))
/linux-master/drivers/scsi/elx/libefc/
H A Defc_nport.h26 __efc_nport_allocated(struct efc_sm_ctx *ctx,
29 __efc_nport_wait_shutdown(struct efc_sm_ctx *ctx,
32 __efc_nport_wait_port_free(struct efc_sm_ctx *ctx,
35 __efc_nport_vport_init(struct efc_sm_ctx *ctx,
38 __efc_nport_vport_wait_alloc(struct efc_sm_ctx *ctx,
41 __efc_nport_vport_allocated(struct efc_sm_ctx *ctx,
44 __efc_nport_attached(struct efc_sm_ctx *ctx,
/linux-master/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_wb.h36 void (*setup_outaddress)(struct dpu_hw_wb *ctx,
39 void (*setup_outformat)(struct dpu_hw_wb *ctx,
42 void (*setup_roi)(struct dpu_hw_wb *ctx,
45 void (*setup_qos_lut)(struct dpu_hw_wb *ctx,
48 void (*setup_cdp)(struct dpu_hw_wb *ctx,
52 bool (*setup_clk_force_ctrl)(struct dpu_hw_wb *ctx,
55 void (*bind_pingpong_blk)(struct dpu_hw_wb *ctx,
/linux-master/sound/soc/au1x/
H A Dac97c.c72 static inline unsigned long RD(struct au1xpsc_audio_data *ctx, int reg) argument
74 return __raw_readl(ctx->mmio + reg);
77 static inline void WR(struct au1xpsc_audio_data *ctx, int reg, unsigned long v) argument
79 __raw_writel(v, ctx->mmio + reg);
86 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); local
93 mutex_lock(&ctx->lock);
96 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo)
103 WR(ctx, AC97_CMDRESP, CMD_IDX(r) | CMD_READ);
109 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo)
111 data = RD(ctx, AC97_CMDRES
128 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); local
157 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); local
167 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); local
193 struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai); local
234 struct au1xpsc_audio_data *ctx; local
290 struct au1xpsc_audio_data *ctx = platform_get_drvdata(pdev); local
302 struct au1xpsc_audio_data *ctx = dev_get_drvdata(dev); local
311 struct au1xpsc_audio_data *ctx = dev_get_drvdata(dev); local
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Datom.c63 struct atom_context *ctx; member in struct:__anon166
74 static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, int params_size);
75 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size);
110 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, argument
121 temp = ctx->card->reg_read(ctx->card, CU16(base + 1));
125 ctx->card->reg_write(ctx->card, CU16(base + 1), temp);
165 ((ctx->
182 static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_ argument
373 atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr) argument
408 atom_get_src(atom_exec_context *ctx, uint8_t attr, int *ptr) argument
413 atom_get_src_direct(atom_exec_context *ctx, uint8_t align, int *ptr) argument
439 atom_get_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr, uint32_t *saved, int print) argument
448 atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) argument
455 atom_put_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr, uint32_t val, uint32_t saved) argument
599 atom_op_add(atom_exec_context *ctx, int *ptr, int arg) argument
613 atom_op_and(atom_exec_context *ctx, int *ptr, int arg) argument
627 atom_op_beep(atom_exec_context *ctx, int *ptr, int arg) argument
632 atom_op_calltable(atom_exec_context *ctx, int *ptr, int arg) argument
648 atom_op_clear(atom_exec_context *ctx, int *ptr, int arg) argument
660 atom_op_compare(atom_exec_context *ctx, int *ptr, int arg) argument
674 atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) argument
686 atom_op_div(atom_exec_context *ctx, int *ptr, int arg) argument
703 atom_op_div32(atom_exec_context *ctx, int *ptr, int arg) argument
724 atom_op_eot(atom_exec_context *ctx, int *ptr, int arg) argument
729 atom_op_jump(atom_exec_context *ctx, int *ptr, int arg) argument
783 atom_op_mask(atom_exec_context *ctx, int *ptr, int arg) argument
800 atom_op_move(atom_exec_context *ctx, int *ptr, int arg) argument
817 atom_op_mul(atom_exec_context *ctx, int *ptr, int arg) argument
828 atom_op_mul32(atom_exec_context *ctx, int *ptr, int arg) argument
842 atom_op_nop(atom_exec_context *ctx, int *ptr, int arg) argument
847 atom_op_or(atom_exec_context *ctx, int *ptr, int arg) argument
861 atom_op_postcard(atom_exec_context *ctx, int *ptr, int arg) argument
867 atom_op_repeat(atom_exec_context *ctx, int *ptr, int arg) argument
872 atom_op_restorereg(atom_exec_context *ctx, int *ptr, int arg) argument
877 atom_op_savereg(atom_exec_context *ctx, int *ptr, int arg) argument
882 atom_op_setdatablock(atom_exec_context *ctx, int *ptr, int arg) argument
896 atom_op_setfbbase(atom_exec_context *ctx, int *ptr, int arg) argument
903 atom_op_setport(atom_exec_context *ctx, int *ptr, int arg) argument
930 atom_op_setregblock(atom_exec_context *ctx, int *ptr, int arg) argument
937 atom_op_shift_left(atom_exec_context *ctx, int *ptr, int arg) argument
953 atom_op_shift_right(atom_exec_context *ctx, int *ptr, int arg) argument
969 atom_op_shl(atom_exec_context *ctx, int *ptr, int arg) argument
988 atom_op_shr(atom_exec_context *ctx, int *ptr, int arg) argument
1007 atom_op_sub(atom_exec_context *ctx, int *ptr, int arg) argument
1021 atom_op_switch(atom_exec_context *ctx, int *ptr, int arg) argument
1048 atom_op_test(atom_exec_context *ctx, int *ptr, int arg) argument
1060 atom_op_xor(atom_exec_context *ctx, int *ptr, int arg) argument
1074 atom_op_debug(atom_exec_context *ctx, int *ptr, int arg) argument
1080 atom_op_processds(atom_exec_context *ctx, int *ptr, int arg) argument
1221 amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, int params_size) argument
1286 amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size) argument
1309 atom_index_iio(struct atom_context *ctx, int base) argument
1323 atom_get_vbios_name(struct atom_context *ctx) argument
1371 atom_get_vbios_date(struct atom_context *ctx) argument
1399 atom_find_str_in_rom(struct atom_context *ctx, char *str, int start, int end, int maxlen) argument
1422 atom_get_vbios_pn(struct atom_context *ctx) argument
1463 atom_get_vbios_version(struct atom_context *ctx) argument
1498 struct atom_context *ctx = local
1559 amdgpu_atom_asic_init(struct atom_context *ctx) argument
1583 amdgpu_atom_destroy(struct atom_context *ctx) argument
1589 amdgpu_atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size, uint8_t *frev, uint8_t *crev, uint16_t *data_start) argument
1610 amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t *frev, uint8_t *crev) argument
[all...]
/linux-master/sound/soc/intel/skylake/
H A Dcnl-sst.c46 static int cnl_prepare_fw(struct sst_dsp *ctx, const void *fwdata, u32 fwsize) argument
51 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, fwsize, &ctx->dmab);
53 dev_err(ctx->dev, "dma prepare failed: 0%#x\n", stream_tag);
57 ctx->dsp_ops.stream_tag = stream_tag;
58 memcpy(ctx->dmab.area, fwdata, fwsize);
60 ret = skl_dsp_core_power_up(ctx, SKL_DSP_CORE0_MASK);
62 dev_err(ctx->dev, "dsp core0 power up failed\n");
68 sst_dsp_shim_write(ctx, CNL_ADSP_REG_HIPCID
109 sst_transfer_fw_host_dma(struct sst_dsp *ctx) argument
124 cnl_load_base_firmware(struct sst_dsp *ctx) argument
188 cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) argument
251 cnl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) argument
288 cnl_get_errno(struct sst_dsp *ctx) argument
[all...]
H A Dskl-sst.c33 static bool skl_check_fw_status(struct sst_dsp *ctx, u32 status) argument
37 cur_sts = sst_dsp_shim_read(ctx, SKL_ADSP_FW_STATUS) & SKL_FW_STS_MASK;
42 static int skl_transfer_firmware(struct sst_dsp *ctx, argument
47 ret = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, basefw, base_fw_size,
52 ret = sst_dsp_register_poll(ctx,
59 ctx->cl_dev.ops.cl_stop_dma(ctx);
66 static int skl_load_base_firmware(struct sst_dsp *ctx) argument
69 struct skl_dev *skl = ctx
160 skl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) argument
214 skl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) argument
244 skl_get_errorcode(struct sst_dsp *ctx) argument
253 skl_get_module(struct sst_dsp *ctx, u16 mod_id) argument
265 skl_put_module(struct sst_dsp *ctx, u16 mod_id) argument
277 skl_fill_module_table(struct sst_dsp *ctx, char *mod_name, int mod_id) argument
313 skl_module_get_from_id( struct sst_dsp *ctx, u16 mod_id) argument
331 skl_transfer_module(struct sst_dsp *ctx, const void *data, u32 size, u16 mod_id, u8 table_id, bool is_module) argument
385 skl_load_library(struct sst_dsp *ctx, struct skl_lib_info *linfo, int lib_count) argument
410 skl_load_module(struct sst_dsp *ctx, u16 mod_id, u8 *guid) argument
442 skl_unload_module(struct sst_dsp *ctx, u16 mod_id) argument
469 skl_clear_module_cnt(struct sst_dsp *ctx) argument
482 skl_clear_module_table(struct sst_dsp *ctx) argument
[all...]
/linux-master/crypto/
H A Dalgif_hash.c32 static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx) argument
36 if (ctx->result)
39 ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req));
41 ctx->result = sock_kmalloc(sk, ds, GFP_KERNEL);
42 if (!ctx->result)
45 memset(ctx->result, 0, ds);
50 static void hash_free_result(struct sock *sk, struct hash_ctx *ctx) argument
54 if (!ctx->result)
57 ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req));
59 sock_kzfree_s(sk, ctx
68 struct hash_ctx *ctx = ask->private; local
184 struct hash_ctx *ctx = ask->private; local
231 struct hash_ctx *ctx = ask->private; local
405 struct hash_ctx *ctx = ask->private; local
416 struct hash_ctx *ctx; local
[all...]
/linux-master/fs/
H A Duserfaultfd.c60 struct userfaultfd_ctx *ctx; member in struct:userfaultfd_unmap_ctx
69 struct userfaultfd_ctx *ctx; member in struct:userfaultfd_wait_queue
81 static bool userfaultfd_is_initialized(struct userfaultfd_ctx *ctx) argument
83 return ctx->features & UFFD_FEATURE_INITIALIZED;
86 static bool userfaultfd_wp_async_ctx(struct userfaultfd_ctx *ctx) argument
88 return ctx && (ctx->features & UFFD_FEATURE_WP_ASYNC);
98 struct userfaultfd_ctx *ctx = vma->vm_userfaultfd_ctx.ctx; local
100 if (!ctx)
166 userfaultfd_ctx_get(struct userfaultfd_ctx *ctx) argument
179 userfaultfd_ctx_put(struct userfaultfd_ctx *ctx) argument
244 userfaultfd_huge_must_wait(struct userfaultfd_ctx *ctx, struct vm_fault *vmf, unsigned long reason) argument
274 userfaultfd_huge_must_wait(struct userfaultfd_ctx *ctx, struct vm_fault *vmf, unsigned long reason) argument
289 userfaultfd_must_wait(struct userfaultfd_ctx *ctx, struct vm_fault *vmf, unsigned long reason) argument
381 struct userfaultfd_ctx *ctx; local
564 userfaultfd_event_wait_completion(struct userfaultfd_ctx *ctx, struct userfaultfd_wait_queue *ewq) argument
646 userfaultfd_event_complete(struct userfaultfd_ctx *ctx, struct userfaultfd_wait_queue *ewq) argument
656 struct userfaultfd_ctx *ctx = NULL, *octx; local
708 struct userfaultfd_ctx *ctx = fctx->orig; local
733 struct userfaultfd_ctx *ctx; local
758 struct userfaultfd_ctx *ctx = vm_ctx->ctx; local
783 struct userfaultfd_ctx *ctx; local
807 has_unmap_ctx(struct userfaultfd_ctx *ctx, struct list_head *unmaps, unsigned long start, unsigned long end) argument
824 struct userfaultfd_ctx *ctx = vma->vm_userfaultfd_ctx.ctx; local
848 struct userfaultfd_unmap_ctx *ctx, *n; local
867 struct userfaultfd_ctx *ctx = file->private_data; local
949 find_userfault( struct userfaultfd_ctx *ctx) argument
955 find_userfault_evt( struct userfaultfd_ctx *ctx) argument
963 struct userfaultfd_ctx *ctx = file->private_data; local
1015 userfaultfd_ctx_read(struct userfaultfd_ctx *ctx, int no_wait, struct uffd_msg *msg, struct inode *inode) argument
1183 struct userfaultfd_ctx *ctx = file->private_data; local
1211 __wake_userfault(struct userfaultfd_ctx *ctx, struct userfaultfd_wake_range *range) argument
1224 wake_userfault(struct userfaultfd_ctx *ctx, struct userfaultfd_wake_range *range) argument
1284 userfaultfd_register(struct userfaultfd_ctx *ctx, unsigned long arg) argument
1507 userfaultfd_unregister(struct userfaultfd_ctx *ctx, unsigned long arg) argument
1654 userfaultfd_wake(struct userfaultfd_ctx *ctx, unsigned long arg) argument
1686 userfaultfd_copy(struct userfaultfd_ctx *ctx, unsigned long arg) argument
1743 userfaultfd_zeropage(struct userfaultfd_ctx *ctx, unsigned long arg) argument
1794 userfaultfd_writeprotect(struct userfaultfd_ctx *ctx, unsigned long arg) argument
1846 userfaultfd_continue(struct userfaultfd_ctx *ctx, unsigned long arg) argument
1904 userfaultfd_poison(struct userfaultfd_ctx *ctx, unsigned long arg) argument
1972 userfaultfd_move(struct userfaultfd_ctx *ctx, unsigned long arg) argument
2038 userfaultfd_api(struct userfaultfd_ctx *ctx, unsigned long arg) argument
2101 struct userfaultfd_ctx *ctx = file->private_data; local
2144 struct userfaultfd_ctx *ctx = f->private_data; local
2183 struct userfaultfd_ctx *ctx = (struct userfaultfd_ctx *) mem; local
2194 struct userfaultfd_ctx *ctx; local
[all...]
/linux-master/lib/crypto/
H A Darc4.c13 int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len) argument
17 ctx->x = 1;
18 ctx->y = 0;
21 ctx->S[i] = i;
24 u32 a = ctx->S[i];
27 ctx->S[i] = ctx->S[j];
28 ctx->S[j] = a;
37 void arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int len) argument
39 u32 *const S = ctx
[all...]
/linux-master/lib/kunit/
H A Dstatic_stub.c31 struct kunit_static_stub_ctx *ctx = res->data; local
37 return ctx->real_fn_addr == match_real_fn_addr;
44 struct kunit_static_stub_ctx *ctx; local
54 ctx = res->data;
55 replacement_addr = ctx->replacement_addr;
91 struct kunit_static_stub_ctx *ctx; local
108 ctx = res->data;
109 ctx->replacement_addr = replacement_addr;
114 ctx = kmalloc(sizeof(*ctx), GFP_KERNE
[all...]
H A Dkunit-test.c26 struct kunit_try_catch_test_context *ctx = test->priv; local
28 ctx->function_called = true;
40 struct kunit_try_catch_test_context *ctx = test->priv; local
41 struct kunit_try_catch *try_catch = ctx->try_catch;
49 KUNIT_EXPECT_TRUE(test, ctx->function_called);
55 struct kunit_try_catch_test_context *ctx = test->priv; local
56 struct kunit_try_catch *try_catch = ctx->try_catch;
65 struct kunit_try_catch_test_context *ctx = test->priv; local
67 ctx->function_called = true;
72 struct kunit_try_catch_test_context *ctx local
86 struct kunit_try_catch_test_context *ctx; local
125 struct kunit_test_resource_context *ctx = context; local
141 struct kunit_test_resource_context *ctx = test->priv; local
150 struct kunit_test_resource_context *ctx = test->priv; local
187 struct kunit_test_resource_context *ctx = test->priv; local
208 struct kunit_test_resource_context *ctx = test->priv; local
243 struct kunit_test_resource_context *ctx = test->priv; local
279 struct kunit_test_resource_context *ctx = context; local
290 struct kunit_test_resource_context *ctx = res->data; local
297 struct kunit_test_resource_context *ctx = context; local
317 struct kunit_test_resource_context *ctx = res->data; local
329 struct kunit_test_resource_context *ctx = test->priv; local
362 struct kunit_test_resource_context ctx; local
378 struct kunit_test_resource_context ctx; local
411 increment_int(void *ctx) argument
461 action_order_1(void *ctx) argument
468 action_order_2(void *ctx) argument
477 struct kunit_test_resource_context *ctx = test->priv; local
495 struct kunit_test_resource_context *ctx = local
509 struct kunit_test_resource_context *ctx = test->priv; local
[all...]
/linux-master/fs/smb/common/
H A Dcifs_arc4.c15 int cifs_arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len) argument
19 ctx->x = 1;
20 ctx->y = 0;
23 ctx->S[i] = i;
26 u32 a = ctx->S[i];
29 ctx->S[i] = ctx->S[j];
30 ctx->S[j] = a;
39 void cifs_arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int len) argument
41 u32 *const S = ctx
[all...]
/linux-master/arch/arm64/net/
H A Dbpf_jit_comp.c93 static inline void emit(const u32 insn, struct jit_ctx *ctx) argument
95 if (ctx->image != NULL)
96 ctx->image[ctx->idx] = cpu_to_le32(insn);
98 ctx->idx++;
102 const s32 val, struct jit_ctx *ctx)
109 emit(A64_MOVN(is64, reg, (u16)~lo, 0), ctx); local
111 emit(A64_MOVN(is64, reg, (u16)~hi, 16), ctx); local
113 emit(A64_MOVK(is64, reg, lo, 0), ctx);
116 emit(A64_MOVZ(is64, reg, lo, 0), ctx);
101 emit_a64_mov_i(const int is64, const int reg, const s32 val, struct jit_ctx *ctx) argument
130 emit_a64_mov_i64(const int reg, const u64 val, struct jit_ctx *ctx) argument
155 emit_bti(u32 insn, struct jit_ctx *ctx) argument
166 emit_addr_mov_i64(const int reg, const u64 val, struct jit_ctx *ctx) argument
180 emit_call(u64 target, struct jit_ctx *ctx) argument
185 emit(A64_BLR(tmp), ctx); local
188 bpf2a64_offset(int bpf_insn, int off, const struct jit_ctx *ctx) argument
217 epilogue_offset(const struct jit_ctx *ctx) argument
297 build_prologue(struct jit_ctx *ctx, bool ebpf_from_cbpf, bool is_exception_cb) argument
351 emit(A64_PUSH(A64_FP, A64_LR, A64_SP), ctx); local
355 emit(A64_PUSH(r6, r7, A64_SP), ctx); local
356 emit(A64_PUSH(r8, r9, A64_SP), ctx); local
357 emit(A64_PUSH(fp, tcc, A64_SP), ctx); local
358 emit(A64_PUSH(fpb, A64_R(28), A64_SP), ctx); local
418 emit_bpf_tail_call(struct jit_ctx *ctx) argument
437 emit(A64_LDR32(tmp, r2, tmp), ctx); local
440 emit(A64_B_(A64_COND_CS, jmp_offset), ctx); local
449 emit(A64_B_(A64_COND_CS, jmp_offset), ctx); local
460 emit(A64_LDR64(prg, tmp, prg), ctx); local
466 emit(A64_LDR64(tmp, prg, tmp), ctx); local
469 emit(A64_BR(tmp), ctx); local
485 emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) argument
507 emit(A64_STADD(isdw, reg, src), ctx); local
510 emit(A64_MVN(isdw, tmp2, src), ctx); local
511 emit(A64_STCLR(isdw, reg, tmp2), ctx); local
514 emit(A64_STSET(isdw, reg, src), ctx); local
517 emit(A64_STEOR(isdw, reg, src), ctx); local
521 emit(A64_LDADDAL(isdw, src, reg, src), ctx); local
524 emit(A64_MVN(isdw, tmp2, src), ctx); local
525 emit(A64_LDCLRAL(isdw, src, reg, tmp2), ctx); local
528 emit(A64_LDSETAL(isdw, src, reg, src), ctx); local
531 emit(A64_LDEORAL(isdw, src, reg, src), ctx); local
535 emit(A64_SWPAL(isdw, src, reg, src), ctx); local
539 emit(A64_CASAL(isdw, src, reg, bpf2a64[BPF_REG_0]), ctx); local
549 emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) argument
555 emit_ll_sc_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) argument
581 emit(A64_LDXR(isdw, tmp2, reg), ctx); local
583 emit(A64_ADD(isdw, tmp2, tmp2, src), ctx); local
585 emit(A64_AND(isdw, tmp2, tmp2, src), ctx); local
587 emit(A64_ORR(isdw, tmp2, tmp2, src), ctx); local
589 emit(A64_EOR(isdw, tmp2, tmp2, src), ctx); local
590 emit(A64_STXR(isdw, tmp2, reg, tmp3), ctx); local
601 emit(A64_MOV(isdw, ax, src), ctx); local
602 emit(A64_LDXR(isdw, src, reg), ctx); local
604 emit(A64_ADD(isdw, tmp2, src, ax), ctx); local
606 emit(A64_AND(isdw, tmp2, src, ax), ctx); local
608 emit(A64_ORR(isdw, tmp2, src, ax), ctx); local
610 emit(A64_EOR(isdw, tmp2, src, ax), ctx); local
611 emit(A64_STLXR(isdw, tmp2, reg, tmp3), ctx); local
618 emit(A64_MOV(isdw, tmp2, src), ctx); local
619 emit(A64_LDXR(isdw, src, reg), ctx); local
620 emit(A64_STLXR(isdw, tmp2, reg, tmp3), ctx); local
629 emit(A64_MOV(isdw, tmp2, r0), ctx); local
630 emit(A64_LDXR(isdw, r0, reg), ctx); local
631 emit(A64_EOR(isdw, tmp3, r0, tmp2), ctx); local
634 emit(A64_CBNZ(isdw, tmp3, jmp_offset), ctx); local
635 emit(A64_STLXR(isdw, src, reg, tmp3), ctx); local
677 build_plt(struct jit_ctx *ctx) argument
689 emit(A64_BR(tmp), ctx); local
695 build_epilogue(struct jit_ctx *ctx, bool is_exception_cb) argument
718 emit(A64_POP(fpb, A64_R(28), A64_SP), ctx); local
720 emit(A64_POP(fp, A64_R(26), A64_SP), ctx); local
723 emit(A64_POP(r8, r9, A64_SP), ctx); local
724 emit(A64_POP(r6, r7, A64_SP), ctx); local
727 emit(A64_POP(A64_FP, A64_LR, A64_SP), ctx); local
736 emit(A64_RET(A64_LR), ctx); local
754 add_exception_handler(const struct bpf_insn *insn, struct jit_ctx *ctx, int dst_reg) argument
828 build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, bool extra_pass) argument
858 emit(A64_MOV(is64, dst, src), ctx); local
861 emit(A64_SXTB(is64, dst, src), ctx); local
864 emit(A64_SXTH(is64, dst, src), ctx); local
867 emit(A64_SXTW(is64, dst, src), ctx); local
874 emit(A64_ADD(is64, dst, dst, src), ctx); local
878 emit(A64_SUB(is64, dst, dst, src), ctx); local
882 emit(A64_AND(is64, dst, dst, src), ctx); local
886 emit(A64_ORR(is64, dst, dst, src), ctx); local
890 emit(A64_EOR(is64, dst, dst, src), ctx); local
894 emit(A64_MUL(is64, dst, dst, src), ctx); local
899 emit(A64_UDIV(is64, dst, dst, src), ctx); local
901 emit(A64_SDIV(is64, dst, dst, src), ctx); local
906 emit(A64_UDIV(is64, tmp, dst, src), ctx); local
908 emit(A64_SDIV(is64, tmp, dst, src), ctx); local
909 emit(A64_MSUB(is64, dst, dst, tmp, src), ctx); local
913 emit(A64_LSLV(is64, dst, dst, src), ctx); local
917 emit(A64_LSRV(is64, dst, dst, src), ctx); local
921 emit(A64_ASRV(is64, dst, dst, src), ctx); local
926 emit(A64_NEG(is64, dst, dst), ctx); local
941 emit(A64_REV16(is64, dst, dst), ctx); local
943 emit(A64_UXTH(is64, dst, dst), ctx); local
950 emit(A64_REV64(dst, dst), ctx); local
958 emit(A64_UXTH(is64, dst, dst), ctx); local
962 emit(A64_UXTW(is64, dst, dst), ctx); local
978 emit(A64_ADD_I(is64, dst, dst, imm), ctx); local
983 emit(A64_ADD(is64, dst, dst, tmp), ctx); local
989 emit(A64_SUB_I(is64, dst, dst, imm), ctx); local
994 emit(A64_SUB(is64, dst, dst, tmp), ctx); local
1004 emit(A64_AND(is64, dst, dst, tmp), ctx); local
1014 emit(A64_ORR(is64, dst, dst, tmp), ctx); local
1024 emit(A64_EOR(is64, dst, dst, tmp), ctx); local
1030 emit(A64_MUL(is64, dst, dst, tmp), ctx); local
1036 emit(A64_UDIV(is64, dst, dst, tmp), ctx); local
1038 emit(A64_SDIV(is64, dst, dst, tmp), ctx); local
1044 emit(A64_UDIV(is64, tmp, dst, tmp2), ctx); local
1046 emit(A64_SDIV(is64, tmp, dst, tmp2), ctx); local
1047 emit(A64_MSUB(is64, dst, dst, tmp, tmp2), ctx); local
1051 emit(A64_LSL(is64, dst, dst, imm), ctx); local
1055 emit(A64_LSR(is64, dst, dst, imm), ctx); local
1059 emit(A64_ASR(is64, dst, dst, imm), ctx); local
1070 emit(A64_B(jmp_offset), ctx); local
1093 emit(A64_CMP(is64, dst, src), ctx); local
1132 emit(A64_B_(jmp_cond, jmp_offset), ctx); local
1136 emit(A64_TST(is64, dst, src), ctx); local
1160 emit(A64_CMP_I(is64, dst, imm), ctx); local
1165 emit(A64_CMP(is64, dst, tmp), ctx); local
1175 emit(A64_TST(is64, dst, tmp), ctx); local
1206 emit(A64_B(jmp_offset), ctx); local
1253 emit(A64_LDRSWI(dst, src_adj, off_adj), ctx); local
1255 emit(A64_LDR32I(dst, src_adj, off_adj), ctx); local
1259 emit(A64_LDRSW(dst, src, tmp), ctx); local
1261 emit(A64_LDR32(dst, src, tmp), ctx); local
1267 emit(A64_LDRSHI(dst, src_adj, off_adj), ctx); local
1269 emit(A64_LDRHI(dst, src_adj, off_adj), ctx); local
1273 emit(A64_LDRSH(dst, src, tmp), ctx); local
1275 emit(A64_LDRH(dst, src, tmp), ctx); local
1281 emit(A64_LDRSBI(dst, src_adj, off_adj), ctx); local
1283 emit(A64_LDRBI(dst, src_adj, off_adj), ctx); local
1287 emit(A64_LDRSB(dst, src, tmp), ctx); local
1289 emit(A64_LDRB(dst, src, tmp), ctx); local
1294 emit(A64_LDR64I(dst, src_adj, off_adj), ctx); local
1297 emit(A64_LDR64(dst, src, tmp), ctx); local
1337 emit(A64_STR32I(tmp, dst_adj, off_adj), ctx); local
1340 emit(A64_STR32(tmp, dst, tmp2), ctx); local
1345 emit(A64_STRHI(tmp, dst_adj, off_adj), ctx); local
1348 emit(A64_STRH(tmp, dst, tmp2), ctx); local
1353 emit(A64_STRBI(tmp, dst_adj, off_adj), ctx); local
1356 emit(A64_STRB(tmp, dst, tmp2), ctx); local
1361 emit(A64_STR64I(tmp, dst_adj, off_adj), ctx); local
1364 emit(A64_STR64(tmp, dst, tmp2), ctx); local
1385 emit(A64_STR32I(src, dst_adj, off_adj), ctx); local
1388 emit(A64_STR32(src, dst, tmp), ctx); local
1393 emit(A64_STRHI(src, dst_adj, off_adj), ctx); local
1396 emit(A64_STRH(src, dst, tmp), ctx); local
1401 emit(A64_STRBI(src, dst_adj, off_adj), ctx); local
1404 emit(A64_STRB(src, dst, tmp), ctx); local
1409 emit(A64_STR64I(src, dst_adj, off_adj), ctx); local
1412 emit(A64_STR64(src, dst, tmp), ctx); local
1509 build_body(struct jit_ctx *ctx, bool extra_pass) argument
1550 validate_code(struct jit_ctx *ctx) argument
1563 validate_ctx(struct jit_ctx *ctx) argument
1583 struct jit_ctx ctx; member in struct:arm64_jit_data
1596 struct jit_ctx ctx; local
1813 invoke_bpf_prog(struct jit_ctx *ctx, struct bpf_tramp_link *l, int args_off, int retval_off, int run_ctx_off, bool save_ret) argument
1830 emit_a64_mov_i64(A64_R(10), l->cookie, ctx); local
1832 ctx); local
1838 emit_addr_mov_i64(A64_R(19), (const u64)p, ctx); local
1858 emit_addr_mov_i64(A64_R(1), (const u64)p->insnsi, ctx); local
1880 invoke_bpf_mod_ret(struct jit_ctx *ctx, struct bpf_tramp_links *tl, int args_off, int retval_off, int run_ctx_off, __le32 **branches) argument
1889 emit(A64_STR64I(A64_ZR, A64_SP, retval_off), ctx); local
1905 save_args(struct jit_ctx *ctx, int args_off, int nregs) argument
1910 emit(A64_STR64I(i, A64_SP, args_off), ctx); local
1915 restore_args(struct jit_ctx *ctx, int args_off, int nregs) argument
1920 emit(A64_LDR64I(i, A64_SP, args_off), ctx); local
1936 prepare_trampoline(struct jit_ctx *ctx, struct bpf_tramp_image *im, struct bpf_tramp_links *tlinks, void *func_addr, int nregs, u32 flags) argument
2023 emit(A64_PUSH(A64_FP, A64_R(9), A64_SP), ctx); local
2027 emit(A64_PUSH(A64_FP, A64_LR, A64_SP), ctx); local
2035 emit_addr_mov_i64(A64_R(10), (const u64)func_addr, ctx); local
2051 emit_addr_mov_i64(A64_R(0), (const u64)im, ctx); local
2074 emit(A64_ADR(A64_LR, AARCH64_INSN_SIZE * 2), ctx); local
2095 emit_addr_mov_i64(A64_R(0), (const u64)im, ctx); local
2113 emit(A64_POP(A64_FP, A64_LR, A64_SP), ctx); local
2114 emit(A64_POP(A64_FP, A64_R(9), A64_SP), ctx); local
2150 struct jit_ctx ctx = { local
2203 struct jit_ctx ctx = { local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dget_func_args_test.c13 __u64 cnt = bpf_get_func_arg_cnt(ctx);
20 err = bpf_get_func_arg(ctx, 0, &a);
33 err = bpf_get_func_arg(ctx, 1, &z);
37 err = bpf_get_func_ret(ctx, &ret);
46 __u64 cnt = bpf_get_func_arg_cnt(ctx);
53 err = bpf_get_func_arg(ctx, 0, &a);
56 err = bpf_get_func_arg(ctx, 1, &b);
60 err = bpf_get_func_arg(ctx, 2, &z);
64 err = bpf_get_func_ret(ctx, &ret);
73 __u64 cnt = bpf_get_func_arg_cnt(ctx);
[all...]
/linux-master/tools/testing/selftests/bpf/benchs/
H A Dbench_strncmp.c9 } ctx; variable in typeref:struct:strncmp_ctx
33 args.cmp_str_len >= sizeof(ctx.skel->bss->str)) {
35 sizeof(ctx.skel->bss->str));
65 sz = sizeof(ctx.skel->rodata->target);
66 if (!sz || sz < sizeof(ctx.skel->bss->str)) {
68 sz, sizeof(ctx.skel->bss->str));
74 ctx.skel = strncmp_bench__open();
75 if (!ctx.skel) {
81 target = ctx.skel->rodata->target;
86 ctx
124 strncmp_producer(void *ctx) argument
[all...]
/linux-master/io_uring/
H A Dregister.c34 static int io_eventfd_register(struct io_ring_ctx *ctx, void __user *arg, argument
41 ev_fd = rcu_dereference_protected(ctx->io_ev_fd,
42 lockdep_is_held(&ctx->uring_lock));
60 spin_lock(&ctx->completion_lock);
61 ctx->evfd_last_cq_tail = ctx->cached_cq_tail;
62 spin_unlock(&ctx->completion_lock);
65 ctx->has_evfd = true;
66 rcu_assign_pointer(ctx->io_ev_fd, ev_fd);
72 int io_eventfd_unregister(struct io_ring_ctx *ctx) argument
89 io_probe(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args) argument
129 io_unregister_personality(struct io_ring_ctx *ctx, unsigned id) argument
143 io_register_personality(struct io_ring_ctx *ctx) argument
160 io_register_restrictions(struct io_ring_ctx *ctx, void __user *arg, unsigned int nr_args) argument
230 io_register_enable_rings(struct io_ring_ctx *ctx) argument
254 __io_register_iowq_aff(struct io_ring_ctx *ctx, cpumask_var_t new_mask) argument
270 io_register_iowq_aff(struct io_ring_ctx *ctx, void __user *arg, unsigned len) argument
302 io_unregister_iowq_aff(struct io_ring_ctx *ctx) argument
577 struct io_ring_ctx *ctx; local
[all...]
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_vp8_req_if.c93 * @ctx: V4L2 context
102 struct mtk_vcodec_dec_ctx *ctx; member in struct:vdec_vp8_slice_inst
107 static void *vdec_vp8_slice_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id) argument
109 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, id);
119 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; local
122 data[0] = ctx->picinfo.pic_w;
123 data[1] = ctx->picinfo.pic_h;
124 data[2] = ctx->capture_fourcc;
127 ctx
234 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; local
273 vdec_vp8_slice_init(struct mtk_vcodec_dec_ctx *ctx) argument
[all...]
/linux-master/drivers/gpu/drm/panel/
H A Dpanel-ebbg-ft8719.c47 static void ebbg_ft8719_reset(struct ebbg_ft8719 *ctx) argument
49 gpiod_set_value_cansleep(ctx->reset_gpio, 0);
51 gpiod_set_value_cansleep(ctx->reset_gpio, 1);
53 gpiod_set_value_cansleep(ctx->reset_gpio, 0);
57 static int ebbg_ft8719_on(struct ebbg_ft8719 *ctx) argument
59 struct mipi_dsi_device *dsi = ctx->dsi;
90 static int ebbg_ft8719_off(struct ebbg_ft8719 *ctx) argument
92 struct mipi_dsi_device *dsi = ctx->dsi;
117 struct ebbg_ft8719 *ctx = to_ebbg_ft8719(panel); local
118 struct device *dev = &ctx
139 struct ebbg_ft8719 *ctx = to_ebbg_ft8719(panel); local
198 struct ebbg_ft8719 *ctx; local
255 struct ebbg_ft8719 *ctx = mipi_dsi_get_drvdata(dsi); local
[all...]
H A Dpanel-ronbo-rb070d30.c47 struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel); local
50 ret = regulator_enable(ctx->supply);
52 dev_err(&ctx->dsi->dev, "Failed to enable supply: %d\n", ret);
57 gpiod_set_value(ctx->gpios.power, 1);
59 gpiod_set_value(ctx->gpios.reset, 1);
66 struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel); local
68 gpiod_set_value(ctx->gpios.reset, 0);
69 gpiod_set_value(ctx->gpios.power, 0);
70 regulator_disable(ctx->supply);
77 struct rb070d30_panel *ctx local
84 struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel); local
108 struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel); local
143 struct rb070d30_panel *ctx; local
213 struct rb070d30_panel *ctx = mipi_dsi_get_drvdata(dsi); local
[all...]
H A Dpanel-samsung-sofef00.c34 static void sofef00_panel_reset(struct sofef00_panel *ctx) argument
36 gpiod_set_value_cansleep(ctx->reset_gpio, 0);
38 gpiod_set_value_cansleep(ctx->reset_gpio, 1);
40 gpiod_set_value_cansleep(ctx->reset_gpio, 0);
44 static int sofef00_panel_on(struct sofef00_panel *ctx) argument
46 struct mipi_dsi_device *dsi = ctx->dsi;
84 static int sofef00_panel_off(struct sofef00_panel *ctx) argument
86 struct mipi_dsi_device *dsi = ctx->dsi;
111 struct sofef00_panel *ctx = to_sofef00_panel(panel); local
112 struct device *dev = &ctx
135 struct sofef00_panel *ctx = to_sofef00_panel(panel); local
179 struct sofef00_panel *ctx = to_sofef00_panel(panel); local
235 struct sofef00_panel *ctx; local
287 struct sofef00_panel *ctx = mipi_dsi_get_drvdata(dsi); local
[all...]
/linux-master/drivers/media/platform/samsung/exynos-gsc/
H A Dgsc-m2m.c27 static int gsc_m2m_ctx_stop_req(struct gsc_ctx *ctx) argument
30 struct gsc_dev *gsc = ctx->gsc_dev;
34 if (!gsc_m2m_pending(gsc) || (curr_ctx != ctx))
37 gsc_ctx_state_lock_set(GSC_CTX_STOP_REQ, ctx);
39 !gsc_ctx_state_is_set(GSC_CTX_STOP_REQ, ctx),
45 static void __gsc_m2m_job_abort(struct gsc_ctx *ctx) argument
49 ret = gsc_m2m_ctx_stop_req(ctx);
50 if ((ret == -ETIMEDOUT) || (ctx->state & GSC_CTX_ABORT)) {
51 gsc_ctx_state_lock_clear(GSC_CTX_STOP_REQ | GSC_CTX_ABORT, ctx);
52 gsc_m2m_job_finish(ctx, VB2_BUF_STATE_ERRO
58 struct gsc_ctx *ctx = q->drv_priv; local
63 __gsc_m2m_cleanup_queue(struct gsc_ctx *ctx) argument
80 struct gsc_ctx *ctx = q->drv_priv; local
89 gsc_m2m_job_finish(struct gsc_ctx *ctx, int vb_state) argument
120 gsc_get_bufs(struct gsc_ctx *ctx) argument
146 struct gsc_ctx *ctx = priv; local
229 struct gsc_ctx *ctx = vb2_get_drv_priv(vq); local
248 struct gsc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
267 struct gsc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
302 struct gsc_ctx *ctx = fh_to_ctx(fh); local
310 struct gsc_ctx *ctx = fh_to_ctx(fh); local
318 struct gsc_ctx *ctx = fh_to_ctx(fh); local
364 struct gsc_ctx *ctx = fh_to_ctx(fh); local
379 struct gsc_ctx *ctx = fh_to_ctx(fh); local
386 struct gsc_ctx *ctx = fh_to_ctx(fh); local
393 struct gsc_ctx *ctx = fh_to_ctx(fh); local
400 struct gsc_ctx *ctx = fh_to_ctx(fh); local
407 struct gsc_ctx *ctx = fh_to_ctx(fh); local
423 struct gsc_ctx *ctx = fh_to_ctx(fh); local
446 struct gsc_ctx *ctx = fh_to_ctx(fh); local
483 struct gsc_ctx *ctx = fh_to_ctx(fh); local
574 struct gsc_ctx *ctx = priv; local
609 struct gsc_ctx *ctx = NULL; local
671 struct gsc_ctx *ctx = fh_to_ctx(file->private_data); local
695 struct gsc_ctx *ctx = fh_to_ctx(file->private_data); local
710 struct gsc_ctx *ctx = fh_to_ctx(file->private_data); local
[all...]
/linux-master/drivers/vfio/pci/
H A Dvfio_pci_intrs.c55 return xa_load(&vdev->ctx, index);
59 struct vfio_pci_irq_ctx *ctx, unsigned long index)
61 xa_erase(&vdev->ctx, index);
62 kfree(ctx);
68 struct vfio_pci_irq_ctx *ctx; local
71 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL_ACCOUNT);
72 if (!ctx)
75 ret = xa_insert(&vdev->ctx, index, ctx, GFP_KERNEL_ACCOUN
58 vfio_irq_ctx_free(struct vfio_pci_core_device *vdev, struct vfio_pci_irq_ctx *ctx, unsigned long index) argument
92 struct vfio_pci_irq_ctx *ctx; local
109 struct vfio_pci_irq_ctx *ctx; local
173 struct vfio_pci_irq_ctx *ctx; local
232 struct vfio_pci_irq_ctx *ctx; local
264 struct vfio_pci_irq_ctx *ctx; local
330 struct vfio_pci_irq_ctx *ctx; local
354 struct vfio_pci_irq_ctx *ctx; local
451 struct vfio_pci_irq_ctx *ctx; local
560 struct vfio_pci_irq_ctx *ctx; local
601 struct vfio_pci_irq_ctx *ctx = vfio_irq_ctx_get(vdev, 0); local
689 struct vfio_pci_irq_ctx *ctx; local
738 vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx, unsigned int count, uint32_t flags, void *data) argument
[all...]

Completed in 412 milliseconds

<<11121314151617181920>>