Home
last modified time | relevance | path

Searched refs:context_id (Results 1 – 25 of 62) sorted by relevance

123

/linux/drivers/misc/vmw_vmci/
H A Dvmci_datagram.c57 u32 context_id; in dg_create_handle() local
65 context_id = VMCI_INVALID_ID; in dg_create_handle()
67 context_id = vmci_get_context_id(); in dg_create_handle()
68 if (context_id == VMCI_INVALID_ID) in dg_create_handle()
72 handle = vmci_make_handle(context_id, resource_id); in dg_create_handle()
105 static int vmci_datagram_get_priv_flags(u32 context_id, in vmci_datagram_get_priv_flags() argument
109 if (context_id == VMCI_INVALID_ID) in vmci_datagram_get_priv_flags()
112 if (context_id == VMCI_HOST_CONTEXT_ID) { in vmci_datagram_get_priv_flags()
125 } else if (context_id == VMCI_HYPERVISOR_CONTEXT_ID) in vmci_datagram_get_priv_flags()
128 *priv_flags = vmci_context_get_priv_flags(context_id); in vmci_datagram_get_priv_flags()
[all …]
H A Dvmci_context.h140 int vmci_ctx_add_notification(u32 context_id, u32 remote_cid);
141 int vmci_ctx_remove_notification(u32 context_id, u32 remote_cid);
142 int vmci_ctx_get_chkpt_state(u32 context_id, u32 cpt_type,
144 int vmci_ctx_set_chkpt_state(u32 context_id, u32 cpt_type,
154 int vmci_ctx_dbell_create(u32 context_id, struct vmci_handle handle);
155 int vmci_ctx_dbell_destroy(u32 context_id, struct vmci_handle handle);
156 int vmci_ctx_dbell_destroy_all(u32 context_id);
160 int vmci_ctx_rcv_notifications_get(u32 context_id, struct vmci_handle_arr
163 void vmci_ctx_rcv_notifications_release(u32 context_id, struct vmci_handle_arr
H A Dvmci_context.c201 static int ctx_fire_notification(u32 context_id, u32 priv_flags) in ctx_fire_notification() argument
207 vmci_make_handle(context_id, VMCI_EVENT_HANDLER); in ctx_fire_notification()
255 ev.payload.context_id = context_id; in ctx_fire_notification()
598 int vmci_ctx_add_notification(u32 context_id, u32 remote_cid) in vmci_ctx_add_notification() argument
605 context = vmci_ctx_get(context_id); in vmci_ctx_add_notification()
609 if (VMCI_CONTEXT_IS_VM(context_id) && VMCI_CONTEXT_IS_VM(remote_cid)) { in vmci_ctx_add_notification()
611 context_id, remote_cid); in vmci_ctx_add_notification()
665 int vmci_ctx_remove_notification(u32 context_id, u32 remote_cid) in vmci_ctx_remove_notification() argument
671 context = vmci_ctx_get(context_id); in vmci_ctx_remove_notification()
764 int vmci_ctx_get_chkpt_state(u32 context_id, in vmci_ctx_get_chkpt_state() argument
[all …]
H A Dvmci_queue_pair.c854 u32 context_id = vmci_get_context_id(); in qp_notify_peer_local() local
858 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); in qp_notify_peer_local()
864 ev.payload.peer_id = context_id; in qp_notify_peer_local()
893 u32 context_id = vmci_get_context_id(); in qp_guest_endpoint_create() local
895 handle = vmci_make_handle(context_id, VMCI_INVALID_ID); in qp_guest_endpoint_create()
1191 u32 context_id = vmci_get_context_id(); in qp_alloc_guest_work() local
1202 if (queue_pair_entry->qp.handle.context != context_id || in qp_alloc_guest_work()
1204 queue_pair_entry->qp.peer != context_id)) { in qp_alloc_guest_work()
1294 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_create() local
1308 if (handle.context != context_id && handle.context != peer) in qp_broker_create()
[all …]
H A Dvmci_resource.c69 static u32 vmci_resource_find_id(u32 context_id, in vmci_resource_find_id() argument
90 handle = vmci_make_handle(context_id, current_rid); in vmci_resource_find_id()
H A Dvmci_datagram.h40 int vmci_datagram_dispatch(u32 context_id, struct vmci_datagram *dg,
H A Dvmci_doorbell.c429 u32 context_id = vmci_get_context_id(); in vmci_doorbell_create() local
431 if (context_id == VMCI_INVALID_ID) { in vmci_doorbell_create()
438 new_handle = vmci_make_handle(context_id, VMCI_INVALID_ID); in vmci_doorbell_create()
/linux/drivers/gpu/drm/i915/gvt/
H A Dexeclist.c45 #define same_context(a, b) (((a)->context_id == (b)->context_id) && \
70 execlist->running_context->context_id : 0, in switch_virtual_execlist_slot()
83 execlist->running_context->context_id : 0, in switch_virtual_execlist_slot()
109 status.context_id = 0; in emulate_execlist_status()
114 status.context_id = desc ? desc->context_id : 0; in emulate_execlist_status()
193 gvt_dbg_el("schedule out context id %x\n", ctx->context_id); in emulate_execlist_ctx_schedule_out()
198 ctx->context_id, in emulate_execlist_ctx_schedule_out()
199 execlist->running_context->context_id); in emulate_execlist_ctx_schedule_out()
212 status.context_id = ctx->context_id; in emulate_execlist_ctx_schedule_out()
232 status.context_id = ctx->context_id; in emulate_execlist_ctx_schedule_out()
[all …]
H A Dexeclist.h57 u32 context_id; member
80 u32 context_id; member
119 u32 context_id; member
/linux/arch/powerpc/include/asm/
H A Dmmu_context.h68 extern void __destroy_context(int context_id);
75 int context_id; in alloc_extended_context() local
79 context_id = hash__alloc_context_id(); in alloc_extended_context()
80 if (context_id < 0) in alloc_extended_context()
81 return context_id; in alloc_extended_context()
84 mm->context.extended_id[index] = context_id; in alloc_extended_context()
85 return context_id; in alloc_extended_context()
90 int context_id; in need_extra_context() local
92 context_id = get_user_context(&mm->context, ea); in need_extra_context()
93 if (!context_id) in need_extra_context()
[all …]
/linux/include/uapi/scsi/
H A Dcxlflash_ioctl.h77 __u64 context_id; /* Returned context */ member
88 __u64 context_id; /* Context to detach */ member
94 __u64 context_id; /* Context to own physical resources */ member
104 __u64 context_id; /* Context to own virtual resources */ member
113 __u64 context_id; /* Context owning resources */ member
120 __u64 context_id; /* Context owning resources */ member
140 __u64 context_id; /* Context owning resources to verify */ member
154 __u64 context_id; /* Context to recover / updated ID */ member
/linux/drivers/iommu/
H A Dipmmu-vmsa.c77 unsigned int context_id; member
189 unsigned int context_id, unsigned int reg) in ipmmu_ctx_reg() argument
193 if (context_id > 7) in ipmmu_ctx_reg()
196 return base + context_id * mmu->features->ctx_offset_stride + reg; in ipmmu_ctx_reg()
200 unsigned int context_id, unsigned int reg) in ipmmu_ctx_read() argument
202 return ipmmu_read(mmu, ipmmu_ctx_reg(mmu, context_id, reg)); in ipmmu_ctx_read()
206 unsigned int context_id, unsigned int reg, u32 data) in ipmmu_ctx_write() argument
208 ipmmu_write(mmu, ipmmu_ctx_reg(mmu, context_id, reg), data); in ipmmu_ctx_write()
214 return ipmmu_ctx_read(domain->mmu->root, domain->context_id, reg); in ipmmu_ctx_read_root()
220 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_root()
[all …]
/linux/arch/powerpc/mm/book3s64/
H A Dmmu_context.c220 void __destroy_context(int context_id) in __destroy_context() argument
222 ida_free(&mmu_context_ida, context_id); in __destroy_context()
232 int index, context_id; in destroy_contexts() local
235 context_id = ctx->extended_id[index]; in destroy_contexts()
236 if (context_id) in destroy_contexts()
237 ida_free(&mmu_context_ida, context_id); in destroy_contexts()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dcik_event_interrupt.c93 uint32_t context_id = ihre->data & 0xfffffff; in cik_event_interrupt_wq() local
101 kfd_signal_event_interrupt(pasid, context_id, 28); in cik_event_interrupt_wq()
103 kfd_signal_event_interrupt(pasid, context_id, 28); in cik_event_interrupt_wq()
105 kfd_signal_event_interrupt(pasid, context_id & 0xff, 8); in cik_event_interrupt_wq()
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_hwi.c410 enbl_req.context_id = tgt->context_id; in bnx2fc_send_session_enable_req()
469 disable_req.context_id = tgt->context_id; in bnx2fc_send_session_disable_req()
504 destroy_req.context_id = tgt->context_id; in bnx2fc_send_session_destroy_req()
1159 u32 context_id; in bnx2fc_process_ofld_cmpl() local
1162 context_id = ofld_kcqe->fcoe_conn_context_id; in bnx2fc_process_ofld_cmpl()
1179 tgt->context_id = context_id; in bnx2fc_process_ofld_cmpl()
1211 u32 context_id; in bnx2fc_process_enable_conn_cmpl() local
1213 context_id = ofld_kcqe->fcoe_conn_context_id; in bnx2fc_process_enable_conn_cmpl()
1228 if (tgt->context_id != context_id) { in bnx2fc_process_enable_conn_cmpl()
1445 u32 context_id = tgt->context_id; in bnx2fc_map_doorbell() local
[all …]
/linux/drivers/firmware/qcom/
H A Dqcom_scm-legacy.c138 int ret = 0, context_id; in scm_legacy_call() local
173 smc.args[1] = (unsigned long)&context_id; in scm_legacy_call()
228 int context_id; in scm_legacy_call_atomic() local
235 (unsigned long)&context_id, in scm_legacy_call_atomic()
/linux/drivers/net/ethernet/sfc/
H A Dmcdi_filters.c212 else if (WARN_ON_ONCE(ctx->context_id == EFX_MCDI_RSS_CONTEXT_INVALID)) in efx_mcdi_filter_push_prep()
243 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_RX_CONTEXT, ctx->context_id); in efx_mcdi_filter_push_prep()
393 if (ctx->context_id == EFX_MCDI_RSS_CONTEXT_INVALID) { in efx_mcdi_filter_insert_locked()
1419 if (ctx->context_id == EFX_MCDI_RSS_CONTEXT_INVALID) { in efx_mcdi_filter_table_restore()
1921 if (efx_mcdi_get_rss_context_flags(efx, ctx->context_id, &flags) != 0) in efx_mcdi_set_rss_context_flags()
1924 ctx->context_id); in efx_mcdi_set_rss_context_flags()
1951 ctx->context_id = EFX_MCDI_RSS_CONTEXT_INVALID; in efx_mcdi_filter_alloc_rss_context()
1973 ctx->context_id = MCDI_DWORD(outbuf, RSS_CONTEXT_ALLOC_OUT_RSS_CONTEXT_ID); in efx_mcdi_filter_alloc_rss_context()
2036 if (efx->rss_context.priv.context_id != EFX_MCDI_RSS_CONTEXT_INVALID) { in efx_mcdi_rx_free_indir_table()
2037 rc = efx_mcdi_filter_free_rss_context(efx, efx->rss_context.priv.context_id); in efx_mcdi_rx_free_indir_table()
[all …]
/linux/drivers/scsi/cxlflash/
H A Dsuperpipe.c40 resize->context_id = release->context_id; in marshal_rele_to_resize()
53 release->context_id = detach->context_id; in marshal_det_to_rele()
65 release->context_id = udirect->context_id; in marshal_udir_to_rele()
646 u64 ctxid = DECODE_CTXID(release->context_id), in _cxlflash_disk_release()
647 rctxid = release->context_id; in _cxlflash_disk_release()
902 u64 ctxid = DECODE_CTXID(detach->context_id), in _cxlflash_disk_detach()
903 rctxid = detach->context_id; in _cxlflash_disk_detach()
[all...]
H A Dvlun.c35 resize->context_id = virt->context_id; in marshal_virt_to_resize()
50 release->context_id = clone->context_id_dst; in marshal_clone_to_rele()
743 u64 ctxid = DECODE_CTXID(resize->context_id), in _cxlflash_vlun_resize()
744 rctxid = resize->context_id; in _cxlflash_vlun_resize()
982 u64 ctxid = DECODE_CTXID(virt->context_id), in cxlflash_disk_virtual_open()
983 rctxid = virt->context_id; in cxlflash_disk_virtual_open()
/linux/arch/arm/mm/
H A Dcontext.c56 u64 context_id, asid; in a15_erratum_get_cpumask() local
59 context_id = mm->context.id.counter; in a15_erratum_get_cpumask()
70 if (context_id == asid) in a15_erratum_get_cpumask()
/linux/drivers/irqchip/
H A Dirq-sifive-plic.c524 int id, context_id; in plic_probe() local
575 context_id = i; in plic_probe()
577 context_id = acpi_rintc_get_plic_context(priv->acpi_plic_id, i); in plic_probe()
578 if (context_id == INVALID_CONTEXT) { in plic_probe()
621 context_id * CONTEXT_SIZE; in plic_probe()
624 context_id * CONTEXT_ENABLE_SIZE; in plic_probe()
/linux/include/linux/
H A Dvmw_vmci_api.h40 bool vmci_is_context_owner(u32 context_id, kuid_t uid);
47 u32 vmci_context_get_priv_flags(u32 context_id);
/linux/drivers/accel/amdxdna/
H A Daie2_msg_priv.h86 __u32 context_id; member
123 __u32 context_id; member
131 __u32 context_id; member
H A Daie2_message.c208 hwctx->fw_ctx_id = resp.context_id; in aie2_create_context()
260 req.context_id = hwctx->fw_ctx_id; in aie2_destroy_context()
274 int aie2_map_host_buf(struct amdxdna_dev_hdl *ndev, u32 context_id, u64 addr, u64 size) in aie2_map_host_buf() argument
280 req.context_id = context_id; in aie2_map_host_buf()
288 context_id, addr, size); in aie2_map_host_buf()
/linux/tools/perf/util/arm-spe-decoder/
H A Darm-spe-decoder.c158 decoder->record.context_id = (u64)-1; in arm_spe_read_record()
190 decoder->record.context_id = payload; in arm_spe_read_record()

123