Home
last modified time | relevance | path

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

12345678910>>...72

/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/gr/
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 …]
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-v4.19/drivers/gpu/drm/amd/display/dc/i2caux/
Daux_engine.c59 engine->base.ctx->logger
120 struct read_command_context *ctx) in process_read_reply() argument
122 engine->funcs->process_channel_reply(engine, &ctx->reply); in process_read_reply()
124 switch (ctx->reply.status) { in process_read_reply()
126 ctx->defer_retry_aux = 0; in process_read_reply()
127 if (ctx->returned_byte > ctx->current_read_length) { in process_read_reply()
128 ctx->status = in process_read_reply()
130 ctx->operation_succeeded = false; in process_read_reply()
131 } else if (ctx->returned_byte < ctx->current_read_length) { in process_read_reply()
132 ctx->current_read_length -= ctx->returned_byte; in process_read_reply()
[all …]
/Linux-v4.19/drivers/gpu/drm/bridge/
Dsii9234.c206 static int sii9234_writeb(struct sii9234 *ctx, int id, int offset, in sii9234_writeb() argument
210 struct i2c_client *client = ctx->client[id]; in sii9234_writeb()
212 if (ctx->i2c_error) in sii9234_writeb()
213 return ctx->i2c_error; in sii9234_writeb()
217 dev_err(ctx->dev, "writeb: %4s[0x%02x] <- 0x%02x\n", in sii9234_writeb()
219 ctx->i2c_error = ret; in sii9234_writeb()
224 static int sii9234_writebm(struct sii9234 *ctx, int id, int offset, in sii9234_writebm() argument
228 struct i2c_client *client = ctx->client[id]; in sii9234_writebm()
230 if (ctx->i2c_error) in sii9234_writebm()
231 return ctx->i2c_error; in sii9234_writebm()
[all …]
Dsil-sii8620.c108 typedef void (*sii8620_mt_msg_cb)(struct sii8620 *ctx,
111 typedef void (*sii8620_cb)(struct sii8620 *ctx, int ret);
133 static void sii8620_fetch_edid(struct sii8620 *ctx);
134 static void sii8620_set_upstream_edid(struct sii8620 *ctx);
135 static void sii8620_enable_hpd(struct sii8620 *ctx);
136 static void sii8620_mhl_disconnected(struct sii8620 *ctx);
137 static void sii8620_disconnect(struct sii8620 *ctx);
139 static int sii8620_clear_error(struct sii8620 *ctx) in sii8620_clear_error() argument
141 int ret = ctx->error; in sii8620_clear_error()
143 ctx->error = 0; in sii8620_clear_error()
[all …]
/Linux-v4.19/sound/soc/intel/skylake/
Dskl-sst-cldma.c24 static void skl_cldma_int_enable(struct sst_dsp *ctx) in skl_cldma_int_enable() argument
26 sst_dsp_shim_update_bits_unlocked(ctx, SKL_ADSP_REG_ADSPIC, in skl_cldma_int_enable()
30 void skl_cldma_int_disable(struct sst_dsp *ctx) in skl_cldma_int_disable() argument
32 sst_dsp_shim_update_bits_unlocked(ctx, in skl_cldma_int_disable()
36 static void skl_cldma_stream_run(struct sst_dsp *ctx, bool enable) in skl_cldma_stream_run() argument
41 sst_dsp_shim_update_bits_unlocked(ctx, in skl_cldma_stream_run()
49 val = sst_dsp_shim_read(ctx, SKL_ADSP_REG_CL_SD_CTL) & in skl_cldma_stream_run()
59 dev_err(ctx->dev, "Failed to set Run bit=%d enable=%d\n", val, enable); in skl_cldma_stream_run()
62 static void skl_cldma_stream_clear(struct sst_dsp *ctx) in skl_cldma_stream_clear() argument
65 skl_cldma_stream_run(ctx, 0); in skl_cldma_stream_clear()
[all …]
/Linux-v4.19/arch/powerpc/platforms/cell/spufs/
Dcontext.c40 struct spu_context *ctx; in alloc_spu_context() local
42 ctx = kzalloc(sizeof *ctx, GFP_KERNEL); in alloc_spu_context()
43 if (!ctx) in alloc_spu_context()
48 if (spu_init_csa(&ctx->csa)) in alloc_spu_context()
50 spin_lock_init(&ctx->mmio_lock); in alloc_spu_context()
51 mutex_init(&ctx->mapping_lock); in alloc_spu_context()
52 kref_init(&ctx->kref); in alloc_spu_context()
53 mutex_init(&ctx->state_mutex); in alloc_spu_context()
54 mutex_init(&ctx->run_mutex); in alloc_spu_context()
55 init_waitqueue_head(&ctx->ibox_wq); in alloc_spu_context()
[all …]
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 …]
Dbacking_ops.c47 static void gen_spu_event(struct spu_context *ctx, u32 event) in gen_spu_event() argument
53 ch0_cnt = ctx->csa.spu_chnlcnt_RW[0]; in gen_spu_event()
54 ch0_data = ctx->csa.spu_chnldata_RW[0]; in gen_spu_event()
55 ch1_data = ctx->csa.spu_chnldata_RW[1]; in gen_spu_event()
56 ctx->csa.spu_chnldata_RW[0] |= event; in gen_spu_event()
58 ctx->csa.spu_chnlcnt_RW[0] = 1; in gen_spu_event()
62 static int spu_backing_mbox_read(struct spu_context *ctx, u32 * data) in spu_backing_mbox_read() argument
67 spin_lock(&ctx->csa.register_lock); in spu_backing_mbox_read()
68 mbox_stat = ctx->csa.prob.mb_stat_R; in spu_backing_mbox_read()
74 *data = ctx->csa.prob.pu_mb_R; in spu_backing_mbox_read()
[all …]
/Linux-v4.19/arch/mips/net/
Dbpf_jit.c118 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx);
121 #define emit_instr(ctx, func, ...) \ argument
123 if ((ctx)->target != NULL) { \
124 u32 *p = &(ctx)->target[ctx->idx]; \
127 (ctx)->idx++; \
134 #define emit_long_instr(ctx, func, ...) \ argument
136 if ((ctx)->target != NULL) { \
137 u32 *p = &(ctx)->target[ctx->idx]; \
140 (ctx)->idx++; \
150 unsigned int src2, struct jit_ctx *ctx) in emit_addu() argument
[all …]
/Linux-v4.19/drivers/misc/cxl/
Dcontext.c39 int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master) in cxl_context_init() argument
43 ctx->afu = afu; in cxl_context_init()
44 ctx->master = master; in cxl_context_init()
45 ctx->pid = NULL; /* Set in start work ioctl */ in cxl_context_init()
46 mutex_init(&ctx->mapping_lock); in cxl_context_init()
47 ctx->mapping = NULL; in cxl_context_init()
48 ctx->tidr = 0; in cxl_context_init()
49 ctx->assign_tidr = false; in cxl_context_init()
52 spin_lock_init(&ctx->sste_lock); in cxl_context_init()
61 i = cxl_alloc_sst(ctx); in cxl_context_init()
[all …]
/Linux-v4.19/drivers/media/i2c/
Dmax2175.c38 #define mxm_dbg(ctx, fmt, arg...) dev_dbg(&ctx->client->dev, fmt, ## arg) argument
39 #define mxm_err(ctx, fmt, arg...) dev_err(&ctx->client->dev, fmt, ## arg) argument
324 static int max2175_read(struct max2175 *ctx, u8 idx, u8 *val) in max2175_read() argument
329 ret = regmap_read(ctx->regmap, idx, &regval); in max2175_read()
331 mxm_err(ctx, "read ret(%d): idx 0x%02x\n", ret, idx); in max2175_read()
338 static int max2175_write(struct max2175 *ctx, u8 idx, u8 val) in max2175_write() argument
342 ret = regmap_write(ctx->regmap, idx, val); in max2175_write()
344 mxm_err(ctx, "write ret(%d): idx 0x%02x val 0x%02x\n", in max2175_write()
350 static u8 max2175_read_bits(struct max2175 *ctx, u8 idx, u8 msb, u8 lsb) in max2175_read_bits() argument
354 if (max2175_read(ctx, idx, &val)) in max2175_read_bits()
[all …]
/Linux-v4.19/drivers/gpu/drm/panel/
Dpanel-samsung-s6e3ha2.c244 static int s6e3ha2_dcs_write(struct s6e3ha2 *ctx, const void *data, size_t len) in s6e3ha2_dcs_write() argument
246 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in s6e3ha2_dcs_write()
251 #define s6e3ha2_dcs_write_seq_static(ctx, seq...) do { \ argument
254 ret = s6e3ha2_dcs_write(ctx, d, ARRAY_SIZE(d)); \
265 static int s6e3ha2_test_key_on_f0(struct s6e3ha2 *ctx) in s6e3ha2_test_key_on_f0() argument
267 s6e3ha2_dcs_write_seq_static(ctx, 0xf0, 0x5a, 0x5a); in s6e3ha2_test_key_on_f0()
271 static int s6e3ha2_test_key_off_f0(struct s6e3ha2 *ctx) in s6e3ha2_test_key_off_f0() argument
273 s6e3ha2_dcs_write_seq_static(ctx, 0xf0, 0xa5, 0xa5); in s6e3ha2_test_key_off_f0()
277 static int s6e3ha2_test_key_on_fc(struct s6e3ha2 *ctx) in s6e3ha2_test_key_on_fc() argument
279 s6e3ha2_dcs_write_seq_static(ctx, 0xfc, 0x5a, 0x5a); in s6e3ha2_test_key_on_fc()
[all …]
Dpanel-samsung-s6e8aa0.c128 static int s6e8aa0_clear_error(struct s6e8aa0 *ctx) in s6e8aa0_clear_error() argument
130 int ret = ctx->error; in s6e8aa0_clear_error()
132 ctx->error = 0; in s6e8aa0_clear_error()
136 static void s6e8aa0_dcs_write(struct s6e8aa0 *ctx, const void *data, size_t len) in s6e8aa0_dcs_write() argument
138 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in s6e8aa0_dcs_write()
141 if (ctx->error < 0) in s6e8aa0_dcs_write()
146 dev_err(ctx->dev, "error %zd writing dcs seq: %*ph\n", ret, in s6e8aa0_dcs_write()
148 ctx->error = ret; in s6e8aa0_dcs_write()
152 static int s6e8aa0_dcs_read(struct s6e8aa0 *ctx, u8 cmd, void *data, size_t len) in s6e8aa0_dcs_read() argument
154 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in s6e8aa0_dcs_read()
[all …]
Dpanel-raydium-rm68200.c104 static void rm68200_dcs_write_buf(struct rm68200 *ctx, const void *data, in rm68200_dcs_write_buf() argument
107 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in rm68200_dcs_write_buf()
116 static void rm68200_dcs_write_cmd(struct rm68200 *ctx, u8 cmd, u8 value) in rm68200_dcs_write_cmd() argument
118 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in rm68200_dcs_write_cmd()
126 #define dcs_write_seq(ctx, seq...) \ argument
130 rm68200_dcs_write_buf(ctx, d, ARRAY_SIZE(d)); \
137 #define dcs_write_cmd_seq(ctx, cmd, seq...) \ argument
143 rm68200_dcs_write_cmd(ctx, cmd + i, d[i]); \
146 static void rm68200_init_sequence(struct rm68200 *ctx) in rm68200_init_sequence() argument
149 dcs_write_seq(ctx, MCS_CMD_MODE_SW, MCS_CMD2_P0); in rm68200_init_sequence()
[all …]
Dpanel-orisetech-otm8009a.c90 static void otm8009a_dcs_write_buf(struct otm8009a *ctx, const void *data, in otm8009a_dcs_write_buf() argument
93 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in otm8009a_dcs_write_buf()
99 static void otm8009a_dcs_write_buf_hs(struct otm8009a *ctx, const void *data, in otm8009a_dcs_write_buf_hs() argument
102 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in otm8009a_dcs_write_buf_hs()
107 otm8009a_dcs_write_buf(ctx, data, len); in otm8009a_dcs_write_buf_hs()
113 #define dcs_write_seq(ctx, seq...) \ argument
116 otm8009a_dcs_write_buf(ctx, d, ARRAY_SIZE(d)); \
119 #define dcs_write_cmd_at(ctx, cmd, seq...) \ argument
121 dcs_write_seq(ctx, MCS_ADRSFT, (cmd) & 0xFF); \
122 dcs_write_seq(ctx, (cmd) >> 8, seq); \
[all …]
Dpanel-samsung-ld9040.c118 static int ld9040_clear_error(struct ld9040 *ctx) in ld9040_clear_error() argument
120 int ret = ctx->error; in ld9040_clear_error()
122 ctx->error = 0; in ld9040_clear_error()
126 static int ld9040_spi_write_word(struct ld9040 *ctx, u16 data) in ld9040_spi_write_word() argument
128 struct spi_device *spi = to_spi_device(ctx->dev); in ld9040_spi_write_word()
141 static void ld9040_dcs_write(struct ld9040 *ctx, const u8 *data, size_t len) in ld9040_dcs_write() argument
145 if (ctx->error < 0 || len == 0) in ld9040_dcs_write()
148 dev_dbg(ctx->dev, "writing dcs seq: %*ph\n", (int)len, data); in ld9040_dcs_write()
149 ret = ld9040_spi_write_word(ctx, *data); in ld9040_dcs_write()
153 ret = ld9040_spi_write_word(ctx, *data | 0x100); in ld9040_dcs_write()
[all …]
/Linux-v4.19/drivers/media/dvb-core/
Ddvb_vb2.c37 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); in _queue_setup() local
39 ctx->buf_cnt = *nbuffers; in _queue_setup()
41 sizes[0] = ctx->buf_siz; in _queue_setup()
48 dprintk(3, "[%s] count=%d, size=%d\n", ctx->name, in _queue_setup()
56 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_prepare() local
57 unsigned long size = ctx->buf_siz; in _buffer_prepare()
61 ctx->name, vb2_plane_size(vb, 0), size); in _buffer_prepare()
66 dprintk(3, "[%s]\n", ctx->name); in _buffer_prepare()
73 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_queue() local
77 spin_lock_irqsave(&ctx->slock, flags); in _buffer_queue()
[all …]
/Linux-v4.19/fs/
Dtimerfd.c51 static inline bool isalarm(struct timerfd_ctx *ctx) in isalarm() argument
53 return ctx->clockid == CLOCK_REALTIME_ALARM || in isalarm()
54 ctx->clockid == CLOCK_BOOTTIME_ALARM; in isalarm()
62 static void timerfd_triggered(struct timerfd_ctx *ctx) in timerfd_triggered() argument
66 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_triggered()
67 ctx->expired = 1; in timerfd_triggered()
68 ctx->ticks++; in timerfd_triggered()
69 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in timerfd_triggered()
70 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_triggered()
75 struct timerfd_ctx *ctx = container_of(htmr, struct timerfd_ctx, in timerfd_tmrproc() local
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce/
Ddce_aux.c31 aux110->base.ctx
36 engine->ctx->logger
419 struct read_command_context *ctx) in process_read_reply() argument
421 engine->funcs->process_channel_reply(engine, &ctx->reply); in process_read_reply()
423 switch (ctx->reply.status) { in process_read_reply()
425 ctx->defer_retry_aux = 0; in process_read_reply()
426 if (ctx->returned_byte > ctx->current_read_length) { in process_read_reply()
427 ctx->status = in process_read_reply()
429 ctx->operation_succeeded = false; in process_read_reply()
430 } else if (ctx->returned_byte < ctx->current_read_length) { in process_read_reply()
[all …]
/Linux-v4.19/drivers/base/regmap/
Dregmap-mmio.c35 void (*reg_write)(struct regmap_mmio_context *ctx,
37 unsigned int (*reg_read)(struct regmap_mmio_context *ctx,
83 static void regmap_mmio_write8(struct regmap_mmio_context *ctx, in regmap_mmio_write8() argument
87 writeb(val, ctx->regs + reg); in regmap_mmio_write8()
90 static void regmap_mmio_write16le(struct regmap_mmio_context *ctx, in regmap_mmio_write16le() argument
94 writew(val, ctx->regs + reg); in regmap_mmio_write16le()
97 static void regmap_mmio_write16be(struct regmap_mmio_context *ctx, in regmap_mmio_write16be() argument
101 iowrite16be(val, ctx->regs + reg); in regmap_mmio_write16be()
104 static void regmap_mmio_write32le(struct regmap_mmio_context *ctx, in regmap_mmio_write32le() argument
108 writel(val, ctx->regs + reg); in regmap_mmio_write32le()
[all …]
/Linux-v4.19/sound/soc/intel/atom/sst/
Dsst.c202 struct intel_sst_drv *ctx = container_of(work, in sst_process_pending_msg() local
205 ctx->ops->post_message(ctx, NULL, false); in sst_process_pending_msg()
208 static int sst_workqueue_init(struct intel_sst_drv *ctx) in sst_workqueue_init() argument
210 INIT_LIST_HEAD(&ctx->memcpy_list); in sst_workqueue_init()
211 INIT_LIST_HEAD(&ctx->rx_list); in sst_workqueue_init()
212 INIT_LIST_HEAD(&ctx->ipc_dispatch_list); in sst_workqueue_init()
213 INIT_LIST_HEAD(&ctx->block_list); in sst_workqueue_init()
214 INIT_WORK(&ctx->ipc_post_msg_wq, sst_process_pending_msg); in sst_workqueue_init()
215 init_waitqueue_head(&ctx->wait_queue); in sst_workqueue_init()
217 ctx->post_msg_wq = in sst_workqueue_init()
[all …]
/Linux-v4.19/drivers/gpu/drm/exynos/
Dexynos5433_drm_decon.c87 static inline void decon_set_bits(struct decon_context *ctx, u32 reg, u32 mask, in decon_set_bits() argument
90 val = (val & mask) | (readl(ctx->addr + reg) & ~mask); in decon_set_bits()
91 writel(val, ctx->addr + reg); in decon_set_bits()
96 struct decon_context *ctx = crtc->ctx; in decon_enable_vblank() local
105 writel(val, ctx->addr + DECON_VIDINTCON0); in decon_enable_vblank()
107 enable_irq(ctx->irq); in decon_enable_vblank()
108 if (!(ctx->out_type & I80_HW_TRG)) in decon_enable_vblank()
109 enable_irq(ctx->te_irq); in decon_enable_vblank()
116 struct decon_context *ctx = crtc->ctx; in decon_disable_vblank() local
118 if (!(ctx->out_type & I80_HW_TRG)) in decon_disable_vblank()
[all …]
Dexynos7_drm_decon.c89 struct decon_context *ctx = crtc->ctx; in decon_wait_for_vblank() local
91 if (ctx->suspended) in decon_wait_for_vblank()
94 atomic_set(&ctx->wait_vsync_event, 1); in decon_wait_for_vblank()
100 if (!wait_event_timeout(ctx->wait_vsync_queue, in decon_wait_for_vblank()
101 !atomic_read(&ctx->wait_vsync_event), in decon_wait_for_vblank()
108 struct decon_context *ctx = crtc->ctx; in decon_clear_channels() local
115 u32 val = readl(ctx->regs + WINCON(win)); in decon_clear_channels()
119 writel(val, ctx->regs + WINCON(win)); in decon_clear_channels()
126 decon_wait_for_vblank(ctx->crtc); in decon_clear_channels()
129 static int decon_ctx_initialize(struct decon_context *ctx, in decon_ctx_initialize() argument
[all …]
/Linux-v4.19/drivers/misc/ocxl/
Dcontext.c12 int ocxl_context_init(struct ocxl_context *ctx, struct ocxl_afu *afu, in ocxl_context_init() argument
17 ctx->afu = afu; in ocxl_context_init()
19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base, in ocxl_context_init()
28 ctx->pasid = pasid; in ocxl_context_init()
29 ctx->status = OPENED; in ocxl_context_init()
30 mutex_init(&ctx->status_mutex); in ocxl_context_init()
31 ctx->mapping = mapping; in ocxl_context_init()
32 mutex_init(&ctx->mapping_lock); in ocxl_context_init()
33 init_waitqueue_head(&ctx->events_wq); in ocxl_context_init()
34 mutex_init(&ctx->xsl_error_lock); in ocxl_context_init()
[all …]

12345678910>>...72