/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxnv50.c | 170 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 …]
|
D | ctxnv40.c | 159 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 …]
|
/kernel/linux/linux-5.10/sound/soc/intel/skylake/ |
D | skl-sst-cldma.c | 17 static void skl_cldma_int_enable(struct sst_dsp *ctx) in skl_cldma_int_enable() argument 19 sst_dsp_shim_update_bits_unlocked(ctx, SKL_ADSP_REG_ADSPIC, in skl_cldma_int_enable() 23 void skl_cldma_int_disable(struct sst_dsp *ctx) in skl_cldma_int_disable() argument 25 sst_dsp_shim_update_bits_unlocked(ctx, in skl_cldma_int_disable() 29 static void skl_cldma_stream_run(struct sst_dsp *ctx, bool enable) in skl_cldma_stream_run() argument 34 sst_dsp_shim_update_bits_unlocked(ctx, in skl_cldma_stream_run() 42 val = sst_dsp_shim_read(ctx, SKL_ADSP_REG_CL_SD_CTL) & in skl_cldma_stream_run() 52 dev_err(ctx->dev, "Failed to set Run bit=%d enable=%d\n", val, enable); in skl_cldma_stream_run() 55 static void skl_cldma_stream_clear(struct sst_dsp *ctx) in skl_cldma_stream_clear() argument 58 skl_cldma_stream_run(ctx, 0); in skl_cldma_stream_clear() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/ |
D | sii9234.c | 194 static int sii9234_writeb(struct sii9234 *ctx, int id, int offset, in sii9234_writeb() argument 198 struct i2c_client *client = ctx->client[id]; in sii9234_writeb() 200 if (ctx->i2c_error) in sii9234_writeb() 201 return ctx->i2c_error; in sii9234_writeb() 205 dev_err(ctx->dev, "writeb: %4s[0x%02x] <- 0x%02x\n", in sii9234_writeb() 207 ctx->i2c_error = ret; in sii9234_writeb() 212 static int sii9234_writebm(struct sii9234 *ctx, int id, int offset, in sii9234_writebm() argument 216 struct i2c_client *client = ctx->client[id]; in sii9234_writebm() 218 if (ctx->i2c_error) in sii9234_writebm() 219 return ctx->i2c_error; in sii9234_writebm() [all …]
|
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) in sii8620_clear_error() argument 139 int ret = ctx->error; in sii8620_clear_error() 141 ctx->error = 0; in sii8620_clear_error() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
D | context.c | 27 struct spu_context *ctx; in alloc_spu_context() local 29 ctx = kzalloc(sizeof *ctx, GFP_KERNEL); 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 …]
|
D | run.c | 17 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 …]
|
D | backing_ops.c | 34 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 …]
|
/kernel/linux/linux-5.10/drivers/misc/cxl/ |
D | context.c | 35 int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master) in cxl_context_init() argument 39 ctx->afu = afu; in cxl_context_init() 40 ctx->master = master; in cxl_context_init() 41 ctx->pid = NULL; /* Set in start work ioctl */ in cxl_context_init() 42 mutex_init(&ctx->mapping_lock); in cxl_context_init() 43 ctx->mapping = NULL; in cxl_context_init() 44 ctx->tidr = 0; in cxl_context_init() 45 ctx->assign_tidr = false; in cxl_context_init() 48 spin_lock_init(&ctx->sste_lock); in cxl_context_init() 57 i = cxl_alloc_sst(ctx); in cxl_context_init() [all …]
|
/kernel/linux/linux-5.10/arch/mips/net/ |
D | bpf_jit.c | 118 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 …]
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
D | max2175.c | 30 #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, ®val); 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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 28 static void kill_timeout(struct epoll_mtcontext *ctx) in kill_timeout() argument 31 pthread_kill(ctx->main, SIGUSR1); in kill_timeout() 32 pthread_kill(ctx->waiter, SIGUSR1); in kill_timeout() 38 struct epoll_mtcontext *ctx = data; in waiter_entry1a() local 40 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a() 41 __sync_fetch_and_add(&ctx->count, 1); in waiter_entry1a() 50 struct epoll_mtcontext *ctx = data; in waiter_entry1ap() local 52 pfd.fd = ctx->efd[0]; in waiter_entry1ap() 55 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap() 56 __sync_fetch_and_add(&ctx->count, 1); in waiter_entry1ap() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_sk_lookup.c | 76 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 reuseport_pass(struct sk_reuseport_md *ctx) in reuseport_pass() argument 94 int reuseport_drop(struct sk_reuseport_md *ctx) in reuseport_drop() argument 101 int redir_port(struct bpf_sk_lookup *ctx) in redir_port() argument 106 if (ctx->local_port != DST_PORT) in redir_port() 113 err = bpf_sk_assign(ctx, sk, 0); in redir_port() 120 int redir_ip4(struct bpf_sk_lookup *ctx) in redir_ip4() argument 125 if (ctx->family != AF_INET) in redir_ip4() 127 if (ctx->local_port != DST_PORT) in redir_ip4() [all …]
|
/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
D | dvb_vb2.c | 37 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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/ |
D | panel-samsung-s6e3ha2.c | 244 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 …]
|
D | panel-samsung-s6e8aa0.c | 128 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 …]
|
D | panel-samsung-s6e63m0.c | 141 static int s6e63m0_clear_error(struct s6e63m0 *ctx) in s6e63m0_clear_error() argument 143 int ret = ctx->error; in s6e63m0_clear_error() 145 ctx->error = 0; in s6e63m0_clear_error() 149 static void s6e63m0_dcs_read(struct s6e63m0 *ctx, const u8 cmd, u8 *data) in s6e63m0_dcs_read() argument 151 if (ctx->error < 0) in s6e63m0_dcs_read() 154 ctx->error = ctx->dcs_read(ctx->dev, cmd, data); in s6e63m0_dcs_read() 157 static void s6e63m0_dcs_write(struct s6e63m0 *ctx, const u8 *data, size_t len) in s6e63m0_dcs_write() argument 159 if (ctx->error < 0 || len == 0) in s6e63m0_dcs_write() 162 ctx->error = ctx->dcs_write(ctx->dev, data, len); in s6e63m0_dcs_write() 165 #define s6e63m0_dcs_write_seq_static(ctx, seq ...) \ argument [all …]
|
D | panel-raydium-rm68200.c | 104 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() 112 dev_err_ratelimited(ctx->dev, "MIPI DSI DCS write buffer failed: %d\n", err); in rm68200_dcs_write_buf() 115 static void rm68200_dcs_write_cmd(struct rm68200 *ctx, u8 cmd, u8 value) in rm68200_dcs_write_cmd() argument 117 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in rm68200_dcs_write_cmd() 122 dev_err_ratelimited(ctx->dev, "MIPI DSI DCS write failed: %d\n", err); in rm68200_dcs_write_cmd() 125 #define dcs_write_seq(ctx, seq...) \ argument 129 rm68200_dcs_write_buf(ctx, d, ARRAY_SIZE(d)); \ 136 #define dcs_write_cmd_seq(ctx, cmd, seq...) \ argument 142 rm68200_dcs_write_cmd(ctx, cmd + i, d[i]); \ [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/coda/ |
D | coda-bit.c | 40 static void coda_free_bitstream_buffer(struct coda_ctx *ctx); 63 static void coda_command_async(struct coda_ctx *ctx, int cmd) in coda_command_async() argument 65 struct coda_dev *dev = ctx->dev; in coda_command_async() 71 coda_write(dev, ctx->bit_stream_param, in coda_command_async() 73 coda_write(dev, ctx->frm_dis_flg, in coda_command_async() 74 CODA_REG_BIT_FRM_DIS_FLG(ctx->reg_idx)); in coda_command_async() 75 coda_write(dev, ctx->frame_mem_ctrl, in coda_command_async() 77 coda_write(dev, ctx->workbuf.paddr, CODA_REG_BIT_WORK_BUF_ADDR); in coda_command_async() 87 coda_write(dev, ctx->idx, CODA_REG_BIT_RUN_INDEX); in coda_command_async() 88 coda_write(dev, ctx->params.codec_mode, CODA_REG_BIT_RUN_COD_STD); in coda_command_async() [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | timerfd.c | 52 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 …]
|
/kernel/linux/linux-5.10/arch/riscv/net/ |
D | bpf_jit_comp64.c | 41 static u8 bpf_to_rv_reg(int bpf_reg, struct rv_jit_context *ctx) in bpf_to_rv_reg() argument 52 __set_bit(reg, &ctx->flags); in bpf_to_rv_reg() 57 static bool seen_reg(int reg, struct rv_jit_context *ctx) in seen_reg() argument 67 return test_bit(reg, &ctx->flags); in seen_reg() 72 static void mark_fp(struct rv_jit_context *ctx) in mark_fp() argument 74 __set_bit(RV_CTX_F_SEEN_S5, &ctx->flags); in mark_fp() 77 static void mark_call(struct rv_jit_context *ctx) in mark_call() argument 79 __set_bit(RV_CTX_F_SEEN_CALL, &ctx->flags); in mark_call() 82 static bool seen_call(struct rv_jit_context *ctx) in seen_call() argument 84 return test_bit(RV_CTX_F_SEEN_CALL, &ctx->flags); in seen_call() [all …]
|
/kernel/linux/linux-5.10/drivers/base/regmap/ |
D | regmap-mmio.c | 23 void (*reg_write)(struct regmap_mmio_context *ctx, 25 unsigned int (*reg_read)(struct regmap_mmio_context *ctx, 71 static void regmap_mmio_write8(struct regmap_mmio_context *ctx, in regmap_mmio_write8() argument 75 writeb(val, ctx->regs + reg); in regmap_mmio_write8() 78 static void regmap_mmio_write16le(struct regmap_mmio_context *ctx, in regmap_mmio_write16le() argument 82 writew(val, ctx->regs + reg); in regmap_mmio_write16le() 85 static void regmap_mmio_write16be(struct regmap_mmio_context *ctx, in regmap_mmio_write16be() argument 89 iowrite16be(val, ctx->regs + reg); in regmap_mmio_write16be() 92 static void regmap_mmio_write32le(struct regmap_mmio_context *ctx, in regmap_mmio_write32le() argument 96 writel(val, ctx->regs + reg); in regmap_mmio_write32le() [all …]
|
/kernel/linux/linux-5.10/crypto/asymmetric_keys/ |
D | x509_cert_parser.c | 66 struct x509_parse_context *ctx; in x509_cert_parse() local 80 ctx = kzalloc(sizeof(struct x509_parse_context), GFP_KERNEL); in x509_cert_parse() 81 if (!ctx) in x509_cert_parse() 84 ctx->cert = cert; in x509_cert_parse() 85 ctx->data = (unsigned long)data; in x509_cert_parse() 88 ret = asn1_ber_decoder(&x509_decoder, ctx, data, datalen); in x509_cert_parse() 93 if (ctx->raw_akid) { in x509_cert_parse() 95 ctx->raw_akid_size, ctx->raw_akid_size, ctx->raw_akid); in x509_cert_parse() 96 ret = asn1_ber_decoder(&x509_akid_decoder, ctx, in x509_cert_parse() 97 ctx->raw_akid, ctx->raw_akid_size); in x509_cert_parse() [all …]
|
/kernel/linux/linux-5.10/sound/soc/intel/atom/sst/ |
D | sst.c | 194 struct intel_sst_drv *ctx = container_of(work, in sst_process_pending_msg() local 197 ctx->ops->post_message(ctx, NULL, false); in sst_process_pending_msg() 200 static int sst_workqueue_init(struct intel_sst_drv *ctx) in sst_workqueue_init() argument 202 INIT_LIST_HEAD(&ctx->memcpy_list); in sst_workqueue_init() 203 INIT_LIST_HEAD(&ctx->rx_list); in sst_workqueue_init() 204 INIT_LIST_HEAD(&ctx->ipc_dispatch_list); in sst_workqueue_init() 205 INIT_LIST_HEAD(&ctx->block_list); in sst_workqueue_init() 206 INIT_WORK(&ctx->ipc_post_msg_wq, sst_process_pending_msg); in sst_workqueue_init() 207 init_waitqueue_head(&ctx->wait_queue); in sst_workqueue_init() 209 ctx->post_msg_wq = in sst_workqueue_init() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
D | mock_context.c | 15 struct i915_gem_context *ctx; in mock_context() local 18 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); in mock_context() 19 if (!ctx) in mock_context() 22 kref_init(&ctx->ref); in mock_context() 23 INIT_LIST_HEAD(&ctx->link); in mock_context() 24 ctx->i915 = i915; in mock_context() 26 mutex_init(&ctx->mutex); in mock_context() 28 spin_lock_init(&ctx->stale.lock); in mock_context() 29 INIT_LIST_HEAD(&ctx->stale.engines); in mock_context() 31 i915_gem_context_set_persistence(ctx); in mock_context() [all …]
|