Home
last modified time | relevance | path

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

123

/linux/include/linux/sunrpc/
H A 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/net/sunrpc/auth_gss/
H A 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/drivers/media/platform/mediatek/vcodec/common/
H A 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()
H A 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/sound/soc/fsl/
H A 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/tools/testing/selftests/drivers/net/hw/
H A Drss_ctx.py100 def _ntuple_rule_check(cfg, rule_id, ctx_id): argument
197 ctx_id = 0
200 ctx_id = ethtool_create(cfg, "-X", "context new")
205 data = get_rss(cfg, context=ctx_id)
235 data = get_rss(cfg, context=ctx_id)
368 expect_tuples = set([(cfg.ifname, -1)] + [(cfg.ifname, ctx_id) for ctx_id in ids])
444 ctx_id = ethtool_create(cfg, "-X", f"context new {create_cfg}")
454 _rss_key_check(cfg, context=ctx_id)
458 _rss_key_check(cfg, context=ctx_id)
461 data = get_rss(cfg, ctx_id)
[all …]
/linux/drivers/media/platform/st/sti/hva/
H A 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/drivers/gpu/drm/imx/dcss/
H A Ddcss-ctxld.c332 void dcss_ctxld_write_irqsafe(struct dcss_ctxld *ctxld, u32 ctx_id, u32 val, in dcss_ctxld_write_irqsafe() argument
341 int item_idx = ctxld->ctx_size[curr_ctx][ctx_id]; in dcss_ctxld_write_irqsafe()
343 if (item_idx + 1 > dcss_ctxld_ctx_size[ctx_id]) { in dcss_ctxld_write_irqsafe()
348 ctx[ctx_id][item_idx].val = val; in dcss_ctxld_write_irqsafe()
349 ctx[ctx_id][item_idx].ofs = reg_ofs; in dcss_ctxld_write_irqsafe()
350 ctxld->ctx_size[curr_ctx][ctx_id] += 1; in dcss_ctxld_write_irqsafe()
353 void dcss_ctxld_write(struct dcss_ctxld *ctxld, u32 ctx_id, in dcss_ctxld_write() argument
357 dcss_ctxld_write_irqsafe(ctxld, ctx_id, val, reg_ofs); in dcss_ctxld_write()
H A Ddcss-ss.c68 u32 ctx_id; member
78 dcss_ctxld_write(ss->ctxld, ss->ctx_id, val, in dcss_ss_write()
101 ss->ctx_id = CTX_SB_HP; in dcss_ss_init()
/linux/drivers/accel/habanalabs/common/
H A 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/arch/x86/mm/
H A Dtlb.c209 this_cpu_write(cpu_tlbstate.ctxs[asid].ctx_id, 0); in clear_asid_other()
232 if (this_cpu_read(cpu_tlbstate.ctxs[asid].ctx_id) != in choose_new_asid()
233 next->context.ctx_id) in choose_new_asid()
559 VM_WARN_ON(this_cpu_read(cpu_tlbstate.ctxs[prev_asid].ctx_id) != in switch_mm_irqs_off()
560 next->context.ctx_id); in switch_mm_irqs_off()
634 this_cpu_write(cpu_tlbstate.ctxs[new_asid].ctx_id, next->context.ctx_id); in switch_mm_irqs_off()
723 this_cpu_write(cpu_tlbstate.ctxs[0].ctx_id, mm->context.ctx_id); in initialize_tlbstate_and_flush()
728 this_cpu_write(cpu_tlbstate.ctxs[i].ctx_id, 0); in initialize_tlbstate_and_flush()
772 VM_WARN_ON(this_cpu_read(cpu_tlbstate.ctxs[loaded_mm_asid].ctx_id) != in flush_tlb_func()
773 loaded_mm->context.ctx_id); in flush_tlb_func()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_sched.c63 unsigned ctx_id, in amdgpu_sched_context_priority_override() argument
78 ctx = amdgpu_ctx_get(fpriv, ctx_id); in amdgpu_sched_context_priority_override()
120 args->in.ctx_id, in amdgpu_sched_ioctl()
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_drv.h84 uint32_t ctx_id; member
273 uint32_t ctx_id; member
366 uint32_t ctx_id,
369 uint32_t ctx_id,
373 uint32_t ctx_id,
377 uint32_t ctx_id,
385 uint32_t ctx_id,
H A 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 …]
H A Dvirtgpu_ioctl.c46 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id, in virtio_gpu_create_context_locked()
54 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id, in virtio_gpu_create_context_locked()
266 (vgdev, vfpriv->ctx_id, offset, args->level, args->stride, in virtio_gpu_transfer_from_host_ioctl()
326 vfpriv ? vfpriv->ctx_id : 0, offset, args->level, in virtio_gpu_transfer_to_host_ioctl()
478 params->ctx_id = vfpriv->ctx_id; in verify_blob()
527 vfpriv->ctx_id, NULL, NULL); in virtio_gpu_resource_create_blob_ioctl()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Doffload.c1501 u32 ctx_id = be32_to_cpu(link->sub_flow.flow->meta.host_ctx_id); in nfp_flower_remove_merge_flow() local
1503 parent_ctx = (parent_ctx << 32) | (u64)(ctx_id); in nfp_flower_remove_merge_flow()
1637 u32 ctx_id; in __nfp_flower_update_merge_stats() local
1639 ctx_id = be32_to_cpu(merge_flow->meta.host_ctx_id); in __nfp_flower_update_merge_stats()
1640 pkts = priv->stats[ctx_id].pkts; in __nfp_flower_update_merge_stats()
1644 bytes = priv->stats[ctx_id].bytes; in __nfp_flower_update_merge_stats()
1645 used = priv->stats[ctx_id].used; in __nfp_flower_update_merge_stats()
1648 priv->stats[ctx_id].pkts = 0; in __nfp_flower_update_merge_stats()
1649 priv->stats[ctx_id].bytes = 0; in __nfp_flower_update_merge_stats()
1657 ctx_id = be32_to_cpu(sub_flow->meta.host_ctx_id); in __nfp_flower_update_merge_stats()
[all …]
H A 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 …]
H A 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/drivers/infiniband/hw/efa/
H A 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/arch/x86/include/asm/
H A Dmmu.h28 u64 ctx_id; member
74 .ctx_id = 1, \
/linux/fs/
H A Daio.c1075 static struct kioctx *lookup_ioctx(unsigned long ctx_id) in lookup_ioctx() argument
1077 struct aio_ring __user *ring = (void __user *)ctx_id; in lookup_ioctx()
1094 if (ctx && ctx->user_id == ctx_id) { in lookup_ioctx()
2081 SYSCALL_DEFINE3(io_submit, aio_context_t, ctx_id, long, nr, in SYSCALL_DEFINE3() argument
2092 ctx = lookup_ioctx(ctx_id); in SYSCALL_DEFINE3()
2123 COMPAT_SYSCALL_DEFINE3(io_submit, compat_aio_context_t, ctx_id, in COMPAT_SYSCALL_DEFINE3() argument
2134 ctx = lookup_ioctx(ctx_id); in COMPAT_SYSCALL_DEFINE3()
2175 SYSCALL_DEFINE3(io_cancel, aio_context_t, ctx_id, struct iocb __user *, iocb, in SYSCALL_DEFINE3() argument
2189 ctx = lookup_ioctx(ctx_id); in SYSCALL_DEFINE3()
2217 static long do_io_getevents(aio_context_t ctx_id, in do_io_getevents() argument
[all …]
/linux/drivers/infiniband/hw/erdma/
H A 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()
277 comp_wait->ctx_id) | in push_cmdq_sqe()
289 u16 ctx_id; in erdma_poll_single_cmd_completion() local
304 ctx_id = FIELD_GET(ERDMA_CMD_HDR_CONTEXT_COOKIE_MASK, *sqe); in erdma_poll_single_cmd_completion()
305 comp_wait = &cmdq->wait_pool[ctx_id]; in erdma_poll_single_cmd_completion()
/linux/include/uapi/drm/
H A Damdgpu_drm.h291 __u32 ctx_id; member
298 __u32 ctx_id; member
352 __u32 ctx_id; member
495 __u32 ctx_id; member
509 __u32 ctx_id; member
634 __u32 ctx_id; member
700 __u32 ctx_id; member
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A 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
/linux/drivers/gpu/drm/xe/
H A Dxe_execlist.c44 u32 ctx_id) in __start_lrc() argument
54 xe_gt_assert(hwe->gt, FIELD_FIT(XEHP_SW_CTX_ID, ctx_id)); in __start_lrc()
55 lrc_desc |= FIELD_PREP(XEHP_SW_CTX_ID, ctx_id); in __start_lrc()
57 xe_gt_assert(hwe->gt, FIELD_FIT(SW_CTX_ID, ctx_id)); in __start_lrc()
58 lrc_desc |= FIELD_PREP(SW_CTX_ID, ctx_id); in __start_lrc()

123