Home
last modified time | relevance | path

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

12345678910>>...103

/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-raydium-rm67200.c19 void (*panel_setup)(struct mipi_dsi_multi_context *ctx);
36 static void raydium_rm67200_reset(struct raydium_rm67200 *ctx) in raydium_rm67200_reset() argument
38 if (ctx->reset_gpio) { in raydium_rm67200_reset()
39 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in raydium_rm67200_reset()
41 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in raydium_rm67200_reset()
43 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in raydium_rm67200_reset()
48 static void raydium_rm67200_write(struct mipi_dsi_multi_context *ctx, in raydium_rm67200_write() argument
53 mipi_dsi_generic_write_multi(ctx, d, ARRAY_SIZE(d)); in raydium_rm67200_write()
56 static void w552793baa_setup(struct mipi_dsi_multi_context *ctx) in w552793baa_setup() argument
58 raydium_rm67200_write(ctx, 0xfe, 0x21); in w552793baa_setup()
[all …]
H A Dpanel-ilitek-ili9806e-dsi.c25 void (*init_sequence)(struct mipi_dsi_multi_context *ctx);
36 struct mipi_dsi_multi_context ctx = { .dsi = ili9806e->dsi }; in ili9806e_dsi_on() local
39 ili9806e->desc->init_sequence(&ctx); in ili9806e_dsi_on()
41 mipi_dsi_dcs_exit_sleep_mode_multi(&ctx); in ili9806e_dsi_on()
42 mipi_dsi_msleep(&ctx, 120); in ili9806e_dsi_on()
43 mipi_dsi_dcs_set_display_on_multi(&ctx); in ili9806e_dsi_on()
45 return ctx.accum_err; in ili9806e_dsi_on()
50 struct mipi_dsi_multi_context ctx = { .dsi = panel->dsi }; in ili9806e_dsi_off() local
52 mipi_dsi_dcs_set_display_off_multi(&ctx); in ili9806e_dsi_off()
53 mipi_dsi_dcs_enter_sleep_mode_multi(&ctx); in ili9806e_dsi_off()
61 struct ili9806e_dsi_panel *ctx = ili9806e_get_transport(panel); ili9806e_dsi_prepare() local
80 struct ili9806e_dsi_panel *ctx = ili9806e_get_transport(panel); ili9806e_dsi_unprepare() local
96 struct ili9806e_dsi_panel *ctx = ili9806e_get_transport(panel); ili9806e_dsi_get_modes() local
104 struct ili9806e_dsi_panel *ctx = ili9806e_get_transport(panel); ili9806e_dsi_get_orientation() local
119 struct ili9806e_dsi_panel *ctx; ili9806e_dsi_probe() local
160 com35h3p70ulc_init(struct mipi_dsi_multi_context * ctx) com35h3p70ulc_init() argument
316 dmt028vghmcmi_1d_init(struct mipi_dsi_multi_context * ctx) dmt028vghmcmi_1d_init() argument
[all...]
H A Dpanel-raydium-rm68200.c101 static void rm68200_dcs_write_buf(struct rm68200 *ctx, const void *data, in rm68200_dcs_write_buf() argument
104 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in rm68200_dcs_write_buf()
109 dev_err_ratelimited(ctx->dev, "MIPI DSI DCS write buffer failed: %d\n", err); in rm68200_dcs_write_buf()
112 static void rm68200_dcs_write_cmd(struct rm68200 *ctx, u8 cmd, u8 value) in rm68200_dcs_write_cmd() argument
114 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in rm68200_dcs_write_cmd()
119 dev_err_ratelimited(ctx->dev, "MIPI DSI DCS write failed: %d\n", err); in rm68200_dcs_write_cmd()
122 #define dcs_write_seq(ctx, seq...) \ argument
126 rm68200_dcs_write_buf(ctx, d, ARRAY_SIZE(d)); \
133 #define dcs_write_cmd_seq(ctx, cmd, seq...) \ argument
139 rm68200_dcs_write_cmd(ctx, cmd + i, d[i]); \
[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/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 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 …]
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 …]
/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/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 in waiter_entry1ap()
80 struct epoll_mtcontext *ctx = data; waiter_entry1o() local
92 struct epoll_mtcontext *ctx = data; waiter_entry1op() local
107 struct epoll_mtcontext *ctx = data; waiter_entry2a() local
119 struct epoll_mtcontext *ctx = data; waiter_entry2ap() local
133 struct epoll_mtcontext *ctx = data; emitter_entry1() local
145 struct epoll_mtcontext *ctx = data; emitter_entry2() local
476 struct epoll_mtcontext ctx = { 0 }; TEST() local
519 struct epoll_mtcontext ctx = { 0 }; TEST() local
562 struct epoll_mtcontext ctx = { 0 }; TEST() local
611 struct epoll_mtcontext ctx = { 0 }; TEST() local
660 struct epoll_mtcontext ctx = { 0 }; TEST() local
703 struct epoll_mtcontext ctx = { 0 }; TEST() local
746 struct epoll_mtcontext ctx = { 0 }; TEST() local
795 struct epoll_mtcontext ctx = { 0 }; TEST() local
1198 struct epoll_mtcontext ctx = { 0 }; TEST() local
1250 struct epoll_mtcontext ctx = { 0 }; TEST() local
1302 struct epoll_mtcontext ctx = { 0 }; TEST() local
1354 struct epoll_mtcontext ctx = { 0 }; TEST() local
1406 struct epoll_mtcontext ctx = { 0 }; TEST() local
1457 struct epoll_mtcontext ctx = { 0 }; TEST() local
1508 struct epoll_mtcontext ctx = { 0 }; TEST() local
1559 struct epoll_mtcontext ctx = { 0 }; TEST() local
1610 struct epoll_mtcontext ctx = { 0 }; TEST() local
1662 struct epoll_mtcontext ctx = { 0 }; TEST() local
1714 struct epoll_mtcontext ctx = { 0 }; TEST() local
1766 struct epoll_mtcontext ctx = { 0 }; TEST() local
1819 struct epoll_mtcontext ctx = { 0 }; TEST() local
1876 struct epoll_mtcontext ctx = { 0 }; TEST() local
1933 struct epoll_mtcontext ctx = { 0 }; TEST() local
1990 struct epoll_mtcontext ctx = { 0 }; TEST() local
2046 struct epoll_mtcontext ctx = { 0 }; TEST() local
2098 struct epoll_mtcontext ctx = { 0 }; TEST() local
2150 struct epoll_mtcontext ctx = { 0 }; TEST() local
2202 struct epoll_mtcontext ctx = { 0 }; TEST() local
2255 struct epoll_mtcontext ctx = { 0 }; TEST() local
2311 struct epoll_mtcontext ctx = { 0 }; TEST() local
2364 struct epoll_mtcontext ctx = { 0 }; TEST() local
2420 struct epoll_mtcontext ctx = { 0 }; TEST() local
2704 struct epoll_mtcontext ctx = { 0 }; TEST() local
2769 struct epoll_mtcontext ctx = { 0 }; TEST() local
2834 struct epoll_mtcontext ctx = { 0 }; TEST() local
2899 struct epoll_mtcontext ctx = { 0 }; TEST() local
2965 struct epoll_mtcontext ctx = { 0 }; TEST() local
3035 struct epoll_mtcontext ctx = { 0 }; TEST() local
3093 struct epoll_mtcontext *ctx = ctx_; epoll59_thread() local
3123 struct epoll_mtcontext ctx = { 0 }; TEST() local
3169 struct epoll60_ctx *ctx = ctx_; epoll60_wait_thread() local
3224 count_waiters(struct epoll60_ctx * ctx) count_waiters() argument
3231 struct epoll60_ctx ctx = { 0 }; TEST() local
3307 struct epoll61_ctx *ctx = ctx_; epoll61_write_eventfd() local
3317 struct epoll61_ctx *ctx = ctx_; epoll61_epoll_with_timeout() local
3336 struct epoll61_ctx *ctx = ctx_; epoll61_blocking_epoll() local
3345 struct epoll61_ctx ctx; TEST() local
3463 struct epoll_mtcontext ctx = { 0 }; TEST() local
[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/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/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 …]
H A Dvdec_drv_if.c17 int vdec_if_init(struct mtk_vcodec_dec_ctx *ctx, unsigned int fourcc) in vdec_if_init() argument
19 enum mtk_vdec_hw_arch hw_arch = ctx->dev->vdec_pdata->hw_arch; in vdec_if_init()
24 if (!ctx->dev->vdec_pdata->is_subdev_supported) { in vdec_if_init()
25 ctx->dec_if = &vdec_h264_slice_if; in vdec_if_init()
26 ctx->hw_id = MTK_VDEC_CORE; in vdec_if_init()
28 ctx->dec_if = &vdec_h264_slice_multi_if; in vdec_if_init()
29 ctx->hw_id = IS_VDEC_LAT_ARCH(hw_arch) ? MTK_VDEC_LAT0 : MTK_VDEC_CORE; in vdec_if_init()
33 ctx->dec_if = &vdec_h264_if; in vdec_if_init()
34 ctx->hw_id = MTK_VDEC_CORE; in vdec_if_init()
37 ctx->dec_if = &vdec_vp8_slice_if; in vdec_if_init()
[all …]
/linux/drivers/hwmon/
H A Dpwm-fan.c81 struct pwm_fan_ctx *ctx = timer_container_of(ctx, t, rpm_timer); in sample_timer() local
82 unsigned int delta = ktime_ms_delta(ktime_get(), ctx->sample_start); in sample_timer()
86 for (i = 0; i < ctx->tach_count; i++) { in sample_timer()
87 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer()
93 (ctx->pulses_per_revolution[i] * delta); in sample_timer()
96 ctx->sample_start = ktime_get(); in sample_timer()
99 mod_timer(&ctx->rpm_timer, jiffies + HZ); in sample_timer()
125 static int pwm_fan_switch_power(struct pwm_fan_ctx *ctx, bool on) in pwm_fan_switch_power() argument
129 if (!ctx in pwm_fan_switch_power()
144 pwm_fan_power_on(struct pwm_fan_ctx * ctx) pwm_fan_power_on() argument
174 pwm_fan_power_off(struct pwm_fan_ctx * ctx,bool force_disable) pwm_fan_power_off() argument
203 __set_pwm(struct pwm_fan_ctx * ctx,unsigned long pwm) __set_pwm() argument
242 set_pwm(struct pwm_fan_ctx * ctx,unsigned long pwm) set_pwm() argument
253 pwm_fan_update_state(struct pwm_fan_ctx * ctx,unsigned long pwm) pwm_fan_update_state() argument
264 pwm_fan_update_enable(struct pwm_fan_ctx * ctx,long val) pwm_fan_update_enable() argument
314 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); pwm_fan_write() local
343 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); pwm_fan_read() local
391 struct pwm_fan_ctx *ctx = cdev->devdata; pwm_fan_get_max_state() local
404 struct pwm_fan_ctx *ctx = cdev->devdata; pwm_fan_get_cur_state() local
417 struct pwm_fan_ctx *ctx = cdev->devdata; pwm_fan_set_cur_state() local
443 pwm_fan_get_cooling_data(struct device * dev,struct pwm_fan_ctx * ctx) pwm_fan_get_cooling_data() argument
484 struct pwm_fan_ctx *ctx = __ctx; pwm_fan_cleanup() local
498 struct pwm_fan_ctx *ctx = __ctx; pwm_fan_timer_cleanup() local
507 struct pwm_fan_ctx *ctx; pwm_fan_probe() local
711 struct pwm_fan_ctx *ctx = platform_get_drvdata(pdev); pwm_fan_shutdown() local
719 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); pwm_fan_suspend() local
726 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); pwm_fan_resume() local
[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 in sst_workqueue_init()
217 sst_init_locks(struct intel_sst_drv * ctx) sst_init_locks() argument
230 sst_alloc_drv_context(struct intel_sst_drv ** ctx,struct device * dev,unsigned short dev_id) sst_alloc_drv_context() argument
247 struct intel_sst_drv *ctx = dev_get_drvdata(dev); firmware_version_show() local
270 sst_context_init(struct intel_sst_drv * ctx) sst_context_init() argument
362 sst_context_cleanup(struct intel_sst_drv * ctx) sst_context_cleanup() argument
380 sst_configure_runtime_pm(struct intel_sst_drv * ctx) sst_configure_runtime_pm() argument
405 struct intel_sst_drv *ctx = dev_get_drvdata(dev); intel_sst_runtime_suspend() local
428 struct intel_sst_drv *ctx = dev_get_drvdata(dev); intel_sst_suspend() local
512 struct intel_sst_drv *ctx = dev_get_drvdata(dev); intel_sst_resume() 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/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/riscv/net/
H A Dbpf_jit_comp64.c67 static u8 bpf_to_rv_reg(int bpf_reg, struct rv_jit_context *ctx)
77 __set_bit(reg, &ctx->flags); in bpf_to_rv_reg()
82 static bool seen_reg(int reg, struct rv_jit_context *ctx)
91 return test_bit(reg, &ctx->flags); in seen_reg()
96 static void mark_fp(struct rv_jit_context *ctx)
98 __set_bit(RV_CTX_F_SEEN_S5, &ctx->flags); in mark_fp()
101 static void mark_call(struct rv_jit_context *ctx)
103 __set_bit(RV_CTX_F_SEEN_CALL, &ctx->flags); in mark_call()
122 static void emit_sextw_alt(u8 *rd, u8 ra, struct rv_jit_context *ctx)
124 emit_sextw(ra, *rd, ctx); in emit_sextw_alt()
68 bpf_to_rv_reg(int bpf_reg,struct rv_jit_context * ctx) bpf_to_rv_reg() argument
83 seen_reg(int reg,struct rv_jit_context * ctx) seen_reg() argument
97 mark_fp(struct rv_jit_context * ctx) mark_fp() argument
102 mark_call(struct rv_jit_context * ctx) mark_call() argument
123 emit_sextw_alt(u8 * rd,u8 ra,struct rv_jit_context * ctx) emit_sextw_alt() argument
129 emit_zextw_alt(u8 * rd,u8 ra,struct rv_jit_context * ctx) emit_zextw_alt() argument
136 emit_addr(u8 rd,u64 addr,bool extra_pass,struct rv_jit_context * ctx) emit_addr() argument
158 emit_imm(u8 rd,s64 val,struct rv_jit_context * ctx) emit_imm() argument
201 __build_epilogue(bool is_tail_call,struct rv_jit_context * ctx) __build_epilogue() argument
248 emit_bcc(u8 cond,u8 rd,u8 rs,int rvoff,struct rv_jit_context * ctx) emit_bcc() argument
284 emit_branch(u8 cond,u8 rd,u8 rs,int rvoff,struct rv_jit_context * ctx) emit_branch() argument
322 emit_bpf_tail_call(int insn,struct rv_jit_context * ctx) emit_bpf_tail_call() argument
377 init_regs(u8 * rd,u8 * rs,const struct bpf_insn * insn,struct rv_jit_context * ctx) init_regs() argument
398 emit_jump_and_link(u8 rd,s64 rvoff,bool fixed_addr,struct rv_jit_context * ctx) emit_jump_and_link() argument
423 emit_call(u64 addr,bool fixed_addr,struct rv_jit_context * ctx) emit_call() argument
440 emit_kcfi(u32 hash,struct rv_jit_context * ctx) emit_kcfi() argument
447 emit_ldx_insn(u8 rd,s16 off,u8 rs,u8 size,bool sign_ext,struct rv_jit_context * ctx) emit_ldx_insn() argument
466 emit_stx_insn(u8 rd,s16 off,u8 rs,u8 size,struct rv_jit_context * ctx) emit_stx_insn() argument
485 emit_ldx(u8 rd,s16 off,u8 rs,u8 size,bool sign_ext,struct rv_jit_context * ctx) emit_ldx() argument
501 emit_st(u8 rd,s16 off,s32 imm,u8 size,struct rv_jit_context * ctx) emit_st() argument
518 emit_stx(u8 rd,s16 off,u8 rs,u8 size,struct rv_jit_context * ctx) emit_stx() argument
535 emit_atomic_ld_st(u8 rd,u8 rs,const struct bpf_insn * insn,struct rv_jit_context * ctx) emit_atomic_ld_st() argument
577 emit_atomic_rmw(u8 rd,u8 rs,const struct bpf_insn * insn,struct rv_jit_context * ctx) emit_atomic_rmw() argument
687 sign_extend(u8 rd,u8 rs,u8 sz,bool sign,struct rv_jit_context * ctx) sign_extend() argument
736 add_exception_handler(const struct bpf_insn * insn,int dst_reg,struct rv_jit_context * ctx) add_exception_handler() argument
810 struct rv_jit_context ctx; gen_jump_or_nops() local
878 store_args(int nr_arg_slots,int args_off,struct rv_jit_context * ctx) store_args() argument
894 restore_args(int nr_reg_args,int args_off,struct rv_jit_context * ctx) restore_args() argument
905 restore_stack_args(int nr_stack_args,int args_off,int stk_arg_off,struct rv_jit_context * ctx) restore_stack_args() argument
918 emit_store_stack_imm64(u8 reg,int stack_off,u64 imm64,struct rv_jit_context * ctx) emit_store_stack_imm64() argument
927 invoke_bpf_prog(struct bpf_tramp_image * im,struct bpf_tramp_node * node,int args_off,int retval_off,int run_ctx_off,bool save_ret,struct rv_jit_context * ctx) invoke_bpf_prog() argument
998 invoke_bpf(struct bpf_tramp_image * im,struct bpf_tramp_nodes * tn,int args_off,int retval_off,int run_ctx_off,int func_meta_off,bool save_ret,u64 func_meta,int cookie_off,struct rv_jit_context * ctx) invoke_bpf() argument
1023 __arch_prepare_bpf_trampoline(struct bpf_tramp_image * im,const struct btf_func_model * m,struct bpf_tramp_nodes * tnodes,void * func_addr,u32 flags,struct rv_jit_context * ctx) __arch_prepare_bpf_trampoline() argument
1325 struct rv_jit_context ctx; arch_bpf_trampoline_size() local
1353 struct rv_jit_context ctx; arch_prepare_bpf_trampoline() local
1383 bpf_jit_emit_insn(const struct bpf_insn * insn,struct rv_jit_context * ctx,bool extra_pass) bpf_jit_emit_insn() argument
2044 bpf_jit_build_prologue(struct rv_jit_context * ctx,bool is_subprog) bpf_jit_build_prologue() argument
2136 bpf_jit_build_epilogue(struct rv_jit_context * ctx) bpf_jit_build_epilogue() argument
[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 in emit_zext_ver()
194 emit_load_delay(struct jit_context * ctx) emit_load_delay() argument
201 emit_alu_i64(struct jit_context * ctx,const u8 dst[],s32 imm,u8 op) emit_alu_i64() argument
267 emit_alu_r64(struct jit_context * ctx,const u8 dst[],const u8 src[],u8 op) emit_alu_r64() argument
310 emit_neg_i64(struct jit_context * ctx,const u8 dst[]) emit_neg_i64() argument
321 emit_shift_i64(struct jit_context * ctx,const u8 dst[],u32 imm,u8 op) emit_shift_i64() argument
366 emit_shift_r64(struct jit_context * ctx,const u8 dst[],u8 src,u8 op) emit_shift_r64() argument
423 emit_mul_i64(struct jit_context * ctx,const u8 dst[],s32 imm) emit_mul_i64() argument
474 emit_mul_r64(struct jit_context * ctx,const u8 dst[],const u8 src[]) emit_mul_r64() argument
525 emit_divmod_r64(struct jit_context * ctx,const u8 dst[],const u8 src[],u8 op) emit_divmod_r64() argument
577 emit_swap8_r(struct jit_context * ctx,u8 dst,u8 src,u8 mask) emit_swap8_r() argument
589 emit_swap16_r(struct jit_context * ctx,u8 dst,u8 src) emit_swap16_r() argument
599 emit_bswap_r64(struct jit_context * ctx,const u8 dst[],u32 width) emit_bswap_r64() argument
634 emit_trunc_r64(struct jit_context * ctx,const u8 dst[],u32 width) emit_trunc_r64() argument
654 emit_ldx(struct jit_context * ctx,const u8 dst[],u8 src,s16 off,u8 size) emit_ldx() argument
689 emit_stx(struct jit_context * ctx,const u8 dst,const u8 src[],s16 off,u8 size) emit_stx() argument
714 emit_atomic_r32(struct jit_context * ctx,u8 dst,u8 src,s16 off,u8 code) emit_atomic_r32() argument
797 emit_atomic_r64(struct jit_context * ctx,u8 dst,const u8 src[],s16 off,u8 code) emit_atomic_r64() argument
873 emit_cmpxchg_r32(struct jit_context * ctx,u8 dst,u8 src,s16 off) emit_cmpxchg_r32() argument
909 emit_cmpxchg_r64(struct jit_context * ctx,u8 dst,const u8 src[],s16 off) emit_cmpxchg_r64() argument
947 emit_movz_r(struct jit_context * ctx,u8 rd,u8 rs,u8 rt) emit_movz_r() argument
970 emit_movn_r(struct jit_context * ctx,u8 rd,u8 rs,u8 rt) emit_movn_r() argument
990 emit_sltiu_r64(struct jit_context * ctx,u8 rd,const u8 rs[],s64 imm) emit_sltiu_r64() argument
1012 emit_sltu_r64(struct jit_context * ctx,u8 rd,const u8 rs[],const u8 rt[]) emit_sltu_r64() argument
1025 emit_slti_r64(struct jit_context * ctx,u8 rd,const u8 rs[],s64 imm) emit_slti_r64() argument
1067 emit_slt_r64(struct jit_context * ctx,u8 rd,const u8 rs[],const u8 rt[]) emit_slt_r64() argument
1092 emit_jmp_i64(struct jit_context * ctx,const u8 dst[],s32 imm,s32 off,u8 op) emit_jmp_i64() argument
1185 emit_jmp_r64(struct jit_context * ctx,const u8 dst[],const u8 src[],s32 off,u8 op) emit_jmp_r64() argument
1263 emit_call(struct jit_context * ctx,const struct bpf_insn * insn) emit_call() argument
1290 emit_tail_call(struct jit_context * ctx) emit_tail_call() argument
1373 build_prologue(struct jit_context * ctx) build_prologue() argument
1444 build_epilogue(struct jit_context * ctx,int dest_reg) build_epilogue() argument
1463 build_insn(const struct bpf_insn * insn,struct jit_context * ctx) build_insn() argument
[all...]
/linux/arch/parisc/net/
H A Dbpf_jit_comp32.c120 static void emit_hppa_copy(const s8 rs, const s8 rd, struct hppa_jit_context *ctx) in emit_hppa_copy() argument
122 REG_SET_SEEN(ctx, rd); in emit_hppa_copy()
125 REG_SET_SEEN(ctx, rs); in emit_hppa_copy()
126 emit(hppa_copy(rs, rd), ctx); in emit_hppa_copy()
129 static void emit_hppa_xor(const s8 r1, const s8 r2, const s8 r3, struct hppa_jit_context *ctx) in emit_hppa_xor() argument
131 REG_SET_SEEN(ctx, r1); in emit_hppa_xor()
132 REG_SET_SEEN(ctx, r2); in emit_hppa_xor()
133 REG_SET_SEEN(ctx, r3); in emit_hppa_xor()
135 emit(hppa_copy(HPPA_REG_ZERO, r3), ctx); in emit_hppa_xor()
137 emit(hppa_xor(r1, r2, r3), ctx); in emit_hppa_xor()
141 emit_imm(const s8 rd,s32 imm,struct hppa_jit_context * ctx) emit_imm() argument
156 emit_imm32(const s8 * rd,s32 imm,struct hppa_jit_context * ctx) emit_imm32() argument
171 emit_imm64(const s8 * rd,s32 imm_hi,s32 imm_lo,struct hppa_jit_context * ctx) emit_imm64() argument
177 __build_epilogue(bool is_tail_call,struct hppa_jit_context * ctx) __build_epilogue() argument
225 bpf_get_reg64_offset(const s8 * reg,const s8 * tmp,u16 offset_sp,struct hppa_jit_context * ctx) bpf_get_reg64_offset() argument
238 bpf_get_reg64(const s8 * reg,const s8 * tmp,struct hppa_jit_context * ctx) bpf_get_reg64() argument
244 bpf_get_reg64_ref(const s8 * reg,const s8 * tmp,bool must_load,struct hppa_jit_context * ctx) bpf_get_reg64_ref() argument
261 bpf_put_reg64(const s8 * reg,const s8 * src,struct hppa_jit_context * ctx) bpf_put_reg64() argument
269 bpf_save_R0(struct hppa_jit_context * ctx) bpf_save_R0() argument
274 bpf_restore_R0(struct hppa_jit_context * ctx) bpf_restore_R0() argument
281 bpf_get_reg32(const s8 * reg,const s8 * tmp,struct hppa_jit_context * ctx) bpf_get_reg32() argument
292 bpf_get_reg32_ref(const s8 * reg,const s8 * tmp,struct hppa_jit_context * ctx) bpf_get_reg32_ref() argument
305 bpf_put_reg32(const s8 * reg,const s8 * src,struct hppa_jit_context * ctx) bpf_put_reg32() argument
326 emit_call_millicode(void * func,const s8 arg0,const s8 arg1,u8 opcode,struct hppa_jit_context * ctx) emit_call_millicode() argument
360 emit_call_libgcc_ll(void * func,const s8 * arg0,const s8 * arg1,u8 opcode,struct hppa_jit_context * ctx) emit_call_libgcc_ll() argument
402 emit_jump(s32 paoff,bool force_far,struct hppa_jit_context * ctx) emit_jump() argument
422 emit_alu_i64(const s8 * dst,s32 imm,struct hppa_jit_context * ctx,const u8 op) emit_alu_i64() argument
510 emit_alu_i32(const s8 * dst,s32 imm,struct hppa_jit_context * ctx,const u8 op) emit_alu_i32() argument
565 emit_alu_r64(const s8 * dst,const s8 * src,struct hppa_jit_context * ctx,const u8 op) emit_alu_r64() argument
633 emit_alu_r32(const s8 * dst,const s8 * src,struct hppa_jit_context * ctx,const u8 op) emit_alu_r32() argument
700 emit_branch_r64(const s8 * src1,const s8 * src2,s32 paoff,struct hppa_jit_context * ctx,const u8 op) emit_branch_r64() argument
789 emit_bcc(u8 op,u8 rd,u8 rs,int paoff,struct hppa_jit_context * ctx) emit_bcc() argument
867 emit_branch_r32(const s8 * src1,const s8 * src2,s32 paoff,struct hppa_jit_context * ctx,const u8 op) emit_branch_r32() argument
886 emit_call(bool fixed,u64 addr,struct hppa_jit_context * ctx) emit_call() argument
943 emit_bpf_tail_call(int insn,struct hppa_jit_context * ctx) emit_bpf_tail_call() argument
1007 emit_load_r64(const s8 * dst,const s8 * src,s16 off,struct hppa_jit_context * ctx,const u8 size) emit_load_r64() argument
1053 emit_store_r64(const s8 * dst,const s8 * src,s16 off,struct hppa_jit_context * ctx,const u8 size,const u8 mode) emit_store_r64() argument
1092 emit_rev16(const s8 rd,struct hppa_jit_context * ctx) emit_rev16() argument
1099 emit_rev32(const s8 rs,const s8 rd,struct hppa_jit_context * ctx) emit_rev32() argument
1106 emit_zext64(const s8 * dst,struct hppa_jit_context * ctx) emit_zext64() argument
1116 bpf_jit_emit_insn(const struct bpf_insn * insn,struct hppa_jit_context * ctx,bool extra_pass) bpf_jit_emit_insn() argument
1467 bpf_jit_build_prologue(struct hppa_jit_context * ctx) bpf_jit_build_prologue() argument
1612 bpf_jit_build_epilogue(struct hppa_jit_context * ctx) bpf_jit_build_epilogue() argument
[all...]

12345678910>>...103