/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_log_buf.c | 11 int good_prog(const void *ctx) argument 13 a[0] = (int)(long)ctx; 18 int bad_prog(const void *ctx) argument
|
H A D | bpf_iter_bpf_link.c | 9 int dump_bpf_link(struct bpf_iter__bpf_link *ctx) argument 11 struct seq_file *seq = ctx->meta->seq; 12 struct bpf_link *link = ctx->link;
|
H A D | uprobe_multi.c | 37 static void uprobe_multi_check(void *ctx, bool is_return, bool is_sleep) argument 44 __u64 cookie = test_cookie ? bpf_get_attach_cookie(ctx) : 0; 45 __u64 addr = bpf_get_func_ip(ctx); 70 int uprobe(struct pt_regs *ctx) argument 72 uprobe_multi_check(ctx, false, false); 77 int uretprobe(struct pt_regs *ctx) argument 79 uprobe_multi_check(ctx, true, false); 84 int uprobe_sleep(struct pt_regs *ctx) argument 86 uprobe_multi_check(ctx, false, true); 91 int uretprobe_sleep(struct pt_regs *ctx) argument 98 uprobe_extra(struct pt_regs *ctx) argument [all...] |
H A D | test_ldsx_insn.c | 24 int rdonly_map_prog(const void *ctx) argument 38 int map_val_prog(const void *ctx) argument 68 int _getsockopt(volatile struct bpf_sockopt *ctx) argument 72 old_optlen = ctx->optlen; 73 old_retval = ctx->retval; 75 ctx->optlen = -1; 76 ctx->retval = -1; 78 /* sign extension for ctx member */ 79 set_optlen = ctx->optlen; 80 set_retval = ctx [all...] |
/linux-master/drivers/media/platform/verisilicon/ |
H A D | hantro_mpeg2.c | 38 int hantro_mpeg2_dec_init(struct hantro_ctx *ctx) argument 40 struct hantro_dev *vpu = ctx->dev; 42 ctx->mpeg2_dec.qtable.size = ARRAY_SIZE(zigzag) * 4; 43 ctx->mpeg2_dec.qtable.cpu = 45 ctx->mpeg2_dec.qtable.size, 46 &ctx->mpeg2_dec.qtable.dma, 48 if (!ctx->mpeg2_dec.qtable.cpu) 53 void hantro_mpeg2_dec_exit(struct hantro_ctx *ctx) argument 55 struct hantro_dev *vpu = ctx->dev; 58 ctx [all...] |
H A D | hantro_v4l2.h | 27 int hantro_reset_raw_fmt(struct hantro_ctx *ctx, int bit_depth, bool need_postproc); 28 void hantro_reset_fmts(struct hantro_ctx *ctx); 31 hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream,
|
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | bench_count.c | 13 struct count_global_ctx *ctx = &count_global_ctx; local 16 atomic_inc(&ctx->hits.value); 23 struct count_global_ctx *ctx = &count_global_ctx; local 25 res->hits = atomic_swap(&ctx->hits.value, 0); 36 struct count_local_ctx *ctx = &count_local_ctx; local 38 ctx->hits = calloc(env.producer_cnt, sizeof(*ctx->hits)); 39 if (!ctx->hits) 45 struct count_local_ctx *ctx = &count_local_ctx; local 49 atomic_inc(&ctx 56 struct count_local_ctx *ctx = &count_local_ctx; local [all...] |
/linux-master/drivers/gpu/drm/panel/ |
H A D | panel-sony-td4353-jdi.c | 47 static int sony_td4353_jdi_on(struct sony_td4353_jdi *ctx) argument 49 struct mipi_dsi_device *dsi = ctx->dsi; 108 static int sony_td4353_jdi_off(struct sony_td4353_jdi *ctx) argument 110 struct mipi_dsi_device *dsi = ctx->dsi; 139 static void sony_td4353_assert_reset_gpios(struct sony_td4353_jdi *ctx, int mode) argument 141 gpiod_set_value_cansleep(ctx->touch_reset_gpio, mode); 142 gpiod_set_value_cansleep(ctx->panel_reset_gpio, mode); 148 struct sony_td4353_jdi *ctx = to_sony_td4353_jdi(panel); local 149 struct device *dev = &ctx->dsi->dev; 152 ret = regulator_bulk_enable(ARRAY_SIZE(ctx 175 struct sony_td4353_jdi *ctx = to_sony_td4353_jdi(panel); local 206 struct sony_td4353_jdi *ctx = to_sony_td4353_jdi(panel); local 236 struct sony_td4353_jdi *ctx; local 291 struct sony_td4353_jdi *ctx = mipi_dsi_get_drvdata(dsi); local [all...] |
/linux-master/security/apparmor/include/ |
H A D | task.h | 40 * @ctx: task_ctx to free (MAYBE NULL) 42 static inline void aa_free_task_ctx(struct aa_task_ctx *ctx) argument 44 if (ctx) { 45 aa_put_label(ctx->nnp); 46 aa_put_label(ctx->previous); 47 aa_put_label(ctx->onexec); 66 * aa_clear_task_ctx_trans - clear transition tracking info from the ctx 67 * @ctx: task context to clear (NOT NULL) 69 static inline void aa_clear_task_ctx_trans(struct aa_task_ctx *ctx) argument 71 AA_BUG(!ctx); [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | syscall.c | 18 struct args ctx = { local 24 .ctx_in = &ctx, 25 .ctx_size_in = sizeof(ctx), 39 ASSERT_GT(ctx.map_fd, 0, "ctx.map_fd"); 40 ASSERT_GT(ctx.prog_fd, 0, "ctx.prog_fd"); 44 err = bpf_map_lookup_elem(ctx.map_fd, &key, &value); 49 if (ctx.prog_fd > 0) 50 close(ctx [all...] |
/linux-master/drivers/gpu/drm/bridge/ |
H A D | tc358764.c | 158 static int tc358764_clear_error(struct tc358764 *ctx) argument 160 int ret = ctx->error; 162 ctx->error = 0; 166 static void tc358764_read(struct tc358764 *ctx, u16 addr, u32 *val) argument 168 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); 171 if (ctx->error) 179 dev_dbg(ctx->dev, "read: addr=0x%04x data=0x%08x\n", addr, *val); 182 static void tc358764_write(struct tc358764 *ctx, u16 addr, u32 val) argument 184 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); 188 if (ctx 208 tc358764_init(struct tc358764 *ctx) argument 262 tc358764_reset(struct tc358764 *ctx) argument 272 struct tc358764 *ctx = bridge_to_tc358764(bridge); local 284 struct tc358764 *ctx = bridge_to_tc358764(bridge); local 300 struct tc358764 *ctx = bridge_to_tc358764(bridge); local 311 tc358764_parse_dt(struct tc358764 *ctx) argument 328 tc358764_configure_regulators(struct tc358764 *ctx) argument 346 struct tc358764 *ctx; local 387 struct tc358764 *ctx = mipi_dsi_get_drvdata(dsi); local [all...] |
/linux-master/sound/soc/intel/skylake/ |
H A D | bxt-sst.c | 40 static unsigned int bxt_get_errorcode(struct sst_dsp *ctx) argument 42 return sst_dsp_shim_read(ctx, BXT_ADSP_ERROR_CODE); 46 bxt_load_library(struct sst_dsp *ctx, struct skl_lib_info *linfo, int lib_count) argument 49 struct skl_dev *skl = ctx->thread_context; 60 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, 63 dev_err(ctx->dev, "Lib prepare DMA err: %x\n", 72 ctx->dsp_ops.trigger(ctx->dev, true, stream_tag); 75 dev_err(ctx 94 sst_bxt_prepare_fw(struct sst_dsp *ctx, const void *fwdata, u32 fwsize) argument 167 sst_transfer_fw_host_dma(struct sst_dsp *ctx) argument 181 bxt_load_base_firmware(struct sst_dsp *ctx) argument 266 bxt_d0i3_target_state(struct sst_dsp *ctx) argument 290 struct sst_dsp *ctx = skl->dsp; local 329 bxt_schedule_dsp_D0i3(struct sst_dsp *ctx) argument 346 bxt_set_dsp_D0i0(struct sst_dsp *ctx) argument 387 bxt_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) argument 482 bxt_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) argument [all...] |
/linux-master/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 63 static u8 bpf_to_rv_reg(int bpf_reg, struct rv_jit_context *ctx) argument 74 __set_bit(reg, &ctx->flags); 79 static bool seen_reg(int reg, struct rv_jit_context *ctx) argument 89 return test_bit(reg, &ctx->flags); 94 static void mark_fp(struct rv_jit_context *ctx) argument 96 __set_bit(RV_CTX_F_SEEN_S5, &ctx->flags); 99 static void mark_call(struct rv_jit_context *ctx) argument 101 __set_bit(RV_CTX_F_SEEN_CALL, &ctx->flags); 104 static bool seen_call(struct rv_jit_context *ctx) argument 106 return test_bit(RV_CTX_F_SEEN_CALL, &ctx 109 mark_tail_call(struct rv_jit_context *ctx) argument 114 seen_tail_call(struct rv_jit_context *ctx) argument 119 rv_tail_call_reg(struct rv_jit_context *ctx) argument 146 emit_sextw_alt(u8 *rd, u8 ra, struct rv_jit_context *ctx) argument 152 emit_zextw_alt(u8 *rd, u8 ra, struct rv_jit_context *ctx) argument 159 emit_addr(u8 rd, u64 addr, bool extra_pass, struct rv_jit_context *ctx) argument 175 emit(rv_auipc(rd, upper), ctx); local 176 emit(rv_addi(rd, rd, lower), ctx); local 181 emit_imm(u8 rd, s64 val, struct rv_jit_context *ctx) argument 224 __build_epilogue(bool is_tail_call, struct rv_jit_context *ctx) argument 268 emit_bcc(u8 cond, u8 rd, u8 rs, int rvoff, struct rv_jit_context *ctx) argument 304 emit_branch(u8 cond, u8 rd, u8 rs, int rvoff, struct rv_jit_context *ctx) argument 339 emit(rv_auipc(RV_REG_T1, upper), ctx); local 340 emit(rv_jalr(RV_REG_ZERO, RV_REG_T1, lower), ctx); local 343 emit_bpf_tail_call(int insn, struct rv_jit_context *ctx) argument 395 init_regs(u8 *rd, u8 *rs, const struct bpf_insn *insn, struct rv_jit_context *ctx) argument 416 emit_jump_and_link(u8 rd, s64 rvoff, bool fixed_addr, struct rv_jit_context *ctx) argument 427 emit(rv_auipc(RV_REG_T1, upper), ctx); local 428 emit(rv_jalr(rd, RV_REG_T1, lower), ctx); local 442 emit_call(u64 addr, bool fixed_addr, struct rv_jit_context *ctx) argument 459 emit_kcfi(u32 hash, struct rv_jit_context *ctx) argument 465 emit_atomic(u8 rd, u8 rs, s16 off, s32 imm, bool is64, struct rv_jit_context *ctx) argument 565 add_exception_handler(const struct bpf_insn *insn, struct rv_jit_context *ctx, int dst_reg, int insn_len) argument 636 struct rv_jit_context ctx; local 642 emit(rv_nop(), &ctx); local 643 emit(rv_nop(), &ctx); local 683 store_args(int nregs, int args_off, struct rv_jit_context *ctx) argument 693 restore_args(int nregs, int args_off, struct rv_jit_context *ctx) argument 703 invoke_bpf_prog(struct bpf_tramp_link *l, int args_off, int retval_off, int run_ctx_off, bool save_ret, struct rv_jit_context *ctx) argument 730 emit(rv_nop(), ctx); local 739 emit_imm(RV_REG_A1, (const s64)p->insnsi, ctx); local 767 __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, const struct btf_func_model *m, struct bpf_tramp_links *tlinks, void *func_addr, u32 flags, struct rv_jit_context *ctx) argument 880 emit_kcfi(cfi_get_func_hash(func_addr), ctx); local 937 emit(rv_nop(), ctx); local 950 emit(rv_nop(), ctx); local 951 emit(rv_nop(), ctx); local 1021 struct rv_jit_context ctx; local 1038 struct rv_jit_context ctx; local 1059 bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx, bool extra_pass) argument 1250 emit(rv_ori(rd, rd, imm), ctx); local 1261 emit(rv_xori(rd, rd, imm), ctx); local 1313 emit(rv_srliw(rd, rd, imm), ctx); local 1323 emit(rv_sraiw(rd, rd, imm), ctx); local 1386 emit_branch(BPF_OP(code), rd, rs, rvoff, ctx); local 1430 emit_branch(BPF_OP(code), rd, rs, rvoff, ctx); local 1538 emit(rv_lb(rd, off, rs), ctx); local 1540 emit(rv_lbu(rd, off, rs), ctx); local 1558 emit(rv_lh(rd, off, rs), ctx); local 1560 emit(rv_lhu(rd, off, rs), ctx); local 1578 emit(rv_lw(rd, off, rs), ctx); local 1580 emit(rv_lwu(rd, off, rs), ctx); local 1626 emit(rv_sb(rd, off, RV_REG_T1), ctx); local 1638 emit(rv_sh(rd, off, RV_REG_T1), ctx); local 1672 emit(rv_sb(rd, off, rs), ctx); local 1682 emit(rv_sh(rd, off, rs), ctx); local 1723 bpf_jit_build_prologue(struct rv_jit_context *ctx, bool is_subprog) argument 1757 emit(rv_nop(), ctx); local 1763 emit(rv_addi(RV_REG_TCC, RV_REG_ZERO, MAX_TAIL_CALL_CNT), ctx); local 1812 bpf_jit_build_epilogue(struct rv_jit_context *ctx) argument [all...] |
/linux-master/arch/powerpc/platforms/cell/spufs/ |
H A D | spufs.h | 37 /* ctx->sched_flags */ 118 /* updates protected by ctx->state_mutex */ 128 unsigned long long slb_flt_base; /* # at last ctx switch */ 130 unsigned long long class2_intr_base; /* # at last ctx switch */ 173 int (*mbox_read) (struct spu_context * ctx, u32 * data); 174 u32(*mbox_stat_read) (struct spu_context * ctx); 175 __poll_t (*mbox_stat_poll)(struct spu_context *ctx, __poll_t events); 176 int (*ibox_read) (struct spu_context * ctx, u32 * data); 177 int (*wbox_write) (struct spu_context * ctx, u32 data); 178 u32(*signal1_read) (struct spu_context * ctx); 259 spu_acquire(struct spu_context *ctx) argument 264 spu_release(struct spu_context *ctx) argument [all...] |
/linux-master/arch/x86/crypto/ |
H A D | aria-avx.h | 16 asmlinkage void aria_aesni_avx_encrypt_16way(const void *ctx, u8 *dst, 18 asmlinkage void aria_aesni_avx_decrypt_16way(const void *ctx, u8 *dst, 20 asmlinkage void aria_aesni_avx_ctr_crypt_16way(const void *ctx, u8 *dst, 23 asmlinkage void aria_aesni_avx_gfni_encrypt_16way(const void *ctx, u8 *dst, 25 asmlinkage void aria_aesni_avx_gfni_decrypt_16way(const void *ctx, u8 *dst, 27 asmlinkage void aria_aesni_avx_gfni_ctr_crypt_16way(const void *ctx, u8 *dst, 31 asmlinkage void aria_aesni_avx2_encrypt_32way(const void *ctx, u8 *dst, 33 asmlinkage void aria_aesni_avx2_decrypt_32way(const void *ctx, u8 *dst, 35 asmlinkage void aria_aesni_avx2_ctr_crypt_32way(const void *ctx, u8 *dst, 38 asmlinkage void aria_aesni_avx2_gfni_encrypt_32way(const void *ctx, u [all...] |
/linux-master/drivers/scsi/cxlflash/ |
H A D | ocxl_hw.c | 51 * @ctx: Context whose mapping is to be released. 53 static void ocxlflash_release_mapping(struct ocxlflash_context *ctx) argument 55 if (ctx->mapping) 57 ctx->mapping = NULL; 131 struct ocxlflash_context *ctx = ctx_cookie; local 132 struct device *dev = ctx->hw_afu->dev; 134 mutex_lock(&ctx->state_mutex); 135 if (ctx->state != STARTED) { 137 ctx->state); 138 mutex_unlock(&ctx 163 struct ocxlflash_context *ctx = ctx_cookie; local 179 afu_map_irq(u64 flags, struct ocxlflash_context *ctx, int num, irq_handler_t handler, void *cookie, char *name) argument 251 afu_unmap_irq(u64 flags, struct ocxlflash_context *ctx, int num, void *cookie) argument 293 struct ocxlflash_context *ctx = ctx_cookie; local 309 struct ocxlflash_context *ctx = data; local 328 start_context(struct ocxlflash_context *ctx) argument 388 struct ocxlflash_context *ctx = ctx_cookie; local 401 struct ocxlflash_context *ctx = ctx_cookie; local 442 struct ocxlflash_context *ctx = ctx_cookie; local 458 struct ocxlflash_context *ctx = ctx_cookie; local 488 struct ocxlflash_context *ctx; local 535 struct ocxlflash_context *ctx = ctx_cookie; local 590 free_afu_irqs(struct ocxlflash_context *ctx) argument 615 alloc_afu_irqs(struct ocxlflash_context *ctx, int num) argument 911 struct ocxlflash_context *ctx; local 967 ctx_event_pending(struct ocxlflash_context *ctx) argument 984 struct ocxlflash_context *ctx = file->private_data; local 1016 struct ocxlflash_context *ctx = file->private_data; local 1108 struct ocxlflash_context *ctx = file->private_data; local 1128 struct ocxlflash_context *ctx = vma->vm_file->private_data; local 1164 struct ocxlflash_context *ctx = file->private_data; local 1198 struct ocxlflash_context *ctx = ctx_cookie; local 1274 struct ocxlflash_context *ctx = data; local 1309 struct ocxlflash_context *ctx = ctx_cookie; local [all...] |
/linux-master/drivers/gpu/drm/msm/ |
H A D | msm_submitqueue.c | 10 int msm_file_private_set_sysprof(struct msm_file_private *ctx, argument 33 switch (ctx->sysprof) { 44 ctx->sysprof = sysprof; 51 struct msm_file_private *ctx = container_of(kref, local 55 for (i = 0; i < ARRAY_SIZE(ctx->entities); i++) { 56 if (!ctx->entities[i]) 59 drm_sched_entity_destroy(ctx->entities[i]); 60 kfree(ctx->entities[i]); 63 msm_gem_address_space_put(ctx->aspace); 64 kfree(ctx 81 msm_submitqueue_get(struct msm_file_private *ctx, u32 id) argument 104 msm_submitqueue_close(struct msm_file_private *ctx) argument 122 get_sched_entity(struct msm_file_private *ctx, struct msm_ringbuffer *ring, unsigned ring_nr, enum drm_sched_priority sched_prio) argument 158 msm_submitqueue_create(struct drm_device *drm, struct msm_file_private *ctx, u32 prio, u32 flags, u32 *id) argument 217 msm_submitqueue_init(struct drm_device *drm, struct msm_file_private *ctx) argument 257 msm_submitqueue_query(struct drm_device *drm, struct msm_file_private *ctx, struct drm_msm_submitqueue_query *args) argument 278 msm_submitqueue_remove(struct msm_file_private *ctx, u32 id) argument [all...] |
/linux-master/sound/soc/xilinx/ |
H A D | xlnx_spdif.c | 58 struct spdif_dev_data *ctx = arg; local 60 val = readl(ctx->base + XSPDIF_IRQ_STS_REG); 63 ctx->base + XSPDIF_IRQ_STS_REG); 64 val = readl(ctx->base + 67 ctx->base + XSPDIF_IRQ_ENABLE_REG); 69 ctx->rx_chsts_updated = true; 70 wake_up_interruptible(&ctx->chsts_q); 81 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); local 83 val = readl(ctx->base + XSPDIF_CONTROL_REG); 85 writel(val, ctx 100 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); local 110 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); local 152 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); local 173 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); local 242 struct spdif_dev_data *ctx; local 317 struct spdif_dev_data *ctx = dev_get_drvdata(&pdev->dev); local [all...] |
/linux-master/arch/parisc/net/ |
H A D | bpf_jit_core.c | 16 static int build_body(struct hppa_jit_context *ctx, bool extra_pass, int *offset) argument 18 const struct bpf_prog *prog = ctx->prog; 21 ctx->reg_seen_collect = true; 26 ret = bpf_jit_emit_insn(insn, ctx, extra_pass); 31 offset[i] = ctx->ninsns; 35 ctx->reg_seen_collect = false; 51 struct hppa_jit_context *ctx; local 74 ctx = &jit_data->ctx; 76 if (ctx [all...] |
H A D | bpf_jit_comp32.c | 120 static void emit_hppa_copy(const s8 rs, const s8 rd, struct hppa_jit_context *ctx) argument 122 REG_SET_SEEN(ctx, rd); 125 REG_SET_SEEN(ctx, rs); 126 emit(hppa_copy(rs, rd), ctx); local 129 static void emit_hppa_xor(const s8 r1, const s8 r2, const s8 r3, struct hppa_jit_context *ctx) argument 131 REG_SET_SEEN(ctx, r1); 132 REG_SET_SEEN(ctx, r2); 133 REG_SET_SEEN(ctx, r3); 135 emit(hppa_copy(HPPA_REG_ZERO, r3), ctx); local 137 emit(hppa_xor(r1, r2, r3), ctx); local 141 emit_imm(const s8 rd, s32 imm, struct hppa_jit_context *ctx) argument 147 emit(hppa_ldi(imm, rd), ctx); local 150 emit(hppa_ldil(imm, rd), ctx); local 156 emit_imm32(const s8 *rd, s32 imm, struct hppa_jit_context *ctx) argument 160 emit_imm(lo(rd), imm, ctx); local 170 emit_imm64(const s8 *rd, s32 imm_hi, s32 imm_lo, struct hppa_jit_context *ctx) argument 173 emit_imm(hi(rd), imm_hi, ctx); local 174 emit_imm(lo(rd), imm_lo, ctx); local 177 __build_epilogue(bool is_tail_call, struct hppa_jit_context *ctx) argument 190 emit(hppa_bv(HPPA_REG_ZERO, HPPA_REG_T0, EXEC_NEXT_INSTR), ctx); local 192 emit(hppa_copy(HPPA_REG_TCC, HPPA_REG_TCC_IN_INIT), ctx); local 199 emit(EXIT_PTR_LOAD(HPPA_REG_RP), ctx); local 200 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 203 emit_hppa_copy(lo(r0), HPPA_REG_RET0, ctx); local 214 emit(hppa_bv(HPPA_REG_ZERO, HPPA_REG_RP, EXEC_NEXT_INSTR), ctx); local 224 bpf_get_reg64_offset(const s8 *reg, const s8 *tmp, u16 offset_sp, struct hppa_jit_context *ctx) argument 237 bpf_get_reg64(const s8 *reg, const s8 *tmp, struct hppa_jit_context *ctx) argument 243 bpf_get_reg64_ref(const s8 *reg, const s8 *tmp, bool must_load, struct hppa_jit_context *ctx) argument 260 bpf_put_reg64(const s8 *reg, const s8 *src, struct hppa_jit_context *ctx) argument 264 emit(hppa_stw(hi(src), REG_SIZE * hi(reg), HPPA_REG_SP), ctx); local 265 emit(hppa_stw(lo(src), REG_SIZE * lo(reg), HPPA_REG_SP), ctx); local 269 bpf_save_R0(struct hppa_jit_context *ctx) argument 274 bpf_restore_R0(struct hppa_jit_context *ctx) argument 280 bpf_get_reg32(const s8 *reg, const s8 *tmp, struct hppa_jit_context *ctx) argument 291 bpf_get_reg32_ref(const s8 *reg, const s8 *tmp, struct hppa_jit_context *ctx) argument 304 bpf_put_reg32(const s8 *reg, const s8 *src, struct hppa_jit_context *ctx) argument 309 emit(hppa_stw(lo(src), REG_SIZE * lo(reg), HPPA_REG_SP), ctx); local 312 emit(hppa_stw(HPPA_REG_ZERO, REG_SIZE * hi(reg), HPPA_REG_SP), ctx); local 325 emit_call_millicode(void *func, const s8 arg0, const s8 arg1, u8 opcode, struct hppa_jit_context *ctx) argument 338 emit(hppa_ldil(func_addr, HPPA_REG_R31), ctx); local 349 emit(hppa_nop(), ctx); /* this nop is needed here for delay slot */ local 359 emit_call_libgcc_ll(void *func, const s8 *arg0, const s8 *arg1, u8 opcode, struct hppa_jit_context *ctx) argument 364 emit_hppa_copy(lo(arg0), HPPA_REG_ARG0, ctx); local 365 emit_hppa_copy(hi(arg0), HPPA_REG_ARG1, ctx); local 366 emit_hppa_copy(lo(arg1), HPPA_REG_ARG2, ctx); local 367 emit_hppa_copy(hi(arg1), HPPA_REG_ARG3, ctx); local 377 emit(hppa_ldil(func_addr, HPPA_REG_R31), ctx); local 401 emit_jump(s32 paoff, bool force_far, struct hppa_jit_context *ctx) argument 411 emit(hppa_nop(), ctx); local 417 emit(hppa_ldil(addr, HPPA_REG_R31), ctx); local 421 emit_alu_i64(const s8 *dst, s32 imm, struct hppa_jit_context *ctx, const u8 op) argument 447 emit_imm(hi(rd), -1, ctx); local 451 emit_hppa_xor(lo(rd), HPPA_REG_T0, lo(rd), ctx); local 454 emit_hppa_xor(hi(rd), HPPA_REG_T0, hi(rd), ctx); local 465 emit_hppa_copy(lo(rd), hi(rd), ctx); local 480 emit_hppa_copy(hi(rd), lo(rd), ctx); local 495 emit_hppa_copy(hi(rd), lo(rd), ctx); local 509 emit_alu_i32(const s8 *dst, s32 imm, struct hppa_jit_context *ctx, const u8 op) argument 523 emit_imm(lo(rd), imm, ctx); local 543 emit_hppa_xor(lo(rd), HPPA_REG_T0, lo(rd), ctx); local 564 emit_alu_r64(const s8 *dst, const s8 *src, struct hppa_jit_context *ctx, const u8 op) argument 580 emit_hppa_copy(lo(rs), lo(rd), ctx); local 581 emit_hppa_copy(hi(rs), hi(rd), ctx); local 600 emit_hppa_xor(lo(rd), lo(rs), lo(rd), ctx); local 601 emit_hppa_xor(hi(rd), hi(rs), hi(rd), ctx); local 622 emit(hppa_sub(HPPA_REG_ZERO, lo(rd), lo(rd)), ctx); local 623 emit(hppa_subb(HPPA_REG_ZERO, hi(rd), hi(rd)), ctx); local 632 emit_alu_r32(const s8 *dst, const s8 *src, struct hppa_jit_context *ctx, const u8 op) argument 648 emit_hppa_copy(lo(rs), lo(rd), ctx); local 663 emit_hppa_xor(lo(rd), lo(rs), lo(rd), ctx); local 676 emit(hppa_mtsar(HPPA_REG_T0), ctx); local 686 emit(hppa_mtsar(HPPA_REG_T0), ctx); local 690 emit(hppa_sub(HPPA_REG_ZERO, lo(rd), lo(rd)), ctx); // sub r0,rd,rd local 699 emit_branch_r64(const s8 *src1, const s8 *src2, s32 paoff, struct hppa_jit_context *ctx, const u8 op) argument 770 emit(hppa_and(hi(rs1), hi(rs2), HPPA_REG_T0), ctx); local 771 emit(hppa_and(lo(rs1), lo(rs2), HPPA_REG_T1), ctx); local 772 emit(hppa_bne(HPPA_REG_T0, HPPA_REG_ZERO, JUMP(1)), ctx); local 773 emit(hppa_beq(HPPA_REG_T1, HPPA_REG_ZERO, NO_JUMP(0)), ctx); local 789 emit_bcc(u8 op, u8 rd, u8 rs, int paoff, struct hppa_jit_context *ctx) argument 800 emit(hppa_and(rd, rs, HPPA_REG_T0), ctx); local 824 emit(hppa_beq(rd, rs, off), ctx); local 827 emit(hppa_bgtu(rd, rs, off), ctx); local 830 emit(hppa_bltu(rd, rs, off), ctx); local 833 emit(hppa_bgeu(rd, rs, off), ctx); local 836 emit(hppa_bleu(rd, rs, off), ctx); local 839 emit(hppa_bne(rd, rs, off), ctx); local 842 emit(hppa_bgt(rd, rs, off), ctx); local 845 emit(hppa_blt(rd, rs, off), ctx); local 848 emit(hppa_bge(rd, rs, off), ctx); local 851 emit(hppa_ble(rd, rs, off), ctx); local 866 emit_branch_r32(const s8 *src1, const s8 *src2, s32 paoff, struct hppa_jit_context *ctx, const u8 op) argument 886 emit_call(bool fixed, u64 addr, struct hppa_jit_context *ctx) argument 894 emit(hppa_ldo(offset_sp, HPPA_REG_SP, HPPA_REG_SP), ctx); local 910 emit_hppa_copy(hi(reg), HPPA_REG_ARG3, ctx); local 911 emit_hppa_copy(lo(reg), HPPA_REG_ARG2, ctx); local 914 emit_hppa_copy(hi(reg), HPPA_REG_ARG1, ctx); local 915 emit_hppa_copy(lo(reg), HPPA_REG_ARG0, ctx); local 919 emit(hppa_copy(HPPA_REG_TCC, HPPA_REG_TCC_SAVED), ctx); local 926 emit(hppa_ldil(addr, HPPA_REG_R31), ctx); local 933 emit(hppa_copy(HPPA_REG_TCC_SAVED, HPPA_REG_TCC), ctx); local 943 emit_bpf_tail_call(int insn, struct hppa_jit_context *ctx) argument 957 emit(EXIT_PTR_LOAD(HPPA_REG_RP), ctx); local 962 emit(hppa_ldw(off, lo(arr_reg), HPPA_REG_T1), ctx); local 969 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 978 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 986 emit(hppa_sh2add(lo(idx_reg), lo(arr_reg), HPPA_REG_T0), ctx); local 989 emit(hppa_ldw(off, HPPA_REG_T0, HPPA_REG_T0), ctx); local 991 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 1000 emit(hppa_ldw(off, HPPA_REG_T0, HPPA_REG_T0), ctx); local 1006 emit_load_r64(const s8 *dst, const s8 *src, s16 off, struct hppa_jit_context *ctx, const u8 size) argument 1021 emit(hppa_addil(off, lo(rs)), ctx); local 1052 emit_store_r64(const s8 *dst, const s8 *src, s16 off, struct hppa_jit_context *ctx, const u8 size, const u8 mode) argument 1068 emit(hppa_addil(off, lo(rd)), ctx); local 1092 emit_rev16(const s8 rd, struct hppa_jit_context *ctx) argument 1099 emit_rev32(const s8 rs, const s8 rd, struct hppa_jit_context *ctx) argument 1106 emit_zext64(const s8 *dst, struct hppa_jit_context *ctx) argument 1116 bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx, bool extra_pass) argument 1275 emit_rev16(lo(rd), ctx); local 1280 emit_rev32(lo(rd), lo(rd), ctx); local 1286 emit_hppa_copy(hi(rd), HPPA_REG_T0, ctx); local 1287 emit_rev32(lo(rd), hi(rd), ctx); local 1396 emit(EXIT_PTR_LOAD(HPPA_REG_RP), ctx); local 1397 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 1467 bpf_jit_build_prologue(struct hppa_jit_context *ctx) argument 1500 emit(hppa_ldi(MAX_TAIL_CALL_CNT, HPPA_REG_TCC_IN_INIT), ctx); local 1505 emit(hppa_ldi(MAX_TAIL_CALL_CNT, HPPA_REG_R1), ctx); local 1510 emit(hppa_ldo(stack_adjust, HPPA_REG_SP, HPPA_REG_SP), ctx); // ldo stack_adjust(sp),sp (increase stack) local 1532 emit(hppa_ldi(MAX_TAIL_CALL_CNT, HPPA_REG_TCC), ctx); local 1541 emit(hppa_ldil(addr, HPPA_REG_T2), ctx); local 1543 emit(EXIT_PTR_STORE(HPPA_REG_T2), ctx); local 1609 emit(hppa_nop(), ctx); local 1612 bpf_jit_build_epilogue(struct hppa_jit_context *ctx) argument [all...] |
/linux-master/tools/testing/selftests/lsm/ |
H A D | lsm_get_self_attr_test.c | 30 struct lsm_ctx *ctx = calloc(page_size, 1); local 32 ASSERT_NE(NULL, ctx); 34 ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, NULL, 0)); 37 free(ctx); 59 struct lsm_ctx *ctx = calloc(page_size, 1); local 62 ASSERT_NE(NULL, ctx); 64 ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size, 0)); 72 free(ctx); 78 struct lsm_ctx *ctx = calloc(page_size, 1); local 84 ASSERT_NE(NULL, ctx); 119 struct lsm_ctx *ctx = calloc(page_size, 1); local 144 struct lsm_ctx *ctx = calloc(page_size, 1); local [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/ |
H A D | nv50.c | 39 struct context *ctx = info; local 44 desc.dig_conn == ctx->desc.dig_conn) 53 struct context *ctx = info; local 56 mxms_output_device(mxm, data, &ctx->desc); 59 if ((ctx->outp[0] & 0x0000000f) != ctx->desc.outp_type) 68 u8 link = mxm_sor_map(bios, ctx->desc.dig_conn); 69 if ((ctx->outp[0] & 0x0f000000) != (link & 0x0f) << 24) 74 if ((link & ((ctx->outp[1] & 0x00000030) >> 4)) != link) 84 if (ctx 98 struct context ctx = { .outp = (u32 *)(bios->data + pdcb) }; local [all...] |
/linux-master/arch/sparc/net/ |
H A D | bpf_jit_comp_64.c | 236 static void emit(const u32 insn, struct jit_ctx *ctx) argument 238 if (ctx->image != NULL) 239 ctx->image[ctx->idx] = insn; 241 ctx->idx++; 244 static void emit_call(u32 *func, struct jit_ctx *ctx) argument 246 if (ctx->image != NULL) { 247 void *here = &ctx->image[ctx->idx]; 251 ctx 256 emit_nop(struct jit_ctx *ctx) argument 261 emit_reg_move(u32 from, u32 to, struct jit_ctx *ctx) argument 267 emit_set_const(s32 K, u32 reg, struct jit_ctx *ctx) argument 269 emit(SETHI(K, reg), ctx); local 270 emit(OR_LO(K, reg), ctx); local 274 emit_set_const_sext(s32 K, u32 reg, struct jit_ctx *ctx) argument 277 emit(SETHI(K, reg), ctx); local 278 emit(OR_LO(K, reg), ctx); local 283 emit(SETHI(hbits, reg), ctx); local 288 emit_alu(u32 opcode, u32 src, u32 dst, struct jit_ctx *ctx) argument 293 emit_alu3(u32 opcode, u32 a, u32 b, u32 c, struct jit_ctx *ctx) argument 298 emit_alu_K(unsigned int opcode, unsigned int dst, unsigned int imm, struct jit_ctx *ctx) argument 317 emit_alu3_K(unsigned int opcode, unsigned int src, unsigned int imm, unsigned int dst, struct jit_ctx *ctx) argument 336 emit_loadimm32(s32 K, unsigned int dest, struct jit_ctx *ctx) argument 346 emit_loadimm(s32 K, unsigned int dest, struct jit_ctx *ctx) argument 356 emit_loadimm_sext(s32 K, unsigned int dest, struct jit_ctx *ctx) argument 448 sparc_emit_set_const64_quick2(unsigned long high_bits, unsigned long low_imm, unsigned int dest, int shift_count, struct jit_ctx *ctx) argument 465 emit_loadimm64(u64 K, unsigned int dest, struct jit_ctx *ctx) argument 524 emit(SETHI(focus_bits, dest), ctx); local 561 emit(SETHI(fast_int, dest), ctx); local 616 emit_branch(unsigned int br_opc, unsigned int from_idx, unsigned int to_idx, struct jit_ctx *ctx) argument 627 emit_cbcond(unsigned int cb_opc, unsigned int from_idx, unsigned int to_idx, const u8 dst, const u8 src, struct jit_ctx *ctx) argument 635 emit_cbcondi(unsigned int cb_opc, unsigned int from_idx, unsigned int to_idx, const u8 dst, s32 imm, struct jit_ctx *ctx) argument 658 emit_compare_and_branch(const u8 code, const u8 dst, u8 src, const s32 imm, bool is_imm, int branch_dst, struct jit_ctx *ctx) argument 797 build_prologue(struct jit_ctx *ctx) argument 839 build_epilogue(struct jit_ctx *ctx) argument 850 emit_tail_call(struct jit_ctx *ctx) argument 895 build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx) argument 1438 build_body(struct jit_ctx *ctx) argument 1477 struct jit_ctx ctx; member in struct:sparc64_jit_data 1488 struct jit_ctx ctx; local [all...] |
/linux-master/drivers/misc/cxl/ |
H A D | irq.c | 26 static irqreturn_t schedule_cxl_fault(struct cxl_context *ctx, u64 dsisr, u64 dar) argument 28 ctx->dsisr = dsisr; 29 ctx->dar = dar; 30 schedule_work(&ctx->fault_work); 34 irqreturn_t cxl_irq_psl9(int irq, struct cxl_context *ctx, struct cxl_irq_info *irq_info) argument 41 trace_cxl_psl9_irq(ctx, irq, dsisr, dar); 43 pr_devel("CXL interrupt %i for afu pe: %i DSISR: %#llx DAR: %#llx\n", irq, ctx->pe, dsisr, dar); 46 pr_devel("CXL interrupt: Scheduling translation fault handling for later (pe: %i)\n", ctx->pe); 47 return schedule_cxl_fault(ctx, dsisr, dar); 51 return cxl_ops->handle_psl_slice_error(ctx, dsis 85 cxl_irq_psl8(int irq, struct cxl_context *ctx, struct cxl_irq_info *irq_info) argument 173 struct cxl_context *ctx = data; local 281 afu_irq_name_free(struct cxl_context *ctx) argument 292 afu_allocate_irqs(struct cxl_context *ctx, u32 count) argument 357 afu_register_hwirqs(struct cxl_context *ctx) argument 390 afu_register_irqs(struct cxl_context *ctx, u32 count) argument 402 afu_release_irqs(struct cxl_context *ctx, void *cookie) argument [all...] |
/linux-master/crypto/ |
H A D | ecrdsa.c | 74 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); local 92 if (!ctx->curve || 93 !ctx->digest || 95 !ctx->pub_key.x || 96 req->dst_len != ctx->digest_len || 97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || 98 ctx->pub_key.ndigits != ctx->curve->g.ndigits || 116 vli_cmp(r, ctx->curve->n, ndigits) >= 0 || 118 vli_cmp(s, ctx 153 struct ecrdsa_ctx *ctx = context; local 166 struct ecrdsa_ctx *ctx = context; local 177 struct ecrdsa_ctx *ctx = context; local 194 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); local 254 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm); local [all...] |