Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 2454) sorted by relevance

12345678910>>...99

/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dctxnv50.c170 static void nv50_gr_construct_mmio(struct nvkm_grctx *ctx);
171 static void nv50_gr_construct_xfer1(struct nvkm_grctx *ctx);
172 static void nv50_gr_construct_xfer2(struct nvkm_grctx *ctx);
177 nv50_grctx_generate(struct nvkm_grctx *ctx) in nv50_grctx_generate() argument
179 cp_set (ctx, STATE, RUNNING); in nv50_grctx_generate()
180 cp_set (ctx, XFER_SWITCH, ENABLE); in nv50_grctx_generate()
182 cp_bra (ctx, AUTO_SAVE, PENDING, cp_setup_save); in nv50_grctx_generate()
183 cp_bra (ctx, USER_SAVE, PENDING, cp_setup_save); in nv50_grctx_generate()
185 cp_name(ctx, cp_check_load); in nv50_grctx_generate()
186 cp_bra (ctx, AUTO_LOAD, PENDING, cp_setup_auto_load); in nv50_grctx_generate()
[all …]
H A Dctxnv40.c159 nv40_gr_construct_general(struct nvkm_grctx *ctx) in nv40_gr_construct_general() argument
161 struct nvkm_device *device = ctx->device; in nv40_gr_construct_general()
164 cp_ctx(ctx, 0x4000a4, 1); in nv40_gr_construct_general()
165 gr_def(ctx, 0x4000a4, 0x00000008); in nv40_gr_construct_general()
166 cp_ctx(ctx, 0x400144, 58); in nv40_gr_construct_general()
167 gr_def(ctx, 0x400144, 0x00000001); in nv40_gr_construct_general()
168 cp_ctx(ctx, 0x400314, 1); in nv40_gr_construct_general()
169 gr_def(ctx, 0x400314, 0x00000000); in nv40_gr_construct_general()
170 cp_ctx(ctx, 0x400400, 10); in nv40_gr_construct_general()
171 cp_ctx(ctx, 0x400480, 10); in nv40_gr_construct_general()
[all …]
/linux/drivers/gpu/drm/panel/
H A Dpanel-boe-tv101wum-nl6.c59 #define nt36523_switch_page(ctx, page) \ argument
60 mipi_dsi_dcs_write_seq_multi(ctx, NT36523_DCS_SWITCH_PAGE, (page))
62 static void nt36523_enable_reload_cmds(struct mipi_dsi_multi_context *ctx) in nt36523_enable_reload_cmds() argument
64 mipi_dsi_dcs_write_seq_multi(ctx, 0xfb, 0x01); in nt36523_enable_reload_cmds()
69 struct mipi_dsi_multi_context ctx = { .dsi = boe->dsi }; in boe_tv110c9m_init() local
71 nt36523_switch_page(&ctx, 0x20); in boe_tv110c9m_init()
72 nt36523_enable_reload_cmds(&ctx); in boe_tv110c9m_init()
73 mipi_dsi_dcs_write_seq_multi(&ctx, 0x05, 0xd9); in boe_tv110c9m_init()
74 mipi_dsi_dcs_write_seq_multi(&ctx, 0x07, 0x78); in boe_tv110c9m_init()
75 mipi_dsi_dcs_write_seq_multi(&ctx, 0x08, 0x5a); in boe_tv110c9m_init()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_custom_syncookie.c73 static int tcp_load_headers(struct tcp_syncookie *ctx) in tcp_load_headers() argument
75 ctx->data = (void *)(long)ctx->skb->data; in tcp_load_headers()
76 ctx->data_end = (void *)(long)ctx->skb->data_end; in tcp_load_headers()
77 ctx->eth = (struct ethhdr *)(long)ctx->skb->data; in tcp_load_headers()
79 if (ctx->eth + 1 > ctx->data_end) in tcp_load_headers()
82 switch (bpf_ntohs(ctx in tcp_load_headers()
126 tcp_reload_headers(struct tcp_syncookie * ctx) tcp_reload_headers() argument
161 tcp_v4_csum(struct tcp_syncookie * ctx,__wsum csum) tcp_v4_csum() argument
167 tcp_v6_csum(struct tcp_syncookie * ctx,__wsum csum) tcp_v6_csum() argument
173 tcp_validate_header(struct tcp_syncookie * ctx) tcp_validate_header() argument
202 next(struct tcp_syncookie * ctx,__u32 sz) next() argument
220 tcp_parse_option(__u32 index,struct tcp_syncookie * ctx) tcp_parse_option() argument
284 tcp_parse_options(struct tcp_syncookie * ctx) tcp_parse_options() argument
291 tcp_validate_sysctl(struct tcp_syncookie * ctx) tcp_validate_sysctl() argument
314 tcp_prepare_cookie(struct tcp_syncookie * ctx) tcp_prepare_cookie() argument
364 tcp_write_options(struct tcp_syncookie * ctx) tcp_write_options() argument
399 tcp_handle_syn(struct tcp_syncookie * ctx) tcp_handle_syn() argument
462 tcp_validate_cookie(struct tcp_syncookie * ctx) tcp_validate_cookie() argument
505 tcp_handle_ack(struct tcp_syncookie * ctx) tcp_handle_ack() argument
565 struct tcp_syncookie ctx = { tcp_custom_syncookie() local
[all...]
H A Dtest_sk_lookup.c76 int lookup_pass(struct bpf_sk_lookup *ctx) in lookup_pass() argument
82 int lookup_drop(struct bpf_sk_lookup *ctx) in lookup_drop() argument
88 int check_ifindex(struct bpf_sk_lookup *ctx) in check_ifindex() argument
90 if (ctx->ingress_ifindex == 1) in check_ifindex()
96 int reuseport_pass(struct sk_reuseport_md *ctx) in reuseport_pass() argument
102 int reuseport_drop(struct sk_reuseport_md *ctx) in reuseport_drop() argument
109 int redir_port(struct bpf_sk_lookup *ctx) in redir_port() argument
114 if (ctx->local_port != DST_PORT) in redir_port()
121 err = bpf_sk_assign(ctx, sk, 0); in redir_port()
128 int redir_ip4(struct bpf_sk_lookup *ctx) in redir_ip4() argument
[all …]
/linux/drivers/ras/amd/atl/
H A Dmap.c15 static int df2_get_intlv_mode(struct addr_ctx *ctx) in df2_get_intlv_mode() argument
17 ctx->map.intlv_mode = FIELD_GET(DF2_INTLV_NUM_CHAN, ctx->map.base); in df2_get_intlv_mode()
19 if (ctx->map.intlv_mode == 8) in df2_get_intlv_mode()
20 ctx->map.intlv_mode = DF2_2CHAN_HASH; in df2_get_intlv_mode()
22 if (ctx->map.intlv_mode != NONE && in df2_get_intlv_mode()
23 ctx->map.intlv_mode != NOHASH_2CHAN && in df2_get_intlv_mode()
24 ctx->map.intlv_mode != DF2_2CHAN_HASH) in df2_get_intlv_mode()
30 static int df3_get_intlv_mode(struct addr_ctx *ctx) in df3_get_intlv_mode() argument
32 ctx->map.intlv_mode = FIELD_GET(DF3_INTLV_NUM_CHAN, ctx->map.base); in df3_get_intlv_mode()
36 static int df3p5_get_intlv_mode(struct addr_ctx *ctx) in df3p5_get_intlv_mode() argument
[all …]
H A Ddehash.c15 static int df2_dehash_addr(struct addr_ctx *ctx) in df2_dehash_addr() argument
19 intlv_bit_pos = ctx->map.intlv_bit_pos; in df2_dehash_addr()
20 intlv_bit = !!(BIT_ULL(intlv_bit_pos) & ctx->ret_addr); in df2_dehash_addr()
23 hashed_bit ^= FIELD_GET(BIT_ULL(12), ctx->ret_addr); in df2_dehash_addr()
24 hashed_bit ^= FIELD_GET(BIT_ULL(18), ctx->ret_addr); in df2_dehash_addr()
25 hashed_bit ^= FIELD_GET(BIT_ULL(21), ctx->ret_addr); in df2_dehash_addr()
26 hashed_bit ^= FIELD_GET(BIT_ULL(30), ctx->ret_addr); in df2_dehash_addr()
29 ctx->ret_addr ^= BIT_ULL(intlv_bit_pos); in df2_dehash_addr()
34 static int df3_dehash_addr(struct addr_ctx *ctx) in df3_dehash_addr() argument
39 hash_ctl_64k = FIELD_GET(DF3_HASH_CTL_64K, ctx->map.ctl); in df3_dehash_addr()
[all …]
/linux/arch/powerpc/platforms/cell/spufs/
H A Dcontext.c27 struct spu_context *ctx; in alloc_spu_context() local
29 ctx = kzalloc_obj(*ctx); in alloc_spu_context()
30 if (!ctx) in alloc_spu_context()
35 if (spu_init_csa(&ctx->csa)) in alloc_spu_context()
37 spin_lock_init(&ctx->mmio_lock); in alloc_spu_context()
38 mutex_init(&ctx->mapping_lock); in alloc_spu_context()
39 kref_init(&ctx->kref); in alloc_spu_context()
40 mutex_init(&ctx->state_mutex); in alloc_spu_context()
41 mutex_init(&ctx->run_mutex); in alloc_spu_context()
42 init_waitqueue_head(&ctx->ibox_wq); in alloc_spu_context()
[all …]
H A Dbacking_ops.c34 static void gen_spu_event(struct spu_context *ctx, u32 event) in gen_spu_event() argument
40 ch0_cnt = ctx->csa.spu_chnlcnt_RW[0]; in gen_spu_event()
41 ch0_data = ctx->csa.spu_chnldata_RW[0]; in gen_spu_event()
42 ch1_data = ctx->csa.spu_chnldata_RW[1]; in gen_spu_event()
43 ctx->csa.spu_chnldata_RW[0] |= event; in gen_spu_event()
45 ctx->csa.spu_chnlcnt_RW[0] = 1; in gen_spu_event()
49 static int spu_backing_mbox_read(struct spu_context *ctx, u32 * data) in spu_backing_mbox_read() argument
54 spin_lock(&ctx->csa.register_lock); in spu_backing_mbox_read()
55 mbox_stat = ctx->csa.prob.mb_stat_R; in spu_backing_mbox_read()
61 *data = ctx->csa.prob.pu_mb_R; in spu_backing_mbox_read()
[all …]
H A Drun.c17 struct spu_context *ctx = spu->ctx; in spufs_stop_callback() local
26 if (ctx) { in spufs_stop_callback()
30 ctx->csa.class_0_pending = spu->class_0_pending; in spufs_stop_callback()
31 ctx->csa.class_0_dar = spu->class_0_dar; in spufs_stop_callback()
34 ctx->csa.class_1_dsisr = spu->class_1_dsisr; in spufs_stop_callback()
35 ctx->csa.class_1_dar = spu->class_1_dar; in spufs_stop_callback()
45 wake_up_all(&ctx->stop_wq); in spufs_stop_callback()
49 int spu_stopped(struct spu_context *ctx, u32 *stat) in spu_stopped() argument
58 *stat = ctx->ops->status_read(ctx); in spu_stopped()
69 if (test_bit(SPU_SCHED_NOTIFY_ACTIVE, &ctx->sched_flags)) in spu_stopped()
[all …]
/linux/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c43 static void kill_timeout(struct epoll_mtcontext *ctx) in kill_timeout() argument
46 pthread_kill(ctx->main, SIGUSR1); in kill_timeout()
47 pthread_kill(ctx->waiter, SIGUSR1); in kill_timeout()
53 struct epoll_mtcontext *ctx = data; in waiter_entry1a() local
55 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a()
56 __sync_fetch_and_add(&ctx->count, 1); in waiter_entry1a()
65 struct epoll_mtcontext *ctx = data; in waiter_entry1ap() local
67 pfd.fd = ctx->efd[0]; in waiter_entry1ap()
70 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap()
71 __sync_fetch_and_add(&ctx->count, 1); in waiter_entry1ap()
[all …]
/linux/drivers/gpu/drm/bridge/
H A Dsil-sii8620.c106 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) in sii8620_clear_error() argument
139 int ret = ctx->error; in sii8620_clear_error()
141 ctx->error = 0; in sii8620_clear_error()
[all …]
/linux/drivers/media/i2c/
H A Dmax2175.c30 #define mxm_dbg(ctx, fmt, arg...) dev_dbg(&ctx->client->dev, fmt, ## arg) argument
31 #define mxm_err(ctx, fmt, arg...) dev_err(&ctx->client->dev, fmt, ## arg) argument
316 static int max2175_read(struct max2175 *ctx, u8 idx, u8 *val) in max2175_read() argument
321 ret = regmap_read(ctx->regmap, idx, &regval); in max2175_read()
323 mxm_err(ctx, "read ret(%d): idx 0x%02x\n", ret, idx); in max2175_read()
330 static int max2175_write(struct max2175 *ctx, u8 idx, u8 val) in max2175_write() argument
334 ret = regmap_write(ctx->regmap, idx, val); in max2175_write()
336 mxm_err(ctx, "write ret(%d): idx 0x%02x val 0x%02x\n", in max2175_write()
342 static u8 max2175_read_bits(struct max2175 *ctx, u8 idx, u8 msb, u8 lsb) in max2175_read_bits() argument
346 if (max2175_read(ctx, idx, &val)) in max2175_read_bits()
[all …]
/linux/drivers/base/regmap/
H A Dregmap-mmio.c25 void (*reg_write)(struct regmap_mmio_context *ctx,
27 unsigned int (*reg_read)(struct regmap_mmio_context *ctx,
65 static void regmap_mmio_write8(struct regmap_mmio_context *ctx, in regmap_mmio_write8() argument
69 writeb(val, ctx->regs + reg); in regmap_mmio_write8()
72 static void regmap_mmio_write8_relaxed(struct regmap_mmio_context *ctx, in regmap_mmio_write8_relaxed() argument
76 writeb_relaxed(val, ctx->regs + reg); in regmap_mmio_write8_relaxed()
79 static void regmap_mmio_iowrite8(struct regmap_mmio_context *ctx, in regmap_mmio_iowrite8() argument
82 iowrite8(val, ctx->regs + reg); in regmap_mmio_iowrite8()
85 static void regmap_mmio_write16le(struct regmap_mmio_context *ctx, in regmap_mmio_write16le() argument
89 writew(val, ctx->regs + reg); in regmap_mmio_write16le()
[all …]
/linux/fs/smb/client/
H A Dfs_context.c216 cifs_parse_security_flavors(struct fs_context *fc, char *value, struct smb3_fs_context *ctx) in cifs_parse_security_flavors() argument
225 ctx->sectype = Unspecified; in cifs_parse_security_flavors()
226 ctx->sign = false; in cifs_parse_security_flavors()
233 ctx->sign = true; in cifs_parse_security_flavors()
236 ctx->sectype = Kerberos; in cifs_parse_security_flavors()
239 ctx->sign = true; in cifs_parse_security_flavors()
242 ctx->sectype = RawNTLMSSP; in cifs_parse_security_flavors()
245 ctx->sign = true; in cifs_parse_security_flavors()
248 ctx->sectype = NTLMv2; in cifs_parse_security_flavors()
251 ctx->nullauth = 1; in cifs_parse_security_flavors()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_stateful.c55 static struct vb2_buffer *get_display_buffer(struct mtk_vcodec_dec_ctx *ctx) in get_display_buffer() argument
61 mtk_v4l2_vdec_dbg(3, ctx, "[%d]", ctx->id); in get_display_buffer()
62 if (vdec_if_get_param(ctx, GET_PARAM_DISP_FRAME_BUFFER, in get_display_buffer()
64 mtk_v4l2_vdec_err(ctx, "[%d]Cannot get param : GET_PARAM_DISP_FRAME_BUFFER", in get_display_buffer()
65 ctx->id); in get_display_buffer()
70 mtk_v4l2_vdec_dbg(3, ctx, "No display frame buffer"); in get_display_buffer()
77 mutex_lock(&ctx->lock); in get_display_buffer()
79 mtk_v4l2_vdec_dbg(2, ctx, "[%d]status=%x queue id=%d to done_list %d", in get_display_buffer()
80 ctx->id, disp_frame_buffer->status, in get_display_buffer()
84 ctx->decoded_frame_cnt++; in get_display_buffer()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dcontext.c6 bool mlx5hws_context_cap_dynamic_reparse(struct mlx5hws_context *ctx) in mlx5hws_context_cap_dynamic_reparse() argument
8 return IS_BIT_SET(ctx->caps->rtc_reparse_mode, MLX5_IFC_RTC_REPARSE_BY_STC); in mlx5hws_context_cap_dynamic_reparse()
11 u8 mlx5hws_context_get_reparse_mode(struct mlx5hws_context *ctx) in mlx5hws_context_get_reparse_mode() argument
14 if (mlx5hws_context_cap_dynamic_reparse(ctx)) in mlx5hws_context_get_reparse_mode()
21 static int hws_context_pools_init(struct mlx5hws_context *ctx) in hws_context_pools_init() argument
27 ret = mlx5hws_pat_init_pattern_cache(&ctx->pattern_cache); in hws_context_pools_init()
31 ret = mlx5hws_definer_init_cache(&ctx->definer_cache); in hws_context_pools_init()
37 max_log_sz = min(MLX5HWS_POOL_STC_LOG_SZ, ctx->caps->stc_alloc_log_max); in hws_context_pools_init()
38 pool_attr.alloc_log_sz = max(max_log_sz, ctx->caps->stc_alloc_log_gran); in hws_context_pools_init()
41 ctx->stc_pool = mlx5hws_pool_create(ctx, &pool_attr); in hws_context_pools_init()
[all …]
/linux/fs/
H A Dtimerfd.c52 static inline bool isalarm(struct timerfd_ctx *ctx) in isalarm() argument
54 return ctx->clockid == CLOCK_REALTIME_ALARM || in isalarm()
55 ctx->clockid == CLOCK_BOOTTIME_ALARM; in isalarm()
63 static void timerfd_triggered(struct timerfd_ctx *ctx) in timerfd_triggered() argument
67 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_triggered()
68 ctx->expired = 1; in timerfd_triggered()
69 ctx->ticks++; in timerfd_triggered()
70 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in timerfd_triggered()
71 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_triggered()
76 struct timerfd_ctx *ctx = container_of(htmr, struct timerfd_ctx, in timerfd_tmrproc() local
[all …]
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-bit.c41 static void coda_free_bitstream_buffer(struct coda_ctx *ctx);
64 static void coda_command_async(struct coda_ctx *ctx, int cmd) in coda_command_async() argument
66 struct coda_dev *dev = ctx->dev; in coda_command_async()
72 coda_write(dev, ctx->bit_stream_param, in coda_command_async()
74 coda_write(dev, ctx->frm_dis_flg, in coda_command_async()
75 CODA_REG_BIT_FRM_DIS_FLG(ctx->reg_idx)); in coda_command_async()
76 coda_write(dev, ctx->frame_mem_ctrl, in coda_command_async()
78 coda_write(dev, ctx->workbuf.paddr, CODA_REG_BIT_WORK_BUF_ADDR); in coda_command_async()
88 coda_write(dev, ctx->idx, CODA_REG_BIT_RUN_INDEX); in coda_command_async()
89 coda_write(dev, ctx->params.codec_mode, CODA_REG_BIT_RUN_COD_STD); in coda_command_async()
[all …]
/linux/tools/perf/tests/
H A Dexpr.c61 static int test(struct expr_parse_ctx *ctx, const char *e, double val2) in test() argument
65 if (expr__parse(&val, ctx, e)) in test()
77 struct expr_parse_ctx *ctx; in test__expr() local
87 ctx = expr__ctx_new(); in test__expr()
88 TEST_ASSERT_VAL("expr__ctx_new", ctx); in test__expr()
89 expr__add_id_val(ctx, strdup("FOO"), 1); in test__expr()
90 expr__add_id_val(ctx, strdup("BAR"), 2); in test__expr()
92 ret = test(ctx, "1+1", 2); in test__expr()
93 ret |= test(ctx, "FOO+BAR", 3); in test__expr()
94 ret |= test(ctx, "(BAR/2)%2", 1); in test__expr()
[all …]
/linux/sound/soc/intel/atom/sst/
H A Dsst.c195 struct intel_sst_drv *ctx = container_of(work, in sst_process_pending_msg() local
198 ctx->ops->post_message(ctx, NULL, false); in sst_process_pending_msg()
201 static int sst_workqueue_init(struct intel_sst_drv *ctx) in sst_workqueue_init() argument
203 INIT_LIST_HEAD(&ctx->memcpy_list); in sst_workqueue_init()
204 INIT_LIST_HEAD(&ctx->rx_list); in sst_workqueue_init()
205 INIT_LIST_HEAD(&ctx->ipc_dispatch_list); in sst_workqueue_init()
206 INIT_LIST_HEAD(&ctx->block_list); in sst_workqueue_init()
207 INIT_WORK(&ctx->ipc_post_msg_wq, sst_process_pending_msg); in sst_workqueue_init()
208 init_waitqueue_head(&ctx->wait_queue); in sst_workqueue_init()
210 ctx->post_msg_wq = in sst_workqueue_init()
[all …]
/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c70 static u8 bpf_to_rv_reg(int bpf_reg, struct rv_jit_context *ctx) in bpf_to_rv_reg() argument
81 __set_bit(reg, &ctx->flags); in bpf_to_rv_reg()
86 static bool seen_reg(int reg, struct rv_jit_context *ctx) in seen_reg() argument
96 return test_bit(reg, &ctx->flags); in seen_reg()
101 static void mark_fp(struct rv_jit_context *ctx) in mark_fp() argument
103 __set_bit(RV_CTX_F_SEEN_S5, &ctx->flags); in mark_fp()
106 static void mark_call(struct rv_jit_context *ctx) in mark_call() argument
108 __set_bit(RV_CTX_F_SEEN_CALL, &ctx->flags); in mark_call()
111 static bool seen_call(struct rv_jit_context *ctx) in seen_call() argument
113 return test_bit(RV_CTX_F_SEEN_CALL, &ctx->flags); in seen_call()
[all …]
/linux/crypto/asymmetric_keys/
H A Dx509_cert_parser.c64 struct x509_parse_context *ctx __free(kfree) = NULL; in x509_cert_parse()
77 ctx = kzalloc_obj(struct x509_parse_context); in x509_cert_parse()
78 if (!ctx) in x509_cert_parse()
81 ctx->cert = cert; in x509_cert_parse()
82 ctx->data = (unsigned long)data; in x509_cert_parse()
85 ret = asn1_ber_decoder(&x509_decoder, ctx, data, datalen); in x509_cert_parse()
90 if (ctx->raw_akid) { in x509_cert_parse()
92 ctx->raw_akid_size, ctx->raw_akid_size, ctx->raw_akid); in x509_cert_parse()
93 ret = asn1_ber_decoder(&x509_akid_decoder, ctx, in x509_cert_parse()
94 ctx->raw_akid, ctx->raw_akid_size); in x509_cert_parse()
[all …]
/linux/arch/mips/net/
H A Dbpf_jit_comp32.c167 static void clobber_reg64(struct jit_context *ctx, const u8 reg[]) in clobber_reg64() argument
169 clobber_reg(ctx, reg[0]); in clobber_reg64()
170 clobber_reg(ctx, reg[1]); in clobber_reg64()
174 static void emit_mov_se_i64(struct jit_context *ctx, const u8 dst[], s32 imm) in emit_mov_se_i64() argument
176 emit_mov_i(ctx, lo(dst), imm); in emit_mov_se_i64()
178 emit(ctx, addiu, hi(dst), MIPS_R_ZERO, -1); in emit_mov_se_i64()
180 emit(ctx, move, hi(dst), MIPS_R_ZERO); in emit_mov_se_i64()
181 clobber_reg64(ctx, dst); in emit_mov_se_i64()
185 static void emit_zext_ver(struct jit_context *ctx, const u8 dst[]) in emit_zext_ver() argument
187 if (!ctx->program->aux->verifier_zext) { in emit_zext_ver()
[all …]
H A Dbpf_jit_comp.c127 int push_regs(struct jit_context *ctx, u32 mask, u32 excl, int depth) in push_regs() argument
135 emit(ctx, sw, reg, depth, MIPS_R_SP); in push_regs()
137 emit(ctx, sd, reg, depth, MIPS_R_SP); in push_regs()
142 ctx->stack_used = max((int)ctx->stack_used, depth); in push_regs()
150 int pop_regs(struct jit_context *ctx, u32 mask, u32 excl, int depth) in pop_regs() argument
158 emit(ctx, lw, reg, depth, MIPS_R_SP); in pop_regs()
160 emit(ctx, ld, reg, depth, MIPS_R_SP); in pop_regs()
169 int get_target(struct jit_context *ctx, u32 loc) in get_target() argument
171 u32 index = INDEX(ctx->descriptors[loc]); in get_target()
172 unsigned long pc = (unsigned long)&ctx->target[ctx->jit_index]; in get_target()
[all …]

12345678910>>...99