Searched refs:ctx (Results 1 - 25 of 2983) sorted by relevance

1234567891011>>

/linux-master/arch/powerpc/platforms/cell/spufs/
H A Dcontext.c27 struct spu_context *ctx; local
29 ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
30 if (!ctx)
35 if (spu_init_csa(&ctx->csa))
37 spin_lock_init(&ctx->mmio_lock);
38 mutex_init(&ctx->mapping_lock);
39 kref_init(&ctx->kref);
40 mutex_init(&ctx->state_mutex);
41 mutex_init(&ctx
71 struct spu_context *ctx; local
88 get_spu_context(struct spu_context *ctx) argument
94 put_spu_context(struct spu_context *ctx) argument
100 spu_forget(struct spu_context *ctx) argument
119 spu_unmap_mappings(struct spu_context *ctx) argument
143 spu_acquire_saved(struct spu_context *ctx) argument
165 spu_release_saved(struct spu_context *ctx) argument
[all...]
H A Dfault.c23 static void spufs_handle_event(struct spu_context *ctx, argument
26 if (ctx->flags & SPU_CREATE_EVENTS_ENABLED) {
27 ctx->event_return |= type;
28 wake_up_all(&ctx->stop_wq);
37 ctx->ops->restart_dma(ctx);
48 ctx->ops->npc_read(ctx) - 4);
53 int spufs_handle_class0(struct spu_context *ctx) argument
55 unsigned long stat = ctx
86 spufs_handle_class1(struct spu_context *ctx) argument
[all...]
H A Drun.c17 struct spu_context *ctx = spu->ctx; local
26 if (ctx) {
30 ctx->csa.class_0_pending = spu->class_0_pending;
31 ctx->csa.class_0_dar = spu->class_0_dar;
34 ctx->csa.class_1_dsisr = spu->class_1_dsisr;
35 ctx->csa.class_1_dar = spu->class_1_dar;
45 wake_up_all(&ctx->stop_wq);
49 int spu_stopped(struct spu_context *ctx, u32 *stat) argument
58 *stat = ctx
82 spu_setup_isolated(struct spu_context *ctx) argument
176 spu_run_init(struct spu_context *ctx, u32 *npc) argument
244 spu_run_fini(struct spu_context *ctx, u32 *npc, u32 *status) argument
273 spu_handle_restartsys(struct spu_context *ctx, long *spu_ret, unsigned int *npc) argument
309 spu_process_callback(struct spu_context *ctx) argument
353 spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *event) argument
[all...]
/linux-master/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) argument
179 cp_set (ctx, STATE, RUNNING);
180 cp_set (ctx, XFER_SWITCH, ENABLE);
182 cp_bra (ctx, AUTO_SAVE, PENDING, cp_setup_save);
183 cp_bra (ctx, USER_SAVE, PENDING, cp_setup_save);
185 cp_name(ctx, cp_check_load);
186 cp_bra (ctx, AUTO_LOA
269 struct nvkm_grctx ctx = { local
297 nv50_gr_construct_mmio(struct nvkm_grctx *ctx) argument
785 dd_emit(struct nvkm_grctx *ctx, int num, u32 val) argument
795 nv50_gr_construct_mmio_ddata(struct nvkm_grctx *ctx) argument
1158 xf_emit(struct nvkm_grctx *ctx, int num, u32 val) argument
1189 nv50_gr_construct_xfer1(struct nvkm_grctx *ctx) argument
1352 nv50_gr_construct_gene_dispatch(struct nvkm_grctx *ctx) argument
1408 nv50_gr_construct_gene_m2mf(struct nvkm_grctx *ctx) argument
1460 nv50_gr_construct_gene_ccache(struct nvkm_grctx *ctx) argument
1528 nv50_gr_construct_gene_unk10xx(struct nvkm_grctx *ctx) argument
1588 nv50_gr_construct_gene_unk34xx(struct nvkm_grctx *ctx) argument
1613 nv50_gr_construct_gene_unk14xx(struct nvkm_grctx *ctx) argument
1724 nv50_gr_construct_gene_zcull(struct nvkm_grctx *ctx) argument
1785 nv50_gr_construct_gene_clipid(struct nvkm_grctx *ctx) argument
1805 nv50_gr_construct_gene_unk24xx(struct nvkm_grctx *ctx) argument
1888 nv50_gr_construct_gene_vfetch(struct nvkm_grctx *ctx) argument
2074 nv50_gr_construct_gene_eng2d(struct nvkm_grctx *ctx) argument
2136 nv50_gr_construct_gene_csched(struct nvkm_grctx *ctx) argument
2235 nv50_gr_construct_gene_unk1cxx(struct nvkm_grctx *ctx) argument
2331 nv50_gr_construct_gene_strmout(struct nvkm_grctx *ctx) argument
2373 nv50_gr_construct_gene_ropm1(struct nvkm_grctx *ctx) argument
2386 nv50_gr_construct_gene_ropm2(struct nvkm_grctx *ctx) argument
2412 nv50_gr_construct_gene_ropc(struct nvkm_grctx *ctx) argument
2647 nv50_gr_construct_xfer_unk84xx(struct nvkm_grctx *ctx) argument
2739 nv50_gr_construct_xfer_tprop(struct nvkm_grctx *ctx) argument
3039 nv50_gr_construct_xfer_tex(struct nvkm_grctx *ctx) argument
3085 nv50_gr_construct_xfer_unk8cxx(struct nvkm_grctx *ctx) argument
3124 nv50_gr_construct_xfer_tp(struct nvkm_grctx *ctx) argument
3141 nv50_gr_construct_xfer_mpc(struct nvkm_grctx *ctx) argument
3273 nv50_gr_construct_xfer2(struct nvkm_grctx *ctx) argument
[all...]
/linux-master/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_regs.h11 void mtk_mdp_hw_set_input_addr(struct mtk_mdp_ctx *ctx,
13 void mtk_mdp_hw_set_output_addr(struct mtk_mdp_ctx *ctx,
15 void mtk_mdp_hw_set_in_size(struct mtk_mdp_ctx *ctx);
16 void mtk_mdp_hw_set_in_image_format(struct mtk_mdp_ctx *ctx);
17 void mtk_mdp_hw_set_out_size(struct mtk_mdp_ctx *ctx);
18 void mtk_mdp_hw_set_out_image_format(struct mtk_mdp_ctx *ctx);
19 void mtk_mdp_hw_set_rotation(struct mtk_mdp_ctx *ctx);
20 void mtk_mdp_hw_set_global_alpha(struct mtk_mdp_ctx *ctx);
/linux-master/drivers/media/platform/mediatek/vcodec/
H A Dvenc_drv_if.c19 int venc_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) argument
25 ctx->enc_if = &venc_vp8_if;
28 ctx->enc_if = &venc_h264_if;
34 mtk_venc_lock(ctx);
35 mtk_vcodec_enc_clock_on(&ctx->dev->pm);
36 ret = ctx->enc_if->init(ctx);
37 mtk_vcodec_enc_clock_off(&ctx->dev->pm);
38 mtk_venc_unlock(ctx);
43 int venc_if_set_param(struct mtk_vcodec_ctx *ctx, argument
57 venc_if_encode(struct mtk_vcodec_ctx *ctx, enum venc_start_opt opt, struct venc_frm_buf *frm_buf, struct mtk_vcodec_mem *bs_buf, struct venc_done_result *result) argument
84 venc_if_deinit(struct mtk_vcodec_ctx *ctx) argument
[all...]
H A Dvdec_drv_if.c17 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) argument
19 enum mtk_vdec_hw_arch hw_arch = ctx->dev->vdec_pdata->hw_arch;
24 if (!ctx->dev->vdec_pdata->is_subdev_supported) {
25 ctx->dec_if = &vdec_h264_slice_if;
26 ctx->hw_id = MTK_VDEC_CORE;
28 ctx->dec_if = &vdec_h264_slice_multi_if;
29 ctx->hw_id = IS_VDEC_LAT_ARCH(hw_arch) ? MTK_VDEC_LAT0 : MTK_VDEC_CORE;
33 ctx->dec_if = &vdec_h264_if;
34 ctx->hw_id = MTK_VDEC_CORE;
37 ctx
63 vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, struct vdec_fb *fb, bool *res_chg) argument
95 vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type, void *out) argument
110 vdec_if_deinit(struct mtk_vcodec_ctx *ctx) argument
[all...]
H A Dmtk_vcodec_intr.c14 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *ctx, argument
22 ret = wait_event_interruptible_timeout(ctx->queue[hw_id],
23 ctx->int_cond[hw_id],
29 ctx->id, command, ctx->type, timeout_ms,
30 ctx->int_cond[hw_id], ctx->int_type[hw_id]);
34 ctx->id, command, ctx->type,
35 ctx
[all...]
/linux-master/sound/soc/intel/skylake/
H A Dskl-sst-cldma.c17 static void skl_cldma_int_enable(struct sst_dsp *ctx) argument
19 sst_dsp_shim_update_bits_unlocked(ctx, SKL_ADSP_REG_ADSPIC,
23 void skl_cldma_int_disable(struct sst_dsp *ctx) argument
25 sst_dsp_shim_update_bits_unlocked(ctx,
29 static void skl_cldma_stream_run(struct sst_dsp *ctx, bool enable) argument
34 sst_dsp_shim_update_bits_unlocked(ctx,
42 val = sst_dsp_shim_read(ctx, SKL_ADSP_REG_CL_SD_CTL) &
52 dev_err(ctx->dev, "Failed to set Run bit=%d enable=%d\n", val, enable);
55 static void skl_cldma_stream_clear(struct sst_dsp *ctx) argument
58 skl_cldma_stream_run(ctx,
77 skl_cldma_setup_bdle(struct sst_dsp *ctx, struct snd_dma_buffer *dmab_data, __le32 **bdlp, int size, int with_ioc) argument
107 skl_cldma_setup_controller(struct sst_dsp *ctx, struct snd_dma_buffer *dmab_bdl, unsigned int max_size, u32 count) argument
129 skl_cldma_setup_spb(struct sst_dsp *ctx, unsigned int size, bool enable) argument
141 skl_cldma_cleanup_spb(struct sst_dsp *ctx) argument
151 skl_cldma_cleanup(struct sst_dsp *ctx) argument
160 skl_cldma_wait_interruptible(struct sst_dsp *ctx) argument
183 skl_cldma_stop(struct sst_dsp *ctx) argument
188 skl_cldma_fill_buffer(struct sst_dsp *ctx, unsigned int size, const void *curr_pos, bool intr_enable, bool trigger) argument
245 skl_cldma_copy_to_buf(struct sst_dsp *ctx, const void *bin, u32 total_size, bool wait) argument
307 skl_cldma_process_intr(struct sst_dsp *ctx) argument
323 skl_cldma_prepare(struct sst_dsp *ctx) argument
[all...]
H A Dcnl-sst-dsp.c27 cnl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) argument
30 sst_dsp_shim_update_bits_unlocked(ctx,
35 return sst_dsp_register_poll(ctx,
44 cnl_dsp_core_unset_reset_state(struct sst_dsp *ctx, unsigned int core_mask) argument
47 sst_dsp_shim_update_bits_unlocked(ctx, CNL_ADSP_REG_ADSPCS,
51 return sst_dsp_register_poll(ctx,
59 static bool is_cnl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask) argument
64 val = sst_dsp_shim_read_unlocked(ctx, CNL_ADSP_REG_ADSPCS);
71 dev_dbg(ctx->dev, "DSP core(s) enabled? %d: core_mask %#x\n",
77 static int cnl_dsp_reset_core(struct sst_dsp *ctx, unsigne argument
88 cnl_dsp_start_core(struct sst_dsp *ctx, unsigned int core_mask) argument
111 cnl_dsp_core_power_up(struct sst_dsp *ctx, unsigned int core_mask) argument
126 cnl_dsp_core_power_down(struct sst_dsp *ctx, unsigned int core_mask) argument
141 cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core_mask) argument
156 cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask) argument
186 struct sst_dsp *ctx = dev_id; local
220 cnl_ipc_int_enable(struct sst_dsp *ctx) argument
226 cnl_ipc_int_disable(struct sst_dsp *ctx) argument
232 cnl_ipc_op_int_enable(struct sst_dsp *ctx) argument
245 cnl_ipc_op_int_disable(struct sst_dsp *ctx) argument
256 cnl_ipc_int_status(struct sst_dsp *ctx) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dconnect_force_port6.c29 int connect6(struct bpf_sock_addr *ctx) argument
39 if (bpf_bind(ctx, (struct sockaddr *)&sa, sizeof(sa)) != 0)
43 if (ctx->user_port == bpf_htons(60000)) {
44 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0,
49 orig->addr[0] = ctx->user_ip6[0];
50 orig->addr[1] = ctx->user_ip6[1];
51 orig->addr[2] = ctx->user_ip6[2];
52 orig->addr[3] = ctx->user_ip6[3];
53 orig->port = ctx->user_port;
55 ctx
65 getsockname6(struct bpf_sock_addr *ctx) argument
82 getpeername6(struct bpf_sock_addr *ctx) argument
[all...]
H A Dsockopt_sk.c30 int _getsockopt(struct bpf_sockopt *ctx) argument
32 __u8 *optval_end = ctx->optval_end;
33 __u8 *optval = ctx->optval;
41 if (bpf_get_netns_cookie(ctx) == 0)
44 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) {
49 ctx->optlen = 0; /* bypass optval>PAGE_SIZE */
53 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) {
61 if (ctx
129 _setsockopt(struct bpf_sockopt *ctx) argument
[all...]
H A Dsockopt_multi.c9 int _getsockopt_child(struct bpf_sockopt *ctx) argument
11 __u8 *optval_end = ctx->optval_end;
12 __u8 *optval = ctx->optval;
14 if (ctx->level != SOL_IP || ctx->optname != IP_TOS)
23 ctx->retval = 0; /* Reset system call return value to zero */
26 ctx->optlen = 1;
32 int _getsockopt_parent(struct bpf_sockopt *ctx) argument
34 __u8 *optval_end = ctx->optval_end;
35 __u8 *optval = ctx
55 _setsockopt(struct bpf_sockopt *ctx) argument
[all...]
H A Dtest_xdp_devmap_helpers.c9 int xdpdm_devlog(struct xdp_md *ctx) argument
12 void *data_end = (void *)(long)ctx->data_end;
13 void *data = (void *)(long)ctx->data;
17 ctx->ingress_ifindex, ctx->egress_ifindex, len);
/linux-master/drivers/base/regmap/
H A Dregmap-mmio.c24 void (*reg_write)(struct regmap_mmio_context *ctx,
26 unsigned int (*reg_read)(struct regmap_mmio_context *ctx,
72 static void regmap_mmio_write8(struct regmap_mmio_context *ctx, argument
76 writeb(val, ctx->regs + reg);
79 static void regmap_mmio_write8_relaxed(struct regmap_mmio_context *ctx, argument
83 writeb_relaxed(val, ctx->regs + reg);
86 static void regmap_mmio_write16le(struct regmap_mmio_context *ctx, argument
90 writew(val, ctx->regs + reg);
93 static void regmap_mmio_write16le_relaxed(struct regmap_mmio_context *ctx, argument
97 writew_relaxed(val, ctx
100 regmap_mmio_write16be(struct regmap_mmio_context *ctx, unsigned int reg, unsigned int val) argument
107 regmap_mmio_write32le(struct regmap_mmio_context *ctx, unsigned int reg, unsigned int val) argument
114 regmap_mmio_write32le_relaxed(struct regmap_mmio_context *ctx, unsigned int reg, unsigned int val) argument
121 regmap_mmio_write32be(struct regmap_mmio_context *ctx, unsigned int reg, unsigned int val) argument
129 regmap_mmio_write64le(struct regmap_mmio_context *ctx, unsigned int reg, unsigned int val) argument
136 regmap_mmio_write64le_relaxed(struct regmap_mmio_context *ctx, unsigned int reg, unsigned int val) argument
146 struct regmap_mmio_context *ctx = context; local
163 regmap_mmio_read8(struct regmap_mmio_context *ctx, unsigned int reg) argument
169 regmap_mmio_read8_relaxed(struct regmap_mmio_context *ctx, unsigned int reg) argument
175 regmap_mmio_read16le(struct regmap_mmio_context *ctx, unsigned int reg) argument
181 regmap_mmio_read16le_relaxed(struct regmap_mmio_context *ctx, unsigned int reg) argument
187 regmap_mmio_read16be(struct regmap_mmio_context *ctx, unsigned int reg) argument
193 regmap_mmio_read32le(struct regmap_mmio_context *ctx, unsigned int reg) argument
199 regmap_mmio_read32le_relaxed(struct regmap_mmio_context *ctx, unsigned int reg) argument
205 regmap_mmio_read32be(struct regmap_mmio_context *ctx, unsigned int reg) argument
212 regmap_mmio_read64le(struct regmap_mmio_context *ctx, unsigned int reg) argument
218 regmap_mmio_read64le_relaxed(struct regmap_mmio_context *ctx, unsigned int reg) argument
227 struct regmap_mmio_context *ctx = context; local
246 struct regmap_mmio_context *ctx = context; local
269 struct regmap_mmio_context *ctx; local
402 struct regmap_mmio_context *ctx; local
420 struct regmap_mmio_context *ctx; local
433 struct regmap_mmio_context *ctx = map->bus_context; local
444 struct regmap_mmio_context *ctx = map->bus_context; local
[all...]
/linux-master/drivers/misc/cxl/
H A Dcontext.c35 int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master) argument
39 ctx->afu = afu;
40 ctx->master = master;
41 ctx->pid = NULL; /* Set in start work ioctl */
42 mutex_init(&ctx->mapping_lock);
43 ctx->mapping = NULL;
44 ctx->tidr = 0;
45 ctx->assign_tidr = false;
48 spin_lock_init(&ctx->sste_lock);
57 i = cxl_alloc_sst(ctx);
118 cxl_context_set_mapping(struct cxl_context *ctx, struct address_space *mapping) argument
129 struct cxl_context *ctx = vma->vm_file->private_data; local
182 cxl_context_iomap(struct cxl_context *ctx, struct vm_area_struct *vma) argument
234 __detach_context(struct cxl_context *ctx) argument
282 cxl_context_detach(struct cxl_context *ctx) argument
299 struct cxl_context *ctx; local
326 struct cxl_context *ctx = container_of(rcu, struct cxl_context, rcu); local
342 cxl_context_free(struct cxl_context *ctx) argument
352 cxl_context_mm_count_get(struct cxl_context *ctx) argument
358 cxl_context_mm_count_put(struct cxl_context *ctx) argument
[all...]
/linux-master/drivers/scsi/elx/libefc/
H A Defc_sm.c16 * @ctx: State machine context
21 efc_sm_post_event(struct efc_sm_ctx *ctx, argument
24 if (!ctx->current_state)
27 ctx->current_state(ctx, evt, data);
32 efc_sm_transition(struct efc_sm_ctx *ctx, argument
37 if (ctx->current_state == state) {
38 efc_sm_post_event(ctx, EFC_EVT_REENTER, data);
40 efc_sm_post_event(ctx, EFC_EVT_EXIT, data);
41 ctx
[all...]
/linux-master/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_context.c16 struct i915_gem_context *ctx; local
20 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
21 if (!ctx)
24 kref_init(&ctx->ref);
25 INIT_LIST_HEAD(&ctx->link);
26 ctx->i915 = i915;
27 INIT_WORK(&ctx->release_work, i915_gem_context_release_work);
29 mutex_init(&ctx->mutex);
31 spin_lock_init(&ctx
67 mock_context_close(struct i915_gem_context *ctx) argument
82 struct i915_gem_context *ctx; local
114 struct i915_gem_context *ctx; local
152 struct i915_gem_context *ctx; local
177 kernel_context_close(struct i915_gem_context *ctx) argument
[all...]
/linux-master/drivers/media/dvb-core/
H A Ddvb_vb2.c33 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); local
35 ctx->buf_cnt = *nbuffers;
37 sizes[0] = ctx->buf_siz;
44 dprintk(3, "[%s] count=%d, size=%d\n", ctx->name,
52 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
53 unsigned long size = ctx->buf_siz;
57 ctx->name, vb2_plane_size(vb, 0), size);
62 dprintk(3, "[%s]\n", ctx->name);
69 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
73 spin_lock_irqsave(&ctx
82 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); local
90 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); local
108 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); local
116 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); local
135 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
147 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); local
163 dvb_vb2_init(struct dvb_vb2_ctx *ctx, const char *name, int nonblocking) argument
201 dvb_vb2_release(struct dvb_vb2_ctx *ctx) argument
214 dvb_vb2_stream_on(struct dvb_vb2_ctx *ctx) argument
231 dvb_vb2_stream_off(struct dvb_vb2_ctx *ctx) argument
248 dvb_vb2_is_streaming(struct dvb_vb2_ctx *ctx) argument
253 dvb_vb2_fill_buffer(struct dvb_vb2_ctx *ctx, const unsigned char *src, int len, enum dmx_buffer_flags *buffer_flags) argument
329 dvb_vb2_reqbufs(struct dvb_vb2_ctx *ctx, struct dmx_requestbuffers *req) argument
355 dvb_vb2_querybuf(struct dvb_vb2_ctx *ctx, struct dmx_buffer *b) argument
362 dvb_vb2_expbuf(struct dvb_vb2_ctx *ctx, struct dmx_exportbuffer *exp) argument
379 dvb_vb2_qbuf(struct dvb_vb2_ctx *ctx, struct dmx_buffer *b) argument
394 dvb_vb2_dqbuf(struct dvb_vb2_ctx *ctx, struct dmx_buffer *b) argument
418 dvb_vb2_mmap(struct dvb_vb2_ctx *ctx, struct vm_area_struct *vma) argument
432 dvb_vb2_poll(struct dvb_vb2_ctx *ctx, struct file *file, poll_table *wait) argument
[all...]
/linux-master/drivers/misc/habanalabs/common/
H A Dcontext.c16 struct hl_encaps_signals_mgr *mgr = &handle->ctx->sig_mgr;
22 hl_ctx_put(handle->ctx);
30 struct hl_encaps_signals_mgr *mgr = &handle->ctx->sig_mgr;
42 hl_ctx_put(handle->ctx);
71 static void hl_ctx_fini(struct hl_ctx *ctx) argument
73 struct hl_device *hdev = ctx->hdev;
79 hl_hw_block_mem_fini(ctx);
90 hl_fence_put(ctx->cs_pending[i]);
92 kfree(ctx->cs_pending);
94 if (ctx
122 struct hl_ctx *ctx; local
144 struct hl_ctx *ctx; local
189 hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx) argument
279 hl_ctx_get_unless_zero(struct hl_ctx *ctx) argument
284 hl_ctx_get(struct hl_ctx *ctx) argument
289 hl_ctx_put(struct hl_ctx *ctx) argument
296 struct hl_ctx *ctx = NULL; local
330 hl_ctx_get_fence_locked(struct hl_ctx *ctx, u64 seq) argument
346 hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq) argument
369 hl_ctx_get_fences(struct hl_ctx *ctx, u64 *seq_arr, struct hl_fence **fence, u32 arr_len) argument
424 struct hl_ctx *ctx; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmapping.c43 int mapping_add(struct mapping_ctx *ctx, void *data, u32 *id) argument
49 mutex_lock(&ctx->lock);
51 hash_key = jhash(data, ctx->data_size, 0);
52 hash_for_each_possible(ctx->ht, mi, node, hash_key) {
53 if (!memcmp(data, mi->data, ctx->data_size))
57 mi = kzalloc(sizeof(*mi) + ctx->data_size, GFP_KERNEL);
61 memcpy(mi->data, data, ctx->data_size);
62 hash_add(ctx->ht, &mi->node, hash_key);
64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx
85 mapping_remove_and_free(struct mapping_ctx *ctx, struct mapping_item *mi) argument
92 mapping_free_item(struct mapping_ctx *ctx, struct mapping_item *mi) argument
109 mapping_remove(struct mapping_ctx *ctx, u32 id) argument
132 mapping_find(struct mapping_ctx *ctx, u32 id, void *data) argument
152 mapping_remove_and_free_list(struct mapping_ctx *ctx, struct list_head *list) argument
165 struct mapping_ctx *ctx; local
185 mapping_flush_work(struct mapping_ctx *ctx) argument
197 struct mapping_ctx *ctx; local
225 struct mapping_ctx *ctx; local
249 mapping_destroy(struct mapping_ctx *ctx) argument
[all...]
/linux-master/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_dec.h16 int s5p_mfc_dec_ctrls_setup(struct s5p_mfc_ctx *ctx);
17 void s5p_mfc_dec_ctrls_delete(struct s5p_mfc_ctx *ctx);
18 void s5p_mfc_dec_init(struct s5p_mfc_ctx *ctx);
H A Ds5p_mfc_enc.h16 int s5p_mfc_enc_ctrls_setup(struct s5p_mfc_ctx *ctx);
17 void s5p_mfc_enc_ctrls_delete(struct s5p_mfc_ctx *ctx);
18 void s5p_mfc_enc_init(struct s5p_mfc_ctx *ctx);
/linux-master/drivers/gpu/drm/bridge/
H A Dsii9234.c194 static int sii9234_writeb(struct sii9234 *ctx, int id, int offset, argument
198 struct i2c_client *client = ctx->client[id];
200 if (ctx->i2c_error)
201 return ctx->i2c_error;
205 dev_err(ctx->dev, "writeb: %4s[0x%02x] <- 0x%02x\n",
207 ctx->i2c_error = ret;
212 static int sii9234_writebm(struct sii9234 *ctx, int id, int offset, argument
216 struct i2c_client *client = ctx->client[id];
218 if (ctx->i2c_error)
219 return ctx
249 sii9234_readb(struct sii9234 *ctx, int id, int offset) argument
275 sii9234_clear_error(struct sii9234 *ctx) argument
309 sii9234_tmds_control(struct sii9234 *ctx, bool enable) argument
318 sii9234_cbus_reset(struct sii9234 *ctx) argument
343 sii9234_cbus_init(struct sii9234 *ctx) argument
389 force_usb_id_switch_open(struct sii9234 *ctx) argument
400 release_usb_id_switch_open(struct sii9234 *ctx) argument
409 sii9234_power_init(struct sii9234 *ctx) argument
422 sii9234_hdmi_init(struct sii9234 *ctx) argument
442 sii9234_mhl_tx_ctl_int(struct sii9234 *ctx) argument
452 sii9234_reset(struct sii9234 *ctx) argument
546 sii9234_goto_d3(struct sii9234 *ctx) argument
569 sii9234_hw_on(struct sii9234 *ctx) argument
574 sii9234_hw_off(struct sii9234 *ctx) argument
581 sii9234_hw_reset(struct sii9234 *ctx) argument
588 sii9234_cable_in(struct sii9234 *ctx) argument
608 sii9234_cable_out(struct sii9234 *ctx) argument
626 sii9234_rgnd_ready_irq(struct sii9234 *ctx) argument
668 sii9234_mhl_established(struct sii9234 *ctx) argument
688 sii9234_hpd_change(struct sii9234 *ctx) argument
707 sii9234_rsen_change(struct sii9234 *ctx) argument
753 struct sii9234 *ctx = data; local
816 sii9234_init_resources(struct sii9234 *ctx, struct i2c_client *client) argument
893 struct sii9234 *ctx; local
941 struct sii9234 *ctx = i2c_get_clientdata(client); local
[all...]
/linux-master/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_services.c39 dm_get_elapse_time_in_ns(struct dc_context *ctx, argument
46 void dm_perf_trace_timestamp(const char *func_name, unsigned int line, struct dc_context *ctx) argument
48 trace_amdgpu_dc_performance(ctx->perf_trace->read_count,
49 ctx->perf_trace->write_count,
50 &ctx->perf_trace->last_entry_read,
51 &ctx->perf_trace->last_entry_write,

Completed in 152 milliseconds

1234567891011>>