Home
last modified time | relevance | path

Searched refs:context_id (Results 1 - 25 of 134) sorted by relevance

123456

/kernel/linux/linux-5.10/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()
103 * vmci_datagram_get_priv_flags that also takes a context_id.
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 in vmci_datagram_get_priv_flags()
157 dg_dispatch_as_host(u32 context_id, struct vmci_datagram *dg) dg_dispatch_as_host() argument
314 vmci_datagram_dispatch(u32 context_id, struct vmci_datagram *dg, bool from_guest) vmci_datagram_dispatch() argument
[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
672 context = vmci_ctx_get(context_id); in vmci_ctx_remove_notification()
767 vmci_ctx_get_chkpt_state(u32 context_id, u32 cpt_type, u32 *buf_size, void **pbuf) vmci_ctx_get_chkpt_state() argument
816 vmci_ctx_set_chkpt_state(u32 context_id, u32 cpt_type, u32 buf_size, void *cpt_buf) vmci_ctx_set_chkpt_state() argument
860 vmci_ctx_rcv_notifications_get(u32 context_id, struct vmci_handle_arr **db_handle_array, struct vmci_handle_arr **qp_handle_array) vmci_ctx_rcv_notifications_get() argument
895 vmci_ctx_rcv_notifications_release(u32 context_id, struct vmci_handle_arr *db_handle_array, struct vmci_handle_arr *qp_handle_array, bool success) vmci_ctx_rcv_notifications_release() argument
944 vmci_ctx_dbell_create(u32 context_id, struct vmci_handle handle) vmci_ctx_dbell_create() argument
973 vmci_ctx_dbell_destroy(u32 context_id, struct vmci_handle handle) vmci_ctx_dbell_destroy() argument
1001 vmci_ctx_dbell_destroy_all(u32 context_id) vmci_ctx_dbell_destroy_all() argument
1177 vmci_context_get_priv_flags(u32 context_id) vmci_context_get_priv_flags() argument
1202 vmci_is_context_owner(u32 context_id, kuid_t uid) vmci_is_context_owner() argument
[all...]
H A Dvmci_queue_pair.c852 u32 context_id = vmci_get_context_id(); in qp_notify_peer_local() local
856 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); in qp_notify_peer_local()
862 ev.payload.peer_id = context_id; in qp_notify_peer_local()
891 u32 context_id = vmci_get_context_id(); in qp_guest_endpoint_create() local
893 handle = vmci_make_handle(context_id, VMCI_INVALID_ID); in qp_guest_endpoint_create()
1189 u32 context_id = vmci_get_context_id(); in qp_alloc_guest_work() local
1200 if (queue_pair_entry->qp.handle.context != context_id || in qp_alloc_guest_work()
1202 queue_pair_entry->qp.peer != context_id)) { in qp_alloc_guest_work()
1292 const u32 context_id = vmci_ctx_get_id(context); in qp_broker_create() local
1306 if (handle.context != context_id in qp_broker_create()
1521 const u32 context_id = vmci_ctx_get_id(context); qp_broker_attach() local
1707 const u32 context_id = vmci_ctx_get_id(context); qp_broker_alloc() local
1965 const u32 context_id = vmci_ctx_get_id(context); vmci_qp_broker_set_page_store() local
2080 const u32 context_id = vmci_ctx_get_id(context); vmci_qp_broker_detach() local
2212 const u32 context_id = vmci_ctx_get_id(context); vmci_qp_broker_map() local
2322 const u32 context_id = vmci_ctx_get_id(context); vmci_qp_broker_unmap() local
[all...]
/kernel/linux/linux-6.6/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()
103 * vmci_datagram_get_priv_flags that also takes a context_id.
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 in vmci_datagram_get_priv_flags()
157 dg_dispatch_as_host(u32 context_id, struct vmci_datagram *dg) dg_dispatch_as_host() argument
314 vmci_datagram_dispatch(u32 context_id, struct vmci_datagram *dg, bool from_guest) vmci_datagram_dispatch() argument
[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 vmci_ctx_get_chkpt_state(u32 context_id, u32 cpt_type, u32 *buf_size, void **pbuf) vmci_ctx_get_chkpt_state() argument
813 vmci_ctx_set_chkpt_state(u32 context_id, u32 cpt_type, u32 buf_size, void *cpt_buf) vmci_ctx_set_chkpt_state() argument
857 vmci_ctx_rcv_notifications_get(u32 context_id, struct vmci_handle_arr **db_handle_array, struct vmci_handle_arr **qp_handle_array) vmci_ctx_rcv_notifications_get() argument
892 vmci_ctx_rcv_notifications_release(u32 context_id, struct vmci_handle_arr *db_handle_array, struct vmci_handle_arr *qp_handle_array, bool success) vmci_ctx_rcv_notifications_release() argument
941 vmci_ctx_dbell_create(u32 context_id, struct vmci_handle handle) vmci_ctx_dbell_create() argument
970 vmci_ctx_dbell_destroy(u32 context_id, struct vmci_handle handle) vmci_ctx_dbell_destroy() argument
998 vmci_ctx_dbell_destroy_all(u32 context_id) vmci_ctx_dbell_destroy_all() argument
1174 vmci_context_get_priv_flags(u32 context_id) vmci_context_get_priv_flags() argument
1199 vmci_is_context_owner(u32 context_id, kuid_t uid) vmci_is_context_owner() 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 in qp_broker_create()
1523 const u32 context_id = vmci_ctx_get_id(context); qp_broker_attach() local
1709 const u32 context_id = vmci_ctx_get_id(context); qp_broker_alloc() local
1970 const u32 context_id = vmci_ctx_get_id(context); vmci_qp_broker_set_page_store() local
2085 const u32 context_id = vmci_ctx_get_id(context); vmci_qp_broker_detach() local
2217 const u32 context_id = vmci_ctx_get_id(context); vmci_qp_broker_map() local
2327 const u32 context_id = vmci_ctx_get_id(context); vmci_qp_broker_unmap() local
[all...]
/kernel/linux/linux-5.10/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()
[all...]
/kernel/linux/linux-6.6/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()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dmmu_context.h74 extern void __destroy_context(int context_id);
80 int context_id; in alloc_extended_context() local
84 context_id = hash__alloc_context_id(); in alloc_extended_context()
85 if (context_id < 0) in alloc_extended_context()
86 return context_id; in alloc_extended_context()
89 mm->context.extended_id[index] = context_id; in alloc_extended_context()
90 return context_id; in alloc_extended_context()
95 int context_id; in need_extra_context() local
97 context_id = get_user_context(&mm->context, ea); in need_extra_context()
98 if (!context_id) in need_extra_context()
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/include/uapi/scsi/
H A Dcxlflash_ioctl.h54 * The 'context_id' field of all ioctl structures contains the context
77 __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
/kernel/linux/linux-6.6/include/uapi/scsi/
H A Dcxlflash_ioctl.h54 * The 'context_id' field of all ioctl structures contains the context
77 __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
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/scsi/
H A Dcxlflash_ioctl.h24 __u64 context_id; member
34 __u64 context_id; member
39 __u64 context_id; member
47 __u64 context_id; member
55 __u64 context_id; member
61 __u64 context_id; member
78 __u64 context_id; member
90 __u64 context_id; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/scsi/
H A Dcxlflash_ioctl.h37 __u64 context_id; member
47 __u64 context_id; member
52 __u64 context_id; member
60 __u64 context_id; member
68 __u64 context_id; member
74 __u64 context_id; member
91 __u64 context_id; member
103 __u64 context_id; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/scsi/
H A Dcxlflash_ioctl.h37 __u64 context_id; member
47 __u64 context_id; member
52 __u64 context_id; member
60 __u64 context_id; member
68 __u64 context_id; member
74 __u64 context_id; member
91 __u64 context_id; member
103 __u64 context_id; member
/kernel/linux/linux-6.6/drivers/iommu/
H A Dipmmu-vmsa.c78 unsigned int context_id; member
190 unsigned int context_id, unsigned int reg) in ipmmu_ctx_reg()
194 if (context_id > 7) in ipmmu_ctx_reg()
197 return base + context_id * mmu->features->ctx_offset_stride + reg; in ipmmu_ctx_reg()
201 unsigned int context_id, unsigned int reg) in ipmmu_ctx_read()
203 return ipmmu_read(mmu, ipmmu_ctx_reg(mmu, context_id, reg)); in ipmmu_ctx_read()
207 unsigned int context_id, unsigned int reg, u32 data) in ipmmu_ctx_write()
209 ipmmu_write(mmu, ipmmu_ctx_reg(mmu, context_id, reg), data); in ipmmu_ctx_write()
215 return ipmmu_ctx_read(domain->mmu->root, domain->context_id, reg); in ipmmu_ctx_read_root()
221 ipmmu_ctx_write(domain->mmu->root, domain->context_id, re in ipmmu_ctx_write_root()
189 ipmmu_ctx_reg(struct ipmmu_vmsa_device *mmu, unsigned int context_id, unsigned int reg) ipmmu_ctx_reg() argument
200 ipmmu_ctx_read(struct ipmmu_vmsa_device *mmu, unsigned int context_id, unsigned int reg) ipmmu_ctx_read() argument
206 ipmmu_ctx_write(struct ipmmu_vmsa_device *mmu, unsigned int context_id, unsigned int reg, u32 data) ipmmu_ctx_write() argument
340 ipmmu_domain_free_context(struct ipmmu_vmsa_device *mmu, unsigned int context_id) ipmmu_domain_free_context() argument
[all...]
/kernel/linux/linux-5.10/drivers/iommu/
H A Dipmmu-vmsa.c80 unsigned int context_id; member
192 unsigned int context_id, unsigned int reg) in ipmmu_ctx_reg()
195 context_id * mmu->features->ctx_offset_stride + reg; in ipmmu_ctx_reg()
199 unsigned int context_id, unsigned int reg) in ipmmu_ctx_read()
201 return ipmmu_read(mmu, ipmmu_ctx_reg(mmu, context_id, reg)); in ipmmu_ctx_read()
205 unsigned int context_id, unsigned int reg, u32 data) in ipmmu_ctx_write()
207 ipmmu_write(mmu, ipmmu_ctx_reg(mmu, context_id, reg), data); in ipmmu_ctx_write()
213 return ipmmu_ctx_read(domain->mmu->root, domain->context_id, reg); in ipmmu_ctx_read_root()
219 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_root()
226 ipmmu_ctx_write(domain->mmu, domain->context_id, re in ipmmu_ctx_write_all()
191 ipmmu_ctx_reg(struct ipmmu_vmsa_device *mmu, unsigned int context_id, unsigned int reg) ipmmu_ctx_reg() argument
198 ipmmu_ctx_read(struct ipmmu_vmsa_device *mmu, unsigned int context_id, unsigned int reg) ipmmu_ctx_read() argument
204 ipmmu_ctx_write(struct ipmmu_vmsa_device *mmu, unsigned int context_id, unsigned int reg, u32 data) ipmmu_ctx_write() argument
355 ipmmu_domain_free_context(struct ipmmu_vmsa_device *mmu, unsigned int context_id) ipmmu_domain_free_context() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_int_process_v9.c91 uint32_t context_id; in event_interrupt_wq_v9() local
97 context_id = SOC15_CONTEXT_ID0_FROM_IH_ENTRY(ih_ring_entry); in event_interrupt_wq_v9()
100 kfd_signal_event_interrupt(pasid, context_id, 32); in event_interrupt_wq_v9()
102 kfd_signal_event_interrupt(pasid, context_id & 0xfffffff, 28); in event_interrupt_wq_v9()
104 kfd_signal_event_interrupt(pasid, context_id & 0xffffff, 24); in event_interrupt_wq_v9()
H A Dcik_event_interrupt.c92 uint32_t context_id = ihre->data & 0xfffffff; in cik_event_interrupt_wq() local
100 kfd_signal_event_interrupt(pasid, context_id, 28); in cik_event_interrupt_wq()
102 kfd_signal_event_interrupt(pasid, context_id, 28); in cik_event_interrupt_wq()
104 kfd_signal_event_interrupt(pasid, context_id & 0xff, 8); in cik_event_interrupt_wq()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
H A Dmmu_context.c208 void __destroy_context(int context_id) in __destroy_context() argument
210 ida_free(&mmu_context_ida, context_id); in __destroy_context()
216 int index, context_id; in destroy_contexts() local
219 context_id = ctx->extended_id[index]; in destroy_contexts()
220 if (context_id) in destroy_contexts()
221 ida_free(&mmu_context_ida, context_id); in destroy_contexts()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
1160 u32 context_id; in bnx2fc_process_ofld_cmpl() local
1163 context_id = ofld_kcqe->fcoe_conn_context_id; in bnx2fc_process_ofld_cmpl()
1169 BNX2FC_TGT_DBG(tgt, "Entered ofld compl - context_id = 0x%x\n", in bnx2fc_process_ofld_cmpl()
1177 * cnic has allocated a context_id fo in bnx2fc_process_ofld_cmpl()
1212 u32 context_id; bnx2fc_process_enable_conn_cmpl() local
1446 u32 context_id = tgt->context_id; bnx2fc_map_doorbell() local
1501 u32 context_id = tgt->context_id; bnx2fc_init_seq_cleanup_task() local
1575 u32 context_id = tgt->context_id; bnx2fc_init_cleanup_task() local
1617 u32 context_id; bnx2fc_init_mp_task() local
1715 u32 context_id; bnx2fc_init_task() local
[all...]

Completed in 20 milliseconds

123456