Home
last modified time | relevance | path

Searched refs:ctx_id (Results 1 – 25 of 84) sorted by relevance

1234

/linux-6.6.21/include/linux/sunrpc/
Dgss_api.h51 struct gss_ctx **ctx_id,
55 struct gss_ctx *ctx_id,
59 struct gss_ctx *ctx_id,
63 struct gss_ctx *ctx_id,
68 struct gss_ctx *ctx_id,
73 struct gss_ctx **ctx_id);
113 struct gss_ctx *ctx_id,
117 struct gss_ctx *ctx_id,
121 struct gss_ctx *ctx_id,
125 struct gss_ctx *ctx_id,
[all …]
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/common/
Dmtk_vcodec_intr.c19 int ctx_id, ctx_type, status = 0; in mtk_vcodec_wait_for_done_ctx() local
28 ctx_id = ctx->id; in mtk_vcodec_wait_for_done_ctx()
38 ctx_id = ctx->id; in mtk_vcodec_wait_for_done_ctx()
54 ctx_id, command, ctx_type, timeout_ms, in mtk_vcodec_wait_for_done_ctx()
59 ctx_id, command, ctx_type, in mtk_vcodec_wait_for_done_ctx()
Dmtk_vcodec_dbgfs.h54 void mtk_vcodec_dbgfs_remove(struct mtk_vcodec_dec_dev *vcodec_dev, int ctx_id);
62 static inline void mtk_vcodec_dbgfs_remove(struct mtk_vcodec_dec_dev *vcodec_dev, int ctx_id) in mtk_vcodec_dbgfs_remove() argument
/linux-6.6.21/net/sunrpc/auth_gss/
Dgss_mech_switch.c355 struct gss_ctx **ctx_id, in gss_import_sec_context() argument
359 if (!(*ctx_id = kzalloc(sizeof(**ctx_id), gfp_mask))) in gss_import_sec_context()
361 (*ctx_id)->mech_type = gss_mech_get(mech); in gss_import_sec_context()
364 *ctx_id, endtime, gfp_mask); in gss_import_sec_context()
408 gss_wrap(struct gss_ctx *ctx_id, in gss_wrap() argument
413 return ctx_id->mech_type->gm_ops in gss_wrap()
414 ->gss_wrap(ctx_id, offset, buf, inpages); in gss_wrap()
418 gss_unwrap(struct gss_ctx *ctx_id, in gss_unwrap() argument
423 return ctx_id->mech_type->gm_ops in gss_unwrap()
424 ->gss_unwrap(ctx_id, offset, len, buf); in gss_unwrap()
/linux-6.6.21/sound/soc/fsl/
Dfsl_easrc.c240 unsigned int ctx_id, int mem_type) in fsl_easrc_coeff_mem_ptr_reset() argument
253 if (ctx_id >= EASRC_CTX_MAX_NUM) { in fsl_easrc_coeff_mem_ptr_reset()
254 dev_err(dev, "Invalid context id[%d]\n", ctx_id); in fsl_easrc_coeff_mem_ptr_reset()
258 reg = REG_EASRC_CCE1(ctx_id); in fsl_easrc_coeff_mem_ptr_reset()
428 static int fsl_easrc_write_pf_coeff_mem(struct fsl_asrc *easrc, int ctx_id, in fsl_easrc_write_pf_coeff_mem() argument
450 ret = fsl_easrc_coeff_mem_ptr_reset(easrc, ctx_id, EASRC_PF_COEFF_MEM); in fsl_easrc_write_pf_coeff_mem()
460 regmap_write(easrc->regmap, REG_EASRC_PCF(ctx_id), in fsl_easrc_write_pf_coeff_mem()
462 regmap_write(easrc->regmap, REG_EASRC_PCF(ctx_id), in fsl_easrc_write_pf_coeff_mem()
470 unsigned int ctx_id) in fsl_easrc_prefilter_config() argument
488 if (ctx_id >= EASRC_CTX_MAX_NUM) { in fsl_easrc_prefilter_config()
[all …]
/linux-6.6.21/drivers/gpu/drm/virtio/
Dvirtgpu_trace.h21 __field(u32, ctx_id)
32 __entry->ctx_id = le32_to_cpu(hdr->ctx_id);
39 __entry->ctx_id, __entry->num_free, __entry->seqno)
Dvirtgpu_drv.h81 uint32_t ctx_id; member
270 uint32_t ctx_id; member
363 uint32_t ctx_id,
366 uint32_t ctx_id,
370 uint32_t ctx_id,
374 uint32_t ctx_id,
382 uint32_t ctx_id,
Dvirtgpu_vq.c923 cmd_p->hdr.ctx_id = cpu_to_le32(id); in virtio_gpu_cmd_context_create()
940 cmd_p->hdr.ctx_id = cpu_to_le32(id); in virtio_gpu_cmd_context_destroy()
945 uint32_t ctx_id, in virtio_gpu_cmd_context_attach_resource() argument
957 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_context_attach_resource()
963 uint32_t ctx_id, in virtio_gpu_cmd_context_detach_resource() argument
975 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_context_detach_resource()
1014 uint32_t ctx_id, in virtio_gpu_cmd_transfer_to_host_3d() argument
1037 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_transfer_to_host_3d()
1049 uint32_t ctx_id, in virtio_gpu_cmd_transfer_from_host_3d() argument
1067 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_transfer_from_host_3d()
[all …]
/linux-6.6.21/drivers/media/platform/st/sti/hva/
Dhva-hw.c120 u8 ctx_id = 0; in hva_hw_its_irq_thread() local
130 ctx_id = (hva->sts_reg & 0xFF00) >> 8; in hva_hw_its_irq_thread()
131 if (ctx_id >= HVA_MAX_INSTANCES) { in hva_hw_its_irq_thread()
133 HVA_PREFIX, __func__, ctx_id); in hva_hw_its_irq_thread()
137 ctx = hva->instances[ctx_id]; in hva_hw_its_irq_thread()
223 u8 ctx_id = 0; in hva_hw_err_irq_thread() local
233 ctx_id = (hva->sts_reg & 0xFF00) >> 8; in hva_hw_err_irq_thread()
234 if (ctx_id >= HVA_MAX_INSTANCES) { in hva_hw_err_irq_thread()
236 ctx_id); in hva_hw_err_irq_thread()
240 ctx = hva->instances[ctx_id]; in hva_hw_err_irq_thread()
/linux-6.6.21/drivers/gpu/drm/imx/dcss/
Ddcss-ctxld.c340 void dcss_ctxld_write_irqsafe(struct dcss_ctxld *ctxld, u32 ctx_id, u32 val, in dcss_ctxld_write_irqsafe() argument
349 int item_idx = ctxld->ctx_size[curr_ctx][ctx_id]; in dcss_ctxld_write_irqsafe()
351 if (item_idx + 1 > dcss_ctxld_ctx_size[ctx_id]) { in dcss_ctxld_write_irqsafe()
356 ctx[ctx_id][item_idx].val = val; in dcss_ctxld_write_irqsafe()
357 ctx[ctx_id][item_idx].ofs = reg_ofs; in dcss_ctxld_write_irqsafe()
358 ctxld->ctx_size[curr_ctx][ctx_id] += 1; in dcss_ctxld_write_irqsafe()
361 void dcss_ctxld_write(struct dcss_ctxld *ctxld, u32 ctx_id, in dcss_ctxld_write() argument
365 dcss_ctxld_write_irqsafe(ctxld, ctx_id, val, reg_ofs); in dcss_ctxld_write()
Ddcss-ss.c68 u32 ctx_id; member
78 dcss_ctxld_write(ss->ctxld, ss->ctx_id, val, in dcss_ss_write()
102 ss->ctx_id = CTX_SB_HP; in dcss_ss_init()
/linux-6.6.21/drivers/accel/habanalabs/common/
Dcommand_buffer.c104 int ctx_id, bool internal_cb) in hl_cb_alloc() argument
118 if (ctx_id == HL_KERNEL_ASID_ID && !hdev->disabled) in hl_cb_alloc()
137 } else if (ctx_id == HL_KERNEL_ASID_ID) { in hl_cb_alloc()
186 int rc, ctx_id = cb_args->ctx->asid; in hl_cb_mmap_mem_alloc() local
194 if (ctx_id == HL_KERNEL_ASID_ID && in hl_cb_mmap_mem_alloc()
212 cb = hl_cb_alloc(cb_args->hdev, cb_args->cb_size, ctx_id, cb_args->internal_cb); in hl_cb_mmap_mem_alloc()
226 if (ctx_id == HL_KERNEL_ASID_ID) { in hl_cb_mmap_mem_alloc()
278 int ctx_id = ctx->asid; in hl_cb_create() local
280 if ((hdev->disabled) || (hdev->reset_info.in_reset && (ctx_id != HL_KERNEL_ASID_ID))) { in hl_cb_create()
294 ctx_id == HL_KERNEL_ASID_ID ? GFP_ATOMIC : GFP_KERNEL, &args); in hl_cb_create()
/linux-6.6.21/arch/x86/mm/
Dtlb.c211 this_cpu_write(cpu_tlbstate.ctxs[asid].ctx_id, 0); in clear_asid_other()
234 if (this_cpu_read(cpu_tlbstate.ctxs[asid].ctx_id) != in choose_new_asid()
235 next->context.ctx_id) in choose_new_asid()
564 VM_WARN_ON(this_cpu_read(cpu_tlbstate.ctxs[prev_asid].ctx_id) != in switch_mm_irqs_off()
565 next->context.ctx_id); in switch_mm_irqs_off()
641 this_cpu_write(cpu_tlbstate.ctxs[new_asid].ctx_id, next->context.ctx_id); in switch_mm_irqs_off()
728 this_cpu_write(cpu_tlbstate.ctxs[0].ctx_id, mm->context.ctx_id); in initialize_tlbstate_and_flush()
733 this_cpu_write(cpu_tlbstate.ctxs[i].ctx_id, 0); in initialize_tlbstate_and_flush()
777 VM_WARN_ON(this_cpu_read(cpu_tlbstate.ctxs[loaded_mm_asid].ctx_id) != in flush_tlb_func()
778 loaded_mm->context.ctx_id); in flush_tlb_func()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sched.c67 unsigned ctx_id, in amdgpu_sched_context_priority_override() argument
84 ctx = amdgpu_ctx_get(fpriv, ctx_id); in amdgpu_sched_context_priority_override()
130 args->in.ctx_id, in amdgpu_sched_ioctl()
/linux-6.6.21/arch/x86/include/asm/
Dmmu.h28 u64 ctx_id; member
74 .ctx_id = 1, \
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/
Doffload.c1497 u32 ctx_id = be32_to_cpu(link->sub_flow.flow->meta.host_ctx_id); in nfp_flower_remove_merge_flow() local
1499 parent_ctx = (parent_ctx << 32) | (u64)(ctx_id); in nfp_flower_remove_merge_flow()
1633 u32 ctx_id; in __nfp_flower_update_merge_stats() local
1635 ctx_id = be32_to_cpu(merge_flow->meta.host_ctx_id); in __nfp_flower_update_merge_stats()
1636 pkts = priv->stats[ctx_id].pkts; in __nfp_flower_update_merge_stats()
1640 bytes = priv->stats[ctx_id].bytes; in __nfp_flower_update_merge_stats()
1641 used = priv->stats[ctx_id].used; in __nfp_flower_update_merge_stats()
1644 priv->stats[ctx_id].pkts = 0; in __nfp_flower_update_merge_stats()
1645 priv->stats[ctx_id].bytes = 0; in __nfp_flower_update_merge_stats()
1653 ctx_id = be32_to_cpu(sub_flow->meta.host_ctx_id); in __nfp_flower_update_merge_stats()
[all …]
Dconntrack.c1994 u32 ctx_id; in nfp_fl_ct_sub_stats() local
2000 ctx_id = be32_to_cpu(nfp_flow->meta.host_ctx_id); in nfp_fl_ct_sub_stats()
2001 *m_pkts += priv->stats[ctx_id].pkts; in nfp_fl_ct_sub_stats()
2002 *m_bytes += priv->stats[ctx_id].bytes; in nfp_fl_ct_sub_stats()
2003 *m_used = max_t(u64, *m_used, priv->stats[ctx_id].used); in nfp_fl_ct_sub_stats()
2014 priv->stats[ctx_id].bytes, in nfp_fl_ct_sub_stats()
2015 priv->stats[ctx_id].pkts, in nfp_fl_ct_sub_stats()
2016 0, priv->stats[ctx_id].used, in nfp_fl_ct_sub_stats()
2021 priv->stats[ctx_id].bytes, in nfp_fl_ct_sub_stats()
2022 priv->stats[ctx_id].pkts, in nfp_fl_ct_sub_stats()
[all …]
Dmetadata.c121 u32 ctx_id; in nfp_flower_rx_flow_stats() local
129 ctx_id = be32_to_cpu(stats->stats_con_id); in nfp_flower_rx_flow_stats()
130 priv->stats[ctx_id].pkts += be32_to_cpu(stats->pkt_count); in nfp_flower_rx_flow_stats()
131 priv->stats[ctx_id].bytes += be64_to_cpu(stats->byte_count); in nfp_flower_rx_flow_stats()
132 priv->stats[ctx_id].used = jiffies; in nfp_flower_rx_flow_stats()
435 nfp_flower_get_fl_payload_from_ctx(struct nfp_app *app, u32 ctx_id) in nfp_flower_get_fl_payload_from_ctx() argument
440 ctx_entry = rhashtable_lookup_fast(&priv->stats_ctx_table, &ctx_id, in nfp_flower_get_fl_payload_from_ctx()
/linux-6.6.21/drivers/infiniband/hw/efa/
Defa_com.c246 u16 ctx_id; in efa_com_alloc_ctx_id() local
249 ctx_id = aq->comp_ctx_pool[aq->comp_ctx_pool_next]; in efa_com_alloc_ctx_id()
253 return ctx_id; in efa_com_alloc_ctx_id()
257 u16 ctx_id) in efa_com_dealloc_ctx_id() argument
261 aq->comp_ctx_pool[aq->comp_ctx_pool_next] = ctx_id; in efa_com_dealloc_ctx_id()
270 u16 ctx_id = cmd_id & (aq->depth - 1); in efa_com_put_comp_ctx() local
274 efa_com_dealloc_ctx_id(aq, ctx_id); in efa_com_put_comp_ctx()
280 u16 ctx_id = cmd_id & (aq->depth - 1); in efa_com_get_comp_ctx() local
282 if (aq->comp_ctx[ctx_id].occupied && capture) { in efa_com_get_comp_ctx()
291 aq->comp_ctx[ctx_id].occupied = 1; in efa_com_get_comp_ctx()
[all …]
/linux-6.6.21/drivers/infiniband/hw/erdma/
Derdma_cmdq.c55 cmdq->wait_pool[comp_wait->ctx_id].cmd_status = ERDMA_CMD_STATUS_INIT; in put_comp_wait()
57 used = __test_and_clear_bit(comp_wait->ctx_id, cmdq->comp_wait_bitmap); in put_comp_wait()
82 cmdq->wait_pool[i].ctx_id = i; in erdma_cmdq_wait_res_init()
282 comp_wait->ctx_id) | in push_cmdq_sqe()
294 u16 ctx_id; in erdma_poll_single_cmd_completion() local
309 ctx_id = FIELD_GET(ERDMA_CMD_HDR_CONTEXT_COOKIE_MASK, *sqe); in erdma_poll_single_cmd_completion()
310 comp_wait = &cmdq->wait_pool[ctx_id]; in erdma_poll_single_cmd_completion()
/linux-6.6.21/fs/
Daio.c1078 static struct kioctx *lookup_ioctx(unsigned long ctx_id) in lookup_ioctx() argument
1080 struct aio_ring __user *ring = (void __user *)ctx_id; in lookup_ioctx()
1097 if (ctx && ctx->user_id == ctx_id) { in lookup_ioctx()
2037 SYSCALL_DEFINE3(io_submit, aio_context_t, ctx_id, long, nr, in SYSCALL_DEFINE3() argument
2048 ctx = lookup_ioctx(ctx_id); in SYSCALL_DEFINE3()
2079 COMPAT_SYSCALL_DEFINE3(io_submit, compat_aio_context_t, ctx_id, in COMPAT_SYSCALL_DEFINE3() argument
2090 ctx = lookup_ioctx(ctx_id); in COMPAT_SYSCALL_DEFINE3()
2131 SYSCALL_DEFINE3(io_cancel, aio_context_t, ctx_id, struct iocb __user *, iocb, in SYSCALL_DEFINE3() argument
2145 ctx = lookup_ioctx(ctx_id); in SYSCALL_DEFINE3()
2174 static long do_io_getevents(aio_context_t ctx_id, in do_io_getevents() argument
[all …]
/linux-6.6.21/include/uapi/drm/
Damdgpu_drm.h281 __u32 ctx_id; member
288 __u32 ctx_id; member
342 __u32 ctx_id; member
474 __u32 ctx_id; member
488 __u32 ctx_id; member
612 __u32 ctx_id; member
678 __u32 ctx_id; member
/linux-6.6.21/drivers/accel/ivpu/
Divpu_drv.c229 u32 ctx_id; in ivpu_open() local
233 ret = xa_alloc_irq(&vdev->context_xa, &ctx_id, NULL, vdev->context_xa_limit, GFP_KERNEL); in ivpu_open()
250 ret = ivpu_mmu_user_context_init(vdev, &file_priv->ctx, ctx_id); in ivpu_open()
254 old = xa_store_irq(&vdev->context_xa, ctx_id, file_priv, GFP_KERNEL); in ivpu_open()
257 ivpu_err(vdev, "Failed to store context %u: %d\n", ctx_id, ret); in ivpu_open()
262 ctx_id, current->comm, task_pid_nr(current)); in ivpu_open()
273 xa_erase_irq(&vdev->context_xa, ctx_id); in ivpu_open()
Divpu_jsm_msg.c10 int ivpu_jsm_register_db(struct ivpu_device *vdev, u32 ctx_id, u32 db_id, in ivpu_jsm_register_db() argument
20 req.payload.register_db.host_ssid = ctx_id; in ivpu_jsm_register_db()
29 ivpu_dbg(vdev, JSM, "Doorbell %d registered to context %d\n", db_id, ctx_id); in ivpu_jsm_register_db()
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_hw.h172 u16 ctx_id; member
178 u16 ctx_id;
194 u16 ctx_id; member
196 u16 ctx_id;
238 u16 ctx_id; member
244 u16 ctx_id; member

1234