/linux-master/drivers/gpu/drm/amd/display/dc/dml2/ |
H A D | dml2_mall_phantom.h | 42 unsigned int dml2_helper_calculate_num_ways_for_subvp(struct dml2_context *ctx, struct dc_state *context); 44 bool dml2_svp_add_phantom_pipe_to_dc_state(struct dml2_context *ctx, struct dc_state *state, struct dml_mode_support_info_st *mode_support_info); 46 bool dml2_svp_remove_all_phantom_pipes(struct dml2_context *ctx, struct dc_state *state); 48 bool dml2_svp_validate_static_schedulability(struct dml2_context *ctx, struct dc_state *context, enum dml_dram_clock_change_support pstate_change_type); 50 bool dml2_svp_drr_schedulable(struct dml2_context *ctx, struct dc_state *context, struct dc_crtc_timing *drr_timing);
|
/linux-master/lib/crypto/mpi/ |
H A D | mpi-mod.c | 38 mpi_barrett_t ctx; local 42 ctx = kcalloc(1, sizeof(*ctx), GFP_KERNEL); 43 if (!ctx) 47 ctx->m = mpi_copy(m); 48 ctx->m_copied = 1; 50 ctx->m = m; 52 ctx->k = mpi_get_nlimbs(m); 53 tmp = mpi_alloc(ctx->k + 1); 57 mpi_lshift_limbs(tmp, 2 * ctx 67 mpi_barrett_free(mpi_barrett_t ctx) argument 95 mpi_mod_barrett(MPI r, MPI x, mpi_barrett_t ctx) argument 153 mpi_mul_barrett(MPI w, MPI u, MPI v, mpi_barrett_t ctx) argument [all...] |
H A D | ec.c | 88 static void point_resize(MPI_POINT p, struct mpi_ec_ctx *ctx) argument 90 size_t nlimbs = ctx->p->nlimbs; 97 if (ctx->model != MPI_EC_MONTGOMERY) { 104 struct mpi_ec_ctx *ctx) 107 if (ctx->model != MPI_EC_MONTGOMERY) 122 static void ec_addm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) argument 125 ec_mod(w, ctx); 136 static void ec_mulm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) argument 139 ec_mod(w, ctx); 143 static void ec_mul2(MPI w, MPI u, struct mpi_ec_ctx *ctx) argument 103 point_swap_cond(MPI_POINT d, MPI_POINT s, unsigned long swap, struct mpi_ec_ctx *ctx) argument 149 ec_powm(MPI w, const MPI b, const MPI e, struct mpi_ec_ctx *ctx) argument 160 ec_pow2(MPI w, const MPI b, struct mpi_ec_ctx *ctx) argument 171 ec_pow3(MPI w, const MPI b, struct mpi_ec_ctx *ctx) argument 176 ec_invm(MPI x, MPI a, struct mpi_ec_ctx *ctx) argument 199 ec_addm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) argument 221 ec_subm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) argument 242 ec_mulm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) argument 291 ec_mul2_25519(MPI w, MPI u, struct mpi_ec_ctx *ctx) argument 296 ec_pow2_25519(MPI w, const MPI b, struct mpi_ec_ctx *ctx) argument 306 ec_addm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) argument 326 ec_subm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) argument 346 ec_mulm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) argument 443 ec_mul2_448(MPI w, MPI u, struct mpi_ec_ctx *ctx) argument 448 ec_pow2_448(MPI w, const MPI b, struct mpi_ec_ctx *ctx) argument 564 mpi_ec_init(struct mpi_ec_ctx *ctx, enum gcry_mpi_ec_models model, enum ecc_dialects dialect, int flags, MPI p, MPI a, MPI b) argument 651 mpi_ec_deinit(struct mpi_ec_ctx *ctx) argument 681 mpi_ec_get_affine(MPI x, MPI y, MPI_POINT point, struct mpi_ec_ctx *ctx) argument 756 dup_point_weierstrass(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) argument 834 dup_point_montgomery(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) argument 845 dup_point_edwards(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) argument 918 mpi_ec_dup_point(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) argument 934 add_points_weierstrass(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) argument 1059 add_points_montgomery(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) argument 1072 add_points_edwards(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) argument 1166 montgomery_ladder(MPI_POINT prd, MPI_POINT sum, MPI_POINT p1, MPI_POINT p2, MPI dif_x, struct mpi_ec_ctx *ctx) argument 1191 mpi_ec_add_points(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) argument 1213 mpi_ec_mul_point(MPI_POINT result, MPI scalar, MPI_POINT point, struct mpi_ec_ctx *ctx) argument 1401 mpi_ec_curve_point(MPI_POINT point, struct mpi_ec_ctx *ctx) argument [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/ |
H A D | dm_helpers.h | 48 struct dc_context *ctx, 57 struct dc_context *ctx, 71 struct dc_context *ctx, 78 struct dc_context *ctx, 87 struct dc_context *ctx, 94 struct dc_context *ctx, 101 struct dc_context *ctx, 107 struct dc_context *ctx, 114 struct dc_context *ctx, 118 struct dc_context *ctx, [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | sendmsg6_prog.c | 26 int sendmsg_v6_prog(struct bpf_sock_addr *ctx) argument 28 if (ctx->type != SOCK_DGRAM) 31 if (!get_set_sk_priority(ctx)) 35 if (ctx->msg_src_ip6[3] == bpf_htonl(1) || 36 ctx->msg_src_ip6[3] == bpf_htonl(0)) { 37 ctx->msg_src_ip6[0] = bpf_htonl(SRC_REWRITE_IP6_0); 38 ctx->msg_src_ip6[1] = bpf_htonl(SRC_REWRITE_IP6_1); 39 ctx->msg_src_ip6[2] = bpf_htonl(SRC_REWRITE_IP6_2); 40 ctx->msg_src_ip6[3] = bpf_htonl(SRC_REWRITE_IP6_3); 47 if (ctx [all...] |
H A D | connect_force_port4.c | 30 int connect4(struct bpf_sock_addr *ctx) argument 40 if (bpf_bind(ctx, (struct sockaddr *)&sa, sizeof(sa)) != 0) 44 if (ctx->user_port == bpf_htons(60000)) { 45 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, 50 orig->addr = ctx->user_ip4; 51 orig->port = ctx->user_port; 53 ctx->user_ip4 = bpf_htonl(0x7f000001); 54 ctx->user_port = bpf_htons(60123); 60 int getsockname4(struct bpf_sock_addr *ctx) argument 62 if (!get_set_sk_priority(ctx)) 74 getpeername4(struct bpf_sock_addr *ctx) argument [all...] |
H A D | sockopt_qos_to_cc.c | 15 int sockopt_qos_to_cc(struct bpf_sockopt *ctx) argument 17 void *optval_end = ctx->optval_end; 18 int *optval = ctx->optval; 23 if (ctx->level != SOL_IPV6 || ctx->optname != IPV6_TCLASS) 29 if (bpf_getsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) 36 if (bpf_setsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &cc_reno, 44 if (ctx->optlen > page_size) 45 ctx->optlen = 0;
|
/linux-master/drivers/power/reset/ |
H A D | xgene-reboot.c | 31 struct xgene_reboot_context *ctx = data->cb_data; local 34 writel(ctx->mask, ctx->csr); 38 dev_emerg(ctx->dev, "Unable to restart system\n"); 45 struct xgene_reboot_context *ctx; local 49 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); 50 if (!ctx) 53 ctx->csr = devm_platform_ioremap_resource(pdev, 0); 54 if (IS_ERR(ctx [all...] |
/linux-master/fs/ |
H A D | eventfd.c | 48 * @ctx: [in] Pointer to the eventfd context. 56 void eventfd_signal_mask(struct eventfd_ctx *ctx, __poll_t mask) argument 71 spin_lock_irqsave(&ctx->wqh.lock, flags); 73 if (ctx->count < ULLONG_MAX) 74 ctx->count++; 75 if (waitqueue_active(&ctx->wqh)) 76 wake_up_locked_poll(&ctx->wqh, EPOLLIN | mask); 78 spin_unlock_irqrestore(&ctx->wqh.lock, flags); 82 static void eventfd_free_ctx(struct eventfd_ctx *ctx) argument 84 if (ctx 91 struct eventfd_ctx *ctx = container_of(kref, struct eventfd_ctx, kref); local 103 eventfd_ctx_put(struct eventfd_ctx *ctx) argument 111 struct eventfd_ctx *ctx = file->private_data; local 120 struct eventfd_ctx *ctx = file->private_data; local 176 eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt) argument 198 eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_entry_t *wait, __u64 *cnt) argument 217 struct eventfd_ctx *ctx = file->private_data; local 250 struct eventfd_ctx *ctx = file->private_data; local 285 struct eventfd_ctx *ctx = f->private_data; local 350 struct eventfd_ctx *ctx; local 371 struct eventfd_ctx *ctx; local 384 struct eventfd_ctx *ctx; local [all...] |
/linux-master/drivers/net/netdevsim/ |
H A D | macsec.c | 30 static int nsim_macsec_add_secy(struct macsec_context *ctx) argument 32 struct netdevsim *ns = netdev_priv(ctx->netdev); 44 netdev_err(ctx->netdev, "%s: nsim_secy_count not full but all SecYs used\n", 49 netdev_dbg(ctx->netdev, "%s: adding new secy with sci %08llx at index %d\n", 50 __func__, sci_to_cpu(ctx->secy->sci), idx); 53 ns->macsec.nsim_secy[idx].sci = ctx->secy->sci; 59 static int nsim_macsec_upd_secy(struct macsec_context *ctx) argument 61 struct netdevsim *ns = netdev_priv(ctx->netdev); 64 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); 66 netdev_err(ctx 77 nsim_macsec_del_secy(struct macsec_context *ctx) argument 99 nsim_macsec_add_rxsc(struct macsec_context *ctx) argument 134 nsim_macsec_upd_rxsc(struct macsec_context *ctx) argument 161 nsim_macsec_del_rxsc(struct macsec_context *ctx) argument 192 nsim_macsec_add_rxsa(struct macsec_context *ctx) argument 219 nsim_macsec_upd_rxsa(struct macsec_context *ctx) argument 246 nsim_macsec_del_rxsa(struct macsec_context *ctx) argument 273 nsim_macsec_add_txsa(struct macsec_context *ctx) argument 291 nsim_macsec_upd_txsa(struct macsec_context *ctx) argument 309 nsim_macsec_del_txsa(struct macsec_context *ctx) argument [all...] |
/linux-master/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 62 static u8 bpf_to_hppa_reg(int bpf_reg, struct hppa_jit_context *ctx) argument 66 REG_SET_SEEN(ctx, reg); 70 static void emit_hppa_copy(const s8 rs, const s8 rd, struct hppa_jit_context *ctx) argument 72 REG_SET_SEEN(ctx, rd); 75 REG_SET_SEEN(ctx, rs); 76 emit(hppa_copy(rs, rd), ctx); local 79 static void emit_hppa64_depd(u8 src, u8 pos, u8 len, u8 target, bool no_zero, struct hppa_jit_context *ctx) argument 89 emit(hppa_t10_insn(0x3c, target, src, 0, c, pos & 0x1f, len & 0x1f), ctx); 92 static void emit_hppa64_shld(u8 src, int num, u8 target, struct hppa_jit_context *ctx) argument 94 emit_hppa64_depd(src, 63-num, 64-num, target, 0, ctx); 97 emit_hppa64_extrd(u8 src, u8 pos, u8 len, u8 target, bool signed_op, struct hppa_jit_context *ctx) argument 109 emit_hppa64_extrw(u8 src, u8 pos, u8 len, u8 target, bool signed_op, struct hppa_jit_context *ctx) argument 124 emit_hppa64_shrd(u8 src, int num, u8 target, bool signed_op, struct hppa_jit_context *ctx) argument 129 emit_hppa64_shrw(u8 src, int num, u8 target, bool signed_op, struct hppa_jit_context *ctx) argument 135 emit_imm32(u8 rd, s32 imm, struct hppa_jit_context *ctx) argument 141 emit(hppa_ldi(imm, rd), ctx); local 145 emit(hppa_ldo(lower, HPPA_REG_ZERO, rd), ctx); local 148 emit(hppa_ldil(imm, rd), ctx); local 160 emit_imm(u8 rd, s64 imm, u8 tmpreg, struct hppa_jit_context *ctx) argument 181 emit_jump(signed long paoff, bool force_far, struct hppa_jit_context *ctx) argument 191 emit(hppa_nop(), ctx); local 205 __build_epilogue(bool is_tail_call, struct hppa_jit_context *ctx) argument 217 emit(hppa_bv(HPPA_REG_ZERO, HPPA_REG_T0, EXEC_NEXT_INSTR), ctx); local 219 emit(hppa_copy(HPPA_REG_TCC, HPPA_REG_TCC_IN_INIT), ctx); local 226 emit(EXIT_PTR_LOAD(HPPA_REG_RP), ctx); local 227 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 241 emit(hppa_bv(HPPA_REG_ZERO, HPPA_REG_RP, EXEC_NEXT_INSTR), ctx); local 245 emit(hppa_nop(), ctx); // XXX WARUM einer zu wenig ?? local 248 emit_branch(u8 op, u8 rd, u8 rs, signed long paoff, struct hppa_jit_context *ctx) argument 260 emit(hppa_and(rd, rs, HPPA_REG_T0), ctx); local 285 emit(hppa_beq(rd, rs, off), ctx); local 288 emit(hppa_bgtu(rd, rs, off), ctx); local 291 emit(hppa_bltu(rd, rs, off), ctx); local 294 emit(hppa_bgeu(rd, rs, off), ctx); local 297 emit(hppa_bleu(rd, rs, off), ctx); local 300 emit(hppa_bne(rd, rs, off), ctx); local 303 emit(hppa_bgt(rd, rs, off), ctx); local 306 emit(hppa_blt(rd, rs, off), ctx); local 309 emit(hppa_bge(rd, rs, off), ctx); local 312 emit(hppa_ble(rd, rs, off), ctx); local 331 emit(hppa_nop(), ctx); local 332 emit(hppa_nop(), ctx); local 337 emit_zext_32(u8 reg, struct hppa_jit_context *ctx) argument 342 emit_bpf_tail_call(int insn, struct hppa_jit_context *ctx) argument 359 emit(EXIT_PTR_LOAD(HPPA_REG_RP), ctx); local 364 emit(hppa_ldw(off, arr_reg, HPPA_REG_T1), ctx); local 371 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 380 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 391 emit(hppa64_ldd_im16(off, HPPA_REG_T0, HPPA_REG_T0), ctx); local 393 emit(EXIT_PTR_JUMP(HPPA_REG_RP, NOP_NEXT_INSTR), ctx); local 402 emit(hppa64_ldd_im16(off, HPPA_REG_T0, HPPA_REG_T0), ctx); local 407 init_regs(u8 *rd, u8 *rs, const struct bpf_insn *insn, struct hppa_jit_context *ctx) argument 428 emit_zext_32_rd_rs(u8 *rd, u8 *rs, struct hppa_jit_context *ctx) argument 436 emit_sext_32_rd_rs(u8 *rd, u8 *rs, struct hppa_jit_context *ctx) argument 444 emit_zext_32_rd_t1(u8 *rd, struct hppa_jit_context *ctx) argument 451 emit_sext_32_rd(u8 *rd, struct hppa_jit_context *ctx) argument 463 emit_call(u64 addr, bool fixed, struct hppa_jit_context *ctx) argument 467 emit(hppa_ldo(offset_sp, HPPA_REG_SP, HPPA_REG_SP), ctx); local 478 emit(hppa_copy(HPPA_REG_TCC, HPPA_REG_TCC_SAVED), ctx); local 487 emit(hppa_ldil(addr, HPPA_REG_R31), ctx); local 491 emit(hppa64_bve_l_rp(HPPA_REG_RP), ctx); local 497 emit(hppa_copy(HPPA_REG_TCC_SAVED, HPPA_REG_TCC), ctx); local 505 emit_call_libgcc_ll(void *func, const s8 arg0, const s8 arg1, u8 opcode, struct hppa_jit_context *ctx) argument 521 emit(hppa_copy(HPPA_REG_RET0, HPPA_REG_TCC_SAVED), ctx); local 525 emit(hppa_ldo(FRAME_SIZE, HPPA_REG_SP, HPPA_REG_SP), ctx); local 541 emit(hppa64_bve_l_rp(HPPA_REG_RP), ctx); local 551 emit(hppa_copy(HPPA_REG_TCC_SAVED, HPPA_REG_RET0), ctx); local 554 emit_store(const s8 rd, const s8 rs, s16 off, struct hppa_jit_context *ctx, const u8 size, const u8 mode) argument 566 emit(hppa_addil(off, rd), ctx); local 572 emit(hppa_stb(rs, off, dstreg), ctx); local 575 emit(hppa_sth(rs, off, dstreg), ctx); local 578 emit(hppa_stw(rs, off, dstreg), ctx); local 582 emit(hppa_ldo(off, dstreg, HPPA_REG_R1), ctx); local 585 emit(hppa64_std_im5(rs, off, dstreg), ctx); local 587 emit(hppa64_std_im16(rs, off, dstreg), ctx); local 592 bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx, bool extra_pass) argument 624 emit(hppa_add(rd, rs, rd), ctx); local 630 emit(hppa_sub(rd, rs, rd), ctx); local 636 emit(hppa_and(rd, rs, rd), ctx); local 642 emit(hppa_or(rd, rs, rd), ctx); local 648 emit(hppa_xor(rd, rs, rd), ctx); local 689 emit(hppa64_mtsarcm(HPPA_REG_T0), ctx); local 691 emit(hppa64_depdz_sar(rd, rd), ctx); local 693 emit(hppa_depwz_sar(rd, rd), ctx); local 699 emit(hppa_mtsar(rs), ctx); local 701 emit(hppa64_shrpd_sar(rd, rd), ctx); local 703 emit(hppa_shrpw_sar(rd, rd), ctx); local 710 emit(hppa64_mtsarcm(HPPA_REG_T0), ctx); local 714 emit(hppa_extrws_sar(rd, rd), ctx); local 722 emit(hppa_sub(HPPA_REG_ZERO, rd, rd), ctx); local 759 emit(hppa64_permh_3210(rd, HPPA_REG_T1), ctx); local 762 emit(hppa_or(HPPA_REG_T2, HPPA_REG_T1, rd), ctx); local 782 emit(hppa_ldo(imm, rd, rd), ctx); local 785 emit(hppa_add(rd, HPPA_REG_T1, rd), ctx); local 796 emit(hppa_sub(rd, HPPA_REG_T1, rd), ctx); local 804 emit(hppa_and(rd, HPPA_REG_T1, rd), ctx); local 811 emit(hppa_or(rd, HPPA_REG_T1, rd), ctx); local 818 emit(hppa_xor(rd, HPPA_REG_T1, rd), ctx); local 902 emit(hppa_and(rs, rd, HPPA_REG_T1), ctx); local 906 emit_branch(BPF_OP(code), rd, rs, paoff, ctx); local 949 emit_branch(BPF_OP(code), rd, rs, paoff, ctx); local 956 emit(hppa_and(HPPA_REG_T1, rd, HPPA_REG_T1), ctx); local 1030 emit(hppa_addil(off, rs), ctx); local 1036 emit(hppa_ldb(off, srcreg, rd), ctx); local 1041 emit(hppa_ldh(off, srcreg, rd), ctx); local 1046 emit(hppa_ldw(off, srcreg, rd), ctx); local 1052 emit(hppa_ldo(off, srcreg, HPPA_REG_R1), ctx); local 1053 emit(hppa64_ldd_reg(HPPA_REG_ZERO, HPPA_REG_R1, rd), ctx); local 1055 emit(hppa64_ldd_im5(off, srcreg, rd), ctx); local 1057 emit(hppa64_ldd_im16(off, srcreg, rd), ctx); local 1100 bpf_jit_build_prologue(struct hppa_jit_context *ctx) argument 1130 emit(hppa_ldi(MAX_TAIL_CALL_CNT, HPPA_REG_TCC_IN_INIT), ctx); local 1135 emit(hppa_ldi(MAX_TAIL_CALL_CNT, HPPA_REG_R1), ctx); local 1151 emit(hppa_ldo(stack_adjust, HPPA_REG_SP, HPPA_REG_SP), ctx); local 1159 emit(hppa64_std_im16(HPPA_R(i), -REG_SIZE * i, HPPA_REG_SP), ctx); local 1182 emit(hppa_ldi(MAX_TAIL_CALL_CNT, HPPA_REG_TCC), ctx); local 1192 emit(EXIT_PTR_STORE(HPPA_REG_T2), ctx); local 1201 bpf_jit_build_epilogue(struct hppa_jit_context *ctx) argument [all...] |
/linux-master/drivers/gpu/drm/bridge/ |
H A D | sil-sii8620.c | 106 typedef void (*sii8620_mt_msg_cb)(struct sii8620 *ctx, 109 typedef void (*sii8620_cb)(struct sii8620 *ctx, int ret); 131 static void sii8620_fetch_edid(struct sii8620 *ctx); 132 static void sii8620_set_upstream_edid(struct sii8620 *ctx); 133 static void sii8620_enable_hpd(struct sii8620 *ctx); 134 static void sii8620_mhl_disconnected(struct sii8620 *ctx); 135 static void sii8620_disconnect(struct sii8620 *ctx); 137 static int sii8620_clear_error(struct sii8620 *ctx) argument 139 int ret = ctx->error; 141 ctx 145 sii8620_read_buf(struct sii8620 *ctx, u16 addr, u8 *buf, int len) argument 179 sii8620_readb(struct sii8620 *ctx, u16 addr) argument 187 sii8620_write_buf(struct sii8620 *ctx, u16 addr, const u8 *buf, int len) argument 236 __sii8620_write_seq(struct sii8620 *ctx, const u16 *seq, int len) argument 256 sii8620_setbits(struct sii8620 *ctx, u16 addr, u8 mask, u8 val) argument 262 sii8620_is_mhl3(struct sii8620 *ctx) argument 267 sii8620_mt_cleanup(struct sii8620 *ctx) argument 278 sii8620_mt_work(struct sii8620 *ctx) argument 308 sii8620_enable_gen2_write_burst(struct sii8620 *ctx) argument 325 sii8620_disable_gen2_write_burst(struct sii8620 *ctx) argument 337 sii8620_start_gen2_write_burst(struct sii8620 *ctx) argument 351 sii8620_mt_msc_cmd_send(struct sii8620 *ctx, struct sii8620_mt_msg *msg) argument 385 sii8620_mt_msg_new(struct sii8620 *ctx) argument 397 sii8620_mt_set_cont(struct sii8620 *ctx, sii8620_cb cont) argument 412 sii8620_mt_msc_cmd(struct sii8620 *ctx, u8 cmd, u8 arg1, u8 arg2) argument 425 sii8620_mt_write_stat(struct sii8620 *ctx, u8 reg, u8 val) argument 430 sii8620_mt_set_int(struct sii8620 *ctx, u8 irq, u8 mask) argument 435 sii8620_mt_msc_msg(struct sii8620 *ctx, u8 cmd, u8 data) argument 440 sii8620_mt_rap(struct sii8620 *ctx, u8 code) argument 445 sii8620_mt_rcpk(struct sii8620 *ctx, u8 code) argument 450 sii8620_mt_rcpe(struct sii8620 *ctx, u8 code) argument 455 sii8620_mt_read_devcap_send(struct sii8620 *ctx, struct sii8620_mt_msg *msg) argument 481 sii8620_identify_sink(struct sii8620 *ctx) argument 514 sii8620_mr_devcap(struct sii8620 *ctx) argument 533 sii8620_mr_xdevcap(struct sii8620 *ctx) argument 539 sii8620_mt_read_devcap_recv(struct sii8620 *ctx, struct sii8620_mt_msg *msg) argument 562 sii8620_mt_read_devcap(struct sii8620 *ctx, bool xdevcap) argument 574 sii8620_mt_read_devcap_reg_recv(struct sii8620 *ctx, struct sii8620_mt_msg *msg) argument 585 sii8620_mt_read_devcap_reg(struct sii8620 *ctx, u8 reg) argument 598 sii8620_mt_read_xdevcap_reg(struct sii8620 *ctx, u8 reg) argument 603 sii8620_burst_get_tx_buf(struct sii8620 *ctx, int len) argument 620 sii8620_burst_get_rx_buf(struct sii8620 *ctx, int len) argument 637 sii8620_burst_send(struct sii8620 *ctx) argument 668 sii8620_burst_receive(struct sii8620 *ctx) argument 698 sii8620_burst_tx_rbuf_info(struct sii8620 *ctx, int size) argument 727 sii8620_burst_tx_bits_per_pixel_fmt(struct sii8620 *ctx, u8 fmt) argument 743 sii8620_burst_rx_all(struct sii8620 *ctx) argument 765 sii8620_fetch_edid(struct sii8620 *ctx) argument 873 sii8620_set_upstream_edid(struct sii8620 *ctx) argument 906 sii8620_xtal_set_rate(struct sii8620 *ctx) argument 934 sii8620_hw_on(struct sii8620 *ctx) argument 954 sii8620_hw_off(struct sii8620 *ctx) argument 961 sii8620_cbus_reset(struct sii8620 *ctx) argument 969 sii8620_set_auto_zone(struct sii8620 *ctx) argument 987 sii8620_stop_video(struct sii8620 *ctx) argument 1014 sii8620_set_format(struct sii8620 *ctx) argument 1096 sii8620_set_infoframes(struct sii8620 *ctx, struct drm_display_mode *mode) argument 1142 sii8620_start_video(struct sii8620 *ctx) argument 1221 sii8620_disable_hpd(struct sii8620 *ctx) argument 1230 sii8620_enable_hpd(struct sii8620 *ctx) argument 1241 sii8620_mhl_discover(struct sii8620 *ctx) argument 1282 sii8620_peer_specific_init(struct sii8620 *ctx) argument 1305 sii8620_set_dev_cap(struct sii8620 *ctx) argument 1338 sii8620_mhl_init(struct sii8620 *ctx) argument 1401 sii8620_emsc_enable(struct sii8620 *ctx) argument 1416 sii8620_wait_for_fsm_state(struct sii8620 *ctx, u8 state) argument 1432 sii8620_set_mode(struct sii8620 *ctx, enum sii8620_mode mode) argument 1510 sii8620_hpd_unplugged(struct sii8620 *ctx) argument 1520 sii8620_disconnect(struct sii8620 *ctx) argument 1600 sii8620_mhl_disconnected(struct sii8620 *ctx) argument 1610 sii8620_irq_disc(struct sii8620 *ctx) argument 1640 sii8620_read_burst(struct sii8620 *ctx) argument 1651 sii8620_irq_g2wb(struct sii8620 *ctx) argument 1669 sii8620_status_dcap_ready(struct sii8620 *ctx) argument 1681 sii8620_status_changed_path(struct sii8620 *ctx) argument 1697 sii8620_msc_mr_write_stat(struct sii8620 *ctx) argument 1719 sii8620_ecbus_up(struct sii8620 *ctx, int ret) argument 1727 sii8620_got_ecbus_speed(struct sii8620 *ctx, int ret) argument 1746 sii8620_send_features(struct sii8620 *ctx) argument 1757 sii8620_rcp_consume(struct sii8620 *ctx, u8 scancode) argument 1774 sii8620_msc_mr_set_int(struct sii8620 *ctx) argument 1803 sii8620_msc_msg_first(struct sii8620 *ctx) argument 1815 sii8620_msc_mt_done(struct sii8620 *ctx) argument 1826 sii8620_msc_mr_msc_msg(struct sii8620 *ctx) argument 1853 sii8620_irq_msc(struct sii8620 *ctx) argument 1894 sii8620_irq_coc(struct sii8620 *ctx) argument 1914 sii8620_irq_merr(struct sii8620 *ctx) argument 1921 sii8620_irq_edid(struct sii8620 *ctx) argument 1931 sii8620_irq_scdt(struct sii8620 *ctx) argument 1945 sii8620_got_xdevcap(struct sii8620 *ctx, int ret) argument 1953 sii8620_irq_tdm(struct sii8620 *ctx) argument 1975 sii8620_irq_block(struct sii8620 *ctx) argument 1989 sii8620_irq_ddc(struct sii8620 *ctx) argument 2027 struct sii8620 *ctx = data; local 2052 sii8620_cable_in(struct sii8620 *ctx) argument 2096 sii8620_init_rcp_input_dev(struct sii8620 *ctx) argument 2129 sii8620_cable_out(struct sii8620 *ctx) argument 2137 struct sii8620 *ctx = local 2155 struct sii8620 *ctx = local 2163 sii8620_extcon_init(struct sii8620 *ctx) argument 2208 struct sii8620 *ctx = bridge_to_sii8620(bridge); local 2217 struct sii8620 *ctx = bridge_to_sii8620(bridge); local 2225 sii8620_is_packing_required(struct sii8620 *ctx, const struct drm_display_mode *mode) argument 2250 struct sii8620 *ctx = bridge_to_sii8620(bridge); local 2269 struct sii8620 *ctx = bridge_to_sii8620(bridge); local 2290 struct sii8620 *ctx; local 2350 struct sii8620 *ctx = i2c_get_clientdata(client); local [all...] |
/linux-master/drivers/hwmon/ |
H A D | pwm-fan.c | 76 struct pwm_fan_ctx *ctx = from_timer(ctx, t, rpm_timer); local 77 unsigned int delta = ktime_ms_delta(ktime_get(), ctx->sample_start); 81 for (i = 0; i < ctx->tach_count; i++) { 82 struct pwm_fan_tach *tach = &ctx->tachs[i]; 91 ctx->sample_start = ktime_get(); 94 mod_timer(&ctx->rpm_timer, jiffies + HZ); 120 static int pwm_fan_switch_power(struct pwm_fan_ctx *ctx, bool on) argument 124 if (!ctx->reg_en) 127 if (!ctx 139 pwm_fan_power_on(struct pwm_fan_ctx *ctx) argument 169 pwm_fan_power_off(struct pwm_fan_ctx *ctx) argument 197 __set_pwm(struct pwm_fan_ctx *ctx, unsigned long pwm) argument 223 set_pwm(struct pwm_fan_ctx *ctx, unsigned long pwm) argument 234 pwm_fan_update_state(struct pwm_fan_ctx *ctx, unsigned long pwm) argument 245 pwm_fan_update_enable(struct pwm_fan_ctx *ctx, long val) argument 295 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); local 324 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); local 372 struct pwm_fan_ctx *ctx = cdev->devdata; local 385 struct pwm_fan_ctx *ctx = cdev->devdata; local 398 struct pwm_fan_ctx *ctx = cdev->devdata; local 424 pwm_fan_of_get_cooling_data(struct device *dev, struct pwm_fan_ctx *ctx) argument 467 struct pwm_fan_ctx *ctx = __ctx; local 479 struct pwm_fan_ctx *ctx; local 648 struct pwm_fan_ctx *ctx = platform_get_drvdata(pdev); local 655 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); local 662 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); local [all...] |
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec.c | 36 static bool mtk_vdec_get_cap_fmt(struct mtk_vcodec_dec_ctx *ctx, int format_index) argument 38 const struct mtk_vcodec_dec_pdata *dec_pdata = ctx->dev->vdec_pdata; 52 if (num_frame_count == 1 || (!ctx->is_10bit_bitstream && fmt->fourcc == V4L2_PIX_FMT_MM21)) 55 q_data = &ctx->q_data[MTK_Q_DATA_SRC]; 58 if (ctx->is_10bit_bitstream && fmt->fourcc == V4L2_PIX_FMT_MT2110R) 64 if (ctx->is_10bit_bitstream && fmt->fourcc == V4L2_PIX_FMT_MT2110T) 74 static struct mtk_q_data *mtk_vdec_get_q_data(struct mtk_vcodec_dec_ctx *ctx, argument 78 return &ctx->q_data[MTK_Q_DATA_SRC]; 80 return &ctx->q_data[MTK_Q_DATA_DST]; 93 struct mtk_vcodec_dec_ctx *ctx local 131 mtk_vdec_unlock(struct mtk_vcodec_dec_ctx *ctx) argument 136 mtk_vdec_lock(struct mtk_vcodec_dec_ctx *ctx) argument 141 mtk_vcodec_dec_release(struct mtk_vcodec_dec_ctx *ctx) argument 147 mtk_vcodec_dec_set_default_params(struct mtk_vcodec_dec_ctx *ctx) argument 188 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 201 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 214 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 226 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(fh); local 241 vidioc_try_fmt(struct mtk_vcodec_dec_ctx *ctx, struct v4l2_format *f, const struct mtk_video_fmt *fmt) argument 309 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 327 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 348 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 397 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 419 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 549 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 581 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 627 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); local 716 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vq); local 758 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 782 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local 820 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(q); local 831 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(q); local 886 struct mtk_vcodec_dec_ctx *ctx = priv; local 894 struct mtk_vcodec_dec_ctx *ctx = m2m_priv; local 913 struct mtk_vcodec_dec_ctx *ctx = priv; local 961 struct mtk_vcodec_dec_ctx *ctx = priv; local [all...] |
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_ctl.c | 80 static inline u32 dpu_hw_ctl_get_flush_register(struct dpu_hw_ctl *ctx) argument 82 struct dpu_hw_blk_reg_map *c = &ctx->hw; 87 static inline void dpu_hw_ctl_trigger_start(struct dpu_hw_ctl *ctx) argument 89 trace_dpu_hw_ctl_trigger_start(ctx->pending_flush_mask, 90 dpu_hw_ctl_get_flush_register(ctx)); 91 DPU_REG_WRITE(&ctx->hw, CTL_START, 0x1); 94 static inline bool dpu_hw_ctl_is_started(struct dpu_hw_ctl *ctx) argument 96 return !!(DPU_REG_READ(&ctx->hw, CTL_START) & BIT(0)); 99 static inline void dpu_hw_ctl_trigger_pending(struct dpu_hw_ctl *ctx) argument 101 trace_dpu_hw_ctl_trigger_prepare(ctx 106 dpu_hw_ctl_clear_pending_flush(struct dpu_hw_ctl *ctx) argument 121 dpu_hw_ctl_update_pending_flush(struct dpu_hw_ctl *ctx, u32 flushbits) argument 129 dpu_hw_ctl_get_pending_flush(struct dpu_hw_ctl *ctx) argument 134 dpu_hw_ctl_trigger_flush_v1(struct dpu_hw_ctl *ctx) argument 171 dpu_hw_ctl_trigger_flush(struct dpu_hw_ctl *ctx) argument 178 dpu_hw_ctl_update_pending_flush_sspp(struct dpu_hw_ctl *ctx, enum dpu_sspp sspp) argument 235 dpu_hw_ctl_update_pending_flush_mixer(struct dpu_hw_ctl *ctx, enum dpu_lm lm) argument 264 dpu_hw_ctl_update_pending_flush_intf(struct dpu_hw_ctl *ctx, enum dpu_intf intf) argument 285 dpu_hw_ctl_update_pending_flush_wb(struct dpu_hw_ctl *ctx, enum dpu_wb wb) argument 299 dpu_hw_ctl_update_pending_flush_cdm(struct dpu_hw_ctl *ctx, enum dpu_cdm cdm_num) argument 306 dpu_hw_ctl_update_pending_flush_wb_v1(struct dpu_hw_ctl *ctx, enum dpu_wb wb) argument 313 dpu_hw_ctl_update_pending_flush_intf_v1(struct dpu_hw_ctl *ctx, enum dpu_intf intf) argument 320 dpu_hw_ctl_update_pending_flush_periph_v1(struct dpu_hw_ctl *ctx, enum dpu_intf intf) argument 327 dpu_hw_ctl_update_pending_flush_merge_3d_v1(struct dpu_hw_ctl *ctx, enum dpu_merge_3d merge_3d) argument 334 dpu_hw_ctl_update_pending_flush_dsc_v1(struct dpu_hw_ctl *ctx, enum dpu_dsc dsc_num) argument 341 dpu_hw_ctl_update_pending_flush_cdm_v1(struct dpu_hw_ctl *ctx, enum dpu_cdm cdm_num) argument 347 dpu_hw_ctl_update_pending_flush_dspp(struct dpu_hw_ctl *ctx, enum dpu_dspp dspp, u32 dspp_sub_blk) argument 368 dpu_hw_ctl_update_pending_flush_dspp_sub_blocks( struct dpu_hw_ctl *ctx, enum dpu_dspp dspp, u32 dspp_sub_blk) argument 385 dpu_hw_ctl_poll_reset_status(struct dpu_hw_ctl *ctx, u32 timeout_us) argument 407 dpu_hw_ctl_reset_control(struct dpu_hw_ctl *ctx) argument 419 dpu_hw_ctl_wait_reset_status(struct dpu_hw_ctl *ctx) argument 438 dpu_hw_ctl_clear_all_blendstages(struct dpu_hw_ctl *ctx) argument 480 dpu_hw_ctl_setup_blendstage(struct dpu_hw_ctl *ctx, enum dpu_lm lm, struct dpu_hw_stage_cfg *stage_cfg) argument 543 dpu_hw_ctl_intf_cfg_v1(struct dpu_hw_ctl *ctx, struct dpu_hw_intf_cfg *cfg) argument 585 dpu_hw_ctl_intf_cfg(struct dpu_hw_ctl *ctx, struct dpu_hw_intf_cfg *cfg) argument 618 dpu_hw_ctl_reset_intf_cfg_v1(struct dpu_hw_ctl *ctx, struct dpu_hw_intf_cfg *cfg) argument 670 dpu_hw_ctl_set_fetch_pipe_active(struct dpu_hw_ctl *ctx, unsigned long *fetch_active) argument [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | htab_reuse.c | 22 struct htab_op_ctx *ctx = arg; local 25 while (i++ < ctx->loop && !ctx->stop) { 31 bpf_map_lookup_elem_flags(ctx->fd, &key, &value, BPF_F_LOCK); 39 struct htab_op_ctx *ctx = arg; local 42 while (i++ < ctx->loop && !ctx->stop) { 49 bpf_map_update_elem(ctx->fd, &key, &value, BPF_F_LOCK); 50 bpf_map_delete_elem(ctx->fd, &key); 55 bpf_map_update_elem(ctx 67 struct htab_op_ctx ctx; local [all...] |
/linux-master/sound/soc/intel/atom/sst/ |
H A D | sst_pci.c | 24 static int sst_platform_get_resources(struct intel_sst_drv *ctx) argument 27 struct pci_dev *pci = ctx->pci; 35 if (ctx->dev_id == PCI_DEVICE_ID_INTEL_SST_TNG) { 36 ctx->ddr_base = pci_resource_start(pci, 0); 38 ddr_base = relocate_imr_addr_mrfld(ctx->ddr_base); 39 if (!ctx->pdata->lib_info) { 40 dev_err(ctx->dev, "lib_info pointer NULL\n"); 44 if (ddr_base != ctx->pdata->lib_info->mod_base) { 45 dev_err(ctx->dev, 50 ctx [all...] |
/linux-master/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 111 static void emit_imm(const s8 rd, s32 imm, struct rv_jit_context *ctx) argument 117 emit(rv_lui(rd, upper), ctx); local 118 emit(rv_addi(rd, rd, lower), ctx); local 120 emit(rv_addi(rd, RV_REG_ZERO, lower), ctx); local 124 static void emit_imm32(const s8 *rd, s32 imm, struct rv_jit_context *ctx) argument 127 emit_imm(lo(rd), imm, ctx); local 131 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); 133 emit(rv_addi(hi(rd), RV_REG_ZERO, -1), ctx); 137 struct rv_jit_context *ctx) 139 emit_imm(lo(rd), imm_lo, ctx); local 136 emit_imm64(const s8 *rd, s32 imm_hi, s32 imm_lo, struct rv_jit_context *ctx) argument 140 emit_imm(hi(rd), imm_hi, ctx); local 143 __build_epilogue(bool is_tail_call, struct rv_jit_context *ctx) argument 150 emit(rv_addi(RV_REG_A0, lo(r0), 0), ctx); local 151 emit(rv_addi(RV_REG_A1, hi(r0), 0), ctx); local 165 emit(rv_addi(RV_REG_SP, RV_REG_SP, stack_adjust), ctx); local 185 bpf_get_reg64(const s8 *reg, const s8 *tmp, struct rv_jit_context *ctx) argument 189 emit(rv_lw(hi(tmp), hi(reg), RV_REG_FP), ctx); local 190 emit(rv_lw(lo(tmp), lo(reg), RV_REG_FP), ctx); local 196 bpf_put_reg64(const s8 *reg, const s8 *src, struct rv_jit_context *ctx) argument 200 emit(rv_sw(RV_REG_FP, hi(reg), hi(src)), ctx); local 201 emit(rv_sw(RV_REG_FP, lo(reg), lo(src)), ctx); local 205 bpf_get_reg32(const s8 *reg, const s8 *tmp, struct rv_jit_context *ctx) argument 209 emit(rv_lw(lo(tmp), lo(reg), RV_REG_FP), ctx); local 215 bpf_put_reg32(const s8 *reg, const s8 *src, struct rv_jit_context *ctx) argument 219 emit(rv_sw(RV_REG_FP, lo(reg), lo(src)), ctx); local 221 emit(rv_sw(RV_REG_FP, hi(reg), RV_REG_ZERO), ctx); local 227 emit_jump_and_link(u8 rd, s32 rvoff, bool force_jalr, struct rv_jit_context *ctx) argument 239 emit(rv_auipc(RV_REG_T1, upper), ctx); local 240 emit(rv_jalr(rd, RV_REG_T1, lower), ctx); local 243 emit_alu_i64(const s8 *dst, s32 imm, struct rv_jit_context *ctx, const u8 op) argument 255 emit(rv_andi(lo(rd), lo(rd), imm), ctx); local 258 emit(rv_and(lo(rd), lo(rd), RV_REG_T0), ctx); local 265 emit(rv_ori(lo(rd), lo(rd), imm), ctx); local 268 emit(rv_or(lo(rd), lo(rd), RV_REG_T0), ctx); local 275 emit(rv_xori(lo(rd), lo(rd), imm), ctx); local 278 emit(rv_xor(lo(rd), lo(rd), RV_REG_T0), ctx); local 281 emit(rv_xori(hi(rd), hi(rd), -1), ctx); local 285 emit(rv_slli(hi(rd), lo(rd), imm - 32), ctx); local 290 emit(rv_srli(RV_REG_T0, lo(rd), 32 - imm), ctx); local 291 emit(rv_slli(hi(rd), hi(rd), imm), ctx); local 293 emit(rv_slli(lo(rd), lo(rd), imm), ctx); local 298 emit(rv_srli(lo(rd), hi(rd), imm - 32), ctx); local 303 emit(rv_slli(RV_REG_T0, hi(rd), 32 - imm), ctx); local 304 emit(rv_srli(lo(rd), lo(rd), imm), ctx); local 306 emit(rv_srli(hi(rd), hi(rd), imm), ctx); local 311 emit(rv_srai(lo(rd), hi(rd), imm - 32), ctx); local 312 emit(rv_srai(hi(rd), hi(rd), 31), ctx); local 316 emit(rv_slli(RV_REG_T0, hi(rd), 32 - imm), ctx); local 317 emit(rv_srli(lo(rd), lo(rd), imm), ctx); local 319 emit(rv_srai(hi(rd), hi(rd), imm), ctx); local 327 emit_alu_i32(const s8 *dst, s32 imm, struct rv_jit_context *ctx, const u8 op) argument 335 emit_imm(lo(rd), imm, ctx); local 339 emit(rv_addi(lo(rd), lo(rd), imm), ctx); local 342 emit(rv_add(lo(rd), lo(rd), RV_REG_T0), ctx); local 347 emit(rv_addi(lo(rd), lo(rd), -imm), ctx); local 350 emit(rv_sub(lo(rd), lo(rd), RV_REG_T0), ctx); local 355 emit(rv_andi(lo(rd), lo(rd), imm), ctx); local 358 emit(rv_and(lo(rd), lo(rd), RV_REG_T0), ctx); local 363 emit(rv_ori(lo(rd), lo(rd), imm), ctx); local 366 emit(rv_or(lo(rd), lo(rd), RV_REG_T0), ctx); local 371 emit(rv_xori(lo(rd), lo(rd), imm), ctx); local 374 emit(rv_xor(lo(rd), lo(rd), RV_REG_T0), ctx); local 379 emit(rv_slli(lo(rd), lo(rd), imm), ctx); local 382 emit(rv_sll(lo(rd), lo(rd), RV_REG_T0), ctx); local 387 emit(rv_srli(lo(rd), lo(rd), imm), ctx); local 390 emit(rv_srl(lo(rd), lo(rd), RV_REG_T0), ctx); local 395 emit(rv_srai(lo(rd), lo(rd), imm), ctx); local 398 emit(rv_sra(lo(rd), lo(rd), RV_REG_T0), ctx); local 406 emit_alu_r64(const s8 *dst, const s8 *src, struct rv_jit_context *ctx, const u8 op) argument 416 emit(rv_addi(lo(rd), lo(rs), 0), ctx); local 417 emit(rv_addi(hi(rd), hi(rs), 0), ctx); local 421 emit(rv_srli(RV_REG_T0, lo(rd), 31), ctx); local 422 emit(rv_slli(hi(rd), hi(rd), 1), ctx); local 424 emit(rv_slli(lo(rd), lo(rd), 1), ctx); local 427 emit(rv_sltu(RV_REG_T0, lo(rd), lo(rs)), ctx); local 429 emit(rv_add(hi(rd), hi(rd), RV_REG_T0), ctx); local 433 emit(rv_sub(RV_REG_T1, hi(rd), hi(rs)), ctx); local 434 emit(rv_sltu(RV_REG_T0, lo(rd), lo(rs)), ctx); local 451 emit(rv_mul(RV_REG_T0, hi(rs), lo(rd)), ctx); local 453 emit(rv_mulhu(RV_REG_T1, lo(rd), lo(rs)), ctx); local 454 emit(rv_add(hi(rd), hi(rd), RV_REG_T0), ctx); local 456 emit(rv_add(hi(rd), hi(rd), RV_REG_T1), ctx); local 459 emit(rv_addi(RV_REG_T0, lo(rs), -32), ctx); local 461 emit(rv_sll(hi(rd), lo(rd), RV_REG_T0), ctx); local 465 emit(rv_srli(RV_REG_T0, lo(rd), 1), ctx); local 466 emit(rv_sub(RV_REG_T1, RV_REG_T1, lo(rs)), ctx); local 467 emit(rv_srl(RV_REG_T0, RV_REG_T0, RV_REG_T1), ctx); local 473 emit(rv_addi(RV_REG_T0, lo(rs), -32), ctx); local 475 emit(rv_srl(lo(rd), hi(rd), RV_REG_T0), ctx); local 479 emit(rv_slli(RV_REG_T0, hi(rd), 1), ctx); local 480 emit(rv_sub(RV_REG_T1, RV_REG_T1, lo(rs)), ctx); local 481 emit(rv_sll(RV_REG_T0, RV_REG_T0, RV_REG_T1), ctx); local 487 emit(rv_addi(RV_REG_T0, lo(rs), -32), ctx); local 489 emit(rv_sra(lo(rd), hi(rd), RV_REG_T0), ctx); local 490 emit(rv_srai(hi(rd), hi(rd), 31), ctx); local 493 emit(rv_slli(RV_REG_T0, hi(rd), 1), ctx); local 494 emit(rv_sub(RV_REG_T1, RV_REG_T1, lo(rs)), ctx); local 495 emit(rv_sll(RV_REG_T0, RV_REG_T0, RV_REG_T1), ctx); local 502 emit(rv_sltu(RV_REG_T0, RV_REG_ZERO, lo(rd)), ctx); local 504 emit(rv_sub(hi(rd), hi(rd), RV_REG_T0), ctx); local 511 emit_alu_r32(const s8 *dst, const s8 *src, struct rv_jit_context *ctx, const u8 op) argument 521 emit(rv_addi(lo(rd), lo(rs), 0), ctx); local 564 emit_branch_r64(const s8 *src1, const s8 *src2, s32 rvoff, struct rv_jit_context *ctx, const u8 op) argument 635 emit(rv_and(RV_REG_T0, hi(rs1), hi(rs2)), ctx); local 636 emit(rv_bne(RV_REG_T0, RV_REG_ZERO, JUMP(2)), ctx); local 637 emit(rv_and(RV_REG_T0, lo(rs1), lo(rs2)), ctx); local 638 emit(rv_beq(RV_REG_T0, RV_REG_ZERO, NO_JUMP(0)), ctx); local 652 emit_bcc(u8 op, u8 rd, u8 rs, int rvoff, struct rv_jit_context *ctx) argument 678 emit(rv_beq(rd, rs, off), ctx); local 681 emit(rv_bgtu(rd, rs, off), ctx); local 684 emit(rv_bltu(rd, rs, off), ctx); local 687 emit(rv_bgeu(rd, rs, off), ctx); local 690 emit(rv_bleu(rd, rs, off), ctx); local 693 emit(rv_bne(rd, rs, off), ctx); local 696 emit(rv_bgt(rd, rs, off), ctx); local 699 emit(rv_blt(rd, rs, off), ctx); local 702 emit(rv_bge(rd, rs, off), ctx); local 705 emit(rv_ble(rd, rs, off), ctx); local 708 emit(rv_and(RV_REG_T0, rd, rs), ctx); local 709 emit(rv_beq(RV_REG_T0, RV_REG_ZERO, off), ctx); local 722 emit_branch_r32(const s8 *src1, const s8 *src2, s32 rvoff, struct rv_jit_context *ctx, const u8 op) argument 742 emit_call(bool fixed, u64 addr, struct rv_jit_context *ctx) argument 762 emit(rv_lui(RV_REG_T1, upper), ctx); local 763 emit(rv_jalr(RV_REG_RA, RV_REG_T1, lower), ctx); local 774 emit_bpf_tail_call(int insn, struct rv_jit_context *ctx) argument 814 emit(rv_slli(RV_REG_T0, lo(idx_reg), 2), ctx); local 815 emit(rv_add(RV_REG_T0, RV_REG_T0, lo(arr_reg)), ctx); local 836 emit_load_r64(const s8 *dst, const s8 *src, s16 off, struct rv_jit_context *ctx, const u8 size) argument 845 emit(rv_add(RV_REG_T0, RV_REG_T0, lo(rs)), ctx); local 873 emit_store_r64(const s8 *dst, const s8 *src, s16 off, struct rv_jit_context *ctx, const u8 size, const u8 mode) argument 886 emit(rv_add(RV_REG_T0, RV_REG_T0, lo(rd)), ctx); local 902 ctx); local 915 emit_rev16(const s8 rd, struct rv_jit_context *ctx) argument 920 emit(rv_add(RV_REG_T1, rd, RV_REG_T1), ctx); local 924 emit_rev32(const s8 rd, struct rv_jit_context *ctx) argument 928 emit(rv_add(RV_REG_T1, RV_REG_T1, RV_REG_T0), ctx); local 932 emit(rv_add(RV_REG_T1, RV_REG_T1, RV_REG_T0), ctx); local 936 emit(rv_add(RV_REG_T1, RV_REG_T1, RV_REG_T0), ctx); local 940 emit(rv_add(RV_REG_T1, RV_REG_T1, RV_REG_T0), ctx); local 944 emit_zext64(const s8 *dst, struct rv_jit_context *ctx) argument 954 bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx, bool extra_pass) argument 1078 emit(rv_slli(lo(rd), lo(rd), 16), ctx); local 1079 emit(rv_srli(lo(rd), lo(rd), 16), ctx); local 1103 emit_rev16(lo(rd), ctx); local 1108 emit_rev32(lo(rd), ctx); local 1114 emit(rv_addi(RV_REG_T0, lo(rd), 0), ctx); local 1115 emit(rv_addi(lo(rd), hi(rd), 0), ctx); local 1119 emit_rev32(lo(rd), ctx); local 1120 emit_rev32(hi(rd), ctx); local 1304 bpf_jit_build_prologue(struct rv_jit_context *ctx, bool is_subprog) argument 1325 emit(rv_addi(RV_REG_TCC, RV_REG_ZERO, MAX_TAIL_CALL_CNT), ctx); local 1341 emit(rv_addi(RV_REG_FP, RV_REG_SP, stack_adjust), ctx); local 1354 bpf_jit_build_epilogue(struct rv_jit_context *ctx) argument [all...] |
/linux-master/tools/testing/selftests/sgx/ |
H A D | sigstruct.c | 35 static void free_q1q2_ctx(struct q1q2_ctx *ctx) argument 37 BN_CTX_free(ctx->bn_ctx); 38 BN_free(ctx->m); 39 BN_free(ctx->s); 40 BN_free(ctx->q1); 41 BN_free(ctx->qr); 42 BN_free(ctx->q2); 46 struct q1q2_ctx *ctx) 48 ctx->bn_ctx = BN_CTX_new(); 49 ctx 45 alloc_q1q2_ctx(const uint8_t *s, const uint8_t *m, struct q1q2_ctx *ctx) argument 83 struct q1q2_ctx ctx; local 186 mrenclave_update(EVP_MD_CTX *ctx, const void *data) argument 196 mrenclave_commit(EVP_MD_CTX *ctx, uint8_t *mrenclave) argument 221 mrenclave_ecreate(EVP_MD_CTX *ctx, uint64_t blob_size) argument 247 mrenclave_eadd(EVP_MD_CTX *ctx, uint64_t offset, uint64_t flags) argument 265 mrenclave_eextend(EVP_MD_CTX *ctx, uint64_t offset, const uint8_t *data) argument 295 mrenclave_segment(EVP_MD_CTX *ctx, struct encl *encl, struct encl_segment *seg) argument 321 EVP_MD_CTX *ctx = NULL; local [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_modeset_lock.c | 37 * of extra utility/tracking out of our acquire-ctx. This is provided 44 * drm_modeset_acquire_init(ctx, DRM_MODESET_ACQUIRE_INTERRUPTIBLE) 47 * ret = drm_modeset_lock(lock, ctx) 49 * ret = drm_modeset_backoff(ctx); 58 * drm_modeset_drop_locks(ctx); 59 * drm_modeset_acquire_fini(ctx); 67 * by passing a NULL instead of ctx in the drm_modeset_lock() call or 146 struct drm_modeset_acquire_ctx *ctx; local 149 ctx = kzalloc(sizeof(*ctx), GFP_KERNE 200 struct drm_modeset_acquire_ctx *ctx = config->acquire_ctx; local 246 drm_modeset_acquire_init(struct drm_modeset_acquire_ctx *ctx, uint32_t flags) argument 262 drm_modeset_acquire_fini(struct drm_modeset_acquire_ctx *ctx) argument 274 drm_modeset_drop_locks(struct drm_modeset_acquire_ctx *ctx) argument 290 modeset_lock(struct drm_modeset_lock *lock, struct drm_modeset_acquire_ctx *ctx, bool interruptible, bool slow) argument 346 drm_modeset_backoff(struct drm_modeset_acquire_ctx *ctx) argument 392 drm_modeset_lock(struct drm_modeset_lock *lock, struct drm_modeset_acquire_ctx *ctx) argument 449 drm_modeset_lock_all_ctx(struct drm_device *dev, struct drm_modeset_acquire_ctx *ctx) argument [all...] |
/linux-master/fs/nfs/ |
H A D | fs_context.c | 312 static bool nfs_server_transport_udp_invalid(const struct nfs_fs_context *ctx) argument 317 static bool nfs_server_transport_udp_invalid(const struct nfs_fs_context *ctx) argument 319 if (ctx->version == 4) 329 struct nfs_fs_context *ctx) 331 switch (ctx->nfs_server.protocol) { 333 if (nfs_server_transport_udp_invalid(ctx)) 340 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; 343 if (ctx->xprtsec.policy != RPC_XPRTSEC_NONE) 344 switch (ctx->nfs_server.protocol) { 346 ctx 328 nfs_validate_transport_protocol(struct fs_context *fc, struct nfs_fs_context *ctx) argument 363 nfs_set_mount_transport_protocol(struct nfs_fs_context *ctx) argument 408 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 467 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 490 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 533 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 955 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 1041 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 1273 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 1386 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 1499 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 1518 struct nfs_fs_context *src = nfs_fc2context(src_fc), *ctx; local 1544 struct nfs_fs_context *ctx = nfs_fc2context(fc); local 1578 struct nfs_fs_context *ctx; local [all...] |
/linux-master/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_opr_v6.c | 46 static int s5p_mfc_alloc_dec_temp_buffers_v6(struct s5p_mfc_ctx *ctx) argument 54 static void s5p_mfc_release_dec_desc_buffer_v6(struct s5p_mfc_ctx *ctx) argument 60 static int s5p_mfc_alloc_codec_buffers_v6(struct s5p_mfc_ctx *ctx) argument 62 struct s5p_mfc_dev *dev = ctx->dev; 67 mb_width = MB_WIDTH(ctx->img_width); 68 mb_height = MB_HEIGHT(ctx->img_height); 69 width64 = ALIGN(ctx->img_width, 64); 70 height32 = ALIGN(ctx->img_height, 32); 72 if (ctx->type == MFCINST_DECODER) { 74 ctx 377 s5p_mfc_release_codec_buffers_v6(struct s5p_mfc_ctx *ctx) argument 383 s5p_mfc_alloc_instance_buffer_v6(struct s5p_mfc_ctx *ctx) argument 438 s5p_mfc_release_instance_buffer_v6(struct s5p_mfc_ctx *ctx) argument 486 s5p_mfc_dec_calc_dpb_size_v6(struct s5p_mfc_ctx *ctx) argument 539 s5p_mfc_enc_calc_src_size_v6(struct s5p_mfc_ctx *ctx) argument 584 s5p_mfc_set_dec_stream_buffer_v6(struct s5p_mfc_ctx *ctx, int buf_addr, unsigned int start_num_byte, unsigned int strm_size) argument 606 s5p_mfc_set_dec_frame_buffer_v6(struct s5p_mfc_ctx *ctx) argument 715 s5p_mfc_set_enc_stream_buffer_v6(struct s5p_mfc_ctx *ctx, unsigned long addr, unsigned int size) argument 730 s5p_mfc_set_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx, unsigned long y_addr, unsigned long c_addr, unsigned long c_1_addr) argument 746 s5p_mfc_get_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx, unsigned long *y_addr, unsigned long *c_addr, unsigned long *c_1_addr) argument 770 s5p_mfc_set_enc_ref_buffer_v6(struct s5p_mfc_ctx *ctx) argument 841 s5p_mfc_set_slice_mode(struct s5p_mfc_ctx *ctx) argument 862 s5p_mfc_set_enc_params(struct s5p_mfc_ctx *ctx) argument 1055 s5p_mfc_set_enc_params_h264(struct s5p_mfc_ctx *ctx) argument 1348 s5p_mfc_set_enc_params_mpeg4(struct s5p_mfc_ctx *ctx) argument 1430 s5p_mfc_set_enc_params_h263(struct s5p_mfc_ctx *ctx) argument 1500 s5p_mfc_set_enc_params_vp8(struct s5p_mfc_ctx *ctx) argument 1593 s5p_mfc_set_enc_params_hevc(struct s5p_mfc_ctx *ctx) argument 1750 s5p_mfc_init_decode_v6(struct s5p_mfc_ctx *ctx) argument 1815 s5p_mfc_set_flush(struct s5p_mfc_ctx *ctx, int flush) argument 1829 s5p_mfc_decode_one_frame_v6(struct s5p_mfc_ctx *ctx, enum s5p_mfc_decode_arg last_frame) argument 1859 s5p_mfc_init_encode_v6(struct s5p_mfc_ctx *ctx) argument 1896 s5p_mfc_h264_set_aso_slice_order_v6(struct s5p_mfc_ctx *ctx) argument 1914 s5p_mfc_encode_one_frame_v6(struct s5p_mfc_ctx *ctx) argument 1942 s5p_mfc_run_dec_last_frames(struct s5p_mfc_ctx *ctx) argument 1951 s5p_mfc_run_dec_frame(struct s5p_mfc_ctx *ctx) argument 1990 s5p_mfc_run_enc_frame(struct s5p_mfc_ctx *ctx) argument 2053 s5p_mfc_run_init_dec(struct s5p_mfc_ctx *ctx) argument 2069 s5p_mfc_run_init_enc(struct s5p_mfc_ctx *ctx) argument 2084 s5p_mfc_run_init_dec_buffers(struct s5p_mfc_ctx *ctx) argument 2108 s5p_mfc_run_init_enc_buffers(struct s5p_mfc_ctx *ctx) argument 2132 struct s5p_mfc_ctx *ctx; local 2260 s5p_mfc_read_info_v6(struct s5p_mfc_ctx *ctx, unsigned long ofs) argument 2297 s5p_mfc_get_disp_frame_type_v6(struct s5p_mfc_ctx *ctx) argument 2375 s5p_mfc_get_pic_type_top_v6(struct s5p_mfc_ctx *ctx) argument 2381 s5p_mfc_get_pic_type_bot_v6(struct s5p_mfc_ctx *ctx) argument 2387 s5p_mfc_get_crop_info_h_v6(struct s5p_mfc_ctx *ctx) argument 2393 s5p_mfc_get_crop_info_v_v6(struct s5p_mfc_ctx *ctx) argument [all...] |
/linux-master/drivers/thermal/ |
H A D | khadas_mcu_fan.c | 25 static int khadas_mcu_fan_set_level(struct khadas_mcu_fan_ctx *ctx, argument 30 ret = regmap_write(ctx->mcu->regmap, KHADAS_MCU_CMD_FAN_STATUS_CTRL_REG, 35 ctx->level = level; 51 struct khadas_mcu_fan_ctx *ctx = cdev->devdata; local 53 *state = ctx->level; 62 struct khadas_mcu_fan_ctx *ctx = cdev->devdata; local 67 if (state == ctx->level) 70 return khadas_mcu_fan_set_level(ctx, state); 84 struct khadas_mcu_fan_ctx *ctx; local 87 ctx 109 struct khadas_mcu_fan_ctx *ctx = platform_get_drvdata(pdev); local 117 struct khadas_mcu_fan_ctx *ctx = dev_get_drvdata(dev); local 132 struct khadas_mcu_fan_ctx *ctx = dev_get_drvdata(dev); local [all...] |
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_validation.h | 107 * @ctx: The validation context 111 vmw_validation_has_bos(struct vmw_validation_context *ctx) argument 113 return !list_empty(&ctx->bo_list); 119 * @ctx: The validation context 126 vmw_validation_bo_reserve(struct vmw_validation_context *ctx, argument 129 return ttm_eu_reserve_buffers(&ctx->ticket, &ctx->bo_list, intr, 136 * @ctx: The validation context 142 vmw_validation_bo_fence(struct vmw_validation_context *ctx, argument 145 ttm_eu_fence_buffer_objects(&ctx [all...] |
/linux-master/include/linux/ |
H A D | ww_mutex.h | 49 struct ww_acquire_ctx *ctx; member in struct:ww_mutex 102 lock->ctx = NULL; 110 * @ctx: w/w acquire context to initialize 132 static inline void ww_acquire_init(struct ww_acquire_ctx *ctx, argument 135 ctx->task = current; 136 ctx->stamp = atomic_long_inc_return_relaxed(&ww_class->stamp); 137 ctx->acquired = 0; 138 ctx->wounded = false; 139 ctx->is_wait_die = ww_class->is_wait_die; 141 ctx 168 ww_acquire_done(struct ww_acquire_ctx *ctx) argument 185 ww_acquire_fini(struct ww_acquire_ctx *ctx) argument 293 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) argument 329 ww_mutex_lock_slow_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) argument [all...] |